!! Version 2 # LanguageConverter parser tests ## sr-ec ## !! test sr-ec: Simple conversion of Latin to Cyrillic !! options language=sr variant=sr-ec !! wikitext abvg !! html/php

абвг

!! html/parsoid

abvg

!! html/parsoid+langconv

абвг

!! end !! test sr-ec: Same as above, but assert that -{}-s must be removed and not converted (1) !! options language=sr variant=sr-ec !! wikitext -{lj}-аб-{nj}-вг-{dž}- !! html/php

ljабnjвгdž

!! html/parsoid

абвг

!! html/parsoid+langconv

ljабnjвг

!! end !! test sr-ec: This text has some Cyrillic, but is recognized as Latin, so it should be converted !! options language=sr variant=sr-ec !! wikitext абвгšđžčć !! html/php

абвгшђжчћ

!! html/parsoid

абвгšđžčć

!! html/parsoid+langconv

абвгшђжчћ

!! end !! test sr-ec: Same as above, but assert that -{}-s must be removed and not converted (2) !! options language=sr variant=sr-ec !! wikitext -{lj}-абвг-{nj}-šđžčć-{dž}- !! html/php

ljабвгnjшђжчћdž

!! html/parsoid

абвгšđžčć

!! html/parsoid+langconv

ljабвгnjшђжчћ

!! end !! test sr-ec: Roman numerals are not converted !! options language=sr variant=sr-ec !! wikitext a I b II v III g IV šđžčć !! html/php

а I б II в III г IV шђжчћ

!! html/parsoid

a I b II v III g IV šđžčć

!! html/parsoid+langconv

а I б II в III г IV шђжчћ

!! end ## sr-el ## !! test sr-el: A simple conversion of Latin to Latin !! options language=sr variant=sr-el !! wikitext abcd !! html/php

abcd

!! html/parsoid

abcd

!! html/parsoid+langconv

abcd

!! end !! test sr-el: A simple conversion of Cyrillic to Latin !! options language=sr variant=sr-el !! wikitext абцд !! html/php

abcd

!! html/parsoid

абцд

!! html/parsoid+langconv

abcd

!! end !! test sr-el: This text has some Latin, but is recognized as Cyrillic, so it should be converted !! options language=sr variant=sr-el !! wikitext abcdшђжчћ !! html/php

abcdšđžčć

!! html/parsoid

abcdшђжчћ

!! html/parsoid+langconv

abcdšđžčć

!! end !! test External links should be converted, unless they "look like a URL". !! options language=sr variant=sr-ec !! wikitext [http://example.com abcd] [http://example.com http://foo.com] http://example.com [http://example.com -{abcd}-] !! html/php

абцд

http://foo.com

http://example.com

abcd

!! html/parsoid

abcd

http://foo.com

http://example.com

!! html/parsoid+langconv

абцд

http://foo.com

http://example.com

abcd

!! end