trishume / numderline

Font patcher to using shaping tricks to make it easier to pick out digit groups in numbers without commas
https://thume.ca/numderline
MIT License
115 stars 9 forks source link

Doesn't work properly with number ranges using `..` #9

Open tim-clarity opened 1 year ago

tim-clarity commented 1 year ago

I tried it out on PostgreSQL explain output which has numbers like 12345.67..123456789.00. Any numbers after the double period weren't formatted properly. image

sh1boot commented 1 year ago

You need to add an ignore directive to avoid that.

@@ -72,10 +72,8 @@ NUM_DIGIT_COPIES = 7
 def gen_feature(digit_names, underscore_name, dot_name, do_decimals):
     if do_decimals:
         decimal_sub = """
+    ignore sub {dot_name} {dot_name} @digits';
     sub {dot_name} @digits' by @nd2;