├── src ├── index.ts └── translators │ ├── index.ts │ ├── singlish_to_unicode.ts │ ├── singlish_phonetic_to_unicode.ts │ ├── bamini_to_unicode.ts │ ├── unicode_to_bamini.ts │ ├── kaputa_to_unicode.ts │ ├── unicode_to_kaputa.ts │ ├── thibus_to_unicode.ts │ ├── amalee_to_unicode.ts │ ├── dl_manel_to_unicode.ts │ ├── unicode_to_dl_manel.ts │ ├── fm_abaya_to_unicode.ts │ └── unicode_to_tiptaka.ts ├── .gitignore ├── short-paper ├── Getting started.tex.pdf └── Getting started.tex ├── tsconfig-cjs.json ├── tests └── translators.test.ts ├── package.json ├── Readme.md └── tsconfig.json /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./translators" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | source 2 | node_modules 3 | .nyc_output 4 | coverage 5 | lib 6 | -------------------------------------------------------------------------------- /short-paper/Getting started.tex.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-SL/sinhala-unicode-converter/HEAD/short-paper/Getting started.tex.pdf -------------------------------------------------------------------------------- /tsconfig-cjs.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "module": "CommonJS", 5 | "outDir": "./lib/cjs" 6 | }, 7 | } -------------------------------------------------------------------------------- /src/translators/index.ts: -------------------------------------------------------------------------------- 1 | export * from "./amalee_to_unicode" 2 | export * from "./bamini_to_unicode" 3 | export * from "./dl_manel_to_unicode" 4 | export * from "./fm_abaya_to_unicode" 5 | export * from "./kaputa_to_unicode" 6 | export * from "./singlish_phonetic_to_unicode" 7 | export * from "./singlish_to_unicode" 8 | export * from "./tanglish_to_unicode" 9 | export * from "./thibus_to_unicode" 10 | export * from "./unicode_to_bamini" 11 | export * from "./unicode_to_dl_manel" 12 | export * from "./unicode_to_kaputa" 13 | export * from "./unicode_to_tiptaka" -------------------------------------------------------------------------------- /tests/translators.test.ts: -------------------------------------------------------------------------------- 1 | import { dlManelToUnicode, singlishToUnicode } from "../src/translators" 2 | import * as mocha from 'mocha'; 3 | import * as chai from 'chai'; 4 | 5 | const expect = chai.expect; 6 | describe('My math library', () => { 7 | 8 | it('should be able to add things correctly', () => { 9 | expect(dlManelToUnicode("wdKavql%u jHjia:dj")).to.equal("ආණ්ඩුක්‍රම ව්‍යවස්ථාව") 10 | expect(singlishToUnicode("shrii la\\nkaa")).to.equal("ශ්‍රී ලංකා"); 11 | }); 12 | 13 | }); 14 | 15 | 16 | // console.log(kaputaToUnicode("a`N~dEkYm v&vs~}`v")) 17 | // console.log(fmAbayaToUnicode("wdKavql%u jHjia:dj")) -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sinhala-unicode-coverter", 3 | "version": "1.0.2", 4 | "description": "A library to translate between sinhala unicode and legacy fonts", 5 | "main": "./lib/cjs/index.js", 6 | "module": "./lib/esm/index.js", 7 | "files": [ 8 | "/lib" 9 | ], 10 | "scripts": { 11 | "tsc": "tsc -p tsconfig.json && tsc -p tsconfig-cjs.json", 12 | "prepublish": "npm run tsc", 13 | "test": "mocha -r ts-node/register tests/**/*.test.ts", 14 | "coverage": "nyc -r lcov -e .ts -x \"*.test.ts\" npm run test" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/Open-SL/sinhala-unicode-converter.git" 19 | }, 20 | "keywords": [ 21 | "sinhala", 22 | "unicode", 23 | "legacy", 24 | "translater" 25 | ], 26 | "author": "Janaka Chathuranga", 27 | "license": "MIT", 28 | "devDependencies": { 29 | "@types/chai": "^4.2.13", 30 | "@types/mocha": "^8.0.3", 31 | "chai": "^4.2.0", 32 | "mocha": "^8.1.3", 33 | "nyc": "^15.1.0", 34 | "ts-node": "^9.0.0", 35 | "typescript": "^4.0.3" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /short-paper/Getting started.tex: -------------------------------------------------------------------------------- 1 | \title{Singlish, Legacy and Unicode Translator for Sinhala Language} 2 | \author{ 3 | Janaka Chathuranga \\ 4 | Department of Computer Science\\ 5 | University of Moratuwa\\ 6 | Moratuwa 10400, \underline{Sri Lanka} 7 | } 8 | \date{December 19, 2020} 9 | 10 | \documentclass[12pt]{article} 11 | 12 | \begin{document} 13 | \maketitle 14 | 15 | \begin{abstract} 16 | This is the paper's abstract \ldots 17 | \end{abstract} 18 | 19 | \section{Introduction} 20 | This is time for all good men to come to the aid of their party! 21 | 22 | \paragraph{Outline} 23 | The remainder of this article is organized as follows. 24 | Section~\ref{previous work} gives account of previous work. 25 | Our new and exciting results are described in Section~\ref{results}. 26 | Finally, Section~\ref{conclusions} gives the conclusions. 27 | 28 | \section{Previous work}\label{previous work} 29 | A much longer \LaTeXe{} example was written by Gil~\cite{Gil:02}. 30 | 31 | \section{Results}\label{results} 32 | In this section we describe the results. 33 | 34 | \section{Conclusions}\label{conclusions} 35 | We worked hard, and achieved very little. 36 | 37 | \bibliographystyle{abbrv} 38 | \bibliography{main} 39 | 40 | \end{document} 41 | This is never printed 42 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # Special Thansk to UCSC 2 | Original translation code was developed by Language Technology Research Laboratory - University of Colombo School of Computing. (2011) 3 | Source: https://ucsc.cmb.ac.lk//ltrl/services/feconverter/ 4 | 5 | # Installation 6 | Repository: https://www.npmjs.com/package/sinhala-unicode-coverter 7 | 8 | Using npm: 9 | ```sh 10 | npm i --save sinhala-unicode-coverter 11 | ``` 12 | 13 | Using yarn: 14 | ```sh 15 | yarn add sinhala-unicode-coverter 16 | ``` 17 | 18 | # API 19 | 20 | There are 12 methods exported from the package. Each of them takes an string as a input and returns the converted string. 21 | 22 | ## Legacy format to Unicode 23 | 24 | Method | Description 25 | --- | --- 26 | `dlManelToUnicode` | DL-Manel to Unicode 27 | `baminiToUnicode` | Bamini to Unicode 28 | `kaputaToUnicode` | Kaputa to Unicode 29 | `fmAbayaToUnicode` | FM-Abaya to Unicode 30 | `amaleeToUnicode` | Amalee to Unicode 31 | `thibusToUnicode` | Thibus to Unicode 32 | 33 | 34 | 35 | ## Unicode to Legacy 36 | 37 | Method | Description 38 | --- | --- 39 | `unicodeToDlManel` | Unicode to DL-Manel 40 | `unicodeToBamini` | Unicode to Bamini 41 | `unicodeToKaputa` | Unicode to Kaputa 42 | 43 | > Unfortunately we don't have unicode to legacy functionality for FM-Abaya, Amalee, Thibus. 44 | 45 | 46 | ## Singlish to Unicode 47 | 48 | Method | Description 49 | --- | --- 50 | `singlishToUnicode` | Singlish (Sinhala) to Unicode 51 | `singlishPhoneticToUnicode` | Singlish Phonetic (Sinhala) to Unicode 52 | 53 | ## Tanglish to Unicode 54 | 55 | Method | Description 56 | --- | --- 57 | `tanglishToUnicode` | Tanglish (Tamil) to Unicode 58 | 59 | 60 | # Example Usage 61 | ```ts 62 | // Legacy to unicode 63 | import { dlManelToUnicode, singlishToUnicode, unicodeToDlManel } from "sinhala-unicode-coverter" 64 | const a = dlManelToUnicode("Y%S ,xld") 65 | console.log(a) // ශ්‍රී ලංකා 66 | 67 | // Unicode to DL-Manel 68 | const b = unicodeToDlManel("ශ්‍රී ලංකා") 69 | console.log(b) // Y%S ,xld 70 | 71 | 72 | // Singlish to Unicode 73 | const c = singlishToUnicode("shrii la\\nkaa") 74 | console.log(c) // ශ්‍රී ලංකා 75 | 76 | ``` 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */ 4 | /* Basic Options */ 5 | // "incremental": true, /* Enable incremental compilation */ 6 | "target": "es3", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */ 7 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ 8 | // "lib": [], /* Specify library files to be included in the compilation. */ 9 | // "allowJs": true, /* Allow javascript files to be compiled. */ 10 | // "checkJs": true, /* Report errors in .js files. */ 11 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 12 | "declaration": true, /* Generates corresponding '.d.ts' file. */ 13 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ 14 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 15 | // "outFile": "./", /* Concatenate and emit output to single file. */ 16 | "outDir": "./lib/esm", /* Redirect output structure to the directory. */ 17 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 18 | // "composite": true, /* Enable project compilation */ 19 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ 20 | // "removeComments": true, /* Do not emit comments to output. */ 21 | // "noEmit": true, /* Do not emit outputs. */ 22 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 23 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 24 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 25 | /* Strict Type-Checking Options */ 26 | "strict": false, /* Enable all strict type-checking options. */ 27 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 28 | // "strictNullChecks": true, /* Enable strict null checks. */ 29 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ 30 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ 31 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ 32 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 33 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 34 | /* Additional Checks */ 35 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 36 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 37 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 38 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 39 | /* Module Resolution Options */ 40 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 41 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ 42 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ 43 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 44 | // "typeRoots": [], /* List of folders to include type definitions from. */ 45 | // "types": [], /* Type declaration files to be included in compilation. */ 46 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 47 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ 48 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 49 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 50 | /* Source Map Options */ 51 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 52 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 53 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 54 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 55 | /* Experimental Options */ 56 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 57 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 58 | /* Advanced Options */ 59 | "skipLibCheck": true, /* Skip type checking of declaration files. */ 60 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ 61 | }, 62 | "include": [ 63 | "./src" 64 | ] 65 | } -------------------------------------------------------------------------------- /src/translators/singlish_to_unicode.ts: -------------------------------------------------------------------------------- 1 | let nVowels:number; 2 | const consonants = new Array() 3 | const consonantsUni = new Array() 4 | const vowels = new Array() 5 | const vowelsUni = new Array() 6 | const vowelModifiersUni = new Array() 7 | const specialConsonants = new Array() 8 | const specialConsonantsUni = new Array() 9 | const specialCharUni = new Array() 10 | const specialChar = new Array() 11 | 12 | 13 | vowelsUni[0] = 'ඌ'; vowels[0] = 'oo'; vowelModifiersUni[0] = 'ූ'; 14 | vowelsUni[1] = 'ඕ'; vowels[1] = 'o\\)'; vowelModifiersUni[1] = 'ෝ'; 15 | vowelsUni[2] = 'ඕ'; vowels[2] = 'oe'; vowelModifiersUni[2] = 'ෝ'; 16 | vowelsUni[3] = 'ආ'; vowels[3] = 'aa'; vowelModifiersUni[3] = 'ා'; 17 | vowelsUni[4] = 'ආ'; vowels[4] = 'a\\)'; vowelModifiersUni[4] = 'ා'; 18 | vowelsUni[5] = 'ඈ'; vowels[5] = 'Aa'; vowelModifiersUni[5] = 'ෑ'; 19 | vowelsUni[6] = 'ඈ'; vowels[6] = 'A\\)'; vowelModifiersUni[6] = 'ෑ'; 20 | vowelsUni[7] = 'ඈ'; vowels[7] = 'ae'; vowelModifiersUni[7] = 'ෑ'; 21 | vowelsUni[8] = 'ඊ'; vowels[8] = 'ii'; vowelModifiersUni[8] = 'ී'; 22 | vowelsUni[9] = 'ඊ'; vowels[9] = 'i\\)'; vowelModifiersUni[9] = 'ී'; 23 | vowelsUni[10] = 'ඊ'; vowels[10] = 'ie'; vowelModifiersUni[10] = 'ී'; 24 | vowelsUni[11] = 'ඊ'; vowels[11] = 'ee'; vowelModifiersUni[11] = 'ී'; 25 | vowelsUni[12] = 'ඒ'; vowels[12] = 'ea'; vowelModifiersUni[12] = 'ේ'; 26 | vowelsUni[13] = 'ඒ'; vowels[13] = 'e\\)'; vowelModifiersUni[13] = 'ේ'; 27 | vowelsUni[14] = 'ඒ'; vowels[14] = 'ei'; vowelModifiersUni[14] = 'ේ'; 28 | vowelsUni[15] = 'ඌ'; vowels[15] = 'uu'; vowelModifiersUni[15] = 'ූ'; 29 | vowelsUni[16] = 'ඌ'; vowels[16] = 'u\\)'; vowelModifiersUni[16] = 'ූ'; 30 | vowelsUni[17] = 'ඖ'; vowels[17] = 'au'; vowelModifiersUni[17] = 'ෞ'; 31 | vowelsUni[18] = 'ඇ'; vowels[18] = '/\a'; vowelModifiersUni[18] = 'ැ'; 32 | 33 | vowelsUni[19] = 'අ'; vowels[19] = 'a'; vowelModifiersUni[19] = ''; 34 | vowelsUni[20] = 'ඇ'; vowels[20] = 'A'; vowelModifiersUni[20] = 'ැ'; 35 | vowelsUni[21] = 'ඉ'; vowels[21] = 'i'; vowelModifiersUni[21] = 'ි'; 36 | vowelsUni[22] = 'එ'; vowels[22] = 'e'; vowelModifiersUni[22] = 'ෙ'; 37 | vowelsUni[23] = 'උ'; vowels[23] = 'u'; vowelModifiersUni[23] = 'ු'; 38 | vowelsUni[24] = 'ඔ'; vowels[24] = 'o'; vowelModifiersUni[24] = 'ො'; 39 | vowelsUni[25] = 'ඓ'; vowels[25] = 'I'; vowelModifiersUni[25] = 'ෛ'; 40 | nVowels = 26; 41 | 42 | specialConsonantsUni[0] = 'ං'; specialConsonants[0] = /\\n/g; 43 | specialConsonantsUni[1] = 'ඃ'; specialConsonants[1] = /\\h/g; 44 | specialConsonantsUni[2] = 'ඞ'; specialConsonants[2] = /\\N/g; 45 | specialConsonantsUni[3] = 'ඍ'; specialConsonants[3] = /\\R/g; 46 | //special characher Repaya 47 | specialConsonantsUni[4] = 'ර්' + '\u200D'; specialConsonants[4] = /R/g; 48 | specialConsonantsUni[5] = 'ර්' + '\u200D'; specialConsonants[5] = /\\r/g; 49 | 50 | consonantsUni[0] = 'ඬ'; consonants[0] = 'nnd'; 51 | consonantsUni[1] = 'ඳ'; consonants[1] = 'nndh'; 52 | consonantsUni[2] = 'ඟ'; consonants[2] = 'nng'; 53 | consonantsUni[3] = 'ථ'; consonants[3] = 'Th'; 54 | consonantsUni[4] = 'ධ'; consonants[4] = 'Dh'; 55 | consonantsUni[5] = 'ඝ'; consonants[5] = 'gh'; 56 | consonantsUni[6] = 'ඡ'; consonants[6] = 'Ch'; 57 | consonantsUni[7] = 'ඵ'; consonants[7] = 'ph'; 58 | consonantsUni[8] = 'භ'; consonants[8] = 'bh'; 59 | consonantsUni[9] = 'ශ'; consonants[9] = 'sh'; 60 | consonantsUni[10] = 'ෂ'; consonants[10] = 'Sh'; 61 | consonantsUni[11] = 'ඥ'; consonants[11] = 'GN'; 62 | consonantsUni[12] = 'ඤ'; consonants[12] = 'KN'; 63 | consonantsUni[13] = 'ළු'; consonants[13] = 'Lu'; 64 | consonantsUni[14] = 'ද'; consonants[14] = 'dh'; 65 | consonantsUni[15] = 'ච'; consonants[15] = 'ch'; 66 | consonantsUni[16] = 'ඛ'; consonants[16] = 'kh'; 67 | consonantsUni[17] = 'ත'; consonants[17] = 'th'; 68 | 69 | consonantsUni[18] = 'ට'; consonants[18] = 't'; 70 | consonantsUni[19] = 'ක'; consonants[19] = 'k'; 71 | consonantsUni[20] = 'ඩ'; consonants[20] = 'd'; 72 | consonantsUni[21] = 'න'; consonants[21] = 'n'; 73 | consonantsUni[22] = 'ප'; consonants[22] = 'p'; 74 | consonantsUni[23] = 'බ'; consonants[23] = 'b'; 75 | consonantsUni[24] = 'ම'; consonants[24] = 'm'; 76 | consonantsUni[25] = '‍ය'; consonants[25] = '\\u005C' + 'y'; 77 | consonantsUni[26] = '‍ය'; consonants[26] = 'Y'; 78 | consonantsUni[27] = 'ය'; consonants[27] = 'y'; 79 | consonantsUni[28] = 'ජ'; consonants[28] = 'j'; 80 | consonantsUni[29] = 'ල'; consonants[29] = 'l'; 81 | consonantsUni[30] = 'ව'; consonants[30] = 'v'; 82 | consonantsUni[31] = 'ව'; consonants[31] = 'w'; 83 | consonantsUni[32] = 'ස'; consonants[32] = 's'; 84 | consonantsUni[33] = 'හ'; consonants[33] = 'h'; 85 | consonantsUni[34] = 'ණ'; consonants[34] = 'N'; 86 | consonantsUni[35] = 'ළ'; consonants[35] = 'L'; 87 | consonantsUni[36] = 'ඛ'; consonants[36] = 'K'; 88 | consonantsUni[37] = 'ඝ'; consonants[37] = 'G'; 89 | consonantsUni[38] = 'ඨ'; consonants[38] = 'T'; 90 | consonantsUni[39] = 'ඪ'; consonants[39] = 'D'; 91 | consonantsUni[40] = 'ඵ'; consonants[40] = 'P'; 92 | consonantsUni[41] = 'ඹ'; consonants[41] = 'B'; 93 | consonantsUni[42] = 'ෆ'; consonants[42] = 'f'; 94 | consonantsUni[43] = 'ඣ'; consonants[43] = 'q'; 95 | consonantsUni[44] = 'ග'; consonants[44] = 'g'; 96 | //last because we need to ommit this in dealing with Rakaransha 97 | consonantsUni[45] = 'ර'; consonants[45] = 'r'; 98 | 99 | specialCharUni[0] = 'ෲ'; specialChar[0] = 'ruu'; 100 | specialCharUni[1] = 'ෘ'; specialChar[1] = 'ru'; 101 | //specialCharUni[2]='්‍ර'; specialChar[2]='ra'; 102 | 103 | 104 | export const singlishToUnicode = function(text: string) { 105 | var s, r, v; 106 | //special consonents 107 | for (var i = 0; i < specialConsonants.length; i++) { 108 | text = text.replace(specialConsonants[i], specialConsonantsUni[i]); 109 | } 110 | //consonents + special Chars 111 | for (var i = 0; i < specialCharUni.length; i++) { 112 | for (var j = 0; j < consonants.length; j++) { 113 | s = consonants[j] + specialChar[i]; 114 | v = consonantsUni[j] + specialCharUni[i]; 115 | r = new RegExp(s, "g"); 116 | text = text.replace(r, v); 117 | } 118 | } 119 | //consonants + Rakaransha + vowel modifiers 120 | for (var j = 0; j < consonants.length; j++) { 121 | for (var i = 0; i < vowels.length; i++) { 122 | s = consonants[j] + "r" + vowels[i]; 123 | v = consonantsUni[j] + "්‍ර" + vowelModifiersUni[i]; 124 | r = new RegExp(s, "g"); 125 | text = text.replace(r, v); 126 | } 127 | s = consonants[j] + "r"; 128 | v = consonantsUni[j] + "්‍ර"; 129 | r = new RegExp(s, "g"); 130 | text = text.replace(r, v); 131 | } 132 | //consonents + vowel modifiers 133 | for (var i = 0; i < consonants.length; i++) { 134 | for (var j = 0; j < nVowels; j++) { 135 | s = consonants[i] + vowels[j]; 136 | v = consonantsUni[i] + vowelModifiersUni[j]; 137 | r = new RegExp(s, "g"); 138 | text = text.replace(r, v); 139 | } 140 | } 141 | 142 | //consonents + HAL 143 | for (var i = 0; i < consonants.length; i++) { 144 | r = new RegExp(consonants[i], "g"); 145 | text = text.replace(r, consonantsUni[i] + "්"); 146 | } 147 | 148 | //vowels 149 | for (var i = 0; i < vowels.length; i++) { 150 | r = new RegExp(vowels[i], "g"); 151 | text = text.replace(r, vowelsUni[i]); 152 | } 153 | 154 | return text 155 | } 156 | -------------------------------------------------------------------------------- /src/translators/singlish_phonetic_to_unicode.ts: -------------------------------------------------------------------------------- 1 | let nvowels:number; 2 | const consonants = new Array() 3 | const consonantsuni = new Array() 4 | const vowels = new Array() 5 | const vowelsuni = new Array() 6 | const vowelmodifiersuni = new Array() 7 | const specialconsonants = new Array() 8 | const specialconsonantsuni = new Array() 9 | const specialcharuni = new Array() 10 | const specialchar = new Array() 11 | 12 | 13 | vowelsuni[0] = 'ඌ'; vowels[0] = 'oo'; vowelmodifiersuni[0] = 'ූ'; 14 | vowelsuni[1] = 'ඕ'; vowels[1] = 'o\\)'; vowelmodifiersuni[1] = 'ෝ'; 15 | vowelsuni[2] = 'ඕ'; vowels[2] = 'oe'; vowelmodifiersuni[2] = 'ෝ'; 16 | vowelsuni[3] = 'ආ'; vowels[3] = 'aa'; vowelmodifiersuni[3] = 'ා'; 17 | vowelsuni[4] = 'ආ'; vowels[4] = 'a\\)'; vowelmodifiersuni[4] = 'ා'; 18 | vowelsuni[5] = 'ඈ'; vowels[5] = 'aa'; vowelmodifiersuni[5] = 'ෑ'; 19 | vowelsuni[6] = 'ඈ'; vowels[6] = 'a\\)'; vowelmodifiersuni[6] = 'ෑ'; 20 | vowelsuni[7] = 'ඈ'; vowels[7] = 'ae'; vowelmodifiersuni[7] = 'ෑ'; 21 | vowelsuni[8] = 'ඊ'; vowels[8] = 'ii'; vowelmodifiersuni[8] = 'ී'; 22 | vowelsuni[9] = 'ඊ'; vowels[9] = 'i\\)'; vowelmodifiersuni[9] = 'ී'; 23 | vowelsuni[10] = 'ඊ'; vowels[10] = 'ie'; vowelmodifiersuni[10] = 'ී'; 24 | vowelsuni[11] = 'ඊ'; vowels[11] = 'ee'; vowelmodifiersuni[11] = 'ී'; 25 | vowelsuni[12] = 'ඒ'; vowels[12] = 'ea'; vowelmodifiersuni[12] = 'ේ'; 26 | vowelsuni[13] = 'ඒ'; vowels[13] = 'e\\)'; vowelmodifiersuni[13] = 'ේ'; 27 | vowelsuni[14] = 'ඒ'; vowels[14] = 'ei'; vowelmodifiersuni[14] = 'ේ'; 28 | vowelsuni[15] = 'ඌ'; vowels[15] = 'uu'; vowelmodifiersuni[15] = 'ූ'; 29 | vowelsuni[16] = 'ඌ'; vowels[16] = 'u\\)'; vowelmodifiersuni[16] = 'ූ'; 30 | vowelsuni[17] = 'ඖ'; vowels[17] = 'au'; vowelmodifiersuni[17] = 'ෞ'; 31 | vowelsuni[18] = 'ඇ'; vowels[18] = '/\a'; vowelmodifiersuni[18] = 'ැ'; 32 | 33 | vowelsuni[19] = 'අ'; vowels[19] = 'a'; vowelmodifiersuni[19] = ''; 34 | vowelsuni[20] = 'ඇ'; vowels[20] = 'a'; vowelmodifiersuni[20] = 'ැ'; 35 | vowelsuni[21] = 'ඉ'; vowels[21] = 'i'; vowelmodifiersuni[21] = 'ි'; 36 | vowelsuni[22] = 'එ'; vowels[22] = 'e'; vowelmodifiersuni[22] = 'ෙ'; 37 | vowelsuni[23] = 'උ'; vowels[23] = 'u'; vowelmodifiersuni[23] = 'ු'; 38 | vowelsuni[24] = 'ඔ'; vowels[24] = 'o'; vowelmodifiersuni[24] = 'ො'; 39 | vowelsuni[25] = 'ඓ'; vowels[25] = 'i'; vowelmodifiersuni[25] = 'ෛ'; 40 | nvowels = 26; 41 | 42 | specialconsonantsuni[0] = 'ං'; specialconsonants[0] = /\\n/g; 43 | specialconsonantsuni[1] = 'ඃ'; specialconsonants[1] = /\\h/g; 44 | specialconsonantsuni[2] = 'ඞ'; specialconsonants[2] = /\\n/g; 45 | specialconsonantsuni[3] = 'ඍ'; specialconsonants[3] = /\\r/g; 46 | //special characher repaya 47 | specialconsonantsuni[4] = 'ර්' + '\u200d'; specialconsonants[4] = /r/g; 48 | specialconsonantsuni[5] = 'ර්' + '\u200d'; specialconsonants[5] = /\\r/g; 49 | 50 | consonantsuni[0] = 'ඬ'; consonants[0] = 'nnd'; 51 | consonantsuni[1] = 'ඳ'; consonants[1] = 'nndh'; 52 | consonantsuni[2] = 'ඟ'; consonants[2] = 'nng'; 53 | consonantsuni[3] = 'ථ'; consonants[3] = 'th'; 54 | consonantsuni[4] = 'ධ'; consonants[4] = 'dh'; 55 | consonantsuni[5] = 'ඝ'; consonants[5] = 'gh'; 56 | consonantsuni[6] = 'ඡ'; consonants[6] = 'ch'; 57 | consonantsuni[7] = 'ඵ'; consonants[7] = 'ph'; 58 | consonantsuni[8] = 'භ'; consonants[8] = 'bh'; 59 | consonantsuni[9] = 'ඣ'; consonants[9] = 'jh'; 60 | consonantsuni[10] = 'ෂ'; consonants[10] = 'sh'; 61 | consonantsuni[11] = 'ඥ'; consonants[11] = 'gn'; 62 | consonantsuni[12] = 'ඤ'; consonants[12] = 'kn'; 63 | consonantsuni[13] = 'ළු'; consonants[13] = 'lu'; 64 | consonantsuni[14] = 'ඛ'; consonants[14] = 'kh'; 65 | consonantsuni[15] = 'ඨ'; consonants[15] = 'th'; 66 | consonantsuni[16] = 'ඪ'; consonants[16] = 'dh'; 67 | 68 | consonantsuni[17] = 'ශ'; consonants[17] = 's'; 69 | consonantsuni[18] = 'ද'; consonants[18] = 'd'; 70 | consonantsuni[19] = 'ච'; consonants[19] = 'c'; 71 | consonantsuni[20] = 'ත'; consonants[20] = 't'; 72 | consonantsuni[21] = 'ට'; consonants[21] = 't'; 73 | consonantsuni[22] = 'ක'; consonants[22] = 'k'; 74 | consonantsuni[23] = 'ඩ'; consonants[23] = 'd'; 75 | consonantsuni[24] = 'න'; consonants[24] = 'n'; 76 | consonantsuni[25] = 'ප'; consonants[25] = 'p'; 77 | consonantsuni[26] = 'බ'; consonants[26] = 'b'; 78 | consonantsuni[27] = 'ම'; consonants[27] = 'm'; 79 | consonantsuni[28] = '‍ය'; consonants[28] = '\\u005c' + 'y'; 80 | consonantsuni[29] = '‍ය'; consonants[29] = 'y'; 81 | consonantsuni[30] = 'ය'; consonants[30] = 'y'; 82 | consonantsuni[31] = 'ජ'; consonants[31] = 'j'; 83 | consonantsuni[32] = 'ල'; consonants[32] = 'l'; 84 | consonantsuni[33] = 'ව'; consonants[33] = 'v'; 85 | consonantsuni[34] = 'ව'; consonants[34] = 'w'; 86 | consonantsuni[35] = 'ස'; consonants[35] = 's'; 87 | consonantsuni[36] = 'හ'; consonants[36] = 'h'; 88 | consonantsuni[37] = 'ණ'; consonants[37] = 'n'; 89 | consonantsuni[38] = 'ළ'; consonants[38] = 'l'; 90 | consonantsuni[39] = 'ඛ'; consonants[39] = 'k'; 91 | consonantsuni[40] = 'ඝ'; consonants[40] = 'g'; 92 | consonantsuni[41] = 'ඵ'; consonants[41] = 'p'; 93 | consonantsuni[42] = 'ඹ'; consonants[42] = 'b'; 94 | consonantsuni[43] = 'ෆ'; consonants[43] = 'f'; 95 | consonantsuni[44] = 'ග'; consonants[44] = 'g'; 96 | //last because we need to ommit this in dealing with rakaransha 97 | consonantsuni[45] = 'ර'; consonants[45] = 'r'; 98 | 99 | specialcharuni[0] = 'ෲ'; specialchar[0] = 'ruu'; 100 | specialcharuni[1] = 'ෘ'; specialchar[1] = 'ru'; 101 | //specialcharuni[2]='්‍ර'; specialchar[2]='ra'; 102 | 103 | 104 | export const singlishPhoneticToUnicode = function(text: string) { 105 | var s, r, v; 106 | //special consonents 107 | for (var i = 0; i < specialconsonants.length; i++) 108 | text = text.replace(specialconsonants[i], specialconsonantsuni[i]); 109 | 110 | //consonents + special chars 111 | for (var i = 0; i < specialcharuni.length; i++) { 112 | for (var j = 0; j < consonants.length; j++) { 113 | s = consonants[j] + specialchar[i]; 114 | v = consonantsuni[j] + specialcharuni[i]; 115 | r = new RegExp(s, "g"); 116 | text = text.replace(r, v); 117 | } 118 | } 119 | //consonants + rakaransha + vowel modifiers 120 | for (var j = 0; j < consonants.length; j++) { 121 | for (var i = 0; i < vowels.length; i++) { 122 | s = consonants[j] + "r" + vowels[i]; 123 | v = consonantsuni[j] + "්‍ර" + vowelmodifiersuni[i]; 124 | r = new RegExp(s, "g"); 125 | text = text.replace(r, v); 126 | } 127 | s = consonants[j] + "r"; 128 | v = consonantsuni[j] + "්‍ර"; 129 | r = new RegExp(s, "g"); 130 | text = text.replace(r, v); 131 | } 132 | //consonents + vowel modifiers 133 | for (var i = 0; i < consonants.length; i++) { 134 | for (var j = 0; j < nvowels; j++) { 135 | s = consonants[i] + vowels[j]; 136 | v = consonantsuni[i] + vowelmodifiersuni[j]; 137 | r = new RegExp(s, "g"); 138 | text = text.replace(r, v); 139 | } 140 | } 141 | 142 | //consonents + hal 143 | for (var i = 0; i < consonants.length; i++) { 144 | r = new RegExp(consonants[i], "g"); 145 | text = text.replace(r, consonantsuni[i] + "්"); 146 | } 147 | 148 | //vowels 149 | for (var i = 0; i < vowels.length; i++) { 150 | r = new RegExp(vowels[i], "g"); 151 | text = text.replace(r, vowelsuni[i]); 152 | } 153 | 154 | return text 155 | } -------------------------------------------------------------------------------- /src/translators/bamini_to_unicode.ts: -------------------------------------------------------------------------------- 1 | export const baminiToUnicode = function (text: string) { 2 | text = text.replace(/=/g, "ஸ்ரீ"); 3 | text = text.replace(/>/g, ","); 4 | text = text.replace(/n\[s/g, "ஜௌ"); 5 | text = text.replace(/N\[h/g, "ஜோ"); 6 | text = text.replace(/n\[h/g, "ஜொ"); 7 | text = text.replace(/\[h/g, "ஜா"); 8 | text = text.replace(/\[p/g, "ஜி"); 9 | text = text.replace(/\[P/g, "ஜீ"); 10 | text = text.replace(/\[{/g, "ஜு"); 11 | text = text.replace(/\[_/g, "ஜூ"); 12 | text = text.replace(/n\[/g, "ஜெ"); 13 | text = text.replace(/N\[/g, "ஜே"); 14 | text = text.replace(/i\[/g, "ஜை"); 15 | text = text.replace(/\[;/g, "ஜ்"); 16 | text = text.replace(/\[/g, "ஜ"); 17 | text = text.replace(/nfs/g, "கௌ"); 18 | text = text.replace(/Nfh/g, "கோ"); 19 | text = text.replace(/nfh/g, "கொ"); 20 | text = text.replace(/fh/g, "கா"); 21 | text = text.replace(/fp/g, "கி"); 22 | text = text.replace(/fP/g, "கீ"); 23 | text = text.replace(/F/g, "கு"); 24 | text = text.replace(/\$/g, "கூ"); 25 | text = text.replace(/nf/g, "கெ"); 26 | text = text.replace(/Nf/g, "கே"); 27 | text = text.replace(/if/g, "கை"); 28 | text = text.replace(/f;/g, "க்"); 29 | text = text.replace(/f/g, "க"); 30 | text = text.replace(/nqs/g, "ஙௌ"); 31 | text = text.replace(/Nqh/g, "ஙோ"); 32 | text = text.replace(/nqh/g, "ஙொ"); 33 | text = text.replace(/qh/g, "ஙா"); 34 | text = text.replace(/qp/g, "ஙி"); 35 | text = text.replace(/qP/g, "ஙீ"); 36 | text = text.replace(/q;/g, "ங்"); 37 | text = text.replace(/q+/g, "ஙூ"); 38 | text = text.replace(/nq/g, "ஙெ"); 39 | text = text.replace(/Nq/g, "ஙே"); 40 | text = text.replace(/iq/g, "ஙை"); 41 | text = text.replace(/q/g, "ங"); 42 | text = text.replace(/nrs/g, "சௌ"); 43 | text = text.replace(/Nrh/g, "சோ"); 44 | text = text.replace(/nrh/g, "சொ"); 45 | text = text.replace(/rh/g, "சா"); 46 | text = text.replace(/rp/g, "சி"); 47 | text = text.replace(/rP/g, "சீ"); 48 | text = text.replace(/R/g, "சு"); 49 | text = text.replace(/#/g, "சூ"); 50 | text = text.replace(/nr/g, "செ"); 51 | text = text.replace(/Nr/g, "சே"); 52 | text = text.replace(/ir/g, "சை"); 53 | text = text.replace(/r;/g, "ச்"); 54 | text = text.replace(/r/g, "ச"); 55 | text = text.replace(/nQs/g, "ஞௌ"); 56 | text = text.replace(/NQh/g, "ஞோ"); 57 | text = text.replace(/nQh/g, "ஞொ"); 58 | text = text.replace(/Qh/g, "ஞா"); 59 | text = text.replace(/Qp/g, "ஞி"); 60 | text = text.replace(/QP/g, "ஞீ"); 61 | text = text.replace(/nQ/g, "ஞெ"); 62 | text = text.replace(/NQ/g, "ஞே"); 63 | text = text.replace(/iQ/g, "ஞை"); 64 | text = text.replace(/Q;/g, "ஞ்"); 65 | text = text.replace(/Q/g, "ஞ"); 66 | text = text.replace(/nls/g, "டௌ"); 67 | text = text.replace(/Nlh/g, "டோ"); 68 | text = text.replace(/nlh/g, "டொ"); 69 | text = text.replace(/lh/g, "டா"); 70 | text = text.replace(/b/g, "டி"); 71 | text = text.replace(/B/g, "டீ"); 72 | text = text.replace(/L/g, "டு"); 73 | text = text.replace(/\^/g, "டூ"); 74 | text = text.replace(/nl/g, "டெ"); 75 | text = text.replace(/Nl/g, "டே"); 76 | text = text.replace(/il/g, "டை"); 77 | text = text.replace(/l;/g, "ட்"); 78 | text = text.replace(/l/g, "ட"); 79 | text = text.replace(/nzs/g, "ணௌ"); 80 | text = text.replace(/Nzh/g, "ணோ"); 81 | text = text.replace(/nzh/g, "ணொ"); 82 | text = text.replace(/zh/g, "ணா"); 83 | text = text.replace(/zp/g, "ணி"); 84 | text = text.replace(/zP/g, "ணீ"); 85 | text = text.replace(/Z}/g, "ணூ"); 86 | text = text.replace(/Z/g, "ணு"); 87 | text = text.replace(/nz/g, "ணெ"); 88 | text = text.replace(/Nz/g, "ணே"); 89 | text = text.replace(/iz/g, "ணை"); 90 | text = text.replace(/z;/g, "ண்"); 91 | text = text.replace(/z/g, "ண"); 92 | text = text.replace(/njs/g, "தௌ"); 93 | text = text.replace(/Njh/g, "தோ"); 94 | text = text.replace(/njh/g, "தொ"); 95 | text = text.replace(/jh/g, "தா"); 96 | text = text.replace(/jp/g, "தி"); 97 | text = text.replace(/jP/g, "தீ"); 98 | text = text.replace(/J}/g, "தூ"); 99 | text = text.replace(/J/g, "து"); 100 | text = text.replace(/nj/g, "தெ"); 101 | text = text.replace(/Nj/g, "தே"); 102 | text = text.replace(/ij/g, "தை"); 103 | text = text.replace(/j;/g, "த்"); 104 | text = text.replace(/j/g, "த"); 105 | text = text.replace(/nes/g, "நௌ"); 106 | text = text.replace(/Neh/g, "நோ"); 107 | text = text.replace(/neh/g, "நொ"); 108 | text = text.replace(/eh/g, "நா"); 109 | text = text.replace(/ep/g, "நி"); 110 | text = text.replace(/eP/g, "நீ"); 111 | text = text.replace(/E}/g, "நூ"); 112 | text = text.replace(/E/g, "நு"); 113 | text = text.replace(/ne/g, "நெ"); 114 | text = text.replace(/Ne/g, "நே"); 115 | text = text.replace(/ie/g, "நை"); 116 | text = text.replace(/e;/g, "ந்"); 117 | text = text.replace(/e/g, "ந"); 118 | text = text.replace(/nds/g, "னௌ"); 119 | text = text.replace(/Ndh/g, "னோ"); 120 | text = text.replace(/ndh/g, "னொ"); 121 | text = text.replace(/dh/g, "னா"); 122 | text = text.replace(/dp/g, "னி"); 123 | text = text.replace(/dP/g, "னீ"); 124 | text = text.replace(/D}/g, "னூ"); 125 | text = text.replace(/D/g, "னு"); 126 | text = text.replace(/nd/g, "னெ"); 127 | text = text.replace(/Nd/g, "னே"); 128 | text = text.replace(/id/g, "னை"); 129 | text = text.replace(/d;/g, "ன்"); 130 | text = text.replace(/d/g, "ன"); 131 | text = text.replace(/ngs/g, "பௌ"); 132 | text = text.replace(/Ngh/g, "போ"); 133 | text = text.replace(/ngh/g, "பொ"); 134 | text = text.replace(/gh/g, "பா"); 135 | text = text.replace(/gp/g, "பி"); 136 | text = text.replace(/gP/g, "பீ"); 137 | text = text.replace(/G\+/g, "பூ"); 138 | text = text.replace(/G/g, "பு"); 139 | text = text.replace(/ng/g, "பெ"); 140 | text = text.replace(/Ng/g, "பே"); 141 | text = text.replace(/ig/g, "பை"); 142 | text = text.replace(/g;/g, "ப்"); 143 | text = text.replace(/g/g, "ப"); 144 | text = text.replace(/nks/g, "மௌ"); 145 | text = text.replace(/Nkh/g, "மோ"); 146 | text = text.replace(/nkh/g, "மொ"); 147 | text = text.replace(/kh/g, "மா"); 148 | text = text.replace(/kp/g, "மி"); 149 | text = text.replace(/kP/g, "மீ"); 150 | text = text.replace(/K/g, "மு"); 151 | text = text.replace(/%/g, "மூ"); 152 | text = text.replace(/nk/g, "மெ"); 153 | text = text.replace(/Nk/g, "மே"); 154 | text = text.replace(/ik/g, "மை"); 155 | text = text.replace(/k;/g, "ம்"); 156 | text = text.replace(/k/g, "ம"); 157 | text = text.replace(/nas/g, "யௌ"); 158 | text = text.replace(/Nah/g, "யோ"); 159 | text = text.replace(/nah/g, "யொ"); 160 | text = text.replace(/ah/g, "யா"); 161 | text = text.replace(/ap/g, "யி"); 162 | text = text.replace(/aP/g, "யீ"); 163 | text = text.replace(/A+/g, "யூ"); 164 | text = text.replace(/A/g, "யு"); 165 | text = text.replace(/na/g, "யெ"); 166 | text = text.replace(/Na/g, "யே"); 167 | text = text.replace(/ia/g, "யை"); 168 | text = text.replace(/a;/g, "ய்"); 169 | text = text.replace(/a/g, "ய"); 170 | text = text.replace(/nus/g, "ரௌ"); 171 | text = text.replace(/Nuh/g, "ரோ"); 172 | text = text.replace(/nuh/g, "ரொ"); 173 | text = text.replace(/uh/g, "ரா"); 174 | text = text.replace(/up/g, "ரி"); 175 | text = text.replace(/uP/g, "ரீ"); 176 | text = text.replace(/U/g, "ரு"); 177 | text = text.replace(/\&/g, "ரூ"); 178 | text = text.replace(/nu/g, "ரெ"); 179 | text = text.replace(/Nu/g, "ரே"); 180 | text = text.replace(/iu/g, "ரை"); 181 | text = text.replace(/u;/g, "ர்"); 182 | text = text.replace(/u/g, "ர"); 183 | text = text.replace(/nys/g, "லௌ"); 184 | text = text.replace(/Nyh/g, "லோ"); 185 | text = text.replace(/nyh/g, "லொ"); 186 | text = text.replace(/yh/g, "லா"); 187 | text = text.replace(/yp/g, "லி"); 188 | text = text.replace(/yP/g, "லீ"); 189 | text = text.replace(/Y}/g, "லூ"); 190 | text = text.replace(/Y/g, "லு"); 191 | text = text.replace(/ny/g, "லெ"); 192 | text = text.replace(/Ny/g, "லே"); 193 | text = text.replace(/iy/g, "லை"); 194 | text = text.replace(/y;/g, "ல்"); 195 | text = text.replace(/y/g, "ல"); 196 | text = text.replace(/nss/g, "ளௌ"); 197 | text = text.replace(/Nsh/g, "ளோ"); 198 | text = text.replace(/nsh/g, "ளொ"); 199 | text = text.replace(/sh/g, "ளா"); 200 | text = text.replace(/sp/g, "ளி"); 201 | text = text.replace(/sP/g, "ளீ"); 202 | text = text.replace(/S/g, "ளு"); 203 | text = text.replace(/ns/g, "ளெ"); 204 | text = text.replace(/Ns/g, "ளே"); 205 | text = text.replace(/is/g, "ளை"); 206 | text = text.replace(/s;/g, "ள்"); 207 | text = text.replace(/s/g, "ள"); 208 | text = text.replace(/nts/g, "வௌ"); 209 | text = text.replace(/Nth/g, "வோ"); 210 | text = text.replace(/nth/g, "வொ"); 211 | text = text.replace(/th/g, "வா"); 212 | text = text.replace(/tp/g, "வி"); 213 | text = text.replace(/tP/g, "வீ"); 214 | text = text.replace(/T+/g, "வூ"); 215 | text = text.replace(/T/g, "வு"); 216 | text = text.replace(/nt/g, "வெ"); 217 | text = text.replace(/Nt/g, "வே"); 218 | text = text.replace(/it/g, "வை"); 219 | text = text.replace(/t;/g, "வ்"); 220 | text = text.replace(/t/g, "வ"); 221 | text = text.replace(/nos/g, "ழௌ"); 222 | text = text.replace(/Noh/g, "ழோ"); 223 | text = text.replace(/noh/g, "ழொ"); 224 | text = text.replace(/oh/g, "ழா"); 225 | text = text.replace(/op/g, "ழி"); 226 | text = text.replace(/oP/g, "ழீ"); 227 | text = text.replace(/O/g, "ழு"); 228 | text = text.replace(/\*/g, "ழூ"); 229 | text = text.replace(/no/g, "ழெ"); 230 | text = text.replace(/No/g, "ழே"); 231 | text = text.replace(/io/g, "ழை"); 232 | text = text.replace(/o;/g, "ழ்"); 233 | text = text.replace(/o/g, "ழ"); 234 | text = text.replace(/nws/g, "றௌ"); 235 | text = text.replace(/Nwh/g, "றௌ"); 236 | text = text.replace(/nwh/g, "றொ"); 237 | text = text.replace(/wh/g, "றா"); 238 | text = text.replace(/wp/g, "றி"); 239 | text = text.replace(/wP/g, "றீ"); 240 | text = text.replace(/W}/g, "றூ"); 241 | text = text.replace(/W/g, "று"); 242 | text = text.replace(/nw/g, "றெ"); 243 | text = text.replace(/Nw/g, "றே"); 244 | text = text.replace(/iw/g, "றை"); 245 | text = text.replace(/w;/g, "ற்"); 246 | text = text.replace(/w/g, "ற"); 247 | text = text.replace(/n`s/g, "ஹௌ"); 248 | text = text.replace(/N`h/g, "ஹோ"); 249 | text = text.replace(/n`h/g, "ஹொ"); 250 | text = text.replace(/`h/g, "ஹா"); 251 | text = text.replace(/`p/g, "ஹி"); 252 | text = text.replace(/`P/g, "ஹீ"); 253 | text = text.replace(/`{/g, "ஹு"); 254 | text = text.replace(/`_/g, "ஹூ"); 255 | text = text.replace(/n`/g, "ஹெ"); 256 | text = text.replace(/N`/g, "ஹே"); 257 | text = text.replace(/i`/g, "ஹை"); 258 | text = text.replace(/`;/g, "ஹ்"); 259 | text = text.replace(/`/g, "ஹ"); 260 | text = text.replace(/\\s/g, "ஷௌ"); 261 | text = text.replace(/N\\h/g, "ஷோ"); 262 | text = text.replace(/n\\h/g, "ஷொ"); 263 | text = text.replace(/\\h/g, "ஷா"); 264 | text = text.replace(/\\p/g, "ஷி"); 265 | text = text.replace(/\\P/g, "ஷீ"); 266 | text = text.replace(/\{/g, "ஷு"); 267 | text = text.replace(/\\\_/g, "ஷூ"); 268 | text = text.replace(/n\\/g, "ஷெ"); 269 | text = text.replace(/N\\/g, "ஷே"); 270 | text = text.replace(/i\\/g, "ஷை"); 271 | text = text.replace(/\\;/g, "ஷ்"); 272 | text = text.replace(/\\/g, "ஷ"); 273 | text = text.replace(/n]s/g, "ஸௌ"); 274 | text = text.replace(/N]h/g, "ஸோ"); 275 | text = text.replace(/n]h/g, "ஸொ"); 276 | text = text.replace(/]h/g, "ஸா"); 277 | text = text.replace(/]p/g, "ஸி"); 278 | text = text.replace(/]P/g, "ஸீ"); 279 | text = text.replace(/]{/g, "ஸு"); 280 | text = text.replace(/]_/g, "ஸூ"); 281 | text = text.replace(/n]/g, "ஸெ"); 282 | text = text.replace(/N]/g, "ஸே"); 283 | text = text.replace(/i]/g, "ஸை"); 284 | text = text.replace(/];/g, "ஸ்"); 285 | text = text.replace(/]/g, "ஸ"); 286 | text = text.replace(/m/g, "அ"); 287 | text = text.replace(/M/g, "ஆ"); 288 | text = text.replace(/,/g, "இ"); 289 | text = text.replace(/"); 4 | text = text.replace(/ஜௌ/g, "n\[s"); 5 | text = text.replace(/ஜோ/g, "N\[h"); 6 | text = text.replace(/ஜொ/g, "n\[h"); 7 | text = text.replace(/ஜா/g, "\[h"); 8 | text = text.replace(/ஜி/g, "\[p"); 9 | text = text.replace(/ஜீ/g, "\[P"); 10 | text = text.replace(/ஜு/g, "\[{"); 11 | text = text.replace(/ஜூ/g, "\[_"); 12 | text = text.replace(/ஜெ/g, "n\["); 13 | text = text.replace(/ஜே/g, "N\["); 14 | text = text.replace(/ஜை/g, "i\["); 15 | text = text.replace(/ஜ்/g, "\[;"); 16 | text = text.replace(/ஜ/g, "\["); 17 | text = text.replace(/கௌ/g, "nfs"); 18 | text = text.replace(/கோ/g, "Nfh"); 19 | text = text.replace(/கொ/g, "nfh"); 20 | text = text.replace(/கா/g, "fh"); 21 | text = text.replace(/கி/g, "fp"); 22 | text = text.replace(/கீ/g, "fP"); 23 | text = text.replace(/கு/g, "F"); 24 | text = text.replace(/கூ/g, "$"); 25 | text = text.replace(/கெ/g, "nf"); 26 | text = text.replace(/கே/g, "Nf"); 27 | text = text.replace(/கை/g, "if"); 28 | text = text.replace(/க்/g, "f;"); 29 | text = text.replace(/க/g, "f"); 30 | text = text.replace(/ஙௌ/g, "nqs"); 31 | text = text.replace(/ஙோ/g, "Nqh"); 32 | text = text.replace(/ஙொ/g, "nqh"); 33 | text = text.replace(/ஙா/g, "qh"); 34 | text = text.replace(/ஙி/g, "qp"); 35 | text = text.replace(/ஙீ/g, "qP"); 36 | text = text.replace(/ஙு/g, "*"); 37 | text = text.replace(/ஙூ/g, "*"); 38 | text = text.replace(/ஙெ/g, "nq"); 39 | text = text.replace(/ஙே/g, "Nq"); 40 | text = text.replace(/ஙை/g, "iq"); 41 | text = text.replace(/ங்/g, "q;"); 42 | text = text.replace(/ங/g, "q"); 43 | text = text.replace(/சௌ/g, "nrs"); 44 | text = text.replace(/சோ/g, "Nrh"); 45 | text = text.replace(/சொ/g, "nrh"); 46 | text = text.replace(/சா/g, "rh"); 47 | text = text.replace(/சி/g, "rp"); 48 | text = text.replace(/சீ/g, "rP"); 49 | text = text.replace(/சு/g, "R"); 50 | text = text.replace(/சூ/g, "R+"); 51 | text = text.replace(/செ/g, "nr"); 52 | text = text.replace(/சே/g, "Nr"); 53 | text = text.replace(/சை/g, "ir"); 54 | text = text.replace(/ச்/g, "r;"); 55 | text = text.replace(/ச/g, "r"); 56 | text = text.replace(/ஞௌ/g, "nQs"); 57 | text = text.replace(/ஞோ/g, "NQh"); 58 | text = text.replace(/ஞொ/g, "nQh"); 59 | text = text.replace(/ஞா/g, "Qh"); 60 | text = text.replace(/ஞி/g, "Qp"); 61 | text = text.replace(/ஞீ/g, "QP"); 62 | text = text.replace(/ஞு/g, "*"); 63 | text = text.replace(/ஞூ/g, "*"); 64 | text = text.replace(/ஞெ/g, "nQ"); 65 | text = text.replace(/ஞே/g, "NQ"); 66 | text = text.replace(/ஞை/g, "iQ"); 67 | text = text.replace(/ஞ்/g, "Q;"); 68 | text = text.replace(/ஞ/g, "Q"); 69 | text = text.replace(/டௌ/g, "nls"); 70 | text = text.replace(/டோ/g, "Nlh"); 71 | text = text.replace(/டொ/g, "nlh"); 72 | text = text.replace(/டா/g, "lh"); 73 | text = text.replace(/டி/g, "b"); 74 | text = text.replace(/டீ/g, "B"); 75 | text = text.replace(/டு/g, "L"); 76 | text = text.replace(/டூ/g, "^"); 77 | text = text.replace(/டெ/g, "nl"); 78 | text = text.replace(/டே/g, "Nl"); 79 | text = text.replace(/டை/g, "il"); 80 | text = text.replace(/ட்/g, "l;"); 81 | text = text.replace(/ட/g, "l"); 82 | text = text.replace(/ணௌ/g, "nzs"); 83 | text = text.replace(/ணோ/g, "Nzh"); 84 | text = text.replace(/ணொ/g, "nzh"); 85 | text = text.replace(/ணா/g, "zh"); 86 | text = text.replace(/ணி/g, "zp"); 87 | text = text.replace(/ணீ/g, "zP"); 88 | text = text.replace(/ணு/g, "Z"); 89 | text = text.replace(/ணூ/g, "Z}"); 90 | text = text.replace(/ணெ/g, "nz"); 91 | text = text.replace(/ணே/g, "Nz"); 92 | text = text.replace(/ணை/g, "iz"); 93 | text = text.replace(/ண்/g, "z;"); 94 | text = text.replace(/ண/g, "z"); 95 | text = text.replace(/தௌ/g, "njs"); 96 | text = text.replace(/தோ/g, "Njh"); 97 | text = text.replace(/தொ/g, "njh"); 98 | text = text.replace(/தா/g, "jh"); 99 | text = text.replace(/தி/g, "jp"); 100 | text = text.replace(/தீ/g, "jP"); 101 | text = text.replace(/து/g, "J"); 102 | text = text.replace(/தூ/g, "J}"); 103 | text = text.replace(/தெ/g, "nj"); 104 | text = text.replace(/தே/g, "Nj"); 105 | text = text.replace(/தை/g, "ij"); 106 | text = text.replace(/த்/g, "j;"); 107 | text = text.replace(/த/g, "j"); 108 | text = text.replace(/நௌ/g, "nes"); 109 | text = text.replace(/நோ/g, "Neh"); 110 | text = text.replace(/நொ/g, "neh"); 111 | text = text.replace(/நா/g, "eh"); 112 | text = text.replace(/நி/g, "ep"); 113 | text = text.replace(/நீ/g, "eP"); 114 | text = text.replace(/நு/g, "E"); 115 | text = text.replace(/நூ/g, "E}"); 116 | text = text.replace(/நெ/g, "ne"); 117 | text = text.replace(/நே/g, "Ne"); 118 | text = text.replace(/நை/g, "ie"); 119 | text = text.replace(/ந்/g, "e;"); 120 | text = text.replace(/ந/g, "e"); 121 | text = text.replace(/னௌ/g, "nds"); 122 | text = text.replace(/னோ/g, "Ndh"); 123 | text = text.replace(/னொ/g, "ndh"); 124 | text = text.replace(/னா/g, "dh"); 125 | text = text.replace(/னி/g, "dp"); 126 | text = text.replace(/னீ/g, "dP"); 127 | text = text.replace(/னு/g, "D"); 128 | text = text.replace(/னூ/g, "D}"); 129 | text = text.replace(/னெ/g, "nd"); 130 | text = text.replace(/னே/g, "Nd"); 131 | text = text.replace(/னை/g, "id"); 132 | text = text.replace(/ன்/g, "d;"); 133 | text = text.replace(/ன/g, "d"); 134 | text = text.replace(/பௌ/g, "ngs"); 135 | text = text.replace(/போ/g, "Ngh"); 136 | text = text.replace(/பொ/g, "ngh"); 137 | text = text.replace(/பா/g, "gh"); 138 | text = text.replace(/பி/g, "gp"); 139 | text = text.replace(/பீ/g, "gP"); 140 | text = text.replace(/பு/g, "G"); 141 | text = text.replace(/பூ/g, "G+"); 142 | text = text.replace(/பெ/g, "ng"); 143 | text = text.replace(/பே/g, "Ng"); 144 | text = text.replace(/பை/g, "ig"); 145 | text = text.replace(/ப்/g, "g;"); 146 | text = text.replace(/ப/g, "g"); 147 | text = text.replace(/மௌ/g, "nks"); 148 | text = text.replace(/மோ/g, "Nkh"); 149 | text = text.replace(/மொ/g, "nkh"); 150 | text = text.replace(/மா/g, "kh"); 151 | text = text.replace(/மி/g, "kp"); 152 | text = text.replace(/மீ/g, "kP"); 153 | text = text.replace(/மு/g, "K"); 154 | text = text.replace(/மூ/g, "%"); 155 | text = text.replace(/மெ/g, "nk"); 156 | text = text.replace(/மே/g, "Nk"); 157 | text = text.replace(/மை/g, "ik"); 158 | text = text.replace(/ம்/g, "k;"); 159 | text = text.replace(/ம/g, "k"); 160 | text = text.replace(/யௌ/g, "nas"); 161 | text = text.replace(/யோ/g, "Nah"); 162 | text = text.replace(/யொ/g, "nah"); 163 | text = text.replace(/யா/g, "ah"); 164 | text = text.replace(/யி/g, "ap"); 165 | text = text.replace(/யீ/g, "aP"); 166 | text = text.replace(/யு/g, "A"); 167 | text = text.replace(/யூ/g, "A+"); 168 | text = text.replace(/யெ/g, "na"); 169 | text = text.replace(/யே/g, "Na"); 170 | text = text.replace(/யை/g, "ia"); 171 | text = text.replace(/ய்/g, "a;"); 172 | text = text.replace(/ய/g, "a"); 173 | text = text.replace(/ரௌ/g, "nus"); 174 | text = text.replace(/ரோ/g, "Nuh"); 175 | text = text.replace(/ரொ/g, "nuh"); 176 | text = text.replace(/ரா/g, "uh"); 177 | text = text.replace(/ரி/g, "up"); 178 | text = text.replace(/ரீ/g, "uP"); 179 | text = text.replace(/ரு/g, "U"); 180 | text = text.replace(/ரூ/g, "\\&"); 181 | text = text.replace(/ரெ/g, "nu"); 182 | text = text.replace(/ரே/g, "Nu"); 183 | text = text.replace(/ரை/g, "iu"); 184 | text = text.replace(/ர்/g, "u;"); 185 | text = text.replace(/ர/g, "u"); 186 | text = text.replace(/லௌ/g, "nys"); 187 | text = text.replace(/லோ/g, "Nyh"); 188 | text = text.replace(/லொ/g, "nyh"); 189 | text = text.replace(/லா/g, "yh"); 190 | text = text.replace(/லி/g, "yp"); 191 | text = text.replace(/லீ/g, "yP"); 192 | text = text.replace(/லு/g, "Y"); 193 | text = text.replace(/லூ/g, "Y}"); 194 | text = text.replace(/லெ/g, "ny"); 195 | text = text.replace(/லே/g, "Ny"); 196 | text = text.replace(/லை/g, "iy"); 197 | text = text.replace(/ல்/g, "y;"); 198 | text = text.replace(/ல/g, "y"); 199 | text = text.replace(/ளௌ/g, "nss"); 200 | text = text.replace(/ளோ/g, "Nsh"); 201 | text = text.replace(/ளொ/g, "nsh"); 202 | text = text.replace(/ளா/g, "sh"); 203 | text = text.replace(/ளி/g, "sp"); 204 | text = text.replace(/ளீ/g, "sP"); 205 | text = text.replace(/ளு/g, "S"); 206 | text = text.replace(/ளூ/g, "Sh"); 207 | text = text.replace(/ளெ/g, "ns"); 208 | text = text.replace(/ளே/g, "Ns"); 209 | text = text.replace(/ளை/g, "is"); 210 | text = text.replace(/ள்/g, "s;"); 211 | text = text.replace(/ள/g, "s"); 212 | text = text.replace(/வௌ/g, "nts"); 213 | text = text.replace(/வோ/g, "Nth"); 214 | text = text.replace(/வொ/g, "nth"); 215 | text = text.replace(/வா/g, "th"); 216 | text = text.replace(/வி/g, "tp"); 217 | text = text.replace(/வீ/g, "tP"); 218 | text = text.replace(/வு/g, "T"); 219 | text = text.replace(/வூ/g, "T+"); 220 | text = text.replace(/வெ/g, "nt"); 221 | text = text.replace(/வே/g, "Nt"); 222 | text = text.replace(/வை/g, "it"); 223 | text = text.replace(/வ்/g, "t;"); 224 | text = text.replace(/வ/g, "t"); 225 | text = text.replace(/ழௌ/g, "nos"); 226 | text = text.replace(/ழோ/g, "Noh"); 227 | text = text.replace(/ழொ/g, "noh"); 228 | text = text.replace(/ழா/g, "oh"); 229 | text = text.replace(/ழி/g, "op"); 230 | text = text.replace(/ழீ/g, "oP"); 231 | text = text.replace(/ழு/g, "O"); 232 | text = text.replace(/ழூ/g, "*"); 233 | text = text.replace(/ழெ/g, "no"); 234 | text = text.replace(/ழே/g, "No"); 235 | text = text.replace(/ழை/g, "io"); 236 | text = text.replace(/ழ்/g, "o;"); 237 | text = text.replace(/ழ/g, "o"); 238 | text = text.replace(/றௌ/g, "nws"); 239 | text = text.replace(/றோ/g, "Nwh"); 240 | text = text.replace(/றொ/g, "nwh"); 241 | text = text.replace(/றா/g, "wh"); 242 | text = text.replace(/றி/g, "wp"); 243 | text = text.replace(/றீ/g, "wP"); 244 | text = text.replace(/று/g, "W"); 245 | text = text.replace(/றூ/g, "W}"); 246 | text = text.replace(/றெ/g, "nw"); 247 | text = text.replace(/றே/g, "Nw"); 248 | text = text.replace(/றை/g, "iw"); 249 | text = text.replace(/ற்/g, "w;"); 250 | text = text.replace(/ற/g, "w"); 251 | text = text.replace(/ஹௌ/g, "n`s"); 252 | text = text.replace(/ஹோ/g, "N`h"); 253 | text = text.replace(/ஹொ/g, "n`h"); 254 | text = text.replace(/ஹா/g, "`h"); 255 | text = text.replace(/ஹி/g, "`p"); 256 | text = text.replace(/ஹீ/g, "`P"); 257 | text = text.replace(/ஹு/g, "{`"); 258 | text = text.replace(/ஹூ/g, "`_"); 259 | text = text.replace(/ஹெ/g, "n`"); 260 | text = text.replace(/ஹே/g, "N`"); 261 | text = text.replace(/ஹை/g, "i`"); 262 | text = text.replace(/ஹ்/g, "`;"); 263 | text = text.replace(/ஹ/g, "`"); 264 | text = text.replace(/ஷௌ/g, "n\\s"); 265 | text = text.replace(/ஷோ/g, "N\\h"); 266 | text = text.replace(/ஷொ/g, "n\\h"); 267 | text = text.replace(/ஷா/g, "\\h"); 268 | text = text.replace(/ஷி/g, "\\p"); 269 | text = text.replace(/ஷீ/g, "\\P"); 270 | text = text.replace(/ஷு/g, "\{"); 271 | text = text.replace(/ஷூ/g, "\\\_"); 272 | text = text.replace(/ஷெ/g, "n\\"); 273 | text = text.replace(/ஷே/g, "N\\"); 274 | text = text.replace(/ஷை/g, "i\\"); 275 | text = text.replace(/ஷ்/g, "\\;"); 276 | text = text.replace(/ஷ/g, "\\"); 277 | text = text.replace(/ஸௌ/g, "n]s"); 278 | text = text.replace(/ஸோ/g, "N]h"); 279 | text = text.replace(/ஸொ/g, "n]h"); 280 | text = text.replace(/ஸா/g, "]h"); 281 | text = text.replace(/ஸி/g, "]p"); 282 | text = text.replace(/ஸீ/g, "]P"); 283 | text = text.replace(/ஸு/g, "]{"); 284 | text = text.replace(/ஸூ/g, "]_"); 285 | text = text.replace(/ஸெ/g, "n]"); 286 | text = text.replace(/ஸே/g, "N]"); 287 | text = text.replace(/ஸை/g, "i]"); 288 | text = text.replace(/ஸ்/g, "];"); 289 | text = text.replace(/ஸ/g, "]"); 290 | text = text.replace(/அ/g, "m"); 291 | text = text.replace(/ஆ/g, "M"); 292 | text = text.replace(/இ/g, ","); 293 | text = text.replace(/ஈ/g, "<"); 294 | text = text.replace(/உ/g, "c"); 295 | text = text.replace(/ஊ/g, "C"); 296 | text = text.replace(/எ/g, "v"); 297 | text = text.replace(/ஏ/g, "V"); 298 | text = text.replace(/ஐ/g, "I"); 299 | text = text.replace(/ஒ/g, "x"); 300 | text = text.replace(/ஓ/g, "X"); 301 | text = text.replace(/ஔ/g, "xs"); 302 | text = text.replace(/ஃ/g, "\/"); 303 | 304 | return text 305 | } -------------------------------------------------------------------------------- /src/translators/kaputa_to_unicode.ts: -------------------------------------------------------------------------------- 1 | export const kaputaToUnicode = function(text: string) { 2 | text = text.replace(/@@wY/g, "ත්‍රෛ"); 3 | text = text.replace(/@@X/g, "ශෛ"); 4 | text = text.replace(/@@c/g, "චෛ"); 5 | text = text.replace(/@@j/g, "ජෛ"); 6 | text = text.replace(/@@n/g, "නෛ"); 7 | text = text.replace(/@@k/g, "කෛ"); 8 | text = text.replace(/@@m/g, "මෛ"); 9 | text = text.replace(/@@p/g, "පෛ"); 10 | text = text.replace(/@@q/g, "දෛ"); 11 | text = text.replace(/@@w/g, "තෛ"); 12 | text = text.replace(/@@{/g, "ධෛ"); 13 | text = text.replace(/@@v/g, "වෛ"); 14 | text = text.replace(/@pY_/g, "ප්‍රෞ"); 15 | text = text.replace(/@;&`~/g, "ෂ්‍යෝ"); 16 | text = text.replace(/@C&`~/g, "ඡ්‍යෝ"); 17 | text = text.replace(/@D&`~/g, "ඪ්‍යෝ"); 18 | text = text.replace(/@G&`~/g, "ඝ්‍යෝ"); 19 | text = text.replace(/@K&`~/g, "ඛ්‍යෝ"); 20 | text = text.replace(/@L&`~/g, "ළ්‍යෝ"); 21 | text = text.replace(/@P&`~/g, "ඵ්‍යෝ"); 22 | text = text.replace(/@T&`~/g, "ඨ්‍යෝ"); 23 | text = text.replace(/@X&`~/g, "ශ්‍යෝ"); 24 | text = text.replace(/@]&`~/g, "ක්‍ෂ්‍යෝ"); 25 | text = text.replace(/@b&`~/g, "බ්‍යෝ"); 26 | text = text.replace(/@c&`~/g, "ච්‍යෝ"); 27 | text = text.replace(/@d&`~/g, "ඩ්‍යෝ"); 28 | text = text.replace(/@f&`~/g, "ෆ්‍යෝ"); 29 | text = text.replace(/@g&`~/g, "ග්‍යෝ"); 30 | text = text.replace(/@j&`~/g, "ජ්‍යෝ"); 31 | text = text.replace(/@k&`~/g, "ක්‍යෝ"); 32 | text = text.replace(/@l&`~/g, "ල්‍යෝ"); 33 | text = text.replace(/@m&`~/g, "ම්‍යෝ"); 34 | text = text.replace(/@n&`~/g, "න්‍යෝ"); 35 | text = text.replace(/@p&`~/g, "ප්‍යෝ"); 36 | text = text.replace(/@q&`~/g, "ද්‍යෝ"); 37 | text = text.replace(/@s&`~/g, "ස්‍යෝ"); 38 | text = text.replace(/@t&`~/g, "ට්‍යෝ"); 39 | text = text.replace(/@v&`~/g, "ව්‍යෝ"); 40 | text = text.replace(/@w&`~/g, "ත්‍යෝ"); 41 | text = text.replace(/@x&`~/g, "භ්‍යෝ"); 42 | text = text.replace(/@{&`~/g, "ධ්‍යෝ"); 43 | text = text.replace(/@}&`~/g, "ථ්‍යෝ"); 44 | text = text.replace(/@;&`/g, "ෂ්‍යො"); 45 | text = text.replace(/@X&`/g, "ශ්‍යො"); 46 | text = text.replace(/@K&`/g, "ඛ්‍යො"); 47 | text = text.replace(/@]&`/g, "ක්‍ෂ්‍යො"); 48 | text = text.replace(/@b&`/g, "බ්‍යො"); 49 | text = text.replace(/@c&`/g, "ව්‍යො"); 50 | text = text.replace(/@d&`/g, "ඩ්‍යො"); 51 | text = text.replace(/@f&`/g, "ෆ්‍යො"); 52 | text = text.replace(/@g&`/g, "ග්‍යො"); 53 | text = text.replace(/@j&`/g, "ජ්‍යො"); 54 | text = text.replace(/@k&`/g, "ක්‍යො"); 55 | text = text.replace(/@m&`/g, "ම්‍යො"); 56 | text = text.replace(/@p&`/g, "ප්‍යො"); 57 | text = text.replace(/@q&`/g, "ද්‍යො"); 58 | text = text.replace(/@s&`/g, "ස්‍යො"); 59 | text = text.replace(/@t&`/g, "ට්‍යො"); 60 | text = text.replace(/@v&`/g, "ව්‍යො"); 61 | text = text.replace(/@w&`/g, "ත්‍යො"); 62 | text = text.replace(/@x&`/g, "භ්‍යො"); 63 | text = text.replace(/@{&`/g, "ධ්‍යො"); 64 | text = text.replace(/@}&`/g, "ථ්‍යො"); 65 | text = text.replace(/@;&/g, "ෂ්‍යෙ"); 66 | text = text.replace(/@C&/g, "ඡ්‍යෙ"); 67 | text = text.replace(/@L&/g, "ළ්‍යෙ"); 68 | text = text.replace(/@N&/g, "ණ්‍යෙ"); 69 | text = text.replace(/@c&/g, "ච්‍යෙ"); 70 | text = text.replace(/@l&/g, "ල්‍යෙ"); 71 | text = text.replace(/@n&/g, "න්‍යෙ"); 72 | text = text.replace(/@X&/g, "ශ්‍යෙ"); 73 | text = text.replace(/@K&/g, "ඛ්‍යෙ"); 74 | text = text.replace(/@]&/g, "ක්‍ෂ්‍යෙ"); 75 | text = text.replace(/@b&/g, "බ්‍යෙ"); 76 | text = text.replace(/@d&/g, "ඩ්‍යෙ"); 77 | text = text.replace(/@f&/g, "ෆ්‍යෙ"); 78 | text = text.replace(/@g&/g, "ග්‍යෙ"); 79 | text = text.replace(/@j&/g, "ජ්‍යෙ"); 80 | text = text.replace(/@k&/g, "ක්‍යෙ"); 81 | text = text.replace(/@m&/g, "ම්‍යෙ"); 82 | text = text.replace(/@p&/g, "ප්‍යෙ"); 83 | text = text.replace(/@q&/g, "ද්‍යෙ"); 84 | text = text.replace(/@s&/g, "ස්‍යෙ"); 85 | text = text.replace(/@t&/g, "ට්‍යෙ"); 86 | text = text.replace(/@v&/g, "ව්‍යෙ"); 87 | text = text.replace(/@w&/g, "ත්‍යෙ"); 88 | text = text.replace(/@x&/g, "භ්‍යෙ"); 89 | text = text.replace(/@{&/g, "ධ්‍යෙ"); 90 | text = text.replace(/@}&/g, "ථ්‍යෙ"); 91 | text = text.replace(/@;Y`~/g, "ෂ්‍රෝ"); 92 | text = text.replace(/@GY`~/g, "ඝ්‍රෝ"); 93 | text = text.replace(/@XY`~/g, "ශ්‍රෝ"); 94 | text = text.replace(/@]Y`~/g, "ක්‍ෂ්‍රෝ"); 95 | text = text.replace(/@bY`~/g, "බ්‍රෝ"); 96 | text = text.replace(/@dY`~/g, "ඩ්‍රෝ"); 97 | text = text.replace(/@fY`~/g, "ෆ්‍රෝ"); 98 | text = text.replace(/@gY`~/g, "ග්‍රෝ"); 99 | text = text.replace(/@kY`~/g, "ක්‍රෝ"); 100 | text = text.replace(/@pY`~/g, "ප්‍රෝ"); 101 | text = text.replace(/@qY`~/g, "ද්‍රෝ"); 102 | text = text.replace(/@sY`~/g, "ස්‍රෝ"); 103 | text = text.replace(/@tY`~/g, "ට්‍රෝ"); 104 | text = text.replace(/@wY`~/g, "ත්‍රෝ"); 105 | text = text.replace(/@XY`/g, "ශ්‍රො"); 106 | text = text.replace(/@dY`/g, "ඩ්‍රො"); 107 | text = text.replace(/@fY`/g, "ෆ්‍රො"); 108 | text = text.replace(/@gY`/g, "ග්‍රො"); 109 | text = text.replace(/@kY`/g, "ක්‍රො"); 110 | text = text.replace(/@pY`/g, "ප්‍රො"); 111 | text = text.replace(/@qY`/g, "ද්‍රො"); 112 | text = text.replace(/@sY`/g, "ස්‍රො"); 113 | text = text.replace(/@tY`/g, "ට්‍රො"); 114 | text = text.replace(/@wY`/g, "ත්‍රො"); 115 | text = text.replace(/@XY~/g, "ශ්‍රේ"); 116 | text = text.replace(/@bY\|/g, "බ්‍රේ"); 117 | text = text.replace(/@dY\|/g, "ඩ්‍රේ"); 118 | text = text.replace(/@fY~/g, "ෆ්‍රේ"); 119 | text = text.replace(/@gY~/g, "ග්‍රේ"); 120 | text = text.replace(/@kY~/g, "ක්‍රේ"); 121 | text = text.replace(/@pY~/g, "ප්‍රේ"); 122 | text = text.replace(/@qY~/g, "ද්‍රේ"); 123 | text = text.replace(/@sY~/g, "ස්‍රේ"); 124 | text = text.replace(/@wY~/g, "ත්‍රේ"); 125 | text = text.replace(/@{Y\|/g, "ධ්‍රේ"); 126 | text = text.replace(/@;Y/g, "ෂ්‍රෙ"); 127 | text = text.replace(/@XY/g, "ශ්‍රෙ"); 128 | text = text.replace(/@bY/g, "බ්‍රෙ"); 129 | text = text.replace(/@fY/g, "ෆ්‍රෙ"); 130 | text = text.replace(/@gY/g, "ග්‍රෙ"); 131 | text = text.replace(/@kY/g, "ක්‍රෙ"); 132 | text = text.replace(/@pY/g, "ප්‍රෙ"); 133 | text = text.replace(/@qY/g, "ද්‍රෙ"); 134 | text = text.replace(/@sY/g, "ස්‍රෙ"); 135 | text = text.replace(/@wY/g, "ත්‍රෙ"); 136 | text = text.replace(/@xY/g, "භ්‍රෙ"); 137 | text = text.replace(/@{Y/g, "ධ්‍රෙ"); 138 | text = text.replace(/@;_/g, "ෂෞ"); 139 | text = text.replace(/@C_/g, "ඡෞ"); 140 | text = text.replace(/@X_/g, "ශෞ"); 141 | text = text.replace(/@b_/g, "බෞ"); 142 | text = text.replace(/@c_/g, "චෞ"); 143 | text = text.replace(/@d_/g, "ඩෞ"); 144 | text = text.replace(/@f_/g, "ෆෞ"); 145 | text = text.replace(/@g_/g, "ගෞ"); 146 | text = text.replace(/@j_/g, "ජෞ"); 147 | text = text.replace(/@k_/g, "කෞ"); 148 | text = text.replace(/@l_/g, "ලෞ"); 149 | text = text.replace(/@m_/g, "මෞ"); 150 | text = text.replace(/@n_/g, "නෞ"); 151 | text = text.replace(/@p_/g, "පෞ"); 152 | text = text.replace(/@q_/g, "දෞ"); 153 | text = text.replace(/@r_/g, "රෞ"); 154 | text = text.replace(/@s_/g, "සෞ"); 155 | text = text.replace(/@t_/g, "ටෞ"); 156 | text = text.replace(/@w_/g, "තෞ"); 157 | text = text.replace(/@x_/g, "භෞ"); 158 | text = text.replace(/@z_/g, "ඤෞ"); 159 | text = text.replace(/@;`~/g, "ෂෝ"); 160 | text = text.replace(/@B`~/g, "ඹෝ"); 161 | text = text.replace(/@C`~/g, "ඡෝ"); 162 | text = text.replace(/@D`~/g, "ඪෝ"); 163 | text = text.replace(/@G`~/g, "ඝෝ"); 164 | text = text.replace(/@K`~/g, "ඛෝ"); 165 | text = text.replace(/@L`~/g, "ළෝ"); 166 | text = text.replace(/@M`~/g, "ඟෝ"); 167 | text = text.replace(/@N`~/g, "ණෝ"); 168 | text = text.replace(/@P`~/g, "ඵෝ"); 169 | text = text.replace(/@T`~/g, "ඨෝ"); 170 | text = text.replace(/@V`~/g, "ඬෝ"); 171 | text = text.replace(/@X`~/g, "ශෝ"); 172 | text = text.replace(/@Z`~/g, "ඥෝ"); 173 | text = text.replace(/@\[`~/g, "ඳෝ"); 174 | text = text.replace(/@]`~/g, "ක්‍ෂෝ"); 175 | text = text.replace(/@b`~/g, "බෝ"); 176 | text = text.replace(/@c`~/g, "චෝ"); 177 | text = text.replace(/@d`~/g, "ඩෝ"); 178 | text = text.replace(/@f`~/g, "ෆෝ"); 179 | text = text.replace(/@g`~/g, "ගෝ"); 180 | text = text.replace(/@h`~/g, "හෝ"); 181 | text = text.replace(/@j`~/g, "ජෝ"); 182 | text = text.replace(/@k`~/g, "කෝ"); 183 | text = text.replace(/@l`~/g, "ලෝ"); 184 | text = text.replace(/@m`~/g, "මෝ"); 185 | text = text.replace(/@n`~/g, "නෝ"); 186 | text = text.replace(/@p`~/g, "පෝ"); 187 | text = text.replace(/@q`~/g, "දෝ"); 188 | text = text.replace(/@r`~/g, "රෝ"); 189 | text = text.replace(/@s`~/g, "සෝ"); 190 | text = text.replace(/@t`~/g, "ටෝ"); 191 | text = text.replace(/@v`~/g, "වෝ"); 192 | text = text.replace(/@w`~/g, "තෝ"); 193 | text = text.replace(/@x`~/g, "භෝ"); 194 | text = text.replace(/@y`~/g, "යෝ"); 195 | text = text.replace(/@z`~/g, "ඤෝ"); 196 | text = text.replace(/@{`~/g, "ධෝ"); 197 | text = text.replace(/@}`~/g, "ථෝ"); 198 | text = text.replace(/@;`/g, "ෂො"); 199 | text = text.replace(/@B`/g, "ඹො"); 200 | text = text.replace(/@C`/g, "ඡො"); 201 | text = text.replace(/@D`/g, "ඪො"); 202 | text = text.replace(/@G`/g, "ඝො"); 203 | text = text.replace(/@K`/g, "ඛො"); 204 | text = text.replace(/@L`/g, "ළො"); 205 | text = text.replace(/@M`/g, "ඟො"); 206 | text = text.replace(/@N`/g, "ණො"); 207 | text = text.replace(/@P`/g, "ඵො"); 208 | text = text.replace(/@T`/g, "ඨො"); 209 | text = text.replace(/@V`/g, "ඬො"); 210 | text = text.replace(/@X`/g, "ශො"); 211 | text = text.replace(/@Z`/g, "ඥො"); 212 | text = text.replace(/@\[`/g, "ඳො"); 213 | text = text.replace(/@]`/g, "ක්‍ෂො"); 214 | text = text.replace(/@b`/g, "බො"); 215 | text = text.replace(/@c`/g, "චො"); 216 | text = text.replace(/@d`/g, "ඩො"); 217 | text = text.replace(/@f`/g, "ෆො"); 218 | text = text.replace(/@g`/g, "ගො"); 219 | text = text.replace(/@h`/g, "හො"); 220 | text = text.replace(/@j`/g, "ජො"); 221 | text = text.replace(/@k`/g, "කො"); 222 | text = text.replace(/@l`/g, "ලො"); 223 | text = text.replace(/@m`/g, "මො"); 224 | text = text.replace(/@n`/g, "නො"); 225 | text = text.replace(/@p`/g, "පො"); 226 | text = text.replace(/@q`/g, "දො"); 227 | text = text.replace(/@r`/g, "රො"); 228 | text = text.replace(/@s`/g, "සො"); 229 | text = text.replace(/@t`/g, "ටො"); 230 | text = text.replace(/@v`/g, "වො"); 231 | text = text.replace(/@w`/g, "තො"); 232 | text = text.replace(/@x`/g, "භො"); 233 | text = text.replace(/@y`/g, "යො"); 234 | text = text.replace(/@z`/g, "ඤො"); 235 | text = text.replace(/@{`/g, "ධො"); 236 | text = text.replace(/@}`/g, "ථො"); 237 | text = text.replace(/@;~/g, "ෂේ"); 238 | text = text.replace(/@B\|/g, "ඹේ"); 239 | text = text.replace(/@C~/g, "ඡේ"); 240 | text = text.replace(/@D~/g, "ඪේ"); 241 | text = text.replace(/@G~/g, "ඝේ"); 242 | text = text.replace(/@K\|/g, "ඛේ"); 243 | text = text.replace(/@L~/g, "ළේ"); 244 | text = text.replace(/@M~/g, "ඟේ"); 245 | text = text.replace(/@N~/g, "ණේ"); 246 | text = text.replace(/@P~/g, "ඵේ"); 247 | text = text.replace(/@T~/g, "ඨේ"); 248 | text = text.replace(/@V\|/g, "ඬේ"); 249 | text = text.replace(/@X~/g, "ශේ"); 250 | text = text.replace(/@Z~/g, "ඥේ"); 251 | text = text.replace(/@\[~/g, "ඳේ"); 252 | text = text.replace(/@]~/g, "ක්‍ෂේ"); 253 | text = text.replace(/@b\|/g, "බේ"); 254 | text = text.replace(/@c\|/g, "චේ"); 255 | text = text.replace(/@d\|/g, "ඩේ"); 256 | text = text.replace(/@f~/g, "ෆේ"); 257 | text = text.replace(/@g~/g, "ගේ"); 258 | text = text.replace(/@h~/g, "හේ"); 259 | text = text.replace(/@j~/g, "ජේ"); 260 | text = text.replace(/@k~/g, "කේ"); 261 | text = text.replace(/@l~/g, "ලේ"); 262 | text = text.replace(/@m\|/g, "මේ"); 263 | text = text.replace(/@n~/g, "නේ"); 264 | text = text.replace(/@p~/g, "පේ"); 265 | text = text.replace(/@q~/g, "දේ"); 266 | text = text.replace(/@r~/g, "රේ"); 267 | text = text.replace(/@s~/g, "සේ"); 268 | text = text.replace(/@t\|/g, "ටේ"); 269 | text = text.replace(/@v\|/g, "වේ"); 270 | text = text.replace(/@w~/g, "තේ"); 271 | text = text.replace(/@x~/g, "භේ"); 272 | text = text.replace(/@y~/g, "යේ"); 273 | text = text.replace(/@z~/g, "ඤේ"); 274 | text = text.replace(/@{\|/g, "ධේ"); 275 | text = text.replace(/@}~/g, "ථේ"); 276 | text = text.replace(/@;/g, "ෂෙ"); 277 | text = text.replace(/@B/g, "ඹෙ"); 278 | text = text.replace(/@e/g, "ඓ"); 279 | text = text.replace(/@C/g, "ඡෙ"); 280 | text = text.replace(/@D/g, "ඪෙ"); 281 | text = text.replace(/@G/g, "ඝෙ"); 282 | text = text.replace(/@K/g, "ඛෙ"); 283 | text = text.replace(/@L/g, "ළෙ"); 284 | text = text.replace(/@M/g, "ඟෙ"); 285 | text = text.replace(/@N/g, "ණෙ"); 286 | text = text.replace(/@P/g, "ඵෙ"); 287 | text = text.replace(/@T/g, "ඨෙ"); 288 | text = text.replace(/@V/g, "ඬෙ"); 289 | text = text.replace(/@X/g, "ශෙ"); 290 | text = text.replace(/@Z/g, "ඥෙ"); 291 | text = text.replace(/@\[/g, "ඳෙ"); 292 | text = text.replace(/@]/g, "ක්‍ෂෙ"); 293 | text = text.replace(/@b/g, "බෙ"); 294 | text = text.replace(/@c/g, "චෙ"); 295 | text = text.replace(/@d/g, "ඩෙ"); 296 | text = text.replace(/@f/g, "ෆෙ"); 297 | text = text.replace(/@g/g, "ගෙ"); 298 | text = text.replace(/@h/g, "හෙ"); 299 | text = text.replace(/@j/g, "ජෙ"); 300 | text = text.replace(/@k/g, "කෙ"); 301 | text = text.replace(/@l/g, "ලෙ"); 302 | text = text.replace(/@m/g, "මෙ"); 303 | text = text.replace(/@n/g, "නෙ"); 304 | text = text.replace(/@p/g, "පෙ"); 305 | text = text.replace(/@q/g, "දෙ"); 306 | text = text.replace(/@r/g, "රෙ"); 307 | text = text.replace(/@s/g, "සෙ"); 308 | text = text.replace(/@t/g, "ටෙ"); 309 | text = text.replace(/@v/g, "වෙ"); 310 | text = text.replace(/@w/g, "තෙ"); 311 | text = text.replace(/@x/g, "භෙ"); 312 | text = text.replace(/@y/g, "යෙ"); 313 | text = text.replace(/@z/g, "ඤෙ"); 314 | text = text.replace(/@{/g, "ධෙ"); 315 | text = text.replace(/@}/g, "ථෙ"); 316 | text = text.replace(/;\^\^/g, "ෂෲ"); 317 | text = text.replace(/X\^\^/g, "ශෲ"); 318 | text = text.replace(/b\^\^/g, "බෲ"); 319 | text = text.replace(/d\^\^/g, "ඩෲ"); 320 | text = text.replace(/f\^\^/g, "ෆෲ"); 321 | text = text.replace(/g\^\^/g, "ගෲ"); 322 | text = text.replace(/k\^\^/g, "කෲ"); 323 | text = text.replace(/p\^\^/g, "පෲ"); 324 | text = text.replace(/s\^\^/g, "සෲ"); 325 | text = text.replace(/t\^\^/g, "ටෲ"); 326 | text = text.replace(/w\^\^/g, "තෲ"); 327 | text = text.replace(/x\^\^/g, "භෲ"); 328 | text = text.replace(/{\^\^/g, "ධෲ"); 329 | text = text.replace(/r#/g, "රු"); 330 | text = text.replace(/r\$/g, "රූ"); 331 | text = text.replace(/a`/g, "ආ"); 332 | text = text.replace(/a#/g, "ඇ"); 333 | text = text.replace(/a\$/g, "ඈ"); 334 | text = text.replace(/u_/g, "ඌ"); 335 | text = text.replace(/o_/g, "ඖ"); 336 | text = text.replace(/e~/g, "ඒ"); 337 | text = text.replace(/o\|/g, "ඕ"); 338 | text = text.replace(/;/g, "ෂ"); 339 | text = text.replace(/A/g, "ං"); 340 | text = text.replace(/:/g, "ඃ"); 341 | text = text.replace(/B/g, "ඹ"); 342 | text = text.replace(/C/g, "ඡ"); 343 | text = text.replace(/D/g, "ඪ"); 344 | text = text.replace(/G/g, "ඝ"); 345 | text = text.replace(/I/g, "ඊ"); 346 | text = text.replace(/J/g, "ඣ"); 347 | text = text.replace(/K/g, "ඛ"); 348 | text = text.replace(/L/g, "ළ"); 349 | text = text.replace(/M/g, "ඟ"); 350 | text = text.replace(/N/g, "ණ"); 351 | text = text.replace(/P/g, "ඵ"); 352 | text = text.replace(/T/g, "ඨ"); 353 | text = text.replace(/U/g, "ළු"); 354 | text = text.replace(/V/g, "ඬ"); 355 | text = text.replace(/X/g, "ශ"); 356 | text = text.replace(/Z/g, "ඥ"); 357 | text = text.replace(/\[/g, "ඳ"); 358 | text = text.replace(/]/g, "ක්‍ෂ"); 359 | text = text.replace(/e/g, "එ"); 360 | text = text.replace(/a/g, "අ"); 361 | text = text.replace(/b/g, "බ"); 362 | text = text.replace(/c/g, "ච"); 363 | text = text.replace(/d/g, "ඩ"); 364 | text = text.replace(/e/g, "ඵ"); 365 | text = text.replace(/f/g, "ෆ"); 366 | text = text.replace(/g/g, "ග"); 367 | text = text.replace(/h/g, "හ"); 368 | text = text.replace(/i/g, "ඉ"); 369 | text = text.replace(/j/g, "ජ"); 370 | text = text.replace(/k/g, "ක"); 371 | text = text.replace(/l/g, "ල"); 372 | text = text.replace(/m/g, "ම"); 373 | text = text.replace(/n/g, "න"); 374 | text = text.replace(/o/g, "ඔ"); 375 | text = text.replace(/p/g, "ප"); 376 | text = text.replace(/q/g, "ද"); 377 | text = text.replace(/r/g, "ර"); 378 | text = text.replace(/s/g, "ස"); 379 | text = text.replace(/t/g, "ට"); 380 | text = text.replace(/u/g, "උ"); 381 | text = text.replace(/v/g, "ව"); 382 | text = text.replace(/w/g, "ත"); 383 | text = text.replace(/x/g, "භ"); 384 | text = text.replace(/y/g, "ය"); 385 | text = text.replace(/z/g, "ඤ"); 386 | text = text.replace(/{/g, "ධ"); 387 | text = text.replace(/}/g, "ථ"); 388 | text = text.replace(/QY/g, "YQ"); 389 | text = text.replace(/QW/g, "WQ"); 390 | text = text.replace(/&/g, "්‍ය"); 391 | text = text.replace(/Y/g, "්‍ර"); 392 | text = text.replace(/#/g, "ැ"); 393 | text = text.replace(/\$/g, "ෑ"); 394 | text = text.replace(/@/g, "ෙ"); 395 | text = text.replace(/E/g, "ු"); 396 | text = text.replace(/F/g, "ැ"); 397 | text = text.replace(/H/g, "ෑ"); 398 | text = text.replace(/O/g, "ු"); 399 | text = text.replace(/Q/g, "ි"); 400 | text = text.replace(/R/g, "ූ"); 401 | text = text.replace(/S/g, "ූ"); 402 | text = text.replace(/W/g, "ී"); 403 | text = text.replace(/\^/g, "ෘ"); 404 | text = text.replace(/_/g, "ෟ"); 405 | text = text.replace(/`/g, "ා"); 406 | text = text.replace(/\|/g, "්"); 407 | text = text.replace(/~/g, "්"); 408 | text = text.replace(/\\/g, "්"); 409 | return text 410 | } -------------------------------------------------------------------------------- /src/translators/unicode_to_kaputa.ts: -------------------------------------------------------------------------------- 1 | export const unicodeToKaputa = function (text: string) { 2 | text = text.replace(/;/g, "¶"); 3 | text = text.replace(/ත්‍රෛ/g, "@@wY"); 4 | text = text.replace(/ශෛ/g, "@@X"); 5 | text = text.replace(/චෛ/g, "@@c"); 6 | text = text.replace(/ජෛ/g, "@@j"); 7 | text = text.replace(/කෛ/g, "@@k"); 8 | text = text.replace(/මෛ/g, "@@m"); 9 | text = text.replace(/පෛ/g, "@@p"); 10 | text = text.replace(/දෛ/g, "@@q"); 11 | text = text.replace(/තෛ/g, "@@w"); 12 | text = text.replace(/නෛ/g, "@@n"); 13 | text = text.replace(/ධෛ/g, "@@{"); 14 | text = text.replace(/වෛ/g, "@@v"); 15 | text = text.replace(/ප්‍රෞ/g, "@pY_"); 16 | text = text.replace(/ෂ්‍යෝ/g, "@;&`~"); 17 | text = text.replace(/ඡ්‍යෝ/g, "@C&`~"); 18 | text = text.replace(/ඪ්‍යෝ/g, "@D&`~"); 19 | text = text.replace(/ඝ්‍යෝ/g, "@G&`~"); 20 | text = text.replace(/ඛ්‍යෝ/g, "@K&`~"); 21 | text = text.replace(/ළ්‍යෝ/g, "@L&`~"); 22 | text = text.replace(/ඵ්‍යෝ/g, "@P&`~"); 23 | text = text.replace(/ඨ්‍යෝ/g, "@T&`~"); 24 | text = text.replace(/ශ්‍යෝ/g, "@X&`~"); 25 | text = text.replace(/ක්‍ෂ්‍යෝ/g, "@]&`~"); 26 | text = text.replace(/බ්‍යෝ/g, "@b&`~"); 27 | text = text.replace(/ච්‍යෝ/g, "@c&`~"); 28 | text = text.replace(/ඩ්‍යෝ/g, "@d&`~"); 29 | text = text.replace(/ෆ්‍යෝ/g, "@f&`~"); 30 | text = text.replace(/ග්‍යෝ/g, "@g&`~"); 31 | text = text.replace(/ජ්‍යෝ/g, "@j&`~"); 32 | text = text.replace(/ක්‍යෝ/g, "@k&`~"); 33 | text = text.replace(/ල්‍යෝ/g, "@l&`~"); 34 | text = text.replace(/ම්‍යෝ/g, "@m&`~"); 35 | text = text.replace(/න්‍යෝ/g, "@n&`~"); 36 | text = text.replace(/ප්‍යෝ/g, "@p&`~"); 37 | text = text.replace(/ද්‍යෝ/g, "@q&`~"); 38 | text = text.replace(/ස්‍යෝ/g, "@s&`~"); 39 | text = text.replace(/ට්‍යෝ/g, "@t&`~"); 40 | text = text.replace(/ව්‍යෝ/g, "@v&`~"); 41 | text = text.replace(/ත්‍යෝ/g, "@w&`~"); 42 | text = text.replace(/භ්‍යෝ/g, "@x&`~"); 43 | text = text.replace(/ධ්‍යෝ/g, "@{&`~"); 44 | text = text.replace(/ථ්‍යෝ/g, "@}&`~"); 45 | text = text.replace(/ෂ්‍යො/g, "@;&`"); 46 | text = text.replace(/ශ්‍යො/g, "@X&`"); 47 | text = text.replace(/ඛ්‍යො/g, "@K&`"); 48 | text = text.replace(/ක්‍ෂ්‍යො/g, "@]&`"); 49 | text = text.replace(/බ්‍යො/g, "@b&`"); 50 | text = text.replace(/ව්‍යො/g, "@c&`"); 51 | text = text.replace(/ඩ්‍යො/g, "@d&`"); 52 | text = text.replace(/ෆ්‍යො/g, "@f&`"); 53 | text = text.replace(/ග්‍යො/g, "@g&`"); 54 | text = text.replace(/ජ්‍යො/g, "@j&`"); 55 | text = text.replace(/ක්‍යො/g, "@k&`"); 56 | text = text.replace(/ම්‍යො/g, "@m&`"); 57 | text = text.replace(/ප්‍යො/g, "@p&`"); 58 | text = text.replace(/ද්‍යො/g, "@q&`"); 59 | text = text.replace(/ස්‍යො/g, "@s&`"); 60 | text = text.replace(/ට්‍යො/g, "@t&`"); 61 | text = text.replace(/ව්‍යො/g, "@v&`"); 62 | text = text.replace(/ත්‍යො/g, "@w&`"); 63 | text = text.replace(/භ්‍යො/g, "@x&`"); 64 | text = text.replace(/ධ්‍යො/g, "@{&`"); 65 | text = text.replace(/ථ්‍යො/g, "@}&`"); 66 | text = text.replace(/ෂ්‍යෙ/g, "@;&"); 67 | text = text.replace(/ඡ්‍යෙ/g, "@C&"); 68 | text = text.replace(/ළ්‍යෙ/g, "@L&"); 69 | text = text.replace(/ණ්‍යෙ/g, "@N&"); 70 | text = text.replace(/ච්‍යෙ/g, "@c&"); 71 | text = text.replace(/ල්‍යෙ/g, "@l&"); 72 | text = text.replace(/න්‍යෙ/g, "@n&"); 73 | text = text.replace(/ශ්‍යෙ/g, "@X&"); 74 | text = text.replace(/ඛ්‍යෙ/g, "@K&"); 75 | text = text.replace(/ක්‍ෂ්‍යෙ/g, "@]&"); 76 | text = text.replace(/බ්‍යෙ/g, "@b&"); 77 | text = text.replace(/ඩ්‍යෙ/g, "@d&"); 78 | text = text.replace(/ෆ්‍යෙ/g, "@f&"); 79 | text = text.replace(/ග්‍යෙ/g, "@g&"); 80 | text = text.replace(/ජ්‍යෙ/g, "@j&"); 81 | text = text.replace(/ක්‍යෙ/g, "@k&"); 82 | text = text.replace(/ම්‍යෙ/g, "@m&"); 83 | text = text.replace(/ප්‍යෙ/g, "@p&"); 84 | text = text.replace(/ද්‍යෙ/g, "@q&"); 85 | text = text.replace(/ස්‍යෙ/g, "@s&"); 86 | text = text.replace(/ට්‍යෙ/g, "@t&"); 87 | text = text.replace(/ව්‍යෙ/g, "@v&"); 88 | text = text.replace(/ත්‍යෙ/g, "@w&"); 89 | text = text.replace(/භ්‍යෙ/g, "@x&"); 90 | text = text.replace(/ධ්‍යෙ/g, "@{&"); 91 | text = text.replace(/ථ්‍යෙ/g, "@}&"); 92 | text = text.replace(/ෂ්‍රෝ/g, "@;Y`~"); 93 | text = text.replace(/ඝ්‍රෝ/g, "@GY`~"); 94 | text = text.replace(/ශ්‍රෝ/g, "@XY`~"); 95 | text = text.replace(/ක්‍ෂ්‍රෝ/g, "@]Y`~"); 96 | text = text.replace(/බ්‍රෝ/g, "@bY`~"); 97 | text = text.replace(/ඩ්‍රෝ/g, "@dY`~"); 98 | text = text.replace(/ෆ්‍රෝ/g, "@fY`~"); 99 | text = text.replace(/ග්‍රෝ/g, "@gY`~"); 100 | text = text.replace(/ක්‍රෝ/g, "@kY`~"); 101 | text = text.replace(/ප්‍රෝ/g, "@pY`~"); 102 | text = text.replace(/ද්‍රෝ/g, "@qY`~"); 103 | text = text.replace(/ස්‍රෝ/g, "@sY`~"); 104 | text = text.replace(/ට්‍රෝ/g, "@tY`~"); 105 | text = text.replace(/ත්‍රෝ/g, "@wY`~"); 106 | text = text.replace(/ශ්‍රො/g, "@XY`"); 107 | text = text.replace(/ඩ්‍රො/g, "@dY`"); 108 | text = text.replace(/ෆ්‍රො/g, "@fY`"); 109 | text = text.replace(/ග්‍රො/g, "@gY`"); 110 | text = text.replace(/ක්‍රො/g, "@kY`"); 111 | text = text.replace(/ප්‍රො/g, "@pY`"); 112 | text = text.replace(/ද්‍රො/g, "@qY`"); 113 | text = text.replace(/ස්‍රො/g, "@sY`"); 114 | text = text.replace(/ට්‍රො/g, "@tY`"); 115 | text = text.replace(/ත්‍රො/g, "@wY`"); 116 | text = text.replace(/ශ්‍රේ/g, "@XY~"); 117 | text = text.replace(/බ්‍රේ/g, "@bY|"); 118 | text = text.replace(/ඩ්‍රේ/g, "@dY|"); 119 | text = text.replace(/ෆ්‍රේ/g, "@fY~"); 120 | text = text.replace(/ග්‍රේ/g, "@gY~"); 121 | text = text.replace(/ක්‍රේ/g, "@kY~"); 122 | text = text.replace(/ප්‍රේ/g, "@pY~"); 123 | text = text.replace(/ද්‍රේ/g, "@qY~"); 124 | text = text.replace(/ස්‍රේ/g, "@sY~"); 125 | text = text.replace(/ත්‍රේ/g, "@wY~"); 126 | text = text.replace(/ධ්‍රේ/g, "@{Y|"); 127 | text = text.replace(/ෂ්‍රෙ/g, "@;Y"); 128 | text = text.replace(/ශ්‍රෙ/g, "@XY"); 129 | text = text.replace(/බ්‍රෙ/g, "@bY"); 130 | text = text.replace(/ෆ්‍රෙ/g, "@fY"); 131 | text = text.replace(/ග්‍රෙ/g, "@gY"); 132 | text = text.replace(/ක්‍රෙ/g, "@kY"); 133 | text = text.replace(/ප්‍රෙ/g, "@pY"); 134 | text = text.replace(/ද්‍රෙ/g, "@qY"); 135 | text = text.replace(/ස්‍රෙ/g, "@sY"); 136 | text = text.replace(/ත්‍රෙ/g, "@wY"); 137 | text = text.replace(/භ්‍රෙ/g, "@xY"); 138 | text = text.replace(/ධ්‍රෙ/g, "@{Y"); 139 | text = text.replace(/ෂෞ/g, "@;_"); 140 | text = text.replace(/ඡෞ/g, "@C_"); 141 | text = text.replace(/ශෞ/g, "@X_"); 142 | text = text.replace(/බෞ/g, "@b_"); 143 | text = text.replace(/චෞ/g, "@c_"); 144 | text = text.replace(/ඩෞ/g, "@d_"); 145 | text = text.replace(/ෆෞ/g, "@f_"); 146 | text = text.replace(/ගෞ/g, "@g_"); 147 | text = text.replace(/ජෞ/g, "@j_"); 148 | text = text.replace(/කෞ/g, "@k_"); 149 | text = text.replace(/ලෞ/g, "@l_"); 150 | text = text.replace(/මෞ/g, "@m_"); 151 | text = text.replace(/නෞ/g, "@n_"); 152 | text = text.replace(/පෞ/g, "@p_"); 153 | text = text.replace(/දෞ/g, "@q_"); 154 | text = text.replace(/රෞ/g, "@r_"); 155 | text = text.replace(/සෞ/g, "@s_"); 156 | text = text.replace(/ටෞ/g, "@t_"); 157 | text = text.replace(/තෞ/g, "@w_"); 158 | text = text.replace(/භෞ/g, "@x_"); 159 | text = text.replace(/ඤෞ/g, "@z_"); 160 | text = text.replace(/ෂෝ/g, "@;`~"); 161 | text = text.replace(/ඹෝ/g, "@B`~"); 162 | text = text.replace(/ඡෝ/g, "@C`~"); 163 | text = text.replace(/ඪෝ/g, "@D`~"); 164 | text = text.replace(/ඝෝ/g, "@G`~"); 165 | text = text.replace(/ඛෝ/g, "@K`~"); 166 | text = text.replace(/ළෝ/g, "@L`~"); 167 | text = text.replace(/ඟෝ/g, "@M`~"); 168 | text = text.replace(/ණෝ/g, "@N`~"); 169 | text = text.replace(/ඵෝ/g, "@P`~"); 170 | text = text.replace(/ඨෝ/g, "@T`~"); 171 | text = text.replace(/ඬෝ/g, "@V`~"); 172 | text = text.replace(/ශෝ/g, "@X`~"); 173 | text = text.replace(/ඥෝ/g, "@Z`~"); 174 | text = text.replace(/ඳෝ/g, "@[`~"); 175 | text = text.replace(/ක්‍ෂෝ/g, "@]`~"); 176 | text = text.replace(/බෝ/g, "@b`~"); 177 | text = text.replace(/චෝ/g, "@c`~"); 178 | text = text.replace(/ඩෝ/g, "@d`~"); 179 | text = text.replace(/ෆෝ/g, "@f`~"); 180 | text = text.replace(/ගෝ/g, "@g`~"); 181 | text = text.replace(/හෝ/g, "@h`~"); 182 | text = text.replace(/ජෝ/g, "@j`~"); 183 | text = text.replace(/කෝ/g, "@k`~"); 184 | text = text.replace(/ලෝ/g, "@l`~"); 185 | text = text.replace(/මෝ/g, "@m`~"); 186 | text = text.replace(/නෝ/g, "@n`~"); 187 | text = text.replace(/පෝ/g, "@p`~"); 188 | text = text.replace(/දෝ/g, "@q`~"); 189 | text = text.replace(/රෝ/g, "@r`~"); 190 | text = text.replace(/සෝ/g, "@s`~"); 191 | text = text.replace(/ටෝ/g, "@t`~"); 192 | text = text.replace(/වෝ/g, "@v`~"); 193 | text = text.replace(/තෝ/g, "@w`~"); 194 | text = text.replace(/භෝ/g, "@x`~"); 195 | text = text.replace(/යෝ/g, "@y`~"); 196 | text = text.replace(/ඤෝ/g, "@z`~"); 197 | text = text.replace(/ධෝ/g, "@{`~"); 198 | text = text.replace(/ථෝ/g, "@}`~"); 199 | text = text.replace(/ෂො/g, "@;`"); 200 | text = text.replace(/ඹො/g, "@B`"); 201 | text = text.replace(/ඡො/g, "@C`"); 202 | text = text.replace(/ඪො/g, "@D`"); 203 | text = text.replace(/ඝො/g, "@G`"); 204 | text = text.replace(/ඛො/g, "@K`"); 205 | text = text.replace(/ළො/g, "@L`"); 206 | text = text.replace(/ඟො/g, "@M`"); 207 | text = text.replace(/ණො/g, "@N`"); 208 | text = text.replace(/ඵො/g, "@P`"); 209 | text = text.replace(/ඨො/g, "@T`"); 210 | text = text.replace(/ඬො/g, "@V`"); 211 | text = text.replace(/ශො/g, "@X`"); 212 | text = text.replace(/ඥො/g, "@Z`"); 213 | text = text.replace(/ඳො/g, "@[`"); 214 | text = text.replace(/ක්‍ෂො/g, "@]`"); 215 | text = text.replace(/බො/g, "@b`"); 216 | text = text.replace(/චො/g, "@c`"); 217 | text = text.replace(/ඩො/g, "@d`"); 218 | text = text.replace(/ෆො/g, "@f`"); 219 | text = text.replace(/ගො/g, "@g`"); 220 | text = text.replace(/හො/g, "@h`"); 221 | text = text.replace(/ජො/g, "@j`"); 222 | text = text.replace(/කො/g, "@k`"); 223 | text = text.replace(/ලො/g, "@l`"); 224 | text = text.replace(/මො/g, "@m`"); 225 | text = text.replace(/නො/g, "@n`"); 226 | text = text.replace(/පො/g, "@p`"); 227 | text = text.replace(/දො/g, "@q`"); 228 | text = text.replace(/රො/g, "@r`"); 229 | text = text.replace(/සො/g, "@s`"); 230 | text = text.replace(/ටො/g, "@t`"); 231 | text = text.replace(/වො/g, "@v`"); 232 | text = text.replace(/තො/g, "@w`"); 233 | text = text.replace(/භො/g, "@x`"); 234 | text = text.replace(/යො/g, "@y`"); 235 | text = text.replace(/ඤො/g, "@z`"); 236 | text = text.replace(/ධො/g, "@{`"); 237 | text = text.replace(/ථො/g, "@}`"); 238 | text = text.replace(/ෂේ/g, "@;~"); 239 | text = text.replace(/ඹේ/g, "@B|"); 240 | text = text.replace(/ඡේ/g, "@C~"); 241 | text = text.replace(/ඪේ/g, "@D~"); 242 | text = text.replace(/ඝේ/g, "@G~"); 243 | text = text.replace(/ඛේ/g, "@K|"); 244 | text = text.replace(/ළේ/g, "@L~"); 245 | text = text.replace(/ඟේ/g, "@M~"); 246 | text = text.replace(/ණේ/g, "@N~"); 247 | text = text.replace(/ඵේ/g, "@P~"); 248 | text = text.replace(/ඨේ/g, "@T~"); 249 | text = text.replace(/ඬේ/g, "@V|"); 250 | text = text.replace(/ශේ/g, "@X~"); 251 | text = text.replace(/ඥේ/g, "@Z~"); 252 | text = text.replace(/ඳේ/g, "@[~"); 253 | text = text.replace(/ක්‍ෂේ/g, "@]~"); 254 | text = text.replace(/බේ/g, "@b|"); 255 | text = text.replace(/චේ/g, "@c|"); 256 | text = text.replace(/ඩේ/g, "@d|"); 257 | text = text.replace(/ෆේ/g, "@f~"); 258 | text = text.replace(/ගේ/g, "@g~"); 259 | text = text.replace(/හේ/g, "@h~"); 260 | text = text.replace(/කේ/g, "@k~"); 261 | text = text.replace(/ලේ/g, "@l~"); 262 | text = text.replace(/මේ/g, "@m|"); 263 | text = text.replace(/නේ/g, "@n~"); 264 | text = text.replace(/පේ/g, "@p~"); 265 | text = text.replace(/දේ/g, "@q~"); 266 | text = text.replace(/රේ/g, "@r~"); 267 | text = text.replace(/සේ/g, "@s~"); 268 | text = text.replace(/ටේ/g, "@t|"); 269 | text = text.replace(/වේ/g, "@v|"); 270 | text = text.replace(/තේ/g, "@w~"); 271 | text = text.replace(/භේ/g, "@x~"); 272 | text = text.replace(/යේ/g, "@y~"); 273 | text = text.replace(/ඤේ/g, "@z~"); 274 | text = text.replace(/ජේ/g, "@j~"); 275 | text = text.replace(/ථේ/g, "@}~"); 276 | text = text.replace(/ධේ/g, "@{|"); 277 | text = text.replace(/ෂෙ/g, "@;"); 278 | text = text.replace(/ඹෙ/g, "@B"); 279 | text = text.replace(/ඓ/g, "@e"); 280 | text = text.replace(/ඡෙ/g, "@C"); 281 | text = text.replace(/ඪෙ/g, "@D"); 282 | text = text.replace(/ඝෙ/g, "@G"); 283 | text = text.replace(/ඛෙ/g, "@K"); 284 | text = text.replace(/ළෙ/g, "@L"); 285 | text = text.replace(/ඟෙ/g, "@M"); 286 | text = text.replace(/ණෙ/g, "@N"); 287 | text = text.replace(/ඵෙ/g, "@P"); 288 | text = text.replace(/ඨෙ/g, "@T"); 289 | text = text.replace(/ඬෙ/g, "@V"); 290 | text = text.replace(/ශෙ/g, "@X"); 291 | text = text.replace(/ඥෙ/g, "@Z"); 292 | text = text.replace(/ඳෙ/g, "@["); 293 | text = text.replace(/ක්‍ෂෙ/g, "@]"); 294 | text = text.replace(/බෙ/g, "@b"); 295 | text = text.replace(/චෙ/g, "@c"); 296 | text = text.replace(/ඩෙ/g, "@d"); 297 | text = text.replace(/ෆෙ/g, "@f"); 298 | text = text.replace(/ගෙ/g, "@g"); 299 | text = text.replace(/හෙ/g, "@h"); 300 | text = text.replace(/ජෙ/g, "@j"); 301 | text = text.replace(/කෙ/g, "@k"); 302 | text = text.replace(/ලෙ/g, "@l"); 303 | text = text.replace(/මෙ/g, "@m"); 304 | text = text.replace(/නෙ/g, "@n"); 305 | text = text.replace(/පෙ/g, "@p"); 306 | text = text.replace(/දෙ/g, "@q"); 307 | text = text.replace(/රෙ/g, "@r"); 308 | text = text.replace(/සෙ/g, "@s"); 309 | text = text.replace(/ටෙ/g, "@t"); 310 | text = text.replace(/වෙ/g, "@v"); 311 | text = text.replace(/තෙ/g, "@w"); 312 | text = text.replace(/භෙ/g, "@x"); 313 | text = text.replace(/යෙ/g, "@y"); 314 | text = text.replace(/ඤෙ/g, "@z"); 315 | text = text.replace(/ධෙ/g, "@{"); 316 | text = text.replace(/ථෙ/g, "@}"); 317 | text = text.replace(/්‍ය/g, "&"); 318 | text = text.replace(/්‍ර/g, "Y"); 319 | text = text.replace(/රු/g, "r#"); 320 | text = text.replace(/රූ/g, "r$"); 321 | text = text.replace(/ආ/g, "a`"); 322 | text = text.replace(/ඇ/g, "a#"); 323 | text = text.replace(/ඈ/g, "a$"); 324 | text = text.replace(/ඌ/g, "u_"); 325 | text = text.replace(/ඖ/g, "o_"); 326 | text = text.replace(/ඒ/g, "e~"); 327 | text = text.replace(/ඍ/g, "s^"); 328 | text = text.replace(/ඎ/g, " s^^"); 329 | text = text.replace(/ඓ/g, "@e"); 330 | text = text.replace(/ඕ/g, "o|"); 331 | text = text.replace(/බ්/g, "b|"); 332 | text = text.replace(/ච්/g, "c|"); 333 | text = text.replace(/ඩ්/g, "d|"); 334 | text = text.replace(/ම්/g, "m|"); 335 | text = text.replace(/ඕ/g, "o|"); 336 | text = text.replace(/ට්/g, "t|"); 337 | text = text.replace(/ව්/g, "v|"); 338 | text = text.replace(/ධ්/g, "{|"); 339 | text = text.replace(/ඛ්/g, "K||"); 340 | text = text.replace(/ඟු/g, "MO"); 341 | text = text.replace(/ශු/g, "XO"); 342 | text = text.replace(/ගු/g, "gO"); 343 | text = text.replace(/කු/g, "kO"); 344 | text = text.replace(/තු/g, "wO"); 345 | text = text.replace(/භු/g, "xO"); 346 | text = text.replace(/ඟූ/g, "MS"); 347 | text = text.replace(/ශූ/g, "XS"); 348 | text = text.replace(/ගූ/g, "gS"); 349 | text = text.replace(/කූ/g, "kS"); 350 | text = text.replace(/තූ/g, "wS"); 351 | text = text.replace(/භූ/g, "xS"); 352 | text = text.replace(/ළු/g, "U"); 353 | text = text.replace(/රැ/g, "rF"); 354 | text = text.replace(/රෑ/g, "rH"); 355 | text = text.replace(/එ/g, "e"); 356 | text = text.replace(/ෂ/g, ";"); 357 | text = text.replace(/ං/g, "A"); 358 | text = text.replace(/ඃ/g, ":"); 359 | text = text.replace(/ඹ/g, "B"); 360 | text = text.replace(/ඡ/g, "C"); 361 | text = text.replace(/ඪ/g, "D"); 362 | text = text.replace(/ඝ/g, "G"); 363 | text = text.replace(/ඊ/g, "I"); 364 | text = text.replace(/ඣ/g, "J"); 365 | text = text.replace(/ඛ/g, "K"); 366 | text = text.replace(/ළ/g, "L"); 367 | text = text.replace(/ඟ/g, "M"); 368 | text = text.replace(/ණ/g, "N"); 369 | text = text.replace(/ඵ/g, "P"); 370 | text = text.replace(/ඨ/g, "T"); 371 | text = text.replace(/ළු/g, "U"); 372 | text = text.replace(/ඬ/g, "V"); 373 | text = text.replace(/ශ/g, "X"); 374 | text = text.replace(/ඥ/g, "Z"); 375 | text = text.replace(/ඳ/g, "["); 376 | text = text.replace(/ක්‍ෂ/g, "]"); 377 | text = text.replace(/අ/g, "a"); 378 | text = text.replace(/බ/g, "b"); 379 | text = text.replace(/ච/g, "c"); 380 | text = text.replace(/ඩ/g, "d"); 381 | text = text.replace(/ඵ/g, "e"); 382 | text = text.replace(/ෆ/g, "f"); 383 | text = text.replace(/ග/g, "g"); 384 | text = text.replace(/හ/g, "h"); 385 | text = text.replace(/ඉ/g, "i"); 386 | text = text.replace(/ජ/g, "j"); 387 | text = text.replace(/ක/g, "k"); 388 | text = text.replace(/ල/g, "l"); 389 | text = text.replace(/ම/g, "m"); 390 | text = text.replace(/න/g, "n"); 391 | text = text.replace(/ඔ/g, "o"); 392 | text = text.replace(/ප/g, "p"); 393 | text = text.replace(/ද/g, "q"); 394 | text = text.replace(/ර/g, "r"); 395 | text = text.replace(/ස/g, "s"); 396 | text = text.replace(/ට/g, "t"); 397 | text = text.replace(/උ/g, "u"); 398 | text = text.replace(/ව/g, "v"); 399 | text = text.replace(/ත/g, "w"); 400 | text = text.replace(/භ/g, "x"); 401 | text = text.replace(/ය/g, "y"); 402 | text = text.replace(/ඤ/g, "z"); 403 | text = text.replace(/ධ/g, "{"); 404 | text = text.replace(/ථ/g, "}"); 405 | text = text.replace(/ෲ/g, "^^"); 406 | text = text.replace(/ැ/g, "#"); 407 | text = text.replace(/ෑ/g, "$"); 408 | text = text.replace(/ු/g, "E"); 409 | text = text.replace(/ූ/g, "R"); 410 | text = text.replace(/ි/g, "Q"); 411 | text = text.replace(/ී/g, "W"); 412 | text = text.replace(/ෘ/g, "\^"); 413 | text = text.replace(/ෟ/g, "_"); 414 | text = text.replace(/ා/g, "`"); 415 | text = text.replace(/්/g, "~"); 416 | text = text.replace(/¶/g, ":"); 417 | return text 418 | } -------------------------------------------------------------------------------- /src/translators/thibus_to_unicode.ts: -------------------------------------------------------------------------------- 1 | export const thibusToUnicode = function (text: string) { 2 | text = text.replace(/Ý/g, "À"); 3 | text = text.replace(/μ/g, "µ"); 4 | text = text.replace(/´/g, "ÿ"); 5 | text = text.replace(/ÁÛ/g, "ශ්‍රී"); 6 | text = text.replace(/µµùÜß/g, "ත්‍රෛ"); 7 | text = text.replace(/µûÜß\[/g, "ප්‍රෞ"); 8 | text = text.replace(/µµÁ/g, "ශෛ"); 9 | text = text.replace(/µµë/g, "චෛ"); 10 | text = text.replace(/µµí/g, "ජෛ"); 11 | text = text.replace(/µµõ/g, "නෛ"); 12 | text = text.replace(/µµæ/g, "කෛ"); 13 | text = text.replace(/µµÿ/g, "මෛ"); 14 | text = text.replace(/µµû/g, "පෛ"); 15 | text = text.replace(/µµõ/g, "තෛ"); 16 | text = text.replace(/µµø/g, "ධෛ"); 17 | text = text.replace(/µµ/g, "ටේ"); 273 | text = text.replace(/µÓ/g, "වේ"); 274 | text = text.replace(/µõß/g, "තේ"); 275 | text = text.replace(/µþß/g, "භේ"); 276 | text = text.replace(/µ×ß/g, "යේ"); 277 | text = text.replace(/µîÀß/g, "ඤේ"); 278 | text = text.replace(/µøß/g, "ධේ"); 279 | text = text.replace(/µöß/g, "ථේ"); 280 | text = text.replace(/µíß/g, "ජේ"); 281 | text = text.replace(/wE/g, "ඈ"); 282 | text = text.replace(/à\|/g, "ඈ"); 283 | text = text.replace(/µÂ/g, "ෂෙ"); 284 | text = text.replace(/µÖ/g, "ඹෙ"); 285 | text = text.replace(/µü/g, "ඓ"); 286 | text = text.replace(/µì/g, "ඡෙ"); 287 | text = text.replace(/µé/g, "ඝෙ"); 288 | text = text.replace(/µç/g, "ඛෙ"); 289 | text = text.replace(/µ\}/g, "ළෙ"); 290 | text = text.replace(/µÙ/g, "ලෙ"); 291 | text = text.replace(/µê/g, "ඟෙ"); 292 | text = text.replace(/µó/g, "ණෙ"); 293 | text = text.replace(/µü/g, "ඵෙ"); 294 | text = text.replace(/µñ/g, "ඨෙ"); 295 | text = text.replace(/µô/g, "ඬෙ"); 296 | text = text.replace(/µÁ/g, "ශෙ"); 297 | text = text.replace(/µïÀ/g, "ඥෙ"); 298 | text = text.replace(/µúÀ/g, "ඳෙ"); 299 | text = text.replace(/µ†/g, "ක්‍ෂෙ"); 300 | text = text.replace(/µý/g, "බෙ"); 301 | text = text.replace(/µë/g, "චෙ"); 302 | text = text.replace(/µò/g, "ඩෙ"); 303 | text = text.replace(/µ\\/g, "ෆෙ"); 304 | text = text.replace(/µè/g, "ගෙ"); 305 | text = text.replace(/µþ/g, "හෙ"); 306 | text = text.replace(/µ\{/g, "භෙ"); 307 | text = text.replace(/µí/g, "ජෙ"); 308 | text = text.replace(/µæ/g, "කෙ"); 309 | text = text.replace(/µ´/g, "මෙ"); 310 | text = text.replace(/µù/g, "නෙ"); 311 | text = text.replace(/µû/g, "පෙ"); 312 | text = text.replace(/µ÷À/g, "දෙ"); 313 | text = text.replace(/µØ/g, "රෙ"); 314 | text = text.replace(/µ\&/g, "සෙ"); 315 | text = text.replace(/µð/g, "ටෙ"); 316 | text = text.replace(/µ/g, "ට්"); 383 | text = text.replace(/\£/g, "ඛී"); 384 | text = text.replace(/\¦/g, "චී"); 385 | text = text.replace(/ª/g, "ඡී"); 386 | text = text.replace(/«/g, "ඹී"); 387 | text = text.replace(/¯/g, "ටී"); 388 | text = text.replace(/²/g, "ඩී"); 389 | text = text.replace(/¶/g, "ජී"); 390 | text = text.replace(/»/g, "ඬී"); 391 | text = text.replace(/¾/g, "ධී"); 392 | text = text.replace(/Ä/g, "බී"); 393 | text = text.replace(/Ç/g, "මී"); 394 | text = text.replace(/Î/g, "රී"); 395 | text = text.replace(/÷ÀÛ/g, "දී"); 396 | text = text.replace(/â/g, "ඊ"); 397 | text = text.replace(/Ò/g, "වී"); 398 | text = text.replace(/á/g, "ඉ"); 399 | text = text.replace(/¢/g, "ඛි"); 400 | text = text.replace(/\¥/g, "චි"); 401 | text = text.replace(/©/g, "ඡි"); 402 | text = text.replace(/¬/g, "ජි"); 403 | text = text.replace(/®/g, "ටි"); 404 | text = text.replace(/±/g, "ඩි"); 405 | text = text.replace(/½/g, "ධි"); 406 | text = text.replace(/Ã/g, "බි"); 407 | text = text.replace(/Æ/g, "මි"); 408 | text = text.replace(/É/g, "ඹි"); 409 | text = text.replace(/Í/g, "රි"); 410 | text = text.replace(/Ñ/g, "වි"); 411 | text = text.replace(/à\$/g, "ආ"); 412 | text = text.replace(/&/g, "ස"); 413 | text = text.replace(/Hda/g, "ඝ්‍යෝ"); 20 | text = text.replace(/fLHda/g, "ඛ්‍යෝ"); 21 | text = text.replace(/fda/g, "ඝෝ"); 168 | text = text.replace(/fLda/g, "ඛෝ"); 169 | text = text.replace(/fd/g, "ඝො"); 206 | text = text.replace(/fLd/g, "ඛො"); 207 | text = text.replace(/fa/g, "ඝේ"); 244 | text = text.replace(/fÄ/g, "ඛේ"); 245 | text = text.replace(/f/g, "ඝෙ"); 283 | text = text.replace(/fL/g, "ඛෙ"); 284 | text = text.replace(/f/g, "ඝ"); 458 | text = text.replace(/B/g, "ඊ"); 459 | text = text.replace(/CO/g, "ඣ"); 460 | text = text.replace(/L/g, "ඛ"); 461 | text = text.replace(/Hda/g, "ඝ්‍යෝ"); 27 | text = text.replace(/fLHda/g, "ඛ්‍යෝ"); 28 | text = text.replace(/f%da/g, "ඝ්‍රෝ"); 102 | text = text.replace(/fY%da/g, "ශ්‍රෝ"); 103 | text = text.replace(/fÌ%da/g, "ක්‍ෂ්‍රෝ"); 104 | text = text.replace(/fn%da/g, "බ්‍රෝ"); 105 | text = text.replace(/fv%da/g, "ඩ්‍රෝ"); 106 | text = text.replace(/f\*%da/g, "ෆ්‍රෝ"); 107 | text = text.replace(/f\.%da/g, "ග්‍රෝ"); 108 | text = text.replace(/fl%da/g, "ක්‍රෝ"); 109 | text = text.replace(/fm%da/g, "ප්‍රෝ"); 110 | text = text.replace(/føda/g, "ද්‍රෝ"); 111 | text = text.replace(/fi%da/g, "ස්‍රෝ"); 112 | text = text.replace(/fg%da/g, "ට්‍රෝ"); 113 | text = text.replace(/f;%da/g, "ත්‍රෝ"); 114 | text = text.replace(/fY%d/g, "ශ්‍රො"); 115 | text = text.replace(/fv%d/g, "ඩ්‍රො"); 116 | text = text.replace(/f\*%d/g, "ෆ්‍රො"); 117 | text = text.replace(/f\.%d/g, "ග්‍රො"); 118 | text = text.replace(/fl%d/g, "ක්‍රො"); 119 | text = text.replace(/fm%d/g, "ප්‍රො"); 120 | text = text.replace(/fød/g, "ද්‍රො"); 121 | text = text.replace(/fi%d/g, "ස්‍රො"); 122 | text = text.replace(/fg%d/g, "ට්‍රො"); 123 | text = text.replace(/f;%d/g, "ත්‍රො"); 124 | text = text.replace(/%a/g, "a%"); 125 | text = text.replace(/fYa%/g, "ශ්‍රේ"); 126 | text = text.replace(/fí%/g, "බ්‍රේ"); 127 | text = text.replace(/fâ%/g, "ඩ්‍රේ"); 128 | text = text.replace(/f\*a%/g, "ෆ්‍රේ"); 129 | text = text.replace(/f\.a%/g, "ග්‍රේ"); 130 | text = text.replace(/fla%/g, "ක්‍රේ"); 131 | text = text.replace(/fma%/g, "ප්‍රේ"); 132 | text = text.replace(/føa/g, "ද්‍රේ"); 133 | text = text.replace(/fia%/g, "ස්‍රේ"); 134 | text = text.replace(/f;a%/g, "ත්‍රේ"); 135 | text = text.replace(/fè%/g, "ධ්‍රේ"); 136 | text = text.replace(/fI%/g, "ෂ්‍රෙ"); 137 | text = text.replace(/fY%/g, "ශ්‍රෙ"); 138 | text = text.replace(/fn%/g, "බ්‍රෙ"); 139 | text = text.replace(/f\*%/g, "ෆ්‍රෙ"); 140 | text = text.replace(/f\.%/g, "ග්‍රෙ"); 141 | text = text.replace(/fl%/g, "ක්‍රෙ"); 142 | text = text.replace(/fm%/g, "ප්‍රෙ"); 143 | text = text.replace(/fø/g, "ද්‍රෙ"); 144 | text = text.replace(/fi%/g, "ස්‍රෙ"); 145 | text = text.replace(/f;%/g, "ත්‍රෙ"); 146 | text = text.replace(/fN%/g, "භ්‍රෙ"); 147 | text = text.replace(/fO%/g, "ධ්‍රෙ"); 148 | text = text.replace(/H/g, "්‍ය"); 149 | text = text.replace(/%/g, "්‍ර"); 150 | text = text.replace(/fI!/g, "ෂෞ"); 151 | text = text.replace(/fP!/g, "ඡෞ"); 152 | text = text.replace(/fY!/g, "ශෞ"); 153 | text = text.replace(/fn!/g, "බෞ"); 154 | text = text.replace(/fp!/g, "චෞ"); 155 | text = text.replace(/fv!/g, "ඩෞ"); 156 | text = text.replace(/f\*!/g, "ෆෞ"); 157 | text = text.replace(/f\.!/g, "ගෞ"); 158 | text = text.replace(/fc!/g, "ජෞ"); 159 | text = text.replace(/fl!/g, "කෞ"); 160 | text = text.replace(/f,!/g, "ලෞ"); 161 | text = text.replace(/fu!/g, "මෞ"); 162 | text = text.replace(/fk!/g, "නෞ"); 163 | text = text.replace(/fm!/g, "පෞ"); 164 | text = text.replace(/fo!/g, "දෞ"); 165 | text = text.replace(/fr!/g, "රෞ"); 166 | text = text.replace(/fi!/g, "සෞ"); 167 | text = text.replace(/fg!/g, "ටෞ"); 168 | text = text.replace(/f;!/g, "තෞ"); 169 | text = text.replace(/fN!/g, "භෞ"); 170 | text = text.replace(/f\[!/g, "ඤෞ"); 171 | text = text.replace(/fIda/g, "ෂෝ"); 172 | text = text.replace(/fUda/g, "ඹෝ"); 173 | text = text.replace(/fPda/g, "ඡෝ"); 174 | text = text.replace(/fVda/g, "ඪෝ"); 175 | text = text.replace(/f>da/g, "ඝෝ"); 176 | text = text.replace(/fLda/g, "ඛෝ"); 177 | text = text.replace(/fd/g, "ඝො"); 215 | text = text.replace(/fLd/g, "ඛො"); 216 | text = text.replace(/fa/g, "ඝේ"); 254 | text = text.replace(/fÄ/g, "ඛේ"); 255 | text = text.replace(/f/g, "ඝෙ"); 294 | text = text.replace(/fn/g, "ඛෙ"); 295 | text = text.replace(/f/g, "ඝ"); 424 | text = text.replace(/B/g, "ඊ"); 425 | text = text.replace(/CO/g, "ඣ"); 426 | text = text.replace(/L/g, "ඛ"); 427 | text = text.replace(//g, "ඝ"); 445 | text = text.replace(/\?/g, "රෑ"); 446 | text = text.replace(/B/g, "ඊ"); 447 | text = text.replace(/C/g, "ක‍"); 448 | text = text.replace(/F/g, "ත‍"); 449 | text = text.replace(/G/g, "ඨ"); 450 | text = text.replace(/H/g, "්‍ය"); 451 | text = text.replace(/I/g, "ෂ"); 452 | text = text.replace(/J/g, "න‍"); 453 | text = text.replace(/K/g, "ණ"); 454 | text = text.replace(/L/g, "ඛ"); 455 | text = text.replace(/M/g, "ඵ"); 456 | text = text.replace(/N/g, "භ"); 457 | text = text.replace(/O/g, "ධ"); 458 | text = text.replace(/P/g, "ඡ"); 459 | text = text.replace(/R/g, "ඍ"); 460 | text = text.replace(/T/g, "ඔ"); 461 | text = text.replace(/U/g, "ඹ"); 462 | text = text.replace(/V/g, "ඪ"); 463 | text = text.replace(/W/g, "උ"); 464 | text = text.replace(/Y/g, "ශ"); 465 | text = text.replace(/\[/g, "ඤ"); 466 | text = text.replace(/b/g, "ඉ"); 467 | text = text.replace(/c/g, "ජ"); 468 | text = text.replace(/g/g, "ට"); 469 | text = text.replace(/h/g, "ය"); 470 | text = text.replace(/i/g, "ස"); 471 | text = text.replace(/j/g, "ව"); 472 | text = text.replace(/k/g, "න"); 473 | text = text.replace(/l/g, "ක"); 474 | text = text.replace(/m/g, "ප"); 475 | text = text.replace(/n/g, "බ"); 476 | text = text.replace(/o/g, "ද"); 477 | text = text.replace(/p/g, "ච"); 478 | text = text.replace(/r/g, "ර"); 479 | text = text.replace(/t/g, "එ"); 480 | text = text.replace(/u/g, "ම"); 481 | text = text.replace(/v/g, "ඩ"); 482 | text = text.replace(/w/g, "අ"); 483 | text = text.replace(/y/g, "හ"); 484 | text = text.replace(/Õ/g, "ඟ"); 485 | text = text.replace(/\{/g, "ඥ"); 486 | text = text.replace(/\|/g, "ඳ"); 487 | text = text.replace(/Ì/g, "ක්‍ෂ"); 488 | text = text.replace(/µ/g, "ද්‍ය"); 489 | text = text.replace(/e/g, "ැ"); 490 | text = text.replace(/E/g, "ෑ"); 491 | text = text.replace(/f/g, "ෙ"); 492 | text = text.replace(/q/g, "ු"); 493 | text = text.replace(/s/g, "ි"); 494 | text = text.replace(/Q/g, "ූ"); 495 | text = text.replace(/S/g, "ී"); 496 | text = text.replace(/D/g, "ෘ"); 497 | text = text.replace(/DD/g, "ෲ"); 498 | text = text.replace(/\!/g, "ෟ"); 499 | text = text.replace(/d/g, "ා"); 500 | text = text.replace(/a/g, "්"); 501 | text = text.replace(/♥/g, "."); 502 | text = text.replace(/Ѫ/g, "("); 503 | text = text.replace(/Ѧ/g, ")"); 504 | text = text.replace(/ʘ/g, ","); 505 | text = text.replace(/Ϣ/g, "?"); 506 | text = text.replace(/ƨ/g, ":"); 507 | text = text.replace(/Ɣ/g, "%"); 508 | text = text.replace(/ɤ/g, "/"); 509 | return text 510 | }; 511 | -------------------------------------------------------------------------------- /src/translators/unicode_to_dl_manel.ts: -------------------------------------------------------------------------------- 1 | export const unicodeToDlManel = function (text: string) { 2 | text = text.replace(/,/g, "₩"); 3 | text = text.replace(/\./g, "�"); 4 | text = text.replace(/\(/g, "→"); 5 | text = text.replace(/\)/g, "←"); 6 | text = text.replace(/%/g, "ᅰ"); 7 | text = text.replace(/\//g, "$"); 8 | text = text.replace(/–/g, "ᅯ"); 9 | text = text.replace(/\?/g, "ᅮ"); 10 | text = text.replace(/!/g, "ᅭ"); 11 | text = text.replace(/\=/g, "ᅬ"); 12 | text = text.replace(/\'/g, "ᅫ"); 13 | text = text.replace(/\+/g, "ᅪ"); 14 | text = text.replace(/\:/g, "ᅩ"); 15 | text = text.replace(/\÷/g, "ᅨ"); 16 | text = text.replace(/\;/g, "ᄊ"); 17 | text = text.replace(/ත්‍රෛ/g, "ff;%"); 18 | text = text.replace(/ශෛ/g, "ffY"); 19 | text = text.replace(/චෛ/g, "ffp"); 20 | text = text.replace(/ජෛ/g, "ffc"); 21 | text = text.replace(/කෛ/g, "ffl"); 22 | text = text.replace(/මෛ/g, "ffu"); 23 | text = text.replace(/පෛ/g, "ffm"); 24 | text = text.replace(/දෛ/g, "ffo"); 25 | text = text.replace(/තෛ/g, "ff;"); 26 | text = text.replace(/නෛ/g, "ffk"); 27 | text = text.replace(/ධෛ/g, "ffO"); 28 | text = text.replace(/වෛ/g, "ffj"); 29 | text = text.replace(/ප්‍රෞ/g, "fm%!"); 30 | text = text.replace(/ෂ්‍යෝ/g, "fIHda"); 31 | text = text.replace(/ඡ්‍යෝ/g, "fPHda"); 32 | text = text.replace(/ඪ්‍යෝ/g, "fVHda"); 33 | text = text.replace(/ඝ්‍යෝ/g, "f>Hda"); 34 | text = text.replace(/ඛ්‍යෝ/g, "fLHda"); 35 | text = text.replace(/ළ්‍යෝ/g, "f%da"); 108 | text = text.replace(/ශ්‍රෝ/g, "fY%da"); 109 | text = text.replace(/ක්‍ෂ්‍රෝ/g, "fÌ%da"); 110 | text = text.replace(/බ්‍රෝ/g, "fn%da"); 111 | text = text.replace(/ඩ්‍රෝ/g, "fv%da"); 112 | text = text.replace(/ෆ්‍රෝ/g, "f*%da"); 113 | text = text.replace(/ග්‍රෝ/g, "f.%da"); 114 | text = text.replace(/ක්‍රෝ/g, "fl%da"); 115 | text = text.replace(/ප්‍රෝ/g, "fm%da"); 116 | text = text.replace(/ද්‍රෝ/g, "føda"); 117 | text = text.replace(/ස්‍රෝ/g, "fi%da"); 118 | text = text.replace(/ට්‍රෝ/g, "fg%da"); 119 | text = text.replace(/ත්‍රෝ/g, "f;%da"); 120 | text = text.replace(/ශ්‍රො/g, "fY%d"); 121 | text = text.replace(/ඩ්‍රො/g, "fv%d"); 122 | text = text.replace(/ෆ්‍රො/g, "f*%d"); 123 | text = text.replace(/ග්‍රො/g, "f.%d"); 124 | text = text.replace(/ක්‍රො/g, "fl%d"); 125 | text = text.replace(/ප්‍රො/g, "fm%d"); 126 | text = text.replace(/ද්‍රො/g, "fød"); 127 | text = text.replace(/ස්‍රො/g, "fi%d"); 128 | text = text.replace(/ට්‍රො/g, "fg%d"); 129 | text = text.replace(/ත්‍රො/g, "f;%d"); 130 | text = text.replace(/ශ්‍රේ/g, "fYa%"); 131 | text = text.replace(/බ්‍රේ/g, "fí%"); 132 | text = text.replace(/ඩ්‍රේ/g, "fâ%"); 133 | text = text.replace(/ෆ්‍රේ/g, "f*a%"); 134 | text = text.replace(/ග්‍රේ/g, "f.a%"); 135 | text = text.replace(/ක්‍රේ/g, "fla%"); 136 | text = text.replace(/ප්‍රේ/g, "fma%"); 137 | text = text.replace(/ද්‍රේ/g, "føa"); 138 | text = text.replace(/ස්‍රේ/g, "fia%"); 139 | text = text.replace(/ත්‍රේ/g, "f;a%"); 140 | text = text.replace(/ධ්‍රේ/g, "fè%"); 141 | text = text.replace(/ෂ්‍රෙ/g, "fI%"); 142 | text = text.replace(/ශ්‍රෙ/g, "fY%"); 143 | text = text.replace(/බ්‍රෙ/g, "fn%"); 144 | text = text.replace(/ෆ්‍රෙ/g, "f*%"); 145 | text = text.replace(/ග්‍රෙ/g, "f.%"); 146 | text = text.replace(/ක්‍රෙ/g, "fl%"); 147 | text = text.replace(/ප්‍රෙ/g, "fm%"); 148 | text = text.replace(/ද්‍රෙ/g, "fø"); 149 | text = text.replace(/ස්‍රෙ/g, "fi%"); 150 | text = text.replace(/ත්‍රෙ/g, "f;%"); 151 | text = text.replace(/භ්‍රෙ/g, "fN%"); 152 | text = text.replace(/ධ්‍රෙ/g, "fO%"); 153 | text = text.replace(/්‍ය/g, "H"); 154 | text = text.replace(/්‍ර/g, "%"); 155 | text = text.replace(/ෂෞ/g, "fI!"); 156 | text = text.replace(/ඡෞ/g, "fP!"); 157 | text = text.replace(/ශෞ/g, "fY!"); 158 | text = text.replace(/බෞ/g, "fn!"); 159 | text = text.replace(/චෞ/g, "fp!"); 160 | text = text.replace(/ඩෞ/g, "fv!"); 161 | text = text.replace(/ෆෞ/g, "f*!"); 162 | text = text.replace(/ගෞ/g, "f.!"); 163 | text = text.replace(/ජෞ/g, "fc!"); 164 | text = text.replace(/කෞ/g, "fl!"); 165 | text = text.replace(/ලෞ/g, "f,!"); 166 | text = text.replace(/මෞ/g, "fu!"); 167 | text = text.replace(/නෞ/g, "fk!"); 168 | text = text.replace(/පෞ/g, "fm!"); 169 | text = text.replace(/දෞ/g, "fo!"); 170 | text = text.replace(/රෞ/g, "fr!"); 171 | text = text.replace(/සෞ/g, "fi!"); 172 | text = text.replace(/ටෞ/g, "fg!"); 173 | text = text.replace(/තෞ/g, "f;!"); 174 | text = text.replace(/භෞ/g, "fN!"); 175 | text = text.replace(/ඤෞ/g, "f[!"); 176 | text = text.replace(/ෂෝ/g, "fIda"); 177 | text = text.replace(/ඹෝ/g, "fUda"); 178 | text = text.replace(/ඡෝ/g, "fPda"); 179 | text = text.replace(/ඪෝ/g, "fVda"); 180 | text = text.replace(/ඝෝ/g, "f>da"); 181 | text = text.replace(/ඛෝ/g, "fLda"); 182 | text = text.replace(/ළෝ/g, "fd"); 220 | text = text.replace(/ඛො/g, "fLd"); 221 | text = text.replace(/ළො/g, "fa"); 259 | text = text.replace(/ඛේ/g, "fÄ"); 260 | text = text.replace(/ළේ/g, "f"); 299 | text = text.replace(/ඛෙ/g, "fn"); 300 | text = text.replace(/ළෙ/g, "f<"); 301 | text = text.replace(/ඟෙ/g, "fÛ"); 302 | text = text.replace(/ණෙ/g, "fK"); 303 | text = text.replace(/ඵෙ/g, "fM"); 304 | text = text.replace(/ඨෙ/g, "fG"); 305 | text = text.replace(/ඬෙ/g, "fË"); 306 | text = text.replace(/ශෙ/g, "fY"); 307 | text = text.replace(/ඥෙ/g, "f{"); 308 | text = text.replace(/ඳෙ/g, "fË"); 309 | text = text.replace(/ක්‍ෂෙ/g, "fÌ"); 310 | text = text.replace(/බෙ/g, "fn"); 311 | text = text.replace(/චෙ/g, "fp"); 312 | text = text.replace(/ඩෙ/g, "fv"); 313 | text = text.replace(/ෆෙ/g, "f*"); 314 | text = text.replace(/ගෙ/g, "f."); 315 | text = text.replace(/හෙ/g, "fy"); 316 | text = text.replace(/ජෙ/g, "fc"); 317 | text = text.replace(/කෙ/g, "fl"); 318 | text = text.replace(/ලෙ/g, "f,"); 319 | text = text.replace(/මෙ/g, "fu"); 320 | text = text.replace(/නෙ/g, "fk"); 321 | text = text.replace(/පෙ/g, "fm"); 322 | text = text.replace(/දෙ/g, "fo"); 323 | text = text.replace(/රෙ/g, "fr"); 324 | text = text.replace(/සෙ/g, "fi"); 325 | text = text.replace(/ටෙ/g, "fg"); 326 | text = text.replace(/වෙ/g, "fj"); 327 | text = text.replace(/තෙ/g, "f;"); 328 | text = text.replace(/භෙ/g, "fN"); 329 | text = text.replace(/යෙ/g, "fh"); 330 | text = text.replace(/ඤෙ/g, "f["); 331 | text = text.replace(/ධෙ/g, "fO"); 332 | text = text.replace(/ථෙ/g, "f:"); 333 | text = text.replace(/තු/g, ";="); 334 | text = text.replace(/ගු/g, ".="); 335 | text = text.replace(/කු/g, "l="); 336 | text = text.replace(/තූ/g, ";+"); 337 | text = text.replace(/ගූ/g, ".+"); 338 | text = text.replace(/කූ/g, "l+"); 339 | text = text.replace(/රු/g, "re"); 340 | text = text.replace(/රූ/g, "rE"); 341 | text = text.replace(/ආ/g, "wd"); 342 | text = text.replace(/ඇ/g, "we"); 343 | text = text.replace(/ඈ/g, "wE"); 344 | text = text.replace(/ඌ/g, "W!"); 345 | text = text.replace(/ඖ/g, "T!"); 346 | text = text.replace(/ඒ/g, "ta"); 347 | text = text.replace(/ඕ/g, "´"); 348 | text = text.replace(/ඳි/g, "¢"); 349 | text = text.replace(/ඳී/g, "£"); 350 | text = text.replace(/දූ/g, "¥"); 351 | text = text.replace(/දී/g, "§"); 352 | text = text.replace(/ලූ/g, "¨"); 353 | text = text.replace(/ර්‍ය/g, "©"); 354 | text = text.replace(/ඳූ/g, "ª"); 355 | text = text.replace(/ර්/g, "¾"); 356 | text = text.replace(/ඨි/g, "À"); 357 | text = text.replace(/ඨී/g, "Á"); 358 | text = text.replace(/ඡී/g, "Â"); 359 | text = text.replace(/ඛ්/g, "Ä"); 360 | text = text.replace(/ඛි/g, "Å"); 361 | text = text.replace(/ලු/g, "Æ"); 362 | text = text.replace(/ඛී/g, "Ç"); 363 | text = text.replace(/දි/g, "È"); 364 | text = text.replace(/ච්/g, "É"); 365 | text = text.replace(/ජ්/g, "Ê"); 366 | text = text.replace(/රී/g, "Í"); 367 | text = text.replace(/ඪී/g, "Î"); 368 | text = text.replace(/ඪී/g, "Ð,"); 369 | text = text.replace(/චි/g, "Ñ"); 370 | text = text.replace(/ථී/g, "Ò"); 371 | text = text.replace(/ථී/g, "Ó"); 372 | text = text.replace(/ජී/g, "Ô"); 373 | text = text.replace(/චී/g, "Ö"); 374 | text = text.replace(/ඞ්/g, "Ù"); 375 | text = text.replace(/ඵී/g, "Ú"); 376 | text = text.replace(/ට්/g, "Ü"); 377 | text = text.replace(/ඵි/g, "Ý"); 378 | text = text.replace(/රි/g, "ß"); 379 | text = text.replace(/ටී/g, "à"); 380 | text = text.replace(/ටි/g, "á"); 381 | text = text.replace(/ඩ්/g, "â"); 382 | text = text.replace(/ඩී/g, "ã"); 383 | text = text.replace(/ඩි/g, "ä"); 384 | text = text.replace(/ඬ්/g, "å"); 385 | text = text.replace(/ඬි/g, "ç"); 386 | text = text.replace(/ධ්/g, "è"); 387 | text = text.replace(/ඬී/g, "é"); 388 | text = text.replace(/ධි/g, "ê"); 389 | text = text.replace(/ධී/g, "ë"); 390 | text = text.replace(/බි/g, "ì"); 391 | text = text.replace(/බ්/g, "í"); 392 | text = text.replace(/බී/g, "î"); 393 | text = text.replace(/ම්/g, "ï"); 394 | text = text.replace(/ජි/g, "ð"); 395 | text = text.replace(/මි/g, "ñ"); 396 | text = text.replace(/ඹ්/g, "ò"); 397 | text = text.replace(/මී/g, "ó"); 398 | text = text.replace(/ඹි/g, "ô"); 399 | text = text.replace(/ව්/g, "õ"); 400 | text = text.replace(/ඹී/g, "ö"); 401 | text = text.replace(/ඳු/g, "÷"); 402 | text = text.replace(/ද්‍ර/g, "ø"); 403 | text = text.replace(/වී/g, "ù"); 404 | text = text.replace(/වි/g, "ú"); 405 | text = text.replace(/ඞ්/g, "û"); 406 | text = text.replace(/ඞී/g, "ü"); 407 | text = text.replace(/ඡි/g, "ý"); 408 | text = text.replace(/ඡ්/g, "þ"); 409 | text = text.replace(/දු/g, "ÿ"); 410 | text = text.replace(/ජ්/g, "–"); 411 | text = text.replace(/ර්‍ණ/g, "“"); 412 | text = text.replace(/ණී/g, "”"); 413 | text = text.replace(/ජී/g, "„"); 414 | text = text.replace(/ඡි/g, "‰"); 415 | text = text.replace(/ඩි/g, ""); 416 | text = text.replace(/ඤු/g, "™"); 417 | text = text.replace(/ග/g, "."); 418 | text = text.replace(/ළු/g, "¿"); 419 | text = text.replace(/ෂ/g, "I"); 420 | text = text.replace(/ං/g, "x"); 421 | text = text.replace(/ඃ/g, "#"); 422 | text = text.replace(/ඹ/g, "U"); 423 | text = text.replace(/ඡ/g, "P"); 424 | text = text.replace(/ඪ/g, "V"); 425 | text = text.replace(/ඝ/g, ">"); 426 | text = text.replace(/ඊ/g, "B"); 427 | text = text.replace(/ඣ/g, "CO"); 428 | text = text.replace(/ඛ/g, "L"); 429 | text = text.replace(/ළ/g, "<"); 430 | text = text.replace(/ඟ/g, "Û"); 431 | text = text.replace(/ණ/g, "K"); 432 | text = text.replace(/ඵ/g, "M"); 433 | text = text.replace(/ඨ/g, "G"); 434 | text = text.replace(/ඃ/g, "#"); 435 | text = text.replace(/\"/g, ","); 436 | text = text.replace(/\//g, "$"); 437 | text = text.replace(/\)/g, "&"); 438 | text = text.replace(/:/g, "("); 439 | text = text.replace(/-/g, ")"); 440 | text = text.replace(/ෆ/g, "*"); 441 | text = text.replace(/ල/g, ","); 442 | text = text.replace(/-/g, "-"); 443 | text = text.replace(/රැ/g, "/"); 444 | text = text.replace(/ථ/g, ":"); 445 | text = text.replace(/ත/g, ";"); 446 | text = text.replace(/ළ/g, "<"); 447 | text = text.replace(/ඝ/g, ">"); 448 | text = text.replace(/රෑ/g, "?"); 449 | text = text.replace(/ඊ/g, "B"); 450 | text = text.replace(/ක‍/g, "C"); 451 | text = text.replace(/‍ෘ/g, "D"); 452 | text = text.replace(/ෑ/g, "E"); 453 | text = text.replace(/ත‍/g, "F"); 454 | text = text.replace(/ඨ/g, "G"); 455 | text = text.replace(/්‍ය/g, "H"); 456 | text = text.replace(/ෂ/g, "I"); 457 | text = text.replace(/න‍/g, "J"); 458 | text = text.replace(/ණ/g, "K"); 459 | text = text.replace(/ඛ/g, "L"); 460 | text = text.replace(/ඵ/g, "M"); 461 | text = text.replace(/භ/g, "N"); 462 | text = text.replace(/ධ/g, "O"); 463 | text = text.replace(/ඡ/g, "P"); 464 | text = text.replace(/ඍ/g, "R"); 465 | text = text.replace(/ඔ/g, "T"); 466 | text = text.replace(/ඹ/g, "U"); 467 | text = text.replace(/ඪ/g, "V"); 468 | text = text.replace(/උ/g, "W"); 469 | text = text.replace(/ශ/g, "Y"); 470 | text = text.replace(/ඤ/g, "["); 471 | text = text.replace(/ඉ/g, "b"); 472 | text = text.replace(/ජ/g, "c"); 473 | text = text.replace(/ට/g, "g"); 474 | text = text.replace(/ය/g, "h"); 475 | text = text.replace(/ස/g, "i"); 476 | text = text.replace(/ව/g, "j"); 477 | text = text.replace(/න/g, "k"); 478 | text = text.replace(/ක/g, "l"); 479 | text = text.replace(/ප/g, "m"); 480 | text = text.replace(/බ/g, "n"); 481 | text = text.replace(/ද/g, "o"); 482 | text = text.replace(/ච/g, "p"); 483 | text = text.replace(/ර/g, "r"); 484 | text = text.replace(/එ/g, "t"); 485 | text = text.replace(/ම/g, "u"); 486 | text = text.replace(/ඩ/g, "v"); 487 | text = text.replace(/අ/g, "w"); 488 | text = text.replace(/හ/g, "y"); 489 | text = text.replace(/ඥ/g, "{"); 490 | text = text.replace(/ඳ/g, "|"); 491 | text = text.replace(/ක්‍ෂ/g, "Ì"); 492 | text = text.replace(/ැ/g, "e"); 493 | text = text.replace(/ෑ/g, "E"); 494 | text = text.replace(/ෙ/g, "f"); 495 | text = text.replace(/ු/g, "q"); 496 | text = text.replace(/ි/g, "s"); 497 | text = text.replace(/ූ/g, "Q"); 498 | text = text.replace(/ී/g, "S"); 499 | text = text.replace(/ෘ/g, "D"); 500 | text = text.replace(/ෲ/g, "DD"); 501 | text = text.replace(/ෟ/g, "!"); 502 | text = text.replace(/ා/g, "d"); 503 | text = text.replace(/්/g, "a"); 504 | text = text.replace(/₩/g, "\""); 505 | text = text.replace(/�/g, "'"); 506 | text = text.replace(/→/g, "^"); 507 | text = text.replace(/←/g, "&"); 508 | text = text.replace(/ᅯ/g, ")"); 509 | text = text.replace(/ᅮ/g, "@"); 510 | text = text.replace(/ᅭ/g, "`"); 511 | text = text.replace(/ᅬ/g, "}"); 512 | text = text.replace(/ᅫ/g, "~"); 513 | text = text.replace(/\ᅪ/g, "¤"); 514 | text = text.replace(/\ᅩ/g, "•"); 515 | text = text.replace(/\ᅧ/g, "›"); 516 | text = text.replace(/\ᄊ/g, "∙"); 517 | text = text.replace(/ᅰ/g, "]"); 518 | return text 519 | } -------------------------------------------------------------------------------- /src/translators/fm_abaya_to_unicode.ts: -------------------------------------------------------------------------------- 1 | export const fmAbayaToUnicode = function (text: string) { 2 | text = text.replace(/'/g, "Ã"); 3 | text = text.replace(/"/g, "»"); 4 | text = text.replace(/›/g, "ශ්‍රී"); 5 | text = text.replace(/ff;%/g, "ත්‍රෛ"); 6 | text = text.replace(/ffY/g, "ශෛ"); 7 | text = text.replace(/ffp/g, "චෛ"); 8 | text = text.replace(/ffc/g, "ජෛ"); 9 | text = text.replace(/ffk/g, "නෛ"); 10 | text = text.replace(/ffl/g, "කෛ"); 11 | text = text.replace(/ffu/g, "මෛ"); 12 | text = text.replace(/ffm/g, "පෛ"); 13 | text = text.replace(/ffo/g, "දෛ"); 14 | text = text.replace(/ff;/g, "තෛ"); 15 | text = text.replace(/ffO/g, "ධෛ"); 16 | text = text.replace(/ffj/g, "වෛ"); 17 | text = text.replace(/fm%!/g, "ප්‍රෞ"); 18 | text = text.replace(/fIHda/g, "ෂ්‍යෝ"); 19 | text = text.replace(/fPHda/g, "ඡ්‍යෝ"); 20 | text = text.replace(/fVHda/g, "ඪ්‍යෝ"); 21 | text = text.replace(/f>Hda/g, "ඝ්‍යෝ"); 22 | text = text.replace(/fLHda/g, "ඛ්‍යෝ"); 23 | text = text.replace(/f%da/g, "‍ඝ්‍රෝ"); 97 | text = text.replace(/fY%da/g, "ශ්‍රෝ"); 98 | text = text.replace(/fCI%da/g, "ක්‍ෂ්‍රෝ"); 99 | text = text.replace(/fn%da/g, "බ්‍රෝ"); 100 | text = text.replace(/fv%da/g, "ඩ්‍රෝ"); 101 | text = text.replace(/f\*%da/g, "ෆ්‍රෝ"); 102 | text = text.replace(/f\.%da/g, "ග්‍රෝ"); 103 | text = text.replace(/fl%da/g, "ක්‍රෝ"); 104 | text = text.replace(/fm%da/g, "ප්‍රෝ"); 105 | text = text.replace(/føda/g, "ද්‍රෝ"); 106 | text = text.replace(/fi%da/g, "ස්‍රෝ"); 107 | text = text.replace(/fg%da/g, "ට්‍රෝ"); 108 | text = text.replace(/f\;%da/g, "ත්‍රෝ"); 109 | text = text.replace(/fY%d/g, "ශ්‍රො"); 110 | text = text.replace(/fv%d/g, "ඩ්‍රො"); 111 | text = text.replace(/f\*%d/g, "ෆ්‍රො"); 112 | text = text.replace(/f\.%d/g, "ග්‍රො"); 113 | text = text.replace(/fl%d/g, "ක්‍රො"); 114 | text = text.replace(/fm%d/g, "ප්‍රො"); 115 | text = text.replace(/fød/g, "ද්‍රො"); 116 | text = text.replace(/fi%d/g, "ස්‍රො"); 117 | text = text.replace(/fg%d/g, "ට්‍රො"); 118 | text = text.replace(/f\;%d/g, "ත්‍රො"); 119 | text = text.replace(/%a/g, "a%"); 120 | text = text.replace(/fYa%/g, "ශ්‍රේ"); 121 | text = text.replace(/fí%/g, "බ්‍රේ"); 122 | text = text.replace(/fâ%/g, "ඩ්‍රේ"); 123 | text = text.replace(/f\*%a/g, "ෆ්‍රේ"); 124 | text = text.replace(/f\.%a/g, "ග්‍රේ"); 125 | text = text.replace(/fl%a/g, "ක්‍රේ"); 126 | text = text.replace(/fm%a/g, "ප්‍රේ"); 127 | text = text.replace(/føa/g, "ද්‍රේ"); 128 | text = text.replace(/fia%/g, "ස්‍රේ"); 129 | text = text.replace(/f\;a%/g, "ත්‍රේ"); 130 | text = text.replace(/fè%/g, "ධ්‍රේ"); 131 | text = text.replace(/fI%/g, "ෂ්‍රෙ"); 132 | text = text.replace(/fY%/g, "ශ්‍රෙ"); 133 | text = text.replace(/fn%/g, "බ්‍රෙ"); 134 | text = text.replace(/f\*%/g, "ෆ්‍රෙ"); 135 | text = text.replace(/f\.%/g, "ග්‍රෙ"); 136 | text = text.replace(/fl%/g, "ක්‍රෙ"); 137 | text = text.replace(/fm%/g, "ප්‍රෙ"); 138 | text = text.replace(/fø/g, "ද්‍රෙ"); 139 | text = text.replace(/fi%/g, "ස්‍රෙ"); 140 | text = text.replace(/f\;%/g, "ත්‍රෙ"); 141 | text = text.replace(/fN%/g, "භ්‍රෙ"); 142 | text = text.replace(/fO%/g, "ධ්‍රෙ"); 143 | text = text.replace(/fI!/g, "ෂෞ"); 144 | text = text.replace(/fP!/g, "ඡෞ"); 145 | text = text.replace(/fY!/g, "ශෞ"); 146 | text = text.replace(/fn!/g, "බෞ"); 147 | text = text.replace(/fp!/g, "චෞ"); 148 | text = text.replace(/fv!/g, "ඩෞ"); 149 | text = text.replace(/f\*!/g, "ෆෞ"); 150 | text = text.replace(/f\.!/g, "ගෞ"); 151 | text = text.replace(/fc!/g, "ජෞ"); 152 | text = text.replace(/fl!/g, "කෞ"); 153 | text = text.replace(/f,!/g, "ලෞ"); 154 | text = text.replace(/fu!/g, "මෞ"); 155 | text = text.replace(/fk!/g, "නෞ"); 156 | text = text.replace(/fm!/g, "පෞ"); 157 | text = text.replace(/fo!/g, "දෞ"); 158 | text = text.replace(/fr!/g, "රෞ"); 159 | text = text.replace(/fi!/g, "සෞ"); 160 | text = text.replace(/fg!/g, "ටෞ"); 161 | text = text.replace(/f\;!/g, "තෞ"); 162 | text = text.replace(/fN!/g, "භෞ"); 163 | text = text.replace(/f\[!/g, "ඤෞ"); 164 | text = text.replace(/fIda/g, "ෂෝ"); 165 | text = text.replace(/fUda/g, "ඹෝ"); 166 | text = text.replace(/fPda/g, "ඡෝ"); 167 | text = text.replace(/fVda/g, "ඪෝ"); 168 | text = text.replace(/f>da/g, "ඝෝ"); 169 | text = text.replace(/fLda/g, "ඛෝ"); 170 | text = text.replace(/fd/g, "ඝො"); 208 | text = text.replace(/fLd/g, "ඛො"); 209 | text = text.replace(/fa/g, "ඝේ"); 247 | text = text.replace(/fÄ/g, "ඛේ"); 248 | text = text.replace(/f/g, "ඝෙ"); 290 | text = text.replace(/fL/g, "ඛෙ"); 291 | text = text.replace(/f/g, "ඝ"); 430 | text = text.replace(/CO/g, "ඣ"); 431 | text = text.replace(/L/g, "ඛ"); 432 | text = text.replace(/Hda"); 34 | // text = text.replace(/ඛ්‍යෝ/g, "f>Hda"); 35 | // text = text.replace(/ළ්‍යෝ/g, "f1da"); 108 | // text = text.replace(/ශ්‍රෝ/g, "fY1da"); 109 | // text = text.replace(/ක්‍ෂ්‍රෝ/g, "fCI1da"); 110 | // text = text.replace(/බ්‍රෝ/g, "fL1da"); 111 | // text = text.replace(/ඩ්‍රෝ/g, "fv1da"); 112 | // text = text.replace(/ෆ්‍රෝ/g, "f\1da"); 113 | // text = text.replace(/ග්‍රෝ/g, "f.1da"); 114 | // text = text.replace(/ක්‍රෝ/g, "fl1da"); 115 | // text = text.replace(/ප්‍රෝ/g, "fm1da"); 116 | // text = text.replace(/ද්‍රෝ/g, "fÊda"); 117 | // text = text.replace(/ස්‍රෝ/g, "fi1da"); 118 | // text = text.replace(/ට්‍රෝ/g, "fg1da"); 119 | // text = text.replace(/ත්‍රෝ/g, "f;1da"); 120 | // text = text.replace(/ශ්‍රො/g, "fY1d"); 121 | // text = text.replace(/ඩ්‍රො/g, "fv1d"); 122 | // text = text.replace(/ෆ්‍රො/g, "f\1d"); 123 | // text = text.replace(/ග්‍රො/g, "f.1d"); 124 | // text = text.replace(/ක්‍රො/g, "fl1d"); 125 | // text = text.replace(/ප්‍රො/g, "fm1d"); 126 | // text = text.replace(/ද්‍රො/g, "fÊd"); 127 | // text = text.replace(/ස්‍රො/g, "fi1d"); 128 | // text = text.replace(/ට්‍රො/g, "fg1d"); 129 | // text = text.replace(/ත්‍රො/g, "f;1d"); 130 | // text = text.replace(/ශ්‍රේ/g, "fY1a"); 131 | // text = text.replace(/බ්‍රේ/g, "fn1z"); 132 | // text = text.replace(/ඩ්‍රේ/g, "fvz1"); 133 | // text = text.replace(/ෆ්‍රේ/g, "f\1a"); 134 | // text = text.replace(/ග්‍රේ/g, "f.1a"); 135 | // text = text.replace(/ක්‍රේ/g, "fl1a"); 136 | // text = text.replace(/ප්‍රේ/g, "fm1a"); 137 | // text = text.replace(/ද්‍රේ/g, "fÊa"); 138 | // text = text.replace(/ස්‍රේ/g, "fi1a"); 139 | // text = text.replace(/ත්‍රේ/g, "f;1a"); 140 | // text = text.replace(/ධ්‍රේ/g, "fO1z"); 141 | // text = text.replace(/ෂ්‍රෙ/g, "fI1a"); 142 | // text = text.replace(/ශ්‍රෙ/g, "fY1a"); 143 | // text = text.replace(/බ්‍රෙ/g, "fL1"); 144 | // text = text.replace(/ෆ්‍රෙ/g, "f\1"); 145 | // text = text.replace(/ග්‍රෙ/g, "f.1"); 146 | // text = text.replace(/ක්‍රෙ/g, "fl1"); 147 | // text = text.replace(/ප්‍රෙ/g, "fm1"); 148 | // text = text.replace(/ද්‍රෙ/g, "fÊ"); 149 | // text = text.replace(/ස්‍රෙ/g, "fi1"); 150 | // text = text.replace(/ත්‍රෙ/g, "f;1"); 151 | // text = text.replace(/භ්‍රෙ/g, "fN1"); 152 | // text = text.replace(/ධ්‍රෙ/g, "fO1"); 153 | // text = text.replace(/්‍ය/g, "H"); 154 | // text = text.replace(/්‍ර/g, "1"); 155 | // text = text.replace(/ෂෞ/g, "fI#"); 156 | // text = text.replace(/ඡෞ/g, "fP#"); 157 | // text = text.replace(/ශෞ/g, "fY#"); 158 | // text = text.replace(/බෞ/g, "fn#"); 159 | // text = text.replace(/චෞ/g, "fp#"); 160 | // text = text.replace(/ඩෞ/g, "fv#"); 161 | // text = text.replace(/ෆෞ/g, "f\#"); 162 | // text = text.replace(/ගෞ/g, "f.#"); 163 | // text = text.replace(/ජෞ/g, "fc#"); 164 | // text = text.replace(/කෞ/g, "fl#"); 165 | // text = text.replace(/ලෞ/g, "f,#"); 166 | // text = text.replace(/මෞ/g, "fu#"); 167 | // text = text.replace(/නෞ/g, "fk#"); 168 | // text = text.replace(/පෞ/g, "fm#"); 169 | // text = text.replace(/දෞ/g, "fo#"); 170 | // text = text.replace(/රෞ/g, "fr#"); 171 | // text = text.replace(/සෞ/g, "fi#"); 172 | // text = text.replace(/ටෞ/g, "fg#"); 173 | // text = text.replace(/තෞ/g, "f;#"); 174 | // text = text.replace(/භෞ/g, "fN#"); 175 | // text = text.replace(/ඤෞ/g, "f[#"); 176 | // text = text.replace(/ෂෝ/g, "fIda"); 177 | // text = text.replace(/ඹෝ/g, "fUda"); 178 | // text = text.replace(/ඡෝ/g, "fPda"); 179 | // text = text.replace(/ඪෝ/g, "fVda"); 180 | // text = text.replace(/ඝෝ/g, "f>da"); 181 | // text = text.replace(/ඛෝ/g, "fLda"); 182 | // text = text.replace(/ළෝ/g, "fd"); 220 | // text = text.replace(/ඛො/g, "fLd"); 221 | // text = text.replace(/ළො/g, "fa"); 259 | // text = text.replace(/ඛේ/g, "fLz"); 260 | // text = text.replace(/ළේ/g, "f"); 299 | // text = text.replace(/ඛෙ/g, "fL"); 300 | // text = text.replace(/ළෙ/g, "f<"); 301 | // text = text.replace(/ඟෙ/g, "fZ."); 302 | // text = text.replace(/ණෙ/g, "fK"); 303 | // text = text.replace(/ඵෙ/g, "fM"); 304 | // text = text.replace(/ඨෙ/g, "fG"); 305 | // text = text.replace(/ඬෙ/g, "fZv"); 306 | // text = text.replace(/ශෙ/g, "fY"); 307 | // text = text.replace(/ඥෙ/g, "f{"); 308 | // text = text.replace(/ඳෙ/g, "fZo"); 309 | // text = text.replace(/ක්‍ෂෙ/g, "fCI"); 310 | // text = text.replace(/බෙ/g, "fn"); 311 | // text = text.replace(/චෙ/g, "fp"); 312 | // text = text.replace(/ඩෙ/g, "fv"); 313 | // text = text.replace(/ෆෙ/g, "f\\"); 314 | // text = text.replace(/ගෙ/g, "f."); 315 | // text = text.replace(/හෙ/g, "fy"); 316 | // text = text.replace(/ජෙ/g, "fc"); 317 | // text = text.replace(/කෙ/g, "fl"); 318 | // text = text.replace(/ලෙ/g, "f,"); 319 | // text = text.replace(/මෙ/g, "fu"); 320 | // text = text.replace(/නෙ/g, "fk"); 321 | // text = text.replace(/පෙ/g, "fm"); 322 | // text = text.replace(/දෙ/g, "fo"); 323 | // text = text.replace(/රෙ/g, "fr"); 324 | // text = text.replace(/සෙ/g, "fi"); 325 | // text = text.replace(/ටෙ/g, "fg"); 326 | // text = text.replace(/වෙ/g, "fj"); 327 | // text = text.replace(/තෙ/g, "f;"); 328 | // text = text.replace(/භෙ/g, "fN"); 329 | // text = text.replace(/යෙ/g, "fh"); 330 | // text = text.replace(/ඤෙ/g, "f["); 331 | // text = text.replace(/ධෙ/g, "fO"); 332 | // text = text.replace(/ථෙ/g, "f:"); 333 | // text = text.replace(/තු/g, ";2"); 334 | // text = text.replace(/ගු/g, ".2"); 335 | // text = text.replace(/කු/g, "fl2"); 336 | // text = text.replace(/තූ/g, ";@"); 337 | // text = text.replace(/ගූ/g, ".@"); 338 | // text = text.replace(/කූ/g, "l@"); 339 | // text = text.replace(/රු/g, "re"); 340 | // text = text.replace(/රූ/g, "rE"); 341 | // text = text.replace(/ආ/g, "wd"); 342 | // text = text.replace(/ඇ/g, "we"); 343 | // text = text.replace(/ඈ/g, "wE"); 344 | // text = text.replace(/ඌ/g, "W#"); 345 | // text = text.replace(/ඖ/g, "T#"); 346 | // text = text.replace(/ඒ/g, "ta"); 347 | // text = text.replace(/ඕ/g, "Tz"); 348 | // text = text.replace(/ඳි/g, "Ës"); 349 | // text = text.replace(/ඳී/g, "ËS"); 350 | // text = text.replace(/දූ/g, "É"); 351 | // text = text.replace(/දී/g, "oS"); 352 | // text = text.replace(/ලූ/g, ",Q"); 353 | // text = text.replace(/ර්‍ය/g, "h!"); 354 | // text = text.replace(/ඳූ/g, "Ì"); 355 | // text = text.replace(/ර්/g, "rA"); 356 | // text = text.replace(/ඨි/g, "Gs"); 357 | // text = text.replace(/ඨී/g, "GS"); 358 | // text = text.replace(/ඡී/g, "PS"); 359 | // text = text.replace(/ඛ්/g, "Lz"); 360 | // text = text.replace(/ඛි/g, "Ls"); 361 | // text = text.replace(/ලු/g, ",q"); 362 | // text = text.replace(/ඛී/g, "LS"); 363 | // text = text.replace(/දි/g, "os"); 364 | // text = text.replace(/ච්/g, "pz"); 365 | // text = text.replace(/ජ්/g, "ca"); 366 | // text = text.replace(/රී/g, "rS"); 367 | // text = text.replace(/ඪී/g, "VS"); 368 | // text = text.replace(/ඪී/g, "VS"); 369 | // text = text.replace(/චි/g, "ps"); 370 | // text = text.replace(/ථී/g, ":S"); 371 | // text = text.replace(/ථී/g, ":S"); 372 | // text = text.replace(/ජී/g, "cS"); 373 | // text = text.replace(/චී/g, "pS"); 374 | // text = text.replace(/ඞ්/g, "Xz"); 375 | // text = text.replace(/ඵී/g, "MS"); 376 | // text = text.replace(/ට්/g, "gz"); 377 | // text = text.replace(/ඵි/g, "Ms"); 378 | // text = text.replace(/රි/g, "rs"); 379 | // text = text.replace(/ටී/g, "gS"); 380 | // text = text.replace(/ටි/g, "gs"); 381 | // text = text.replace(/ඩ්/g, "vz"); 382 | // text = text.replace(/ඩී/g, "vS"); 383 | // text = text.replace(/ඩි/g, "vs"); 384 | // text = text.replace(/ඬ්/g, "Zvz"); 385 | // text = text.replace(/ඬි/g, "ç"); 386 | // text = text.replace(/ධ්/g, "Oz"); 387 | // text = text.replace(/ඬී/g, "é"); 388 | // text = text.replace(/ධි/g, "Os"); 389 | // text = text.replace(/ධී/g, "OS"); 390 | // text = text.replace(/බි/g, "ns"); 391 | // text = text.replace(/බ්/g, "nz"); 392 | // text = text.replace(/බී/g, "nS"); 393 | // text = text.replace(/ම්/g, "uz"); 394 | // text = text.replace(/ජි/g, "cs"); 395 | // text = text.replace(/මි/g, "us"); 396 | // text = text.replace(/ඹ්/g, "Uz"); 397 | // text = text.replace(/මී/g, "uS"); 398 | // text = text.replace(/ඹි/g, "US"); 399 | // text = text.replace(/ව්/g, "jz"); 400 | // text = text.replace(/ඹී/g, "Us"); 401 | // text = text.replace(/ඳු/g, "Ì"); 402 | // text = text.replace(/ද්‍ර/g, "Ê"); 403 | // text = text.replace(/වී/g, "jS"); 404 | // text = text.replace(/වි/g, "js"); 405 | // text = text.replace(/ඞ්/g, "Xz"); 406 | // text = text.replace(/ඞී/g, "X"); 407 | // text = text.replace(/ඡි/g, "Ps"); 408 | // text = text.replace(/ඡ්/g, "Pa"); 409 | // text = text.replace(/දු/g, "È"); 410 | // text = text.replace(/ජ්/g, "cA"); 411 | // text = text.replace(/ර්‍ණ/g, "K!"); 412 | // text = text.replace(/ණී/g, "KS"); 413 | // text = text.replace(/ජී/g, "cS"); 414 | // text = text.replace(/ඡි/g, "Ps"); 415 | // text = text.replace(/ඩි/g, "vs"); 416 | // text = text.replace(/ඤු/g, "ZCÌ"); 417 | // text = text.replace(/ග/g, "."); 418 | // text = text.replace(/ළු/g, "ZM"); 419 | // text = text.replace(/ෂ/g, "I"); 420 | // text = text.replace(/ං/g, "x"); 421 | // text = text.replace(/ඃ/g, "%"); 422 | // text = text.replace(/ඹ/g, "U"); 423 | // text = text.replace(/ඡ/g, "P"); 424 | // text = text.replace(/ඪ/g, "V"); 425 | // text = text.replace(/ඝ/g, ">"); 426 | // text = text.replace(/ඊ/g, "B"); 427 | // text = text.replace(/ඣ/g, "CO"); 428 | // text = text.replace(/ඛ/g, "L"); 429 | // text = text.replace(/ළ/g, "<"); 430 | // text = text.replace(/ඟ/g, "Z."); 431 | // text = text.replace(/ණ/g, "K"); 432 | // text = text.replace(/ඵ/g, "M"); 433 | // text = text.replace(/ඨ/g, "G"); 434 | // text = text.replace(/ඃ/g, "%"); 435 | // text = text.replace(/\"/g, "Ù"); 436 | // text = text.replace(/\//g, "^"); 437 | // text = text.replace(/\)/g, "("); 438 | // text = text.replace(/:/g, "_"); 439 | // text = text.replace(/-/g, "+"); 440 | // text = text.replace(/ෆ/g, "\\"); 441 | // text = text.replace(/ල/g, ","); 442 | // text = text.replace(/-/g, "+"); 443 | // text = text.replace(/රැ/g, "/"); 444 | // text = text.replace(/ථ/g, ":"); 445 | // text = text.replace(/ත/g, ";"); 446 | // text = text.replace(/ළ/g, "<"); 447 | // text = text.replace(/ඝ/g, ">"); 448 | // text = text.replace(/රෑ/g, "\?"); 449 | // text = text.replace(/ඊ/g, "B"); 450 | // text = text.replace(/ක‍/g, "l"); 451 | // text = text.replace(/ෘ/g, "D"); 452 | // text = text.replace(/ෑ/g, "E"); 453 | // text = text.replace(/ත‍/g, ";"); 454 | // text = text.replace(/ඨ/g, "G"); 455 | // text = text.replace(/්‍ය/g, "H"); 456 | // text = text.replace(/ෂ/g, "I"); 457 | // text = text.replace(/න‍/g, "k"); 458 | // text = text.replace(/ණ/g, "K"); 459 | // text = text.replace(/ඛ/g, "L"); 460 | // text = text.replace(/ඵ/g, "M"); 461 | // text = text.replace(/භ/g, "N"); 462 | // text = text.replace(/ධ/g, "O"); 463 | // text = text.replace(/ඡ/g, "P"); 464 | // text = text.replace(/ඍ/g, "RD"); 465 | // text = text.replace(/ඔ/g, "T"); 466 | // text = text.replace(/ඹ/g, "U"); 467 | // text = text.replace(/ඪ/g, "V"); 468 | // text = text.replace(/උ/g, "W"); 469 | // text = text.replace(/ශ/g, "Y"); 470 | // text = text.replace(/ඤ/g, "["); 471 | // text = text.replace(/ඉ/g, "b"); 472 | // text = text.replace(/ජ/g, "c"); 473 | // text = text.replace(/ට/g, "g"); 474 | // text = text.replace(/ය/g, "h"); 475 | // text = text.replace(/ස/g, "i"); 476 | // text = text.replace(/ව/g, "j"); 477 | // text = text.replace(/න/g, "k"); 478 | // text = text.replace(/ක/g, "l"); 479 | // text = text.replace(/ප/g, "m"); 480 | // text = text.replace(/බ/g, "n"); 481 | // text = text.replace(/ද/g, "o"); 482 | // text = text.replace(/ච/g, "p"); 483 | // text = text.replace(/ර/g, "r"); 484 | // text = text.replace(/එ/g, "t"); 485 | // text = text.replace(/ම/g, "u"); 486 | // text = text.replace(/ඩ/g, "v"); 487 | // text = text.replace(/අ/g, "w"); 488 | // text = text.replace(/හ/g, "y"); 489 | // text = text.replace(/ඥ/g, "{"); 490 | // text = text.replace(/ඳ/g, "Ë"); 491 | // text = text.replace(/ක්‍ෂ/g, "CI"); 492 | // text = text.replace(/ැ/g, "e"); 493 | // text = text.replace(/ෑ/g, "E"); 494 | // text = text.replace(/ෙ/g, "f"); 495 | // text = text.replace(/ු/g, "q"); 496 | // text = text.replace(/ි/g, "s"); 497 | // text = text.replace(/ූ/g, "Q"); 498 | // text = text.replace(/ී/g, "S"); 499 | // text = text.replace(/ෘ/g, "D"); 500 | // text = text.replace(/ෲ/g, "DD"); 501 | // text = text.replace(/ෟ/g, "#"); 502 | // text = text.replace(/ා/g, "d"); 503 | // text = text.replace(/්/g, "a"); 504 | // text = text.replace(/₩/g, "\""); 505 | // text = text.replace(/�/g, "\'"); 506 | // text = text.replace(/→/g, "*"); 507 | // text = text.replace(/←/g, "("); 508 | // text = text.replace(/ᅰ/g, "]"); 509 | // text = text.replace(/\$/g, "^"); 510 | // text = text.replace(/ᅯ/g, "+"); 511 | // text = text.replace(/ᅮ/g, "$"); 512 | // text = text.replace(/ᅭ/g, "Ø"); 513 | // text = text.replace(/ᅬ/g, "±"); 514 | // text = text.replace(/ᅫ/g, ")"); 515 | // text = text.replace(/ᅪ/g, "±"); 516 | // text = text.replace(/ᅩ/g, "_"); 517 | // text = text.replace(/ᅨ/g, "^"); 518 | // text = text.replace(/ᄊ/g, "Õ"); 519 | // text = text.replace(/0/g, "="); 520 | // text = text.replace(/9/g, "-"); 521 | // text = text.replace(/8/g, "0"); 522 | // text = text.replace(/7/g, "9"); 523 | // text = text.replace(/6/g, "8"); 524 | // text = text.replace(/5/g, "7"); 525 | // text = text.replace(/4/g, "6"); 526 | // text = text.replace(/3/g, "5"); 527 | // text = text.replace(/2/g, "4"); 528 | // text = text.replace(/1/g, "3"); 529 | 530 | return text 531 | } --------------------------------------------------------------------------------