Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-10 | html: Consider CJK punctuation in line breaking algorithm | Sebastian Rasmussen | |
2016-02-10 | html: Support vertical alignment to top/bottom of parent box | Sebastian Rasmussen | |
Fixes http://bugs.ghostscript.com/show_bug.cgi?id=696004 | |||
2016-02-04 | Make HTML layout use harfbuzz for shaping. | Robin Watts | |
fz_fonts gain a 'shaper' field that will be filled in as required. Use a void * rather than an hb_font_t to avoid polluting top level include space. Harfbuff handles mirroring for us, so lose the 'mirror' fields. This simplifies our wrappers around the 'standard' bidi code in that we don't need to split fragments upon mirroring. We do need to split our fragments at script changes though as harfbuzz only operates on a single font at a time. Update the html flow structure so that each flow node contains details of the the direction specified for it in the markup, the language specified for it in the markup and the script detected by the bidi code. Get the bidi code to pass out the script for each fragment as part of the callback and populate that field in the node. Ensure that we pass in the markup direction to the bidi splitting code as the 'base' direction. When feeding the bidi code, rather than feeding it paragraphs at a time, break those paragraphs if different parts of them have different marked up directions. | |||
2016-01-28 | Add fallback font cache to font context. | Tor Andersson | |
2016-01-22 | epub: Implement @font-face rules. | Tor Andersson | |
Note: font->fallback is not reference counted here. The fallback mechanism is probably going to have to change when we add text shaping. | |||
2016-01-22 | epub: Fix memory leak of bidi detection scratch buffer. | Tor Andersson | |
2016-01-21 | epub: Put font fallback chain in fz_font. | Tor Andersson | |
fz_encode_character_with_fallback finds the first font in the fallback chain that has the glyph encoded, and if none do then try to encode a bullet character. | |||
2016-01-20 | epub: Adjust text-align based on paragraph directionality. | Tor Andersson | |
In RTL context, text-align: left should be right, and vice versa. Since we currently ignore the dir="xxx" HTML attributes and CSS properties, always pick up the directionality from the text as if dir="auto". | |||
2016-01-20 | Various formatting cleanups. | Tor Andersson | |
2016-01-20 | Tidy bidirectional source. | Robin Watts | |
Make the import follow mupdf style (better, if not perfect). Use ucdn where possible to avoid duplicating tables. Shrink the types, make them explicit (e.g. use fz_bidi_level rather than int) and make tables const. Use 32-bit integers for text. | |||
2016-01-18 | Add support for bidirectional mirror characters | Robin Watts | |
2016-01-18 | Save some space in fz_html_flow with a union. | Robin Watts | |
2016-01-18 | Implement R2L characterwise plotting in the html layout. | Robin Watts | |
2016-01-18 | Ensure layout honours text directional (block level). | Robin Watts | |
2016-01-18 | Process HTML text for directionality. | Robin Watts | |
After we parse html text from an ebook run it through the unicode bidirectional algorithm to determine the directionality of each fragment. This may require splitting of fragments. Currently we don't do anything with this information. | |||
2016-01-18 | Move fz_html_flow to use a bitfield. | Robin Watts | |
Saves a bit of memory, and prepares for the addition of later fields (such as direction). | |||
2016-01-08 | epub: Fix memory leaks. | Tor Andersson | |
2016-01-08 | epub: Use pool allocator for fz_html box tree. | Tor Andersson | |
2016-01-06 | epub: Only look for CSS in html head node. | Tor Andersson | |
2016-01-06 | epub: Speed up css application by sorting the matched property list. | Tor Andersson | |
2015-12-11 | Keep spans of multiple fonts and sizes in one fz_text object. | Tor Andersson | |
2015-10-06 | epub: Implement style 'visibility' attribute. | Tor Andersson | |
2015-10-02 | epub: Use CJK line breaking rules. | Tor Andersson | |
A far cry from the full Unicode Line Breaking Algorithm, but it solves the main issues with CJK line breaking. | |||
2015-09-15 | epub: Use a fallback font. | Tor Andersson | |
2015-09-15 | epub: Fix typo in roman numeral formatting. | Tor Andersson | |
2015-07-20 | Bug 696100: Fix NULL deref. | Robin Watts | |
Check flow is not NULL before dereferencing it. Everything else in this area of the code copes with it being NULL. | |||
2015-05-26 | epub: Skip initial whitespace flow nodes when finding list anchors. | Tor Andersson | |
They are skipped during layout, so should also be skipped here. Fixes bug 695943. | |||
2015-05-19 | epub: User stylesheets. | Tor Andersson | |
Add -U option to mupdf and mudraw to set a user stylesheet. Uses a context to store user the stylesheet, just like the AA level. | |||
2015-05-18 | epub: Improve default stylesheet. | Tor Andersson | |
2015-05-15 | epub: Use flag bits for white-space enum. | Tor Andersson | |
2015-05-15 | epub: Apply @page selector margins. | Tor Andersson | |
2015-05-15 | epub: Move collapsed parent/child top margins to outside the parent. | Tor Andersson | |
2015-05-15 | epub: Improve margin collapsing. | Tor Andersson | |
2015-05-15 | epub: Handle white-space property. | Tor Andersson | |
Add 'break' nodes to flow list for forced line breaks. | |||
2015-05-06 | WIP: Add debug printing function for generated boxes. | Tor Andersson | |
2015-05-06 | epub: Add 'auto' as a special number value. | Tor Andersson | |
2015-05-05 | epub: Ignore missing stylesheet files. | Tor Andersson | |
2015-05-05 | epub: Parse (and ignore) display: inline-block. | Tor Andersson | |
2015-05-05 | epub: Decode URL escapes in epub paths. | Tor Andersson | |
2015-05-05 | epub: Fix list mark horizontal placement calculation. | Tor Andersson | |
2015-05-04 | epub: Anchor list mark to first flow node in list item. | Tor Andersson | |
2015-04-28 | epub: Only apply border widths when the border is visible. | Tor Andersson | |
The border_style field was changed from an enum to an array of enums, but one place where it was used was not updated. | |||
2015-04-27 | epub: Ugly hack so that table rows end up on their own lines at least. | Tor Andersson | |
We don't support tables yet, so this is a stop gap measure. | |||
2015-04-27 | epub: Support individual T,B,L,R border styles and colors. | Tor Andersson | |
2015-04-27 | epub: Fix (incorrectly) recursively multiplied relative font sizes. | Tor Andersson | |
2015-04-23 | epub: Support roman and alphabetic numbering in ordered lists. | Tor Andersson | |
2015-04-20 | epub: list items with bullets and counters | Tor Andersson | |
2015-04-16 | Fix typo in html-layout.c | Robin Watts | |
The find_accumulated_margins function should be a void return type. | |||
2015-04-15 | epub: Take margins into account when scaling images to fit the page. | Tor Andersson | |
2015-04-15 | epub: Tighten the comparison for when an image is on the current page. | Tor Andersson | |
This solves the issue with slivers of images appearing in the margin at the bottom of the previous page. |