User:平田忠胜/kmaer.js

此后如竟没有炬火,我便是唯一的光。
平田忠胜留言 | 贡献2023年12月23日 (六) 21:52的版本 (创建页面,内容为“'use strict'; let A = [['ក', 'g'], ['ខ', 'k'], ['ច', 'j'], ['ឆ', 'ch'], ['ដ', 'dh'], ['ឋ', 'th'], ['ត', 'd'], ['ថ', 't'], ['ណ', 'n'], ['ឡ', 'l'], ['ប', 'b'], ['ផ', 'p'], ['ស', 's'], ['ឝ', 'ss'], ['ហ', 'h'], ['អ', 'o']]; let B = [['ា', 'a'], ['ៈ', 'ak'], ['ិ', 'e'], ['ី', 'ei'], ['ឹ', 'oe'], ['ឺ', 'eu'], ['ុ', 'oo'], ['ូ', 'ou'], ['ួ', 'uo'], ['ើ', 'aeu'], ['ឿ', 'oea'], ['ៀ', 'ie'], ['េ', 'e'], ['ែ', '…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Internet Explorer或Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
  • Opera:Ctrl-F5
'use strict';

let A = [['ក', 'g'], ['ខ', 'k'], ['ច', 'j'], ['ឆ', 'ch'], ['ដ', 'dh'], ['ឋ', 'th'], ['ត', 'd'], ['ថ', 't'], ['ណ', 'n'], ['ឡ', 'l'], ['ប', 'b'], ['ផ', 'p'], ['ស', 's'], ['ឝ', 'ss'], ['ហ', 'h'], ['អ', 'o']];
let B = [['ា', 'a'], ['ៈ', 'ak'], ['ិ', 'e'], ['ី', 'ei'], ['ឹ', 'oe'], ['ឺ', 'eu'], ['ុ', 'oo'], ['ូ', 'ou'], ['ួ', 'uo'], ['ើ', 'aeu'], ['ឿ', 'oea'], ['ៀ', 'ie'], ['េ', 'e'], ['ែ', 'ae'], ['ៃ', 'ai'], ['ោ', 'ao'], ['ៅ', 'au'], ['ុំ', 'om'], ['ាំ', 'am'], ['ាំង', 'ang'], ['ះ', 'ah'], ['ិះ', 'eh'], ['ឹះ', 'oeh'],['ុះ', 'oh'], ['េះ', 'eah'], ['េីះ', 'aeuh'], ['ែះ', 'aeh'], ['ោះ', 'aoh']];
let C =  [['គ', 'g'], ['ឃ', 'k'], ['ជ', 'j'], ['ឈ', 'ch'], ['ឌ', 'dh'], ['ឋ', 'th'], ['ទ', 'd'], ['ធ', 't'], ['ន', 'n'], ['ល', 'l'], ['ព', 'b'], ['ភ', 'p'], ['', 'm'], ['ស', 's'], ['ឞ', 'ss'], ['រ', 'r'], ['វ', 'w'],['ង','ng'],['យ','y']];
let D = [['ា', 'ea'], ['ៈ', 'eak'], ['ិ', 'i'], ['ី', 'i'], ['ឹ', 'ue'], ['ឺ', 'ueu'], ['ុ', 'u'], ['ូ', 'u'], ['ួ', 'uo'], ['ើ', 'eu'], ['ឿ', 'oea'], ['ៀ', 'ie'], ['េ', 'e'], ['ែ', 'eae'], ['ៃ', 'ey'], ['ោ', 'ou'], ['ៅ', 'ow'], ['ុំ', 'um'], ['ាំ', 'um'], ['ាំង', 'eang'], ['ះ', 'eah'], ['ិះ', 'ih'], ['ឹះ', 'ueh'], ['ុះ', 'uh'], ['េះ', 'eh'], ['េីះ', 'euh'], ['ែះ', 'eaeh'], ['ោះ', 'uoh']];
let result = '';

for (let x of A) {
    for (let y of B) {
for (let c of C) {
    for (let d of D) {    
        result += `${x[0]}${y[0]}\t${x[1]}${y[1]}\r\n`;
        result += `${c[0]}${d[0]}\t${c[1]}${d[1]}\r\n`;
         };
       };
    };
};

console.log(result);