Naraguna:Bennylin/trans-batak.js: Béda antara owahan

tanpa ringkesan besutan
* Versions:
* 1 April 2021 - v 1.0
* TODO: tompi-h, bindu, u_1bef, -ou simalungun u_1bed
*
* Derived from my Javanese transliteration: https://jv.wikipedia.org/wiki/Naraguna:Bennylin/trans.js
var matramap;
var bahasa = getLanguage();
if (bahasa == "karo") matramap = matramapK;
else if (bahasa == "simalungun") matramap = matramapKmatramapS;
else if (bahasa == "simalungun")
matramap = matramapS;
else //if (bahasa == "toba" || bahasa == "pakpak-dairi" || bahasa == "angkola-mandailing")
matramap = matramapT;
"A":"ᯀ", "E":"ᯀᯩ", "I":"ᯤ", "O":"ᯀᯬ", "U":"ᯥ", "X":"ᯀᯧ",
"a":"ᯀ", "e":"ᯀᯩ", "i":"ᯀᯪ", "o":"ᯀᯬ", "u":"ᯀᯮ", "x":"ᯀᯧ",
"B":"", "C":"", "D":"ᯑ", "G":"ᯎ", "H":"", "J":"ᯐ", "Z":"ᯐ", "K":"ᯂ", "Q":"ᯂ", "L":"ᯞ",
"M":"ᯔ", "N":"ᯉ", "P":"ᯇ", "F":"ᯇ", "R":"ᯒ", "S":"ᯘ", "T":"ᯖ", "V":"ᯋ", "W":"ᯋ", "Y":"ᯛ",
"b":"", "c":"", "d":"ᯑ", "g":"ᯎ", "h":"", "j":"ᯐ", "z":"ᯐ", "k":"ᯂ", "q":"ᯂ", "l":"ᯞ",
"m":"ᯔ", "n":"ᯉ", "p":"ᯇ", "f":"ᯇ", "r":"ᯒ", "s":"ᯘ", "t":"ᯖ", "v":"ᯋ", "w":"ᯋ", "y":"ᯛ"
}
"A":"ᯀ", "E":"ᯀᯩ", "I":"ᯤ", "O":"ᯀᯬ", "U":"ᯥ", "X":"ᯀᯧ",
"a":"ᯀ", "e":"ᯀᯩ", "i":"ᯀᯪ", "o":"ᯀᯬ", "u":"ᯀᯮ", "x":"ᯀᯧ",
"B":"ᯅ", "C":"ᯚ᯦", "D":"ᯑ", "G":"ᯎ", "H":"", "J":"ᯐ", "Z":"ᯐ", "K":"ᯄ᯦", "Q":"ᯂ", "L":"ᯞ",
"M":"ᯔ", "N":"", "P":"ᯇ", "F":"ᯇ", "R":"ᯒ", "S":"", "T":"ᯖ", "V":"ᯋ", "W":"ᯋ", "Y":"ᯛ",
"b":"ᯅ", "c":"ᯚ᯦", "d":"ᯑ", "g":"ᯎ", "h":"", "j":"ᯐ", "z":"ᯐ", "k":"ᯄ᯦", "q":"ᯂ", "l":"ᯞ",
"m":"ᯔ", "n":"", "p":"ᯇ", "f":"ᯇ", "r":"ᯒ", "s":"", "t":"ᯖ", "v":"ᯋ", "w":"ᯋ", "y":"ᯛ"
}
var soundMapPD = { //pakpak-dairi
"A":"ᯀ", "E":"ᯀᯩ", "I":"ᯤ", "O":"ᯀᯬ", "U":"ᯥ", "X":"ᯀᯧ",
"a":"ᯀ", "e":"ᯀᯩ", "i":"ᯀᯪ", "o":"ᯀᯬ", "u":"ᯀᯮ", "x":"ᯀᯧ",
"B":"ᯅ", "C":"", "D":"ᯑ", "G":"ᯎ", "H":"", "J":"ᯐ", "Z":"ᯐ", "K":"ᯂ", "Q":"ᯂ", "L":"ᯞ",
"M":"ᯔ", "N":"ᯉ", "P":"ᯇ", "F":"ᯇ", "R":"ᯒ", "S":"ᯘ", "T":"ᯖ", "V":"ᯋ", "W":"", "Y":"ᯛ",
"b":"ᯅ", "c":"", "d":"ᯑ", "g":"ᯎ", "h":"", "j":"ᯐ", "z":"ᯐ", "k":"ᯂ", "q":"ᯂ", "l":"ᯞ",
"m":"ᯔ", "n":"ᯉ", "p":"ᯇ", "f":"ᯇ", "r":"ᯒ", "s":"ᯘ", "t":"ᯖ", "v":"ᯋ", "w":"", "y":"ᯛ"
}
var soundMap;
var bahasa = getLanguage();
if (bahasa == "karo") soundMap = soundMapK;
else if (bahasa == "simalungun") soundMap = soundMapKsoundMapS;
else if (bahasa == "simalunguntoba") soundMap = soundMapT;
else if (bahasa == "pakpak-dairi") soundMap = soundMapSsoundMapPD;
else if (bahasa == "tobaangkola-mandailing") soundMap = soundMapAM;
soundMap = soundMapT;
else if (bahasa == "pakpak-dairi")
soundMap = soundMapPD;
else if (bahasa == "angkola-mandailing")
soundMap = soundMapAM;
 
var h_shift = GetShift(str);
****************************/
function ResolveCharacterSound(c) {
elsevar if (bahasa == "simalungun"getLanguage();
var str = "" + c;
var len = 0;
if (isDigit(c)) {
return "" + ('' + (c - '0'));
} else if (isConsonant(str[0]) && (bahasa == "karo" || bahasa == "simalungun")) {
return "" + GetCoreSound(str).CoreSound + "᯳"; //virama pangolat
} else if (isConsonant(str[0])) {
return "" + GetCoreSound(str).CoreSound + "᯲"; //virama pangolat
4.280

besutan