[latex3-commits] [git/LaTeX3-latex3-luaotfload] ignorable: Do not treat Hangul fillers as Default_Ignorable (4ce2ced)

Marcel Fabian Krüger tex at 2krueger.de
Sat Aug 17 14:07:41 CEST 2019


Repository : https://github.com/latex3/luaotfload
On branch  : ignorable
Link       : https://github.com/latex3/luaotfload/commit/4ce2ced48587d9ec27d2b205ef4c52829a549e4b

>---------------------------------------------------------------

commit 4ce2ced48587d9ec27d2b205ef4c52829a549e4b
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Aug 17 14:05:46 2019 +0200

    Do not treat Hangul fillers as Default_Ignorable


>---------------------------------------------------------------

4ce2ced48587d9ec27d2b205ef4c52829a549e4b
 src/luaotfload-notdef.lua | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/luaotfload-notdef.lua b/src/luaotfload-notdef.lua
index e8356bf..2d97777 100644
--- a/src/luaotfload-notdef.lua
+++ b/src/luaotfload-notdef.lua
@@ -30,6 +30,18 @@ local remove             = node.direct.remove
 local setfont            = node.direct.setfont
 local traverse_char      = node.direct.traverse_char
 
+-- According to DerivedCoreProperties.txt, Default_Ignorable_Code_Point
+-- is generated from:
+--    Other_Default_Ignorable_Code_Point
+--  + Cf (Format characters)
+--  + Variation_Selector
+--  - White_Space
+--  - FFF9..FFFB (Interlinear annotation format characters)
+--  - 13430..13438 (Egyptian hieroglyph format characters)
+--  - Prepended_Concatenation_Mark (Exceptional format characters that should be visible)
+-- Based on HarfBuzz, we add the exclusion
+--  - Lo (Letter, Other)
+-- This affects Hangul fillers.
 local ignorable_codepoints do
   local sep = lpeg.P' '^0 * ';' * lpeg.P' '^0
   local codepoint = lpeg.S'0123456789ABCDEF'^4/function(c)return tonumber(c, 16)end
@@ -52,7 +64,7 @@ local ignorable_codepoints do
                                                + 'Variation_Selector' * lpeg.Cc(true)
                                                + 'White_Space' * lpeg.Cc(nil)
                                                + 'Prepended_Concatenation_Mark' * lpeg.Cc(nil)
-                                          ) * lpeg.P' '^0 * '#')^-1 * (1-lpeg.P'\n')^0 * '\n'
+                                          ) * ' # ' * (1-lpeg.P'Lo'))^-1 * (1-lpeg.P'\n')^0 * '\n'
   file = lpeg.Cf(
       lpeg.Carg(1)
     * entry^0





More information about the latex3-commits mailing list