World Library  
Flag as Inappropriate
Email this Article

Serbian Cyrillic alphabet

Article Id: WHEBN0009521899
Reproduction Date:

Title: Serbian Cyrillic alphabet  
Author: World Heritage Encyclopedia
Language: English
Subject: Serbian language, Serbo-Croatian, Branislav Trifunović, Romanization of Serbian, Digraphia
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Serbian Cyrillic alphabet

Serbian Cyrillic
Type
Languages Serbian
Time period
1814 (modern)
Parent systems
Child systems
Macedonian
ISO 15924 Cyrl, 220
Direction Left-to-right
Unicode alias
Cyrillic
subset of Cyrillic (U+0400...U+04F0)

The Serbian Cyrillic alphabet (}

}}: српска ћирилица/srpska ćirilica, pronounced ) is an adaptation of the Cyrillic script for the Serbian language, developed in 1818 by Serbian linguist Vuk Karadžić. It is one of the two alphabets used to write standard modern Serbian, Bosnian and Montenegrin, the other being Latin.

Karadžić based his alphabet on the previous "Slavonic-Serbian" script, following the principle of "write as you speak and read as it is written", removing obsolete letters and letters representing iotified vowels, introducing J from Latin alphabet instead, and adding several consonant letters for sounds specific to Serbian phonology. During the same period, Croatian linguists led by Ljudevit Gaj adapted the Latin alphabet, in use in western South Slavic areas, using the same principles. As a result of this joint effort, Cyrillic and Latin alphabets for Serbo-Croatian have a complete one-to-one congruence, with the Latin digraphs Lj, Nj, and Dž counting as single letters.

