Mova0.6 pre-release

the flag of Serbia 3. Cyrillic and Latin writing

Standard Serbian uses two alphabets, Cyrillic and Latin. Each has 30 letters and its own alphabetic order. Each Cyrillic letter has one Latin counterpart. Three of the Latin letters are normally written with two characters each. Those same character pairs can also spell two separate letters, so the spelling of the word determines how to alphabetize it, divide it at a line break, and convert it to Cyrillic.

The two Serbian alphabets and their uses

The Serbian Cyrillic alphabet is called azbuka, after az and buki, the traditional names of its first two letters. The Latin alphabet is called abeceda, after a, be, ce, de, the names of its first four letters. The two alphabets write the same standard language. A change of alphabet leaves the pronunciation, grammatical forms, and choice of Ekavian or Ijekavian forms intact. Subotić and Forbes give printed and handwritten Cyrillic forms and a Latin table. Morfill also presents Cyrillic print and cursive and a Latin alphabet table. (Subotić and Forbes 1918, § 2; Morfill 1887, § “Cyrillian Printed and Cursive”, § “Latin”)

In the Republic of Serbia, the Constitution specifies Serbian and Cyrillic for official use and leaves the official use of other languages and scripts to legislation. Cyrillic is used in official institutions, education, publishing, and public life. Latin is also widespread, including in publishing, news media, advertising, and digital communication. An institution or publication can prescribe a script for its documents. Both alphabets are used for ordinary prose, across subjects and levels of formality. (Constitution of the Republic of Serbia, art. 10)

A document often uses one alphabet for its Serbian prose while preserving the original spelling of a quotation, brand name, or web address. Identify the script of the surrounding prose from the prose itself. A preserved name or address can use a different script.

The following examples show the same wording in both alphabets. Grammatical labels are given where inflection is visible. All examples are constructed.

Cyrillic formLatin formGlossTranslation
Књига је на столу.Knjiga je na stolu.book.NOM.SG be.PRS.3SG on table.LOC.SGThe book is on the table.
Овдје је љето.Ovdje je ljeto.here be.PRS.3SG summer.NOM.SGIt is summer here.
Овде је лето.Ovde je leto.here be.PRS.3SG summer.NOM.SGIt is summer here.

The second row gives Ijekavian ovdje, ljeto. The third gives Ekavian ovde, leto. Each pronunciation has its own spelling in either alphabet. Transliteration therefore pairs Овдје је љето. with Ovdje je ljeto. and Овде је лето. with Ovde je leto.

Letter correspondences and alphabetic order

The table gives the complete 30-letter inventory in each script. Each row gives one Cyrillic letter and its Latin counterpart. The rank columns give their positions in their respective alphabets, counting from 1. Uppercase and lowercase forms share the same alphabetic position. The Latin forms are shown in lowercase, initial capital, and full capitals. (Subotić and Forbes 1918, § 2, p. 13)

Cyrillic rankCyrillic lowerCyrillic upperLatin lowerLatin initial capitalLatin full capitalsLatin rank
1аАaAA1
2бБbBB2
3вВvVV28
4гГgGG11
5дДdDD6
6ђЂđĐĐ8
7еЕeEE9
8жЖžŽŽ30
9зЗzZZ29
10иИiII13
11јЈjJJ14
12кКkKK15
13лЛlLL16
14љЉljLjLJ17
15мМmMM18
16нНnNN19
17њЊnjNjNJ20
18оОoOO21
19пПpPP22
20рРrRR23
21сСsSS24
22тТtTT26
23ћЋćĆĆ5
24уУuUU27
25фФfFF10
26хХhHH12
27цЦcCC3
28чЧčČČ4
29џЏdžDžDŽ7
30шШšŠŠ25

For alphabetizing Serbian words, compare letters from left to right in the order for the chosen script. The first differing letter determines the order. When one word is the beginning of another, the shorter word comes first, as in grad, graditi. A Latin digraph that spells one letter takes its own position. The relevant runs are C, Č, Ć, D, Dž, Đ, L, Lj, M, N, Nj, O, S, Š, and Z, Ž. Keep these distinctions when comparing letters. Sorting by Unicode code-point number gives a different order from sorting by Serbian alphabetic rank.

For example, luka, ljuljaška, mak occur in that order because l precedes lj, which precedes m. In Cyrillic the same three words occur in the order лука, љуљашка, мак. The two alphabetic orders can also give different results. Latin puts gora before voda, while Cyrillic puts вода before гора. In nadživeti, compare d and ž as separate letters because the spelling has the prefix nad- followed by živeti. These examples are constructed.

