diff options
author | Runa Agate Sandvik <runa> | 2007-05-13 19:20:29 +0000 |
---|---|---|
committer | Runa Agate Sandvik <runa> | 2007-05-13 19:20:29 +0000 |
commit | 3682fa59751ab9f392dce68a25206ff729d684db (patch) | |
tree | 8d1cf54814088a043cf859f32098e304948b6f48 /chinese/bin | |
parent | ca2829b4bd508e25e2bd567cb2f080eb0003ac24 (diff) |
a regex fix that converts the Big5 forward slash to a convertible forward slash
CVS version numbers
chinese/bin/fix_big5.pl: 1.7 -> 1.8
Diffstat (limited to 'chinese/bin')
-rwxr-xr-x | chinese/bin/fix_big5.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chinese/bin/fix_big5.pl b/chinese/bin/fix_big5.pl index 40ee28e7d2d..752cd4f9cc5 100755 --- a/chinese/bin/fix_big5.pl +++ b/chinese/bin/fix_big5.pl @@ -8,6 +8,10 @@ s/^((?:[\x00-\x7F]|(?:[\x80-\xFF].))+[\x80-\xFF]\\)$/$1\\/; while ( s{^((?:[\x00-\x7F]|(?:[\x80-\xFF].))+?)([\x80-\xFF]\{)(?!</protect>)} {$1<protect>$2</protect>} ) {} +# Convert the Big5 forward slash that's not in the GB2312 code table +# to the forward slash that's convertible. +s/////g; + # Note: the following should be automatically generated in the future. s/<tw支援>/[CN:支援:][HKTW:支持:]/g; s/<tw(檔|檔案)>/[CN:文件:][HKTW:$1:]/g; |