Vuk's Cyrillic alphabet was officially adopted in Serbia in 1868, and was in exclusive use in the country up to the inter-war period. Both alphabets were co-official in the Kingdom of Yugoslavia and later in the Socialist Federal Republic of Yugoslavia. Due to the shared cultural area, Gaj's Latin alphabet saw a gradual adoption in Serbia since, and both scripts are used to write modern standard Serbian, Bosnian and Montenegrin; Croatian has used only the Latin alphabet. In Serbia, Cyrillic is seen as being more traditional, and has the official status (designated in the Constitution as the "official script", compared to Latin's status of "script in official use" designated by a lower-level act). It is also an official script in Bosnia and Herzegovina and Montenegro, along with Latin.

The Serbian Cyrillic alphabet was used as a basis for the Macedonian alphabet with the work of Krste Misirkov and Venko Markovski.

Official use

Cyrillic is in official use in Serbia, Montenegro and Republika Srpska.[1] Official documents are printed in Cyrillic only (2006).[1] Although the Bosnian language "officially accept[s] both alphabets",[1] the Latin script is almost always used in the Federation of Bosnia and Herzegovina,[1] whereas Cyrillic is in official and every-day use in Republika Srpska[1] (and is used only by the Serbs[2]).

In Croatia, the Serbian language is an officially recognized minority language. In 2013, there were widespread Anti-Cyrillic protests in Croatia.

Cyrillic is an important symbol of Serbian identity,[3] even though, according to a 2014 survey, 47% of the Serbian population write in the Latin alphabet whereas 36% write in Cyrillic.[4]

Modern alphabet

Example of proper cursive modern Serbian Cyrillic alphabet
Serbian Cyrillic alphabet contains 17 letters absent from Latin

The following table provides the upper and lower case forms of the Serbian Cyrillic alphabet, along with the equivalent forms in the Serbian Latin alphabet and the International Phonetic Alphabet (IPA) value for each letter:

Cyrillic Latin IPA value
А а A a /a/
Б б B b /b/
В в V v /ʋ/
Г г G g /ɡ/
Д д D d /d/
Ђ ђ Đ đ //
Е е E e /e/
Ж ж Ž ž /ʒ/
З з Z z /z/
И и I i /i/
Ј ј J j /j/
К к K k /k/
Л л L l /l/
Љ љ Lj lj /ʎ/
М м M m /m/
Cyrillic Latin IPA value
Н н N n /n/
Њ њ Nj nj /ɲ/
О о O o /o/
П п P p /p/
Р р R r /r/
С с S s /s/
Т т T t /t/
Ћ ћ Ć ć //
У у U u /u/
Ф ф F f /f/
Х х H h /x/
Ц ц C c /ts/
Ч ч Č č //
Џ џ Dž dž //
Ш ш Š š /ʃ/

Early history

Serbian Cyrillic, from Comparative orthography of European languages. Source: Vuk Stefanović Karadžić "Srpske narodne pjesme" (Serbian folk poems), Vienna, 1841

Early Cyrillic

The two Slavic scripts, Glagolitic and Cyrillic, in tradition, were invented by the Byzantine Christian missionaries and brothers Cyril and Methodius in the 860s, amid the Christianization of the Slavs. Glagolitic appears to be older, predating the introduction of Christianity, only formalized by Cyril and expanded to cover non-Greek sounds. Cyrillic may have been a creation of Cyril's disciples, perhaps at the Preslav Literary School in the 890s.[5]

The earliest form of Cyrillic was the ustav, based on Greek uncial script, augmented by ligatures and letters from the Glagolitic alphabet for consonants not found in Greek. There was no distinction between capital and lowercase letters. The literary Slavic language was based on the Bulgarian dialect of Thessaloniki.[5]

Medieval Serbian Cyrillic

Part of the Serbian literary heritage of the Middle Ages are works such as Vukan Gospels, St. Sava's Nomocanon, Dušan's Code, Munich Serbian Psalter, and others. The first printed book in Serbian was the Cetinje Octoechos (1494).

Karadžić's reform

Vuk Stefanović Karadžić (l. 1787–1864) fled Serbia during the Serbian Revolution in 1813, to Vienna. There he met Jernej Kopitar, a linguist with interest in slavistics. Kopitar and Sava Mrkalj helped Vuk to reform the Serbian language and its orthography. He finalized the alphabet in 1818 with the Serbian Dictionary.

Karadžić reformed the Serbian literary language and standardised the Serbian Cyrillic alphabet by following strict phonemic principles on the Johann Christoph Adelung' model and Jan Hus' Czech alphabet. Karadžić's reforms of the Serbian literary language modernised it and distanced it from Serbian and Russian Church Slavonic, instead bringing it closer to common folk speech, specifically, to the dialect of Eastern Herzegovina which he spoke. Karadžić was, together with Đuro Daničić, the main Serbian signatory to the Vienna Literary Agreement of 1850 which, encouraged by Austrian authorities, laid the foundation for the Serbian language, various forms of which are used by Serbs in Serbia, Montenegro, Bosnia and Herzegovina and Croatia today. Karadžić also translated the New Testament into Serbian, which was published in 1868.

He wrote several books; Mala prostonarodna slaveno-serbska pesnarica and Pismenica serbskoga jezika in 1814, and two more in 1815 and 1818, all with the alphabet still in progress. In his letters from 1815-1818 he used: Ю, я, Ы and Ѳ. In his 1815 song book he dropped the Ѣ.[6]

The alphabet was officially adopted in 1868, four years after his death.[7]

From the Old Slavic script Vuk retained these 24 letters:
А а Б б В в Г г Д д Е е Ж ж З з
И и К к Л л М м Н н О о П п Р р
С с Т т У у Ф ф Х х Ц ц Ч ч Ш ш
He added one Latin letter:
Ј ј
Vuk's dictionary
And 5 new ones:
Љ љ Њ њ Ћ ћ Ђ ђ Џ џ
He removed:
Ѥ ѥ (је) Ѣ, ѣ (јат) І ї (и) Ѵ ѵ (и) Ѹ ѹ (у) Ѡ ѡ (о) Ѧ ѧ (мали јус) Ѫ ѫ (велики јус) Ы ы (јери, тврдо и)
Ю ю (ју) Ѿ ѿ (от) Ѳ ѳ (т) Ѕ ѕ (дз) Щ щ (шт) Ѯ ѯ (кс) Ѱ ѱ (пс) Ъ ъ (тврди полуглас) Ь ь (меки полуглас) Я я (ја)

Contemporary history

In Austria-Hungary

Orders issued on the 3 and 13 October 1914 banned the use of Serbian Cyrillic in the Kingdom of Croatia-Slavonia, limiting it for use in religious instruction. A decree was passed on January 3, 1915, that banned Serbian Cyrillic completely from public use. An imperial order in October 25, 1915, banned the use of Serbian Cyrillic in the Condominium of Bosnia and Herzegovina, except "within the scope of Serb Orthodox Church authorities".[8][9]

World War II

On April 25, 1941, Grand Mufti Haj Amin al-Husseini of Jerusalem, who was made chief architect of the Nazi German offensive in Bosnia, had Serbian Cyrillic outlawed.[10]

In Yugoslavia

The Serbian Cyrillic script was one of the two official scripts used to write the Serbo-Croatian language in Yugoslavia since its establishment in 1918, the other being Latin script (latinica).

With the collapse of Yugoslavia in the 1990s, Serbo-Croatian was divided into its variants on ethnic lines (as it had been in pre-Yugoslav times) and Cyrillic is no longer used officially in Croatia, while in Serbia, Bosnia and Herzegovina and Montenegro the Serbian Cyrillic stayed the official constitutional script.[11]

Under the Constitution of Serbia of 2006, Cyrillic script is the only one in official use.[12]

Special letters

The ligatures Љ and Њ, together with Џ, Ђ and Ћ were developed specially for the Serbian alphabet.

local p = {}

-- articles in which traditional Chinese preceeds simplified Chinese local t1st = { ["228 Incident"] = true, ["Chinese calendar"] = true, ["Lippo Centre, Hong Kong"] = true, ["Republic of China"] = true, ["Republic of China at the 1924 Summer Olympics"] = true, ["Taiwan"] = true, ["Taiwan (island)"] = true, ["Taiwan Province"] = true, ["Wei Boyang"] = true, }

-- the labels for each part local labels = { ["c"] = "Chinese", ["s"] = "simplified Chinese", ["t"] = "traditional Chinese", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Cantonese Yale", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Zhuyin Fuhao", ["l"] = "literally", }

-- article titles for wikilinks for each part local wlinks = { ["c"] = "Chinese language", ["s"] = "simplified Chinese characters", ["t"] = "traditional Chinese characters", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Yale romanization of Cantonese", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Bopomofo", }

-- for those parts which are to be treated as languages their ISO code local ISOlang = { ["c"] = "zh", ["t"] = "zh-Hant", ["s"] = "zh-Hans", ["p"] = "zh-Latn-pinyin", ["tp"] = "zh-Latn", ["w"] = "zh-Latn-wadegile", ["j"] = "yue-jyutping", ["cy"] = "yue", ["poj"] = "hak", ["zhu"] = "zh-Bopo", }

local italic = { ["p"] = true, ["tp"] = true, ["w"] = true, ["j"] = true, ["cy"] = true, ["poj"] = true, } -- Categories for different kinds of Chinese text local cats = { ["c"] = "", ["s"] = "", ["t"] = "", }

function p.Zh(frame) -- load arguments module to simplify handling of args local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) return p._Zh(args) end function p._Zh(args) local uselinks = not (args["links"] == "no") -- whether to add links local uselabels = not (args["labels"] == "no") -- whether to have labels local capfirst = args["scase"] ~= nil

        local t1 = false -- whether traditional Chinese characters go first
        local j1 = false -- whether Cantonese Romanisations go first
        local testChar
        if (args["first"]) then
                 for testChar in mw.ustring.gmatch(args["first"], "%a+") do
          if (testChar == "t") then
           t1 = true
           end
          if (testChar == "j") then
           j1 = true
           end
         end
        end
        if (t1 == false) then
         local title = mw.title.getCurrentTitle()
         t1 = t1st[title.text] == true
        end

