From 8a07151e0dc4154b9374ca3b142ffa88d4138ffe Mon Sep 17 00:00:00 2001 From: Gary Lo Date: Sat, 1 Feb 2020 00:31:20 +0800 Subject: [PATCH] do not consider 'w' character for CCG features --- ligatures.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ligatures.py b/ligatures.py index 03faaee..317b6d5 100644 --- a/ligatures.py +++ b/ligatures.py @@ -35,8 +35,11 @@ def ligature_to_def(ligature): return defs +# 'w' should not be copied to target fonts although there is a ligatures 'www' in FIRA Code +chars = list(filter(lambda c: c != 'w', char_dict.keys())) + # 'COPY_CHARACTER_GLYPHS' feature required to prepend the punctuations characters -ligatures = [{'chars': list(char_dict.keys()), 'ligature_name': None}] \ +ligatures = [{'chars': chars, 'ligature_name': None}] \ + create_ligatures_def(pattern ='fonts/fira/showcases/showcases.txt') print("Definitions:", ligatures)