Age | Commit message (Collapse) | Author | |
---|---|---|---|
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 | |
2016-01-06 | epub: Optimize CSS selector matching. | Tor Andersson | |
Remove strcpy and strtok calls when matching class conditions. | |||
2016-01-05 | epub: Speed up CSS style application by using faster strtod. | Tor Andersson | |
CSS doesn't need precision, and doesn't support exponential notation. Use a simpler string to float conversion algorithm, which is magnitudes of order faster. | |||
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: Parse NCX table of contents. | 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-10-02 | epub: Parse enough metadata to find title and author. | Tor Andersson | |
2015-09-24 | epub: Add metadata function. | Tor Andersson | |
Still a no-op except for returning the document format. | |||
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: Parse CSS combinators left-associatively. | Tor Andersson | |
Fixes bug 695994 where multiple child selectors would not match properly. The "a > b > c" rule should be interpreted as ((a > b) > c) in order to match properly. | |||
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-19 | epub: Use per chapter page margins. | Tor Andersson | |
2015-05-19 | epub: Support !important property declarations. | Tor Andersson | |
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: Don't inherit font-size textually, despite what the spec says. | Tor Andersson | |
Ignore inheritance on font-size properties altogether. Since we already inherit the font-size during the 'em' calculations when laying out text, inheriting the font-size property textually will result in doubling the effect of any scaling. | |||
2015-05-15 | epub: Apply @page selector margins. | Tor Andersson | |
2015-05-15 | epub: Parse (and ignore) @page selector. | 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-07 | epub: Allow space between property name and ':'. | Tor Andersson | |
2015-05-07 | epub: Fix typo when parsing negative numbers. | Tor Andersson | |
2015-05-07 | epub: Whitespace separated by comments turn into two whitespace tokens. | Tor Andersson | |
Deal with it. | |||
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-06 | epub: Rejig CSS parser -- whitespace is significant! | Tor Andersson | |
The selectors ".foo.bar" and ".foo .bar" are not equivalent! They should parse as "*.foo.bar" and "*.foo *.bar" but we parsed both as "*.foo.bar" due to us ignoring significant whitespace. | |||
2015-05-05 | epub: Ignore missing stylesheet files. | Tor Andersson | |
2015-05-05 | epub: Bail if rights.xml or encryption.xml are present (not DRM-free EPUB). | Tor Andersson | |
2015-05-05 | epub: Parse (and ignore) display: inline-block. | Tor Andersson | |
2015-05-05 | epub: Fix signedness bug when testing character ranges. | Tor Andersson | |
2015-05-05 | epub: Decode URL escapes in epub paths. | Tor Andersson | |
2015-05-05 | epub: Ignore syntax errors in HTML tag style attributes. | Tor Andersson | |
2015-05-05 | epub: Fix list mark horizontal placement calculation. | Tor Andersson | |