1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 02:52:10 +00:00
mpv/TOOLS/subfont-c/encodings/charmap2enc
arpi 1aef871541 upgraded to 1.0b version by Artur Zaprzala <artur.zaprzala@talex.com.pl>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1506 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-08-13 18:37:10 +00:00

12 lines
235 B
Awk
Executable File

#!/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)
}