Differences From Artifact [09a4bffb3f]:
- File gc_core/js/char_player.js — part of check-in [1ef26c175b] at 2017-11-08 13:32:59 on branch spellsugg — [core][js] ibdawg: suggest (adaptation from Python code) (user: olr, size: 8986) [annotate] [blame] [check-ins using] [more...]
To Artifact [ac345212e4]:
- File gc_core/js/char_player.js — part of check-in [51e3a2e76e] at 2017-11-08 21:16:37 on branch spellsugg — [core] ibdawg: update char_player (user: olr, size: 9522) [annotate] [blame] [check-ins using]
| ︙ | |||
22 23 24 25 26 27 28 29 30 31 32 33 34 35 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | + + + + |
let sRes = "";
for (let c of sWord) {
sRes += this._dTransChars.gl_get(c, c);
}
return sRes.replace("eau", "o").replace("au", "o");
},
aVowel: new Set("aáàâäāeéèêëēiíìîïīoóòôöōuúùûüūyýỳŷÿȳœæAÁÀÂÄĀEÉÈÊËĒIÍÌÎÏĪOÓÒÔÖŌUÚÙÛÜŪYÝỲŶŸȲŒÆ"),
aConsonant: new Set("bcdefghjklmnñpqrstvwxzBCDEFGHJKLMNÑPQRSTVWXZ"),
aDouble: new Set("bcdfjklmnprstzBCDFJKLMNPRSTZ"), // letter that may be used twice successively
// Similar chars
d1to1: new Map([
["1", "liîLIÎ"],
["2", "zZ"],
["3", "eéèêEÉÈÊ"],
|
| ︙ | |||
160 161 162 163 164 165 166 167 168 169 170 | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | + + + + + + + + - - |
["B", ["BB",]],
["c", ["cc", "ss", "qu", "ch"]],
["C", ["CC", "SS", "QU", "CH"]],
["ç", ["ss", "cc", "qh", "ch"]],
["Ç", ["SS", "CC", "QH", "CH"]],
["d", ["dd",]],
["D", ["DD",]],
["é", ["ai", "ei"]],
["É", ["AI", "EI"]],
["è", ["ai", "ei"]],
["È", ["AI", "EI"]],
["ê", ["ai", "ei"]],
["Ê", ["AI", "EI"]],
["ë", ["ai", "ei"]],
["Ë", ["AI", "EI"]],
["f", ["ff", "ph"]],
["F", ["FF", "PH"]],
["g", ["gu", "ge", "gg", "gh"]],
["G", ["GU", "GE", "GG", "GH"]],
|
| ︙ |