-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds TextLangMan for text typography by language
Parse and store values from lang= attributes, so we can propagate a TextlangCfg object to all calls dealing with text, which will allow to: - Use specific libunibreak rules for line breaking per lang (i.e. reverted quotation marks in German vs French). - Use the right hyphenation dictionary for each language - Add more specific line breaking tweaks for some languages (some single letter prepositions should not be at end of line in Polish and Czech, real hyphens should be duplicated at start of next line in Portuguese and Polish...) - Give the language tag to Harfbuzz so it can pick the right glyphs for the language (e.g. different glyphs for the same codepoint in zh-CN, zh-TW and ja, and for Bulgarian Cyrillic with some fonts). Update existing global HyphMan to use services from TextLangMan to ensure legacy single global hyphenation. TextLangMan still uses the hyphenation methods defined in hyphman.cpp.
- Loading branch information
Showing
15 changed files
with
1,193 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.