In this example, a token in the orthography model is converted to simple encoding. Within verse (19:7), the 6th token is selected. Simple encoding is an easy to read format that shows the name of each letter and its diacritics within Arabic text.
Java Example
public class SimpleEncodingExample { public static void main() { // Get token #6 of verse (19:7). Token token = Document.getToken(19, 7, 6); // Display the token using simple encoding. System.out.println(token.toSimpleEncoding()); } }
Program Output
Ya + Fatha | HHa + Sukun | Ya + Fatha | AlifMaksura | AlifKhanjareeya
Discussion
The toSimpleEncoding() method can be used to convert a verse, token, character or any other Arabic text to simple encoding.
See Also
- Java API Examples
- Verse (19:7) - the verse in the Quran used above