-- based on setting/preference specify order local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "poj", "zhu", "l"} if (t1) then orderlist[2] = "t" orderlist[3] = "s" end if (j1) then orderlist[4] = "j" orderlist[5] = "cy" orderlist[6] = "p" orderlist[7] = "tp" orderlist[8] = "w" end -- rename rules. Rules to change parameters and labels based on other parameters if args["hp"] then -- hp an alias for p ([hanyu] pinyin) args["p"] = args["hp"] end if args["tp"] then -- if also Tongyu pinyin use full name for Hanyu pinyin labels["p"] = "Hanyu Pinyin" end if (args["s"] and args["s"] == args["t"]) then -- Treat simplified + traditional as Chinese if they're the same args["c"] = args["s"] args["s"] = nil args["t"] = nil elseif (not (args["s"] and args["t"])) then -- use short label if only one of simplified and traditional labels["s"] = labels["c"] labels["t"] = labels["c"] end local body = "" -- the output string local params -- for creating HTML spans local label -- the label, i.e. the bit preceeding the supplied text local val -- the supplied text -- go through all possible fields in loop, adding them to the output for i, part in ipairs(orderlist) do if (args[part]) then -- build label label = "" if (uselabels) then label = labels[part] if (capfirst) then label = mw.language.getContentLanguage():ucfirst(

  • Ћ was adopted by Karadžić to represent the voiceless alveolo-palatal affricate (: /tɕ/). The letter was based on, but different in appearance to, the letter Djerv, which is the 12th letter of the Glagolitic alphabet; that letter had been used in written Serbian since the 12th century, to represent /ɡʲ/, dʲ/ and /dʑ/.
  • Karadžić adopted a design by Lukijan Mušicki for the letter Ђ. It was based on the letter Ћ, as adapted by Karadžić.
  • Ј was adopted from the Latin alphabet.

