Skip to content

Commit

Permalink
fixedd lion for zawgyi to unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
saturngod committed Jun 24, 2018
1 parent 39e5630 commit e059293
Show file tree
Hide file tree
Showing 25 changed files with 39 additions and 27 deletions.
Empty file modified other-lang/ruby/Rabbit.rb 100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions rabbit.js
Expand Up @@ -660,10 +660,6 @@ function zg2uni(output) {
"from": "\u102c\u1039([\u1000-\u1021])",
"to": "\u1039$1\u102c"
},
{
"from": "\u103c\u1004\u103a\u1039([\u1000-\u1021])",
"to": "\u1004\u103a\u1039$1\u103c"
},
{
"from": "\u1039\u103c\u103a\u1039([\u1000-\u1021])",
"to": "\u103a\u1039$1\u103c"
Expand Down
1 change: 1 addition & 0 deletions source/lang/java/java_template.js
Expand Up @@ -12,6 +12,7 @@ exports.compile = function(uni2zg,zg2uni,path) {

function clear_line_break(json) {
json = json + "";
json = json.replace(/\\/g,"\\\\");
json = json.replace(/\r/g,"");
json = json.replace(/\n/g,"");
json = json.replace(/ /g," ");
Expand Down
1 change: 1 addition & 0 deletions source/lang/php/php_template.js
Expand Up @@ -12,6 +12,7 @@ exports.compile = function(uni2zg, zg2uni, version, path) {

function clear(json) {
json = json + "";//make sure for string
json = json.replace(/\\/g,"\\\\");
json = json.replace(/\"/g,"\\\"");
json = json.replace(/\n/g,"");
json = json.replace(/\r/g,"");
Expand Down
1 change: 1 addition & 0 deletions source/lang/python/python_template.js
Expand Up @@ -11,6 +11,7 @@ exports.compile = function(uni2zg,zg2uni,path) {

function clear(json) {
json = json + "";//make sure for string
json = json.replace(/\\/g,"\\\\");
json = json.replace(/\n/g,"");
json = json.replace(/\r/g,"");
json = json.replace(/ /g," ");
Expand Down
2 changes: 1 addition & 1 deletion source/output/csharp/Rabbit.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion source/output/elixir/Rabbit.ex
Expand Up @@ -14,7 +14,7 @@ defmodule Rabbit do
Zawgyi to Unicode Rules
"""
defp zawgyi_to_uni_rules() do
[{"([\x{102D}\x{102E}\x{103D}\x{102F}\x{1037}\x{1095}])\\1+","\\1"},{"\x{200B}",""},{"(\x{103d}|\x{1087})","\x{103e}"},{"\x{103c}","\x{103d}"},{"(\x{103b}|\x{107e}|\x{107f}|\x{1080}|\x{1081}|\x{1082}|\x{1083}|\x{1084})","\x{103c}"},{"(\x{103a}|\x{107d})","\x{103b}"},{"\x{1039}","\x{103a}"},{"(\x{1066}|\x{1067})","\x{1039}\x{1006}"},{"\x{106a}","\x{1009}"},{"\x{106b}","\x{100a}"},{"\x{106c}","\x{1039}\x{100b}"},{"\x{106d}","\x{1039}\x{100c}"},{"\x{106e}","\x{100d}\x{1039}\x{100d}"},{"\x{106f}","\x{100d}\x{1039}\x{100e}"},{"\x{1070}","\x{1039}\x{100f}"},{"(\x{1071}|\x{1072})","\x{1039}\x{1010}"},{"\x{1060}","\x{1039}\x{1000}"},{"\x{1061}","\x{1039}\x{1001}"},{"\x{1062}","\x{1039}\x{1002}"},{"\x{1063}","\x{1039}\x{1003}"},{"\x{1065}","\x{1039}\x{1005}"},{"\x{1068}","\x{1039}\x{1007}"},{"\x{1069}","\x{1039}\x{1008}"},{"(\x{1073}|\x{1074})","\x{1039}\x{1011}"},{"\x{1075}","\x{1039}\x{1012}"},{"\x{1076}","\x{1039}\x{1013}"},{"\x{1077}","\x{1039}\x{1014}"},{"\x{1078}","\x{1039}\x{1015}"},{"\x{1079}","\x{1039}\x{1016}"},{"\x{107a}","\x{1039}\x{1017}"},{"\x{107c}","\x{1039}\x{1019}"},{"\x{1085}","\x{1039}\x{101c}"},{"\x{1033}","\x{102f}"},{"\x{1034}","\x{1030}"},{"\x{103f}","\x{1030}"},{"\x{1086}","\x{103f}"},{"\x{1036}\x{1088}","\x{1088}\x{1036}"},{"\x{1088}","\x{103e}\x{102f}"},{"\x{1089}","\x{103e}\x{1030}"},{"\x{108a}","\x{103d}\x{103e}"},{"\x{103B}\x{1064}","\x{1064}\x{103B}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{1064}","\x{1004}\x{103a}\x{1039}\\1\\2"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108b}","\x{1004}\x{103a}\x{1039}\\1\\2\x{102d}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108c}","\x{1004}\x{103a}\x{1039}\\1\\2\x{102e}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108d}","\x{1004}\x{103a}\x{1039}\\1\\2\x{1036}"},{"\x{108e}","\x{102d}\x{1036}"},{"\x{108f}","\x{1014}"},{"\x{1090}","\x{101b}"},{"\x{1091}","\x{100f}\x{1039}\x{100d}"},{"\x{1019}\x{102c}(\x{107b}|\x{1093})","\x{1019}\x{1039}\x{1018}\x{102c}"},{"(\x{107b}|\x{1093})","\x{1039}\x{1018}"},{"(\x{1094}|\x{1095})","\x{1037}"},{"([\x{1000}-\x{1021}])\x{1037}\x{1032}","\\1\x{1032}\x{1037}"},{"\x{1096}","\x{1039}\x{1010}\x{103d}"},{"\x{1097}","\x{100b}\x{1039}\x{100b}"},{"\x{103c}([\x{1000}-\x{1021}])([\x{1000}-\x{1021}])?","\\1\x{103c}\\2"},{"([\x{1000}-\x{1021}])\x{103c}\x{103a}","\x{103c}\\1\x{103a}"},{"\x{1047}(?=[\x{102c}-\x{1030}\x{1032}\x{1036}-\x{1038}\x{103d}\x{1038}])","\x{101b}"},{"\x{1031}\x{1047}","\x{1031}\x{101b}"},{"\x{1040}(\x{102e}|\x{102f}|\x{102d}\x{102f}|\x{1030}|\x{1036}|\x{103d}|\x{103e})","\x{101d}\\1"},{"([^\x{1040}\x{1041}\x{1042}\x{1043}\x{1044}\x{1045}\x{1046}\x{1047}\x{1048}\x{1049}])\x{1040}\x{102b}","\\1\x{101d}\x{102b}"},{"([\x{1040}\x{1041}\x{1042}\x{1043}\x{1044}\x{1045}\x{1046}\x{1047}\x{1048}\x{1049}])\x{1040}\x{102b}(?!\x{1038})","\\1\x{101d}\x{102b}"},{"^\x{1040}(?=\x{102b})","\x{101d}"},{"\x{1040}\x{102d}(?!\x{0020}?/)","\x{101d}\x{102d}"},{"([^\x{1040}-\x{1049}])\x{1040}([^\x{1040}-\x{1049}\x{0020}]|[\x{104a}\x{104b}])","\\1\x{101d}\\2"},{"([^\x{1040}-\x{1049}])\x{1040}(?=[\\f\\n\\r])","\\1\x{101d}"},{"([^\x{1040}-\x{1049}])\x{1040}$","\\1\x{101d}"},{"\x{1031}([\x{1000}-\x{1021}])(\x{103e})?(\x{103b})?","\\1\\2\\3\x{1031}"},{"([\x{1000}-\x{1021}])\x{1031}([\x{103b}\x{103c}\x{103d}\x{103e}]+)","\\1\\2\x{1031}"},{"\x{1032}\x{103d}","\x{103d}\x{1032}"},{"([\x{102d}\x{102e}])\x{103b}","\x{103b}\\1"},{"\x{103d}\x{103b}","\x{103b}\x{103d}"},{"\x{103a}\x{1037}","\x{1037}\x{103a}"},{"\x{102f}(\x{102d}|\x{102e}|\x{1036}|\x{1037})\x{102f}","\x{102f}\\1"},{"(\x{102f}|\x{1030})(\x{102d}|\x{102e})","\\2\\1"},{"(\x{103e})(\x{103b}|\x{103c})","\\2\\1"},{"\x{1025}(?=[\x{1037}]?[\x{103a}\x{102c}])","\x{1009}"},{"\x{1025}\x{102e}","\x{1026}"},{"\x{1005}\x{103b}","\x{1008}"},{"\x{1036}(\x{102f}|\x{1030})","\\1\x{1036}"},{"\x{1031}\x{1037}\x{103e}","\x{103e}\x{1031}\x{1037}"},{"\x{1031}\x{103e}\x{102c}","\x{103e}\x{1031}\x{102c}"},{"\x{105a}","\x{102b}\x{103a}"},{"\x{1031}\x{103b}\x{103e}","\x{103b}\x{103e}\x{1031}"},{"(\x{102d}|\x{102e})(\x{103d}|\x{103e})","\\2\\1"},{"\x{102c}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{102c}"},{"\x{103c}\x{1004}\x{103a}\x{1039}([\x{1000}-\x{1021}])","\x{1004}\x{103a}\x{1039}\\1\x{103c}"},{"\x{1039}\x{103c}\x{103a}\x{1039}([\x{1000}-\x{1021}])","\x{103a}\x{1039}\\1\x{103c}"},{"\x{103c}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{103c}"},{"\x{1036}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{1036}"},{"\x{1031}\x{1092}","\x{1092}\x{1031}"},{"\x{1092}","\x{100b}\x{1039}\x{100c}"},{"\x{104e}","\x{104e}\x{1004}\x{103a}\x{1038}"},{"\x{1040}(\x{102b}|\x{102c}|\x{1036})","\x{101d}\\1"},{"\x{1025}\x{1039}","\x{1009}\x{1039}"},{"([\x{1000}-\x{1021}])\x{103c}\x{1031}\x{103d}","\\1\x{103c}\x{103d}\x{1031}"},{"([\x{1000}-\x{1021}])\x{103b}\x{1031}\x{103d}(\x{103e})?","\\1\x{103b}\x{103d}\\2\x{1031}"},{"([\x{1000}-\x{1021}])\x{103d}\x{1031}\x{103b}","\\1\x{103b}\x{103d}\x{1031}"},{"([\x{1000}-\x{1021}])\x{1031}(\x{1039}[\x{1000}-\x{1021}])","\\1\\2\x{1031}"},{"\x{1038}\x{103a}","\x{103a}\x{1038}"},{"\x{102d}\x{103a}|\x{103a}\x{102d}","\x{102d}"},{"\x{102d}\x{102f}\x{103a}","\x{102d}\x{102f}"},{"\x{0020}\x{1037}","\x{1037}"},{"\x{1037}\x{1036}","\x{1036}\x{1037}"},{" \x{1037}","\x{1037}"},{"[\x{102d}]+","\x{102d}"},{"[\x{103a}]+","\x{103a}"},{"[\x{103d}]+","\x{103d}"},{"[\x{1037}]+","\x{1037}"},{"[\x{102e}]+","\x{102e}"},{"\x{102d}\x{102e}|\x{102e}\x{102d}","\x{102e}"},{"\x{102f}\x{102d}","\x{102d}\x{102f}"},{"\x{1037}\x{1037}","\x{1037}"},{"\x{1032}\x{1032}","\x{1032}"},{"\x{1044}\x{1004}\x{103a}\x{1038}","\x{104E}\x{1004}\x{103a}\x{1038}"},{"([\x{102d}\x{102e}])\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\2\\1"},{"(\x{103c}\x{1031})\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\2\\1"},{"\x{1036}\x{103d}","\x{103d}\x{1036}"}]
[{"([\x{102D}\x{102E}\x{103D}\x{102F}\x{1037}\x{1095}])\\1+","\\1"},{"\x{200B}",""},{"(\x{103d}|\x{1087})","\x{103e}"},{"\x{103c}","\x{103d}"},{"(\x{103b}|\x{107e}|\x{107f}|\x{1080}|\x{1081}|\x{1082}|\x{1083}|\x{1084})","\x{103c}"},{"(\x{103a}|\x{107d})","\x{103b}"},{"\x{1039}","\x{103a}"},{"(\x{1066}|\x{1067})","\x{1039}\x{1006}"},{"\x{106a}","\x{1009}"},{"\x{106b}","\x{100a}"},{"\x{106c}","\x{1039}\x{100b}"},{"\x{106d}","\x{1039}\x{100c}"},{"\x{106e}","\x{100d}\x{1039}\x{100d}"},{"\x{106f}","\x{100d}\x{1039}\x{100e}"},{"\x{1070}","\x{1039}\x{100f}"},{"(\x{1071}|\x{1072})","\x{1039}\x{1010}"},{"\x{1060}","\x{1039}\x{1000}"},{"\x{1061}","\x{1039}\x{1001}"},{"\x{1062}","\x{1039}\x{1002}"},{"\x{1063}","\x{1039}\x{1003}"},{"\x{1065}","\x{1039}\x{1005}"},{"\x{1068}","\x{1039}\x{1007}"},{"\x{1069}","\x{1039}\x{1008}"},{"(\x{1073}|\x{1074})","\x{1039}\x{1011}"},{"\x{1075}","\x{1039}\x{1012}"},{"\x{1076}","\x{1039}\x{1013}"},{"\x{1077}","\x{1039}\x{1014}"},{"\x{1078}","\x{1039}\x{1015}"},{"\x{1079}","\x{1039}\x{1016}"},{"\x{107a}","\x{1039}\x{1017}"},{"\x{107c}","\x{1039}\x{1019}"},{"\x{1085}","\x{1039}\x{101c}"},{"\x{1033}","\x{102f}"},{"\x{1034}","\x{1030}"},{"\x{103f}","\x{1030}"},{"\x{1086}","\x{103f}"},{"\x{1036}\x{1088}","\x{1088}\x{1036}"},{"\x{1088}","\x{103e}\x{102f}"},{"\x{1089}","\x{103e}\x{1030}"},{"\x{108a}","\x{103d}\x{103e}"},{"\x{103B}\x{1064}","\x{1064}\x{103B}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{1064}","\x{1004}\x{103a}\x{1039}\\1\\2"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108b}","\x{1004}\x{103a}\x{1039}\\1\\2\x{102d}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108c}","\x{1004}\x{103a}\x{1039}\\1\\2\x{102e}"},{"(\x{1031})?([\x{1000}-\x{1021}])\x{108d}","\x{1004}\x{103a}\x{1039}\\1\\2\x{1036}"},{"\x{108e}","\x{102d}\x{1036}"},{"\x{108f}","\x{1014}"},{"\x{1090}","\x{101b}"},{"\x{1091}","\x{100f}\x{1039}\x{100d}"},{"\x{1019}\x{102c}(\x{107b}|\x{1093})","\x{1019}\x{1039}\x{1018}\x{102c}"},{"(\x{107b}|\x{1093})","\x{1039}\x{1018}"},{"(\x{1094}|\x{1095})","\x{1037}"},{"([\x{1000}-\x{1021}])\x{1037}\x{1032}","\\1\x{1032}\x{1037}"},{"\x{1096}","\x{1039}\x{1010}\x{103d}"},{"\x{1097}","\x{100b}\x{1039}\x{100b}"},{"\x{103c}([\x{1000}-\x{1021}])([\x{1000}-\x{1021}])?","\\1\x{103c}\\2"},{"([\x{1000}-\x{1021}])\x{103c}\x{103a}","\x{103c}\\1\x{103a}"},{"\x{1047}(?=[\x{102c}-\x{1030}\x{1032}\x{1036}-\x{1038}\x{103d}\x{1038}])","\x{101b}"},{"\x{1031}\x{1047}","\x{1031}\x{101b}"},{"\x{1040}(\x{102e}|\x{102f}|\x{102d}\x{102f}|\x{1030}|\x{1036}|\x{103d}|\x{103e})","\x{101d}\\1"},{"([^\x{1040}\x{1041}\x{1042}\x{1043}\x{1044}\x{1045}\x{1046}\x{1047}\x{1048}\x{1049}])\x{1040}\x{102b}","\\1\x{101d}\x{102b}"},{"([\x{1040}\x{1041}\x{1042}\x{1043}\x{1044}\x{1045}\x{1046}\x{1047}\x{1048}\x{1049}])\x{1040}\x{102b}(?!\x{1038})","\\1\x{101d}\x{102b}"},{"^\x{1040}(?=\x{102b})","\x{101d}"},{"\x{1040}\x{102d}(?!\x{0020}?/)","\x{101d}\x{102d}"},{"([^\x{1040}-\x{1049}])\x{1040}([^\x{1040}-\x{1049}\x{0020}]|[\x{104a}\x{104b}])","\\1\x{101d}\\2"},{"([^\x{1040}-\x{1049}])\x{1040}(?=[\\f\\n\\r])","\\1\x{101d}"},{"([^\x{1040}-\x{1049}])\x{1040}$","\\1\x{101d}"},{"\x{1031}([\x{1000}-\x{1021}])(\x{103e})?(\x{103b})?","\\1\\2\\3\x{1031}"},{"([\x{1000}-\x{1021}])\x{1031}([\x{103b}\x{103c}\x{103d}\x{103e}]+)","\\1\\2\x{1031}"},{"\x{1032}\x{103d}","\x{103d}\x{1032}"},{"([\x{102d}\x{102e}])\x{103b}","\x{103b}\\1"},{"\x{103d}\x{103b}","\x{103b}\x{103d}"},{"\x{103a}\x{1037}","\x{1037}\x{103a}"},{"\x{102f}(\x{102d}|\x{102e}|\x{1036}|\x{1037})\x{102f}","\x{102f}\\1"},{"(\x{102f}|\x{1030})(\x{102d}|\x{102e})","\\2\\1"},{"(\x{103e})(\x{103b}|\x{103c})","\\2\\1"},{"\x{1025}(?=[\x{1037}]?[\x{103a}\x{102c}])","\x{1009}"},{"\x{1025}\x{102e}","\x{1026}"},{"\x{1005}\x{103b}","\x{1008}"},{"\x{1036}(\x{102f}|\x{1030})","\\1\x{1036}"},{"\x{1031}\x{1037}\x{103e}","\x{103e}\x{1031}\x{1037}"},{"\x{1031}\x{103e}\x{102c}","\x{103e}\x{1031}\x{102c}"},{"\x{105a}","\x{102b}\x{103a}"},{"\x{1031}\x{103b}\x{103e}","\x{103b}\x{103e}\x{1031}"},{"(\x{102d}|\x{102e})(\x{103d}|\x{103e})","\\2\\1"},{"\x{102c}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{102c}"},{"\x{1039}\x{103c}\x{103a}\x{1039}([\x{1000}-\x{1021}])","\x{103a}\x{1039}\\1\x{103c}"},{"\x{103c}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{103c}"},{"\x{1036}\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\1\x{1036}"},{"\x{1031}\x{1092}","\x{1092}\x{1031}"},{"\x{1092}","\x{100b}\x{1039}\x{100c}"},{"\x{104e}","\x{104e}\x{1004}\x{103a}\x{1038}"},{"\x{1040}(\x{102b}|\x{102c}|\x{1036})","\x{101d}\\1"},{"\x{1025}\x{1039}","\x{1009}\x{1039}"},{"([\x{1000}-\x{1021}])\x{103c}\x{1031}\x{103d}","\\1\x{103c}\x{103d}\x{1031}"},{"([\x{1000}-\x{1021}])\x{103b}\x{1031}\x{103d}(\x{103e})?","\\1\x{103b}\x{103d}\\2\x{1031}"},{"([\x{1000}-\x{1021}])\x{103d}\x{1031}\x{103b}","\\1\x{103b}\x{103d}\x{1031}"},{"([\x{1000}-\x{1021}])\x{1031}(\x{1039}[\x{1000}-\x{1021}])","\\1\\2\x{1031}"},{"\x{1038}\x{103a}","\x{103a}\x{1038}"},{"\x{102d}\x{103a}|\x{103a}\x{102d}","\x{102d}"},{"\x{102d}\x{102f}\x{103a}","\x{102d}\x{102f}"},{"\x{0020}\x{1037}","\x{1037}"},{"\x{1037}\x{1036}","\x{1036}\x{1037}"},{" \x{1037}","\x{1037}"},{"[\x{102d}]+","\x{102d}"},{"[\x{103a}]+","\x{103a}"},{"[\x{103d}]+","\x{103d}"},{"[\x{1037}]+","\x{1037}"},{"[\x{102e}]+","\x{102e}"},{"\x{102d}\x{102e}|\x{102e}\x{102d}","\x{102e}"},{"\x{102f}\x{102d}","\x{102d}\x{102f}"},{"\x{1037}\x{1037}","\x{1037}"},{"\x{1032}\x{1032}","\x{1032}"},{"\x{1044}\x{1004}\x{103a}\x{1038}","\x{104E}\x{1004}\x{103a}\x{1038}"},{"([\x{102d}\x{102e}])\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\2\\1"},{"(\x{103c}\x{1031})\x{1039}([\x{1000}-\x{1021}])","\x{1039}\\2\\1"},{"\x{1036}\x{103d}","\x{103d}\x{1036}"}]
end

"""
Expand Down

0 comments on commit e059293

Please sign in to comment.