The best way to begin writing a new language module is by using an existing language module and editing it.
A phonetic sysnthesizer for the language is must. It should be a C file which takes unicode string and return a dhvani phonetic notation. In between this the phonetic synthesizer can do whatever linguistic rules or algorithm. There is no specific rules about the phonetic synthesizer, It just need to return the phonetic string. The module may contain number reading logic too.. Before writing the module, just refer the existing modules like Hindi or Malayalam.
Files to changed
The language entries should be added to the following files. Here also just refer how other language entries are added and add your language entry.
- languages.c - Add the unicode range for your language for language detection. You may add more logic if required there
- dhvani_lib.h- Add the entry to dhvani_Languages enumeration
- synthesizer.c- In dispatch_to_phonetic_synthesizer function add the method that return the phonetic string from your phonetic synthesizer code.
- Makefile- Just for compiling it :)