Serbian language can be written in two different alphabets: Serbian Cyrillic script (ћирилица) and the Serbian Latin ( latinica ). Both were promoted in Yugoslavia. The Cyrillic script is official under the 2006 constitution of Serbia, but the Latin script is gaining ground due to globalization.
The sort order of the two alphabets is different.
The Cyrillic letters <Љ>, <Њ> and <Џ> are represented by digraphs in the Latin alphabet. In digraphs, letters are always written together - even in top-down text - and are also sorted as one letter (e.g. ljubav , 'love', comes after lopta , 'ball'). The present Cyrillic script, having been devised for the language itself, is precise because there is no ambiguity involved in reading Lj, Nj and Dž: for example, both Cyrillic инјекција (mathematical injection or medical injection) and његов ('his') are written with <nj> in Latin form. Thus, automatic transliteration of Cyrillic text to Latin is straightforward, but automatic transliteration of Latin text to Cyrillic requires additional heuristic rules.