diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-11-25 18:12:33 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-11-25 18:12:33 +0100 |
commit | 07d4b092099bc8b5af53806fee049309dec3f888 (patch) | |
tree | acdce48b65ef6ca4e8ad661cae32441773af3111 /tex/context/base/mkiv/font-ots.lua | |
parent | 8bd2c828616004e3ba3df597f4eb212bfb4102a8 (diff) | |
download | context-07d4b092099bc8b5af53806fee049309dec3f888.tar.gz |
2020-11-25 16:56:00
Diffstat (limited to 'tex/context/base/mkiv/font-ots.lua')
-rw-r--r-- | tex/context/base/mkiv/font-ots.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/font-ots.lua b/tex/context/base/mkiv/font-ots.lua index bb13a4801..38044cac6 100644 --- a/tex/context/base/mkiv/font-ots.lua +++ b/tex/context/base/mkiv/font-ots.lua @@ -218,6 +218,7 @@ local copy_only_glyphs = nuts.copy_only_glyphs local count_components = nuts.count_components local set_components = nuts.set_components local get_components = nuts.get_components +local flush_components = nuts.flush_components --------------------------------------------------------------------------------------- @@ -488,6 +489,7 @@ local function markstoligature(head,start,stop,char) setsubtype(base,ligatureglyph_code) set_components(base,start) setlink(prev,base,next) + flush_components(start) return head, base end end @@ -515,6 +517,8 @@ local has_glyph_option = node.direct.has_glyph_option or function(n,c) end end +-- in lmtx we need to check the components and can be slightly more clever + local function toligature(head,start,stop,char,dataset,sequence,skiphash,discfound,hasmarks) -- brr head if has_glyph_option(start,no_right_ligature_code) then return head, start @@ -586,6 +590,7 @@ local function toligature(head,start,stop,char,dataset,sequence,skiphash,discfou break end end + flush_components(components) else -- discfound ... forget about marks .. probably no scripts that hyphenate and have marks local discprev, discnext = getboth(discfound) |