SubtitleEdit/Dictionaries/srp_OCRFixReplaceList.xml

271 lines
13 KiB
XML
Raw Normal View History

2019-05-26 03:23:51 +02:00
<?xml version="1.0" encoding="utf-8"?>
<!-- Credit goes to: MilanRS [http://www.prijevodi-online.org] -->
2015-06-24 14:05:26 +02:00
<OCRFixReplaceList>
<WholeWords>
2015-07-02 17:40:32 +02:00
<Word from="če" to="će" />
<Word from="čemo" to="ćemo" />
2020-05-09 21:54:45 +02:00
<Word from="češ" to="ćeš" />
2018-02-05 12:41:25 +01:00
<Word from="čete" to="ćete" />
2020-05-09 21:54:45 +02:00
<Word from="ču" to="ću" />
<Word from="ćmo" to="ćemo" />
<Word from="ćš" to="ćeš" />
<Word from="ćte" to="ćete" />
2023-06-18 21:20:37 +02:00
<Word from="djete" to="dete" />
2015-07-02 17:40:32 +02:00
<Word from="hey" to="hej" />
2020-05-09 21:54:45 +02:00
<Word from="Hey" to="Hej" />
2015-07-02 17:40:32 +02:00
<Word from="htjeo" to="htio" />
<Word from="iči" to="ići" />
2015-07-08 22:46:31 +02:00
<Word from="jel" to="je l'" />
<Word from="Jel" to="Je l'" />
2018-02-28 15:49:30 +01:00
<Word from="nebi" to="ne bi" />
2020-05-09 21:54:45 +02:00
<Word from="Nebi" to="Ne bi" />
2018-02-28 15:49:30 +01:00
<Word from="nebih" to="ne bih" />
2020-05-09 21:54:45 +02:00
<Word from="Nebih" to="Ne bih" />
2015-07-02 17:40:32 +02:00
<Word from="nedaj" to="ne daj" />
2018-01-19 19:23:50 +01:00
<Word from="Nedaj" to="Ne daj" />
2018-01-23 11:18:26 +01:00
<Word from="nedam" to="ne dam" />
<Word from="Nedam" to="Ne dam" />
<Word from="nedaš" to="ne daš" />
<Word from="Nedaš" to="Ne daš" />
2018-01-19 19:23:50 +01:00
<Word from="nemogu" to="ne mogu" />
<Word from="Nemogu" to="Ne mogu" />
<Word from="nemora" to="ne mora" />
<Word from="Nemora" to="Ne mora" />
<Word from="nemoraš" to="ne moraš" />
<Word from="Nemoraš" to="Ne moraš" />
2018-01-19 17:53:49 +01:00
<Word from="predamnom" to="preda mnom" />
<Word from="Predamnom" to="Preda mnom" />
2015-07-02 17:40:32 +02:00
<Word from="Rješit" to="Riješit" />
2018-01-19 18:37:35 +01:00
<Word from="samnom" to="sa mnom" />
<Word from="Samnom" to="Sa mnom" />
2015-07-02 17:40:32 +02:00
<Word from="smjeo" to="smio" />
2023-06-18 21:20:37 +02:00
<Word from="umijesto" to="ujesto" />
<Word from="Umijesto" to="Umesto" />
2020-05-09 21:54:45 +02:00
<Word from="uopče" to="uopće" />
<Word from="Uopče" to="Uopće" />
2023-06-18 21:20:37 +02:00
<Word from="uspiješan" to="uspešan" />
<Word from="uvjek" to="uvek" />
<Word from="Uvjek" to="Uvek" />
2015-07-08 22:46:31 +02:00
<Word from="valda" to="valjda" />
2018-01-19 18:37:35 +01:00
<Word from="zamnom" to="za mnom" />
<Word from="Zamnom" to="Za mnom" />
2023-06-18 21:20:37 +02:00
<Word from="želila" to="želela" />
2015-06-23 11:42:06 +02:00
</WholeWords>
2015-06-24 14:05:26 +02:00
<PartialWordsAlways />
<PartialWords>
<WordPart from="¤" to="o" />
<WordPart from="vv" to="w" />
<WordPart from="IVI" to="M" />
<WordPart from="lVI" to="M" />
<WordPart from="IVl" to="M" />
<WordPart from="lVl" to="M" />
</PartialWords>
2019-05-26 03:23:51 +02:00
<WholeLines />
<PartialLinesAlways />
<PartialLines>
2015-07-02 17:40:32 +02:00
<LinePart from="bi smo" to="bismo" />
<LinePart from="dali je" to="da li je" />
<LinePart from="dali si" to="da li si" />
<LinePart from="Dali si" to="Da li si" />
2015-07-08 22:46:31 +02:00
<LinePart from="Jel sam ti" to="Jesam li ti" />
<LinePart from="Jel si" to="Jesi li" />
<LinePart from="Jel' si" to="Jesi li" />
<LinePart from="Je I'" to="Jesi li" />
2015-06-24 14:05:26 +02:00
<LinePart from="Jel si to" to="Jesi li to" />
<LinePart from="Jel' si to" to="Da li si to" />
<LinePart from="jel si to" to="da li si to" />
<LinePart from="jel' si to" to="jesi li to" />
<LinePart from="Jel si ti" to="Da li si ti" />
<LinePart from="Jel' si ti" to="Da li si ti" />
<LinePart from="jel si ti" to="da li si ti" />
<LinePart from="jel' si ti" to="da li si ti" />
<LinePart from="jel ste " to="jeste li " />
2015-07-08 22:46:31 +02:00
<LinePart from="Jel ste" to="Jeste li" />
2015-06-24 14:05:26 +02:00
<LinePart from="jel' ste " to="jeste li " />
<LinePart from="Jel' ste " to="Jeste li " />
2015-07-08 22:46:31 +02:00
<LinePart from="Jel su " to="Jesu li " />
<LinePart from="Jel da " to="Zar ne" />
<LinePart from="jel da " to="zar ne" />
<LinePart from="jel'da " to="zar ne" />
<LinePart from="Jeli sve " to="Je li sve" />
<LinePart from="Jeli on " to="Je li on" />
<LinePart from="Jeli ti " to="Je li ti" />
<LinePart from="jeli ti " to="je li ti" />
<LinePart from="Jeli to " to="Je li to" />
2015-07-02 17:40:32 +02:00
<LinePart from="Nebrini" to="Ne brini" />
<LinePart from="ne ću" to="neću" />
2015-06-24 14:05:26 +02:00
<LinePart from="od kako" to="otkako" />
2015-07-08 22:46:31 +02:00
<LinePart from="Si dobro" to="Jesi li dobro" />
2015-07-02 17:40:32 +02:00
<LinePart from="Svo vreme" to="Sve vrijeme" />
<LinePart from="Svo vrijeme" to="Sve vrijeme" />
<LinePart from="Cijelo vrijeme" to="Sve vrijeme" />
</PartialLines>
<BeginLines />
<EndLines />
<RegularExpressions>
2018-01-19 23:15:49 +01:00
<RegEx find="ÄŤ" replaceWith="č" />
2018-01-23 11:18:26 +01:00
<RegEx find="Ä" replaceWith="č" />
2018-01-19 23:15:49 +01:00
<RegEx find="ć" replaceWith="ć" />
<RegEx find="Ä‘" replaceWith="đ" />
<RegEx find="Ĺľ" replaceWith="ž" />
2018-01-23 11:18:26 +01:00
<RegEx find="ž" replaceWith="ž" />
2018-01-19 23:15:49 +01:00
<RegEx find="š" replaceWith="š" />
2018-01-23 11:18:26 +01:00
<RegEx find="Å¡" replaceWith="š" />
2018-01-19 23:15:49 +01:00
<RegEx find="ÄŚ" replaceWith="Č" />
2019-05-10 00:22:06 +02:00
<RegEx find="ÄŒ" replaceWith="Č" />
2018-01-19 23:15:49 +01:00
<RegEx find="Ć" replaceWith="Ć" />
<RegEx find="Ĺ " replaceWith="Š" />
2018-01-23 11:18:26 +01:00
<RegEx find="Å " replaceWith="Š" />
2018-01-19 23:15:49 +01:00
<RegEx find="Ĺ˝" replaceWith="Ž" />
2018-01-23 11:18:26 +01:00
<RegEx find="Ž" replaceWith="Ž" />
2015-08-24 12:08:42 +02:00
<RegEx find="đž" replaceWith="dž" />
2023-12-01 11:35:11 +01:00
<RegEx find="gp" replaceWith="go" />
2023-06-18 21:20:37 +02:00
<RegEx find="ajsmiješnij" replaceWith="ajsmešnij" />
2015-08-24 12:08:42 +02:00
<RegEx find="boži[čć]([aeiu]|em|ima)?\b" replaceWith="Božić$1" />
2015-07-10 15:52:51 +02:00
<RegEx find=" g-dine\.$" replaceWith=" gospodine." />
<RegEx find=" g-dine +(?=[A-ZČĐŠŽ])" replaceWith=" g. " />
<RegEx find="([gG])dine? +(?=[A-ZČĐŠŽ])" replaceWith="$1. " />
<RegEx find="([gG])-đo +(?=[A-ZČĐŠŽ])" replaceWith="$1gđo " />
<RegEx find="gdina +(?=[A-ZČĐŠŽ])" replaceWith="g. " />
<RegEx find=" gosp +" replaceWith=" g. " />
2018-01-19 23:41:53 +01:00
<RegEx find="([hH])oč" replaceWith="$1oć" />
2015-07-08 22:46:31 +02:00
<RegEx find="Jel si sigur" replaceWith="Jesi li sigur" />
<RegEx find="Jel' si sigur" replaceWith="Jesi li sigur" />
2015-07-30 20:36:40 +02:00
<RegEx find="\b([jJ])el\?" replaceWith="$1e l'?" />
2015-07-10 15:52:51 +02:00
<RegEx find="\bJel'" replaceWith="Je l'" />
2015-07-11 11:03:19 +02:00
<RegEx find="([kK]alib(?:ar|r[aeui]))\. *([0-9])" replaceWith="$1 .$2" />
2018-01-19 17:53:49 +01:00
<RegEx find="([mM])jenja(?!č)" replaceWith="$1ijenja" />
<RegEx find="oguč" replaceWith="oguć" />
2015-07-30 18:41:16 +02:00
<RegEx find="\b([nN])eč([ue]š?|emo|ete)\b" replaceWith="$1eć$2" />
2018-01-19 17:53:49 +01:00
<RegEx find="emo[zž]e" replaceWith="e može" />
2015-07-30 18:41:16 +02:00
<RegEx find="\b([nN])ezna([šm]o?|t[ei]|ju|jući|vši)?\b" replaceWith="$1e zna$2" />
2023-06-18 21:20:37 +02:00
<RegEx find="najcijenjen" replaceWith="najcenjen" />
2015-07-10 15:52:51 +02:00
<RegEx find="N[jJ]u Jork" replaceWith="Njujork" />
2016-08-06 22:31:28 +02:00
<RegEx find="([oO])d([kp])" replaceWith="$1t$2" />
2018-01-19 17:53:49 +01:00
<RegEx find="ružij" replaceWith="ružj" />
2023-06-18 21:20:37 +02:00
<RegEx find="([oO])sječa" replaceWith="$1seća" />
2015-07-30 18:41:16 +02:00
<RegEx find="([pPdD])onje([lt])" replaceWith="$1onije$2" />
<RegEx find="([pP])objedi([mšto])" replaceWith="$1obijedi$2" />
2018-01-19 23:31:06 +01:00
<RegEx find="ed([ph])" replaceWith="et$1" />
2018-01-19 17:53:49 +01:00
<RegEx find="rimjeti" replaceWith="rimijeti" />
2018-02-28 15:49:30 +01:00
<RegEx find="romjeni([mštol])" replaceWith="romijeni$1" />
2023-06-18 21:20:37 +02:00
<RegEx find="azumijeć" replaceWith="azumeć" />
<RegEx find="([Cc])jepljen" replaceWith="$1epljen" />
<RegEx find="rimjenjen" replaceWith="rimenjen" />
2015-07-10 15:52:51 +02:00
<RegEx find="([^d])rješit" replaceWith="$1riješit" />
2023-06-18 21:20:37 +02:00
<RegEx find="lijede[čć]([aeiu]|e[mg])" replaceWith="ledeć$1" />
<RegEx find="([sS])mješno" replaceWith="$1mešno" />
<RegEx find="spijeh" replaceWith="speh" />
<RegEx find="spiješn" replaceWith="spešn" />
2018-01-19 18:37:35 +01:00
<RegEx find="\b([vV])eč([aiu]|[ei][mg]|ih|ima|in[iu]|uom|o[mj])?\b" replaceWith="$1eć$2" />
2015-07-30 18:41:16 +02:00
<RegEx find="([zZ])ahtjeva([ojlmšt])" replaceWith="$1ahtijeva$2" />
2015-07-10 15:52:51 +02:00
<RegEx find="([ks]ao)\.:" replaceWith="$1:" />
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[a-zčđšž])Ij(?=[a-zčđšž])" replaceWith="lj" />
<RegEx find="(?&lt;=[^A-ZČĐŠŽa-zčđšž])Iju(?=bav|d|t)" replaceWith="lju" />
2018-02-05 12:41:25 +01:00
<!-- 10kg » 10 kg | 20cm » 20 cm | 44dag » 44 dag -->
<RegEx find="\b(\d+)([a-z]{2,4})\b" replaceWith="$1 $2" />
<!-- 10m » 10 m -->
<RegEx find="([\d]){1}?m" replaceWith="$1 m" />
2015-07-30 20:36:40 +02:00
<!-- kad ima razmak između tagova </i> <i> -->
2015-06-28 19:44:04 +02:00
<!-- <RegEx find="(&gt;) +(&lt;)" replaceWith="$1$2" /> -->
2015-06-24 14:05:26 +02:00
<!-- ',"' to '",' -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=\w),&quot;(?=\s|$)" replaceWith="&quot;," />
<RegEx find=",\.{3}|\.{3},|\.{2} \." replaceWith="..." />
<!-- "1 :", "2 :"... "n :" to "n:" -->
2015-07-02 19:01:38 +02:00
<RegEx find="([0-9]) +: +(\D)" replaceWith="$1: $2" />
2015-06-24 14:05:26 +02:00
<!-- Two or more consecutive "," to "..." -->
<RegEx find=",{2,}" replaceWith="..." />
2015-06-24 14:05:26 +02:00
<!-- Two or more consecutive "-" to "..." -->
<RegEx find="-{2,}" replaceWith="..." />
2015-06-24 14:05:26 +02:00
<RegEx find="([^().])\.{2}([^().:])" replaceWith="$1...$2" />
<!-- separator stotica i decimalnog ostatka 1,499,000.00 -> 1.499.000,00 -->
2015-06-24 14:05:26 +02:00
<RegEx find="([0-9]{3})\.([0-9]{2}[^0-9])" replaceWith="$1,$2" />
<RegEx find="([0-9]),([0-9]{3}\D)" replaceWith="$1.$2" />
<!-- Apostrophes -->
2015-06-24 14:05:26 +02:00
<RegEx find="´´" replaceWith="&quot;" />
<!-- <RegEx find="[´`]" replaceWith="'" /> -->
<!-- <RegEx find="[“”]" replaceWith="&quot;" /> -->
2015-06-24 14:05:26 +02:00
<RegEx find="''" replaceWith="&quot;" />
<!-- Two or more consecutive '"' to one '"' -->
<RegEx find="&quot;{2,}" replaceWith="&quot;" />
<!-- Fix zero and capital 'o' ripping mistakes -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[0-9]\.?)O" replaceWith="0" />
<RegEx find="\b0(?=[A-ZČĐŠŽa-zčđšž])" replaceWith="O" />
<!-- Brisanje crte - na početku 1. reda (i kada ima dva reda) -->
2015-06-24 14:05:26 +02:00
<RegEx find="\A- ?([A-ZČĐŠŽa-zčđšž0-9„'&quot;]|\.{3})" replaceWith="$1" />
2015-07-02 19:01:38 +02:00
<RegEx find="\A(&lt;[ibu]&gt;)- ?" replaceWith="$1" />
<RegEx find=" - " replaceWith=" -" />
<!-- Brisanje razmaka iza crte - na početku 2. reda -->
2015-07-02 19:01:38 +02:00
<RegEx find="(?&lt;=\n(&lt;[ibu]&gt;)?)- (?=[A-ZČĐŠŽčš0-9„'&quot;&lt;])" replaceWith="-" />
<!-- Korigovanje crte - kad je u sredini prvog reda -->
2015-06-24 14:05:26 +02:00
<RegEx find="([.!?&quot;&gt;]) - ([A-ZČĐŠŽčš'&quot;&lt;])" replaceWith="$1 -$2" />
<!-- Zatvoren tag pa razmak poslije crtice -->
2015-06-24 14:05:26 +02:00
<RegEx find="(&gt;) - ([A-ZČĐŠŽčš„'&quot;])" replaceWith="$1 -$2" />
<!-- Zatvoren tag pa crtica razmak -->
2015-06-24 14:05:26 +02:00
<RegEx find="(&gt;)- ([A-ZČĐŠŽčš„'&quot;])" replaceWith="$1-$2" />
<!-- Zagrada pa crtica razmak -->
2015-06-24 14:05:26 +02:00
<RegEx find="\(- ([A-ZČĐŠŽčš„'&quot;])" replaceWith="(-$1" />
<!-- Smart space after dot -->
2015-07-30 18:41:16 +02:00
<!-- osim kad je zadnje t (riječ kolt) -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[a-su-zá-úñä-ü])\.(?=[^\s\n().:?!*^“”'&quot;&lt;])" replaceWith=". " />
<!-- Oznaka za kalibar. Npr. "Colt .45" -->
2015-07-30 18:41:16 +02:00
<!-- Da bi radilo, da bi ovaj razmak bio dozvoljen, odčekirajte "Razmaci ispred tačke" -->
2015-06-28 19:44:04 +02:00
<RegEx find="t\.(?=[0-9]{2})" replaceWith="t ." />
<!-- Joey(j)a -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=\b[A-Z][a-z])eyj(?=[a-z])" replaceWith="ey" />
<!-- Sređuje zarez sa razmakom -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[A-ZČĐŠŽa-zčđšžá-úñä-ü&quot;]),(?=[^\s(),?!“&lt;])" replaceWith=", " />
<RegEx find=" +,(?=[A-ZČĐŠŽa-zčđšž])" replaceWith=", " />
<RegEx find=" +, +" replaceWith=", " />
<RegEx find=" +,$" replaceWith="," />
<RegEx find="([?!])-" replaceWith="$1 -" />
<!-- Space after last of some consecutive dots (eg. "...") -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[a-zčđšž])(\.{3}|!)(?=[a-zčđšž])" replaceWith="$1 " />
<!-- Delete space after "..." that is at the beginning of the line. You may delete this line if you don't like it -->
2015-06-24 14:05:26 +02:00
<!-- <RegEx find="^\.{3} +" replaceWith="..." /> -->
<!-- "tekst ... tekst" mijenja u "tekst... tekst" -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[A-ZČĐŠŽa-zčđšž]) +\.{3} +" replaceWith="... " />
<RegEx find="(?&lt;=\S)\. +&quot;" replaceWith=".&quot;" />
<RegEx find="&quot; +\." replaceWith="&quot;." />
<RegEx find="(?&lt;=\S\.{3}) +&quot;(?=\s|$)" replaceWith="&quot;" />
<RegEx find=" +\.{3}$" replaceWith="..." />
<RegEx find="(?&lt;=[a-zčđšž])(?: +\.{3}|\.{2}$)" replaceWith="..." />
2015-06-24 14:05:26 +02:00
<!-- Razmak ispred zagrade -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[A-ZČĐŠŽa-zčđšž])\(" replaceWith=" (" />
2015-06-24 14:05:26 +02:00
<!-- Razmak iza upitnika -->
2015-06-28 19:44:04 +02:00
<RegEx find="\?(?=[A-ZČĐŠŽčš])" replaceWith="? " />
<RegEx find="(?&lt;=^|&gt;)\.{3} +(?=[A-ZČĐŠŽčš])" replaceWith="..." />
2015-07-30 18:41:16 +02:00
<!-- Brise ... kad je na poč. reda "... -->
2015-06-28 19:44:04 +02:00
<RegEx find="^&quot;\.{3} +" replaceWith="&quot;" />
2015-07-02 23:13:29 +02:00
<RegEx find="(?&lt;=[0-9])\$" replaceWith=" $$" />
<!-- ti š -> t š by Strider -->
<!-- Zamijeni sva "**ti šu*" s "**t šu*" i "**ti še*" s "**t še*" -->
<!-- <RegEx find="([a-z])ti (š+[eu])" replaceWith="$1t $2" /> -->
<!-- <RegEx find="([A-Za-z])ti( |\r?\n)(š[eu])" replaceWith="$1t$2$3" /> -->
<!-- <RegEx find="(?i)\b(ni)t (š[eu])" replaceWith="$1ti $2" /> -->
2015-07-10 15:52:51 +02:00
<!-- <RegEx find="\. +Mr. " replaceWith=". G. " /> -->
<!-- <RegEx find="\. +Mrs. " replaceWith=". Gđa " /> -->
<!-- <RegEx find="\. +Miss " replaceWith=". Gđica " /> -->
<!-- <RegEx find=", +Mrs. " replaceWith=", gđo " /> -->
<!-- <RegEx find=", +Miss " replaceWith=", gđice " /> -->
<!-- Razmak poslije <i> i poslije .. -->
2015-07-02 19:01:38 +02:00
<RegEx find="^(&lt;[ibu]&gt;) +" replaceWith="$1" />
<RegEx find="^\.{2} +" replaceWith="..." />
<!-- Razmak ? "</i> -->
2015-06-28 19:44:04 +02:00
<RegEx find="([.?!]) +(&quot;&lt;)" replaceWith="$1$2" />
<!-- Bez razmaka kod Npr.: -->
2015-06-28 19:44:04 +02:00
<RegEx find="(?&lt;=[Nn]pr\.) *: *" replaceWith=": " />
<RegEx find="\. ," replaceWith=".," />
<RegEx find="([?!])\." replaceWith="$1" />
<!-- Da ne kvari potpise sa ..:: -->
<RegEx find="\.{3}::" replaceWith="..::" />
<RegEx find="::\.{3}" replaceWith="::.." />
2015-06-28 19:44:04 +02:00
<RegEx find="\.{2} +::" replaceWith="..::" />
<!-- Skracenice bez razmaka -->
<RegEx find="d\. o\.o\." replaceWith="d.o.o." />
<!-- Kad red počinje sa ...pa malo slovo -->
2015-06-24 14:05:26 +02:00
<!-- <RegEx find="^\.{3}([a-zčđšž&quot;&lt;])" replaceWith="$1" /> -->
2015-06-28 19:44:04 +02:00
<!-- <RegEx find=" +([.?!])" replaceWith="$1" /> -->
</RegularExpressions>
2023-06-18 21:20:37 +02:00
</OCRFixReplaceList>