Љ, Њ and Џ were later adopted for use in the Macedonian alphabet.

Differences from other Cyrillic alphabets

Common non-italic (left), Russian italic (middle) and Serbian & Macedonian italic (right) glyphs of letters б, г, д, п, т; note that all are quite acceptable in handwritten Russian cursive

Serbian Cyrillic does not use several letters encountered in other Slavic Cyrillic alphabets. It does not use hard sign (ъ) and soft sign (ь), but the aforementioned soft-sign ligatures instead. It does not have Russian/Belorussian Э, the semi-vowels Й or Ў, nor the iotated letters Я (Russian/Bulgarian ya), Є (Ukrainian ye), Ї (yi), Ё (Russian yo) or Ю (yu), which are instead written as two separate letters: Ja, Je, Jи, Jo, Jy. J can also be used as a semi-vowel. The letter Щ is not used. When necessary, it is transliterated as either ШЧ or ШT.

Serbian and Macedonian italic and cursive forms of lowercase letters б, г, д, п, and т, differ from those used in other Cyrillic alphabets (in Serbian ш can optionally be underlined, whereas in Macedonian it is never underlined). That presents an obstacle in Unicode modeling, as the glyphs differ only in italic versions, and historically non-italic letters have been used in the same code positions. Serbian professional typography uses fonts specially crafted for the language to overcome the problem, but texts printed from common computers contain East Slavic rather than Serbian italic glyphs.[13] Cyrillic fonts from Adobe,[14] Microsoft (Windows Vista and later) and a few other font housesrequire('Module:No globals')

local p = {}

-- articles in which traditional Chinese preceeds simplified Chinese local t1st = { ["228 Incident"] = true, ["Chinese calendar"] = true, ["Lippo Centre, Hong Kong"] = true, ["Republic of China"] = true, ["Republic of China at the 1924 Summer Olympics"] = true, ["Taiwan"] = true, ["Taiwan (island)"] = true, ["Taiwan Province"] = true, ["Wei Boyang"] = true, }

-- the labels for each part local labels = { ["c"] = "Chinese", ["s"] = "simplified Chinese", ["t"] = "traditional Chinese", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Cantonese Yale", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Zhuyin Fuhao", ["l"] = "literally", }

-- article titles for wikilinks for each part local wlinks = { ["c"] = "Chinese language", ["s"] = "simplified Chinese characters", ["t"] = "traditional Chinese characters", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Yale romanization of Cantonese", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Bopomofo", }

-- for those parts which are to be treated as languages their ISO code local ISOlang = { ["c"] = "zh", ["t"] = "zh-Hant", ["s"] = "zh-Hans", ["p"] = "zh-Latn-pinyin", ["tp"] = "zh-Latn", ["w"] = "zh-Latn-wadegile", ["j"] = "yue-jyutping", ["cy"] = "yue", ["poj"] = "hak", ["zhu"] = "zh-Bopo", }

local italic = { ["p"] = true, ["tp"] = true, ["w"] = true, ["j"] = true, ["cy"] = true, ["poj"] = true, } -- Categories for different kinds of Chinese text local cats = { ["c"] = "", ["s"] = "", ["t"] = "", }

