mirror of
https://github.com/quiple/galmuri.git
synced 2024-11-10 13:05:19 +03:00
10 lines
304 B
JavaScript
10 lines
304 B
JavaScript
onmessage = function (text) {
|
|
var glphsCnt = text.data.match(/CHARS .*/g)[0].split(' ');
|
|
var glphsArr = text.data.match(/STARTCHAR U\+.*/g);
|
|
var glphs;
|
|
for (let i = 0; i < glphsCnt[1]; i++) {
|
|
glphs += String.fromCodePoint(parseInt(glphsArr[i].split('+')[1], 16));
|
|
}
|
|
postMessage(glphs);
|
|
}
|