From: Roy <roytam@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Re: Re: Re: iconv Korean and Traditional Chinese research so far
Date: Wed, 07 Aug 2013 15:20:25 +0800 [thread overview]
Message-ID: <op.w1fqobr8dyj81a@monster.itedn32a.localdomain> (raw)
In-Reply-To: <op.w1e8s9jtdyj81a@monster.itedn32a.localdomain>
On Wed, 07 Aug 2013 08:54:35 +0800, Roy <roytam@gmail.com> wrote:
[snip]
>
> Big5-HKSCS 2004 map for reference:
> http://moztw.org/docs/big5/table/hkscs2004.txt
> Use sed and awk to create b2u.txt for comparing:
> $ sed -e '/^==/d' -e '1,2d' hkscs2004.txt| awk 'BEGIN{print "# big5
> unicode"}{print "0x" $1 " 0x" $4}' > hkscs2004-b2u.txt
> In result:
> http://roy.dnsd.me/hkscs2004-b2u.txt
>
> And finally the diff:
> http://roy.dnsd.me/uao250-hkscs2004.diff
>
> The diff is huge so separated table is needed.
I forgot that the HKSCS table has original CP950 entries missing.
$ cat cp950-b2u.txt hkscs2004-b2u.txt | sed -e '1d'|sort >
hkscs2004-big5-b2u.txt
And I wrote a small utility in PHP to compare 2 tables by keys(first
column):
http://roy.dnsd.me/tbldiff.phps
$ php tbldiff.php uao250-b2u.txt hkscs2004-big5-b2u.txt >
uao250-vs-hkscs2004.txt
http://roy.dnsd.me/uao250-vs-hkscs2004.txt
$ sed -e '/==/d' uao250-vs-hkscs2004.txt > uao250-hkscs2004-diff.txt
http://roy.dnsd.me/uao250-hkscs2004-diff.txt
So 5965 mappings are different, including 1379 mappings does not exist in
HKSCS2004.
But since there is mix-usage of HKSCS2001/2004 in both local files and
Internet pages, the condition of HKSCS become worse.
BTW, There is another NLS hack that hacks MS-CP932 to support JIS X
0213:2004
http://www.eonet.ne.jp/~kotobukispace/ddt/jisx0213/jisx0213.html
prev parent reply other threads:[~2013-08-07 7:20 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-04 16:51 Rich Felker
2013-08-04 22:39 ` Harald Becker
2013-08-05 0:44 ` Szabolcs Nagy
2013-08-05 1:24 ` Harald Becker
2013-08-05 3:13 ` Szabolcs Nagy
2013-08-05 7:03 ` Harald Becker
2013-08-05 12:54 ` Rich Felker
2013-08-05 0:49 ` Rich Felker
2013-08-05 1:53 ` Harald Becker
2013-08-05 3:39 ` Rich Felker
2013-08-05 7:53 ` Harald Becker
2013-08-05 8:24 ` Justin Cormack
2013-08-05 14:43 ` Rich Felker
2013-08-05 14:35 ` Rich Felker
2013-08-05 0:46 ` Harald Becker
2013-08-05 5:00 ` Rich Felker
2013-08-05 8:28 ` Roy
2013-08-05 15:43 ` Rich Felker
2013-08-05 17:31 ` Rich Felker
2013-08-05 19:12 ` Rich Felker
2013-08-06 6:14 ` Roy
2013-08-06 13:32 ` Rich Felker
2013-08-06 15:11 ` Roy
2013-08-06 16:22 ` Rich Felker
2013-08-07 0:54 ` Roy
2013-08-07 7:20 ` Roy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=op.w1fqobr8dyj81a@monster.itedn32a.localdomain \
--to=roytam@gmail.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).