diff options
Diffstat (limited to 'TOOLS/subfont-c/encodings/charmap2enc')
-rwxr-xr-x | TOOLS/subfont-c/encodings/charmap2enc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/TOOLS/subfont-c/encodings/charmap2enc b/TOOLS/subfont-c/encodings/charmap2enc new file mode 100755 index 0000000000..e32d7a463b --- /dev/null +++ b/TOOLS/subfont-c/encodings/charmap2enc @@ -0,0 +1,11 @@ +#!/usr/bin/awk -f +# only for mostly 2-byte encodings like euc-kr + +$2~"^/x..$" { + c = substr($2, 3, 2) + if (c<"80") + print substr($1, 3, 4) "\t" c +} +$2~"^/x../x..$" { + print substr($1, 3, 4) "\t" substr($2, 3, 2) substr($2, 7, 2) +} |