The basic correspondences apply to native spellings and to spellings adapted to Serbian. Of the 26 basic Latin letters, q, w, x, and y fall outside the Serbian Latin inventory. Foreign names and expressions retained in their original spelling can contain these and other letters or combinations outside the inventory. In Serbian spellings, c represents /t͡s/, j represents /j/, and h represents /x/, corresponding to ц, ј, and х. In an unadapted foreign word, the same characters may follow the conventions of the source language. Subotić and Forbes give comparative pronunciation guides for the Latin alphabet, including the values of j, lj, and nj. (Subotić and Forbes 1918, § 2, p. 13)

Latin digraphs, capitalization and ambiguous letter sequences

A digraph is a pair of written characters that together spell one letter. The three Serbian Latin digraphs are dž, lj, and nj. Each counts as one letter and has a single Cyrillic counterpart, respectively џ, љ, and њ. In ordinary digital spelling, the constructed example njiva has four Serbian letters (nj, i, v, a) written with five Unicode code points. Its Cyrillic form њива has four letters written with four code points. (Subotić and Forbes 1918, § 2)

LetterLatin lowercaseLatin initial capitalLatin full capitalsCyrillic lowercaseCyrillic capitals
DždžDžDŽџЏ
LjljLjLJљЉ
NjnjNjNJњЊ

At the start of a word with ordinary initial capitalization, capitalize the first character of the digraph. Within a word with ordinary initial capitalization, use the lowercase form for later digraphs. In a word or heading set wholly in capitals, capitalize both characters of every digraph. For an isolated Cyrillic capital Љ, Њ, or Џ, use Lj, Nj, or Dž for initial-capital style and LJ, NJ, or DŽ for full-capital style. The surrounding text or the layout can establish the intended style. An isolated Cyrillic capital by itself leaves that choice open.

The examples below are constructed.

Cyrillic formLatin formGlossTranslation
ЉиљанаLjiljanapersonal nameLjiljana
ЉИЉАНАLJILJANApersonal name in full capitalsLjiljana
ЊегошNjegošpersonal nameNjegoš
Џеп је празан.Džep je prazan.pocket.NOM.SG be.PRS.3SG empty.M.NOM.SGThe pocket is empty.

When the same characters spell two letters

The same character pairs can spell two separate letters. Map each letter separately in that case. Such pairs can arise where parts of a word meet or where an adapted loan preserves two consonants. An internal boundary can be implicit in the spelling, as in nadživeti. A written space or hyphen marks a boundary between neighboring letters, so a digraph cannot span it.

Latin charactersReading as one letterReading as two letters
džџ · džдж · d + ž
ljљ · ljлј · l + j
njњ · njнј · n + j

In nadživeti, d ends the prefix nad- and ž begins the stem živeti. In injekcija, n and j are separate consonants within a loan. Full capitals preserve the ambiguity. The DŽ in ODŽAK maps to Џ, while the DŽ in PODŽANR maps to ДЖ. The NJ in NJIVA maps to Њ, while the NJ in INJEKCIJA maps to НЈ. These examples are constructed.

Cyrillic formLatin form and romanizationGlossTranslation
оџакodžakchimney.NOM.SGchimney (constructed)
надживетиnadživetiout-live.INFto outlive (constructed)
поджанрpodžanrsub-genre.NOM.SGsubgenre (constructed)
њиваnjivafield.NOM.SGfield (constructed)
инјекцијаinjekcijainjection.NOM.SGinjection (constructed)
конјугацијаkonjugacijaconjugation.NOM.SGconjugation (constructed)
пољеpoljefield.NOM.SGfield (constructed)

For Latin-to-Cyrillic conversion within a Serbian word, use the established spelling of the word. Its structure can help identify the boundary. Cyrillic distinguishes the two readings directly, while Latin writes both with the same pair of characters. Apply the same reading when alphabetizing or dividing the word at a line break. A digraph occupies one alphabetic position and stays together at a line break. Adjacent separate letters have their own alphabetic positions and can be divided where the ordinary word-division rules permit.

Cyrillic print, cursive and Serbian italic forms

Printed upright letters, printed italic letters, and handwritten cursive are forms of the same Cyrillic alphabet. A printed chart normally gives an upright form for each uppercase and lowercase letter. A handwriting chart gives forms suitable for writing with a pen, often with joining strokes whose shape depends on neighboring letters. Morfill and Subotić and Forbes distinguish printed forms from handwritten forms in their alphabet tables. (Morfill 1887, § “Cyrillian Printed and Cursive”; Subotić and Forbes 1918, § 2)

