I Built a Java Library to Transliterate Sinhala Text into Latin Characters
说明与用途
一款 Java 库,可将僧伽罗文字转写为拉丁字符,开发者只需添加 Maven 依赖并调用单个方法即可完成转换。
问题
Java developers working with Sinhala text need a way to represent Sinhala script in Latin characters for display, processing, or integration with systems that only support Latin script.
结果
The library provides a quick, reliable transliteration solution that can be integrated into Java projects with a single dependency and a single method call.
工作流
- Add the Maven dependency to pom.xml
- Import com.webmotech.transliterator.SinhalaToLatinTransliterator
- Call SinhalaToLatinTransliterator.transliterate(input)
- Use the returned Latin string in the application
证据
Add this dependency to your Maven pom.xml: <dependency> <groupId>io.github.iroshperera</groupId> <artifactId>sinhala-transliterator</artifactId> <version>1.1.0</version> </dependency>
Expected output, as shown in the project README: siṁhala
- 记录日期: 2026-09-22T04:00:20.255Z