function p.Zh(frame) -- load arguments module to simplify handling of args local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) return p._Zh(args) end function p._Zh(args) local uselinks = not (args["links"] == "no") -- whether to add links local uselabels = not (args["labels"] == "no") -- whether to have labels local capfirst = args["scase"] ~= nil

        local t1 = false -- whether traditional Chinese characters go first
        local j1 = false -- whether Cantonese Romanisations go first
        local testChar
        if (args["first"]) then
                 for testChar in mw.ustring.gmatch(args["first"], "%a+") do
          if (testChar == "t") then
           t1 = true
           end
          if (testChar == "j") then
           j1 = true
           end
         end
        end
        if (t1 == false) then
         local title = mw.title.getCurrentTitle()
         t1 = t1st[title.text] == true
        end

-- based on setting/preference specify order local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "poj", "zhu", "l"} if (t1) then orderlist[2] = "t" orderlist[3] = "s" end if (j1) then orderlist[4] = "j" orderlist[5] = "cy" orderlist[6] = "p" orderlist[7] = "tp" orderlist[8] = "w" end -- rename rules. Rules to change parameters and labels based on other parameters if args["hp"] then -- hp an alias for p ([hanyu] pinyin) args["p"] = args["hp"] end if args["tp"] then -- if also Tongyu pinyin use full name for Hanyu pinyin labels["p"] = "Hanyu Pinyin" end if (args["s"] and args["s"] == args["t"]) then -- Treat simplified + traditional as Chinese if they're the same args["c"] = args["s"] args["s"] = nil args["t"] = nil elseif (not (args["s"] and args["t"])) then -- use short label if only one of simplified and traditional labels["s"] = labels["c"] labels["t"] = labels["c"] end local body = "" -- the output string local params -- for creating HTML spans local label -- the label, i.e. the bit preceeding the supplied text local val -- the supplied text -- go through all possible fields in loop, adding them to the output for i, part in ipairs(orderlist) do if (args[part]) then -- build label label = "" if (uselabels) then label = labels[part] if (capfirst) then label = mw.language.getContentLanguage():ucfirst( include the Serbian variations (both regular and italic).

If the underlying font and Web technology provides support, the proper glyphs can be obtained by marking the text with appropriate language codes. Thus, in non-italic mode:

  • бгдпт, produces бгдпт, same (except for the shape of б) as
  • бгдпт, producing бгдпт

whereas:

  • бгдпт gives бгдпт, and
  • бгдпт produces бгдпт.

Since Unicode still doesn't provide the required difference, OpenType locl (locale) support must be present. Programs like Mozilla Firefox, LibreOffice (currently under GNU/Linux only), and some others provide required OpenType support. Starting from CSS 3, web authors also have to use this: font-feature-settings: 'locl';. Of course, font families like GNU FreeFont, DejaVu, Ubuntu, Microsoft "C*" fonts from Windows Vista and above must be used.

See also

References


-- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p-------------------------------------------------------------------------------- -- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p
  1. ^ a b c d e
  2. ^
  3. ^
  4. ^ http://www.b92.net/kultura/vesti.php?nav_category=1087&yyyy=2014&mm=12&dd=16&nav_id=936784
  5. ^ a b Cubberley, Paul (1996) "The Slavic Alphabets". in Daniels, Peter T., and William Bright, eds. (1996). The World's Writing Systems. Oxford University Press. ISBN 0-19-507993-0.
  6. ^ The life and times of Vuk Stefanović Karadžić, p. 387
  7. ^
  8. ^ Andrej Mitrović, Serbia's great war, 1914-1918 p.78-79. Purdue University Press, 2007. ISBN 1-55753-477-2, ISBN 978-1-55753-477-4
  9. ^
  10. ^
  11. ^
  12. ^ Article 10 of the Constitution of the Republic of Serbia (English version)
  13. ^
  14. ^ http://www.adobe.com/devnet/font/pdfs/5013.Cyrillic_Font_Spec.pdf

Sources

  • Sir Duncan Wilson, The life and times of Vuk Stefanović Karadžić, 1787-1864: literacy, literature and national independence in Serbia, p. 387. Clarendon Press, 1970. Google Books
  • Alphabet

External links

  • Omniglot – Serbian, Croatian and Bosnian
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.