diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2019-05-27 00:12:28 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2019-06-13 05:11:25 +0200 |
commit | 93eeaf0ad902214fb6b4205606b24046a458ee45 (patch) | |
tree | 8b124795dd6c6aec34e9f6f8886e6a80b7b01086 /starmath/source/parse.cxx | |
parent | 5e6af47dc87a55fea595c952ea3e59c93d0620db (diff) |
tdf#120047 Support attribute harpoon/wideharpoon in Math
... for an alternative style of vectors.
They are vec/widevec analogs but with COMBINING RIGHT HARPOON ABOVE
(U+20D1). The new attribute names are deliberately long in order to
make fewer accidental collisions with variable names in formulae of
exising documents.
This also adds a glyph uni20D1 to OpenSymbol.
Change-Id: I31666e57808aa0e0327500916d3b862549891886
Reviewed-on: https://gerrit.libreoffice.org/72987
Tested-by: Jenkins
Reviewed-by: Takeshi Abe <tabe@fixedpoint.jp>
Diffstat (limited to 'starmath/source/parse.cxx')
-rw-r--r-- | starmath/source/parse.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index 2c76ace91243..84c8508d4fe2 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -143,6 +143,7 @@ static const SmTokenTableEntry aTokenTable[] = { "gray", TGRAY, '\0', TG::Color, 0}, { "green", TGREEN, '\0', TG::Color, 0}, { "gt", TGT, MS_GT, TG::Relation, 0}, + { "harpoon", THARPOON, MS_HARPOON, TG::Attribute, 5}, { "hat", THAT, MS_HAT, TG::Attribute, 5}, { "hbar" , THBAR, MS_HBAR, TG::Standalone, 5}, { "iiint", TIIINT, MS_IIINT, TG::Oper, 5}, @@ -287,6 +288,7 @@ static const SmTokenTableEntry aTokenTable[] = { "vec", TVEC, MS_VEC, TG::Attribute, 5}, { "white", TWHITE, '\0', TG::Color, 0}, { "widebslash", TWIDEBACKSLASH, MS_BACKSLASH, TG::Product, 0 }, + { "wideharpoon", TWIDEHARPOON, MS_HARPOON, TG::Attribute, 5}, { "widehat", TWIDEHAT, MS_HAT, TG::Attribute, 5}, { "wideslash", TWIDESLASH, MS_SLASH, TG::Product, 0 }, { "widetilde", TWIDETILDE, MS_TILDE, TG::Attribute, 5}, @@ -1778,6 +1780,7 @@ std::unique_ptr<SmStructureNode> SmParser::DoAttribut() break; case TWIDEVEC : + case TWIDEHARPOON : case TWIDEHAT : case TWIDETILDE : xAttr.reset(new SmMathSymbolNode(m_aCurToken)); |