summaryrefslogtreecommitdiff
path: root/fc-lang
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2017-08-02 15:31:15 +0100
committerBehdad Esfahbod <behdad@behdad.org>2017-08-02 15:31:15 +0100
commit9978203bf16a0dfc1aa1c599989945d561628790 (patch)
tree10b31d44495ae349bf4036578c372ae4576b5540 /fc-lang
parent1bb8e691bd535859b1795db2554a8b1efb1d0372 (diff)
[fc-lang] Allow using ".." instead of "-" in ranges
Allows copying emoji-data.txt and other Unicode data files intact.
Diffstat (limited to 'fc-lang')
-rw-r--r--fc-lang/fc-lang.c5
-rw-r--r--fc-lang/und_zsye.orth2
2 files changed, 6 insertions, 1 deletions
diff --git a/fc-lang/fc-lang.c b/fc-lang/fc-lang.c
index 3443f512..4a650e07 100644
--- a/fc-lang/fc-lang.c
+++ b/fc-lang/fc-lang.c
@@ -174,6 +174,11 @@ scan (FILE *f, char *file, FcCharSetFreezer *freezer)
if (sscanf (line, "%x-%x", &start, &end) != 2)
fatal (file, lineno, "parse error");
}
+ else if (strstr (line, ".."))
+ {
+ if (sscanf (line, "%x..%x", &start, &end) != 2)
+ fatal (file, lineno, "parse error");
+ }
else
{
if (sscanf (line, "%x", &start) != 1)
diff --git a/fc-lang/und_zsye.orth b/fc-lang/und_zsye.orth
index 7e247319..6a5c0b92 100644
--- a/fc-lang/und_zsye.orth
+++ b/fc-lang/und_zsye.orth
@@ -28,7 +28,7 @@
#
0023 # 1.1 [1] (#️) number sign
002A # 1.1 [1] (*️) asterisk
-0030-0039 # 1.1 [10] (0️-9️) digit zero-digit nine
+0030..0039 # 1.1 [10] (0️-9️) digit zero-digit nine
00A9 # 1.1 [1] (©️) copyright
00AE # 1.1 [1] (®️) registered
203C # 1.1 [1] (‼️) double exclamation mark