unibdf2hex: drop range restriction
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 16 Jul 2015 03:57:48 +0000 (05:57 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Thu, 16 Jul 2015 06:45:03 +0000 (08:45 +0200)
src/unibdf2hex.c

index 6669d8f7e372521deea9fafbeaf3abcc2658d5e9..b421f6a7db268af0cecdd2d5cf57d3bc40bf7ce6 100644 (file)
@@ -28,9 +28,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define UNISTART 0x3400
-#define UNISTOP 0x4DBF
-
 #define MAXBUF 256
 
 
@@ -54,18 +51,6 @@ main()
          If we want this code point, get the BBX (bounding box) and
          BITMAP information.
       */
-      if (!(
-          (thispoint >= 0x2E80 && thispoint <= 0x2EFF) || // CJK Radicals Supplement
-          (thispoint >= 0x2F00 && thispoint <= 0x2FDF) || // Kangxi Radicals
-          (thispoint >= 0x2FF0 && thispoint <= 0x2FFF) || // Ideographic Description Characters
-          (thispoint >= 0x3001 && thispoint <= 0x303F) || // CJK Symbols and Punctuation (U+3000 is a space)
-          (thispoint >= 0x3100 && thispoint <= 0x312F) || // Bopomofo
-          (thispoint >= 0x31A0 && thispoint <= 0x31BF) || // Bopomofo extend
-          (thispoint >= 0x31C0 && thispoint <= 0x31EF) || // CJK Strokes
-          (thispoint >= 0x3400 && thispoint <= 0x4DBF) || // CJK Unified Ideographs Extension A
-          (thispoint >= 0x4E00 && thispoint <= 0x9FCF) || // CJK Unified Ideographs
-          (thispoint >= 0xF900 && thispoint <= 0xFAFF))   // CJK Compatibility Ideographs
-      ) continue;
       while (fgets (inbuf, MAXBUF - 1, stdin) != NULL &&
              strncmp (inbuf, "BBX ", 4) != 0); /* find bounding box */