Special Thansk to UCSC
Original translation code was developed by Language Technology Research Laboratory - University of Colombo School of Computing. (2011)
Source: https://ucsc.cmb.ac.lk//ltrl/services/feconverter/
Installation
Repository: https://www.npmjs.com/package/sinhala-unicode-coverter
Using npm:
npm i --save sinhala-unicode-coverter
Using yarn:
yarn add sinhala-unicode-coverter
API
There are 12 methods exported from the package. Each of them takes an string as a input and returns the converted string.
Legacy format to Unicode
Method | Description |
---|---|
dlManelToUnicode |
DL-Manel to Unicode |
baminiToUnicode |
Bamini to Unicode |
kaputaToUnicode |
Kaputa to Unicode |
fmAbayaToUnicode |
FM-Abaya to Unicode |
amaleeToUnicode |
Amalee to Unicode |
thibusToUnicode |
Thibus to Unicode |
Unicode to Legacy
Method | Description |
---|---|
unicodeToDlManel |
Unicode to DL-Manel |
unicodeToBamini |
Unicode to Bamini |
unicodeToKaputa |
Unicode to Kaputa |
Unfortunately we don't have unicode to legacy functionality for FM-Abaya, Amalee, Thibus.
Singlish to Unicode
Method | Description |
---|---|
singlishToUnicode |
Singlish (Sinhala) to Unicode |
singlishPhoneticToUnicode |
Singlish Phonetic (Sinhala) to Unicode |
Tanglish to Unicode
Method | Description |
---|---|
tanglishToUnicode |
Tanglish (Tamil) to Unicode |
Example Usage
// Legacy to unicodeconsole.loga // ශ්රී ලංකා // Unicode to DL-Manelconsole.logb // Y%S ,xld // Singlish to Unicodeconsole.logc // ශ්රී ලංකා