A Cyrillic typeface may use different italic shapes for the same lowercase letter depending on the language of the text. Serbian typography has characteristic italic forms for the five letters in the following table. The Cyrillic column identifies the letter in any style, and the Latin column gives its counterpart.

Cyrillic lowercaseLatin correspondence
бb
гg
дd
пp
тt

Serbian italic forms draw on handwriting conventions. Some use a stroke above the body of the letter, and their contours can differ from those of upright type. Details vary with the typeface and with an individual's handwriting. Read a stroke that belongs to the design as part of the letter. A separately written mark for pitch or vowel length has its own function and can occur on a vowel in the same word.

In handwriting, an underlining stroke can help identify cursive ш (š) where it resembles another letter. In a transcription into ordinary type, represent the whole handwritten form with ш. Joining strokes and pen lifts likewise leave the sequence of letters intact.

A glyph is the shape a font displays for a character. Serbian and other Cyrillic italic glyphs use the same underlying characters. To display the Serbian forms, the font must provide them and the application must select them. In HTML, for example, lang="sr-Cyrl" identifies Serbian Cyrillic text for applications that support language-specific glyph selection. The encoded letters and their Latin counterparts remain the same across upright, italic, and cursive forms.

The following constructed examples show the same Cyrillic strings in upright and italic styling. The font and application determine which italic shapes are visible. The first three rows together contain all five letters listed above. The fourth includes ш, whose handwritten form can carry a distinguishing stroke.

Cyrillic uprightCyrillic italicLatin romanizationGlossTranslation
добардобарdobargood.M.NOM.SGgood
дугдугdugdebt.NOM.SGdebt
петапетаpetaheel.NOM.SGheel
шумашумаšumaforest.NOM.SGforest

Diacritics, Unicode normalization and visually similar letters

Marks in spelling

Five Serbian Latin letters have a diacritic or stroke as part of their ordinary form. The marks distinguish letters in both lowercase and uppercase. Dž includes the caron of ž, and DŽ includes the caron of Ž. (Subotić and Forbes 1918, § 2)

LowercaseUppercaseFeature of the letterformCyrillic lower and upper
čČcaronч Ч
ćĆacuteћ Ћ
đĐstrokeђ Ђ
šŠcaronш Ш
žŽcaronж Ж

Informal spellings without these marks can merge distinct standard forms. An unmarked c can represent c, č, or ć, s can represent s or š, and z can represent z or ž. In the same kind of writing, dz can represent dž. The ASCII substitution dj for đ, as in djak for đak, can also represent an ordinary sequence of d and j, as in odjednom (одједном, at-once.ADV, ‘all at once’). Standard Serbian Latin gives đ its own place in the alphabet. The examples are constructed.

Each pair below collapses to a single spelling when the caron or acute is dropped. The examples are constructed.

Cyrillic formLatin form and romanizationGlossTranslation
већеvećecouncil.NOM.SGcouncil
вечеvečeevening.NOM.SGevening
сокsokjuice.NOM.SGjuice
шокšokshock.NOM.SGshock

Ordinary Serbian prose generally leaves pitch accent and vowel quantity unmarked. Dictionaries, grammars, teaching materials, and passages that need to distinguish readings can mark them in either alphabet. The four accent signs are the double grave for short falling (ȁ), the grave for short rising (à), the inverted breve for long falling (ȃ), and the acute for long rising (á). A macron marks postaccentual length (ā). An accent sign can also appear on syllabic r. Length marks are separate from the accent signs.

Prosodic marks can distinguish words with the same ordinary spelling, as in grȁd ‘hail’ and grȃd ‘city’ (constructed). They leave a letter in its usual alphabetic position. An edition that omits prosodic marks retains the marks that belong to č, ć, đ, š, and ž.

Unicode representations

