-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for the operator dictionary landed in september 2020 [1] [2]. However, after that initial support more changes were performed on the specification side by the MathML CG. Now that the dictionary is stable enough, this CL updates the implementation and tests accordingly. We take the opportunity that operators.woff is regenerated to fix two issues: make glyph indices of stretchy parts more stable and ensure that the font contains glyphs for special combining characters [1]. - open_type_math_support_test.cc/stretchy_operator_shaper_test.cc: Access the glyph indices from their code points in the PUA. - mathml_operator_element.cc/mathml_operator_dictionary.h: A new "Force Default" is introduced for the two operators having both an infix form with the default values and a different form, so they don't perform step 4 of [4]. Switch categories K and L. - mathml_operator_dictionary.cc: Update operators_2_ascii_chars, and compact_dictionary from the spec. Also add special case for the "Force Default" category. Switch categories K and L. - mathml_operator_dictionary_test.cc: Regenerate content of categories and switch categories K and L. - character_names.h: Add new names for the operators in the "Force Default" category. - operator-dictionary.json: Regenerate operator dictionary. - operator-dictionary.py/mathfont.py: Store glyphs v0, h0, v1, h1, v2, h2, v3, h3 at the beginning of the PUA so they can be accessed by code point values. Ensure existence of glyphs for special combining characters. - misc.py: Use the official repository for unicode.xml rather than the obsolete development branch for Unicode 14. - operator-dictionary-combining-expected.txt: Removed since the test pass now that glyphs are available for combining characters. Bug: 6606, 1082250, 1057596 Change-Id: I106b1551a910d1292df71b954981e0465ea222c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3419439 Reviewed-by: Dominik Röttsches <drott@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/main@{#986939}
- Loading branch information
Showing
14 changed files
with
197 additions
and
154 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.