Skip to content

Commit

Permalink
Sinhala patch
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhattin committed Nov 16, 2024
1 parent 56fb8fc commit 0e82161
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/converter/lekhika_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,9 @@ const _lipi_parivartak = async (val, from, to) => {
val = val.replaceAll(varga[4] + HALANT + varga[i], ANUNASIK + varga[i]);
}
}
if (from === 'Sanskrit' && to === 'Sinhala') {
val = val.replaceAll(HALANT, HALANT + '\u200d');
}
let out = LipiLekhikA._parivartak(val, from, to);
if (to === 'Normal' || to === 'Romanized') {
// Doing this type of a patch here, for now because its better not touch the main lipi parivartak codebase
Expand Down

0 comments on commit 0e82161

Please sign in to comment.