Unicode can encode four of the five marked Serbian Latin letters either as a precomposed character or as a base character followed by a combining mark. These encodings are canonically equivalent. NFC composes each of these base-plus-mark pairs, and NFD gives the corresponding decomposed sequence. The table shows the NFD result for all five letters. (Unicode Standard Annex #15 and Unicode Character Database)

Letter pairCanonical decomposition of lowercaseCanonical decomposition of uppercase
č Čc + combining caron U+030CC + combining caron U+030C
ć Ćc + combining acute accent U+0301C + combining acute accent U+0301
đ Đđ U+0111 (no decomposition)Đ U+0110 (no decomposition)
š Šs + combining caron U+030CS + combining caron U+030C
ž Žz + combining caron U+030CZ + combining caron U+030C

NFC converts d followed by z and a combining caron to dž, a sequence of two Unicode characters. Deleting combining marks after NFD removes the carons and acute in the table and leaves Đ and đ intact. This deletion changes the spelling of words containing the four decomposable letters. For example, the combining acute U+0301 is part of ć in a decomposed spelling of veće ‘council’, and it marks pitch accent on a in a decomposed spelling of grád. Its role depends on the letter it accompanies.

Unicode also assigns a single compatibility character to each of the three digraphs in each of their three case patterns. Ordinary Serbian text uses the corresponding two-letter sequences shown here as NFKC results. (Unicode Character Database)

LetterFull-capital compatibility formInitial-capital compatibility formLowercase compatibility form
DžDŽ U+01C4 → DŽDž U+01C5 → Dždž U+01C6 → dž
LjLJ U+01C7 → LJLj U+01C8 → Ljlj U+01C9 → lj
NjNJ U+01CA → NJNj U+01CB → Njnj U+01CC → nj

NFKD expands the compatibility characters and also decomposes Ž and ž. For example, the NFKD result for Dž is D + z + U+030C. NFC and NFD preserve all nine compatibility characters. In ordinary sequences such as dž, the spelling of the word determines whether the two characters represent one Serbian letter or two.

Similar shapes across scripts

Some Cyrillic and Latin letters look alike in upright type. Unicode assigns them distinct code points even when they have the same appearance and the same Serbian letter value. NFC, NFD, NFKC, and NFKD preserve the script distinction between the letters in the table.

Cyrillic formIts Serbian Latin correspondenceSimilar Latin formSerbian Cyrillic correspondence of the Latin form
А аA aA aА а
ВVBБ
Е еE eE eЕ е
Ј јJ jJ jЈ ј
КKKК
МMMМ
НNHХ
О оO oO oО о
Р рR rP pП п
С сS sC cЦ ц
ТTTТ
У уU uY yOutside the native Latin inventory
Х хH hX xOutside the native Latin inventory

The table illustrates common similarities. The degree of similarity depends on case and typeface. For example, capital Cyrillic В and Latin B can look alike, while lowercase Cyrillic в and Latin b are readily distinguishable in upright print. Cyrillic Ј (U+0408) and Latin J (U+004A) can look identical even though each has its own code point.

The all-capital Cyrillic spelling below can look like the Latin string CTO. The example is constructed.

Cyrillic formLatin romanizationGlossTranslation
СТОSTOhundred.NUMone hundred

The first character of СТО is Cyrillic С (U+0421), with the Latin correspondence S. A literal Latin C (U+0043) has the Cyrillic correspondence Ц. The code points identify the scripts of the letters. The surrounding text can help establish whether those scripts are the ones the writer intended.

Transliteration and mixed-script text

Converting Serbian spellings

Transliteration rewrites a spelling in another script. The Serbian Latin equivalents in the alphabet table supply a romanization of Serbian Cyrillic. This romanization preserves č, ć, đ, š, and ž and uses dž, lj, and nj for the three corresponding Cyrillic letters. A transcription for readers of another language can use that language's spellings to approximate Serbian sounds. An ASCII rendering can use substitutions when the ordinary Serbian characters are unavailable.

In Cyrillic-to-Latin transliteration, apply the letter correspondences to the Serbian text and retain spaces, punctuation, and digits. Render lowercase џ, љ, and њ as dž, lj, and nj. At the start of an ordinarily capitalized word, render Џ, Љ, and Њ as Dž, Lj, and Nj. In all-capital text, use DŽ, LJ, and NJ, as in ЉУДИ → LJUDI (constructed). For an isolated uppercase letter or an abbreviation, use the case convention of the surrounding text or of the abbreviation. A prosodic sign follows the corresponding vowel or syllabic r into the target script, whether the source stores the sign in a precomposed character or as a combining mark.

In Latin-to-Cyrillic transliteration, identify the Serbian letters before applying the table. A digraph takes one Cyrillic equivalent, as in džep → џеп. Two adjacent letters take two equivalents, as in injekcija → инјекција, where n and j remain separate. An ASCII spelling such as suma can represent standard suma or šuma. The intended word supplies any missing spelling marks. Unicode normalization preserves the difference between plain s and š.

Ordinary Latin spelling can lose a distinction present in Cyrillic. The spellings џ and дж can both render as dž, љ and лј as lj, and њ and нј as nj. Established spelling and word structure resolve many such sequences when converting back to Cyrillic. In podžanr, the prefix pod- and the base žanr account for the adjacent d and ž. For an unfamiliar name or an arbitrary string, the original Cyrillic, an explicit letter boundary, or further context may be necessary to recover the intended spelling.

Latin formCyrillic formGlossTranslation
sumaсумаsum.NOM.SGsum (constructed)
šumaшумаforest.NOM.SGforest (constructed)
ĐorđeЂорђеpersonal nameĐorđe (constructed)
džepџепpocket.NOM.SGpocket (constructed)
injekcijaинјекцијаinjection.NOM.SGinjection (constructed)
Ljudi čitaju.Људи читају.person.NOM.PL read.PRS.3PLPeople are reading. (constructed)
Podžanr je nov.Поджанр је нов.subgenre.NOM.SG be.PRS.3SG new.M.NOM.SGThe subgenre is new. (constructed)

Transliteration preserves Serbian wording and inflection. Adapting a foreign name to Serbian requires choosing a Serbian spelling, which can depend on pronunciation and established usage. That spelling then follows the same letter correspondences as other Serbian text. For example, Шекспир romanizes as Šekspir, the Serbian Latin spelling of the adapted name (constructed). Restoring the original spelling Shakespeare requires identifying the name.

More than one script in a passage

A passage can switch scripts between sentences, within a sentence, or within a word. A Latin-script title in Serbian Cyrillic prose may be intentional. A Latin letter inside a word intended to be entirely Cyrillic may be a typing error. Latin and Cyrillic are each used by several languages, so identifying the script of a span gives only part of the evidence for its language and intended treatment.

In script conversion, apply Serbian letter correspondences to the material intended for conversion. For a quotation, follow the edition's treatment of quoted spelling. Preserve the full written form of a web address, code identifier, or original name when that form must remain exact. Spaces, digits, and common punctuation occur with either script. Use the context to establish the ends of spans that must be preserved, including any punctuation within them.

This constructed example retains a Latin-script brand within Cyrillic prose.

Written formRomanizationGlossTranslation
Читам поруке на WhatsApp-у.Čitam poruke na WhatsApp-u.read.PRS.1SG message.ACC.PL on WhatsApp-LOC.SGI read messages on WhatsApp.

In the Cyrillic sentence, the brand retains its Latin spelling. The Serbian locative ending after the hyphen belongs to the surrounding prose and becomes u in the Latin rendering. The hyphen and the letters of WhatsApp carry over as written.

In the constructed form мoст ‘bridge’, the middle vowel is Latin o (U+006F). If the intended spelling is Cyrillic, the correction is мост, with Cyrillic о (U+043E). Both versions can look identical in upright print. Identifying the script of each letter locates the mixture, and the intended spelling determines whether a correction is needed.

How Mova handles Cyrillic and Latin input

tools/mova-parse first uses tools/langseg to assign languages to sentences and spans. For Latin-script text, the segmenter distinguishes English and French using a Latin table, lexicons, and a character 4-gram model. It also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. It classifies other scripts, including Serbian Cyrillic, as other. The segmenter lacks a Serbian Latin lexicon and a Serbian Lang code. langseg latin-lexicon supports lexicon generation from an open Universal Dependencies training split for a Latin-script language with a Lang code.

At level 2, tools/mova-parse selects the model file for each span's assigned language. Serbian has no level-2 model. For input handled as sr, the # parse comment reports the missing model. The output has _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL and Parse=None in MISC. This output describes the case in which the parser receives sr as the language assignment. Mova has no Serbian tokenizer, tagger, lemmatizer, or parser that implements the distinctions in this chapter. prag and world read English trees and have no Serbian parse to read.

Mova's English baseline uses en xpos-fill before en train, which trains a tree parser and tagger on a Universal Dependencies training split. en parse-eval measures UAS and LAS on development data. What every language gets calls for this baseline for each language. Mova holds no annotated Serbian corpus and has no measured Serbian treebank baseline.

Squid reads the manual as grammatical claims and queues formalizable points for implementation. The Serbian alphabet inventories and letter sequences are among the points relevant to tokenization, tagging, and a treebank baseline. The Serbian claims described here are implementation inputs.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/sh/sr/03-cyrillic-and-latin/