@ashiteam/ashisinhala-ts-lib
v0.1.21
Published
TypeScript port of AshiSinhala.LIB for Node.js and browsers.
Readme
AshiSinhala.TS.LIB
TypeScript port of AshiSinhala.LIB for Node.js and browsers.
Features
- TypeScript classes equivalent to the C# AshiSinhala.LIB classes
- Works in both Node.js and browsers
- All mappings (e.g., singlish_to_sinhala_map) are TypeScript objects for browser compatibility
Usage
Install dependencies and build:
npm install
npm run buildExample
import { singlishToSinhalaMap } from 'ashisinhala-ts-lib';
import { KnownSinhalaWords, SinhalaFontBase, SinWriteFont, Kaputa2004Font, SinglishFont, Global } from 'ashisinhala-ts-lib';
// Use the mapping
console.log(singlishToSinhalaMap['a']);
// Use font classes (stubbed, extend as needed)
const font = new SinWriteFont();
console.log(font.getFontName());Development
- All classes are designed to be compatible with both Node.js and browser environments.
License
MIT
