SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.09k stars 878 forks source link

OCRFixReplaceList.xml question #672

Closed diomed closed 9 years ago

diomed commented 9 years ago

Can OCRFixReplaceList.xml in Dictionaries be standalone file independent of any other language files in dictionary?

I mean to send new patch for cro_OCRFixReplaceList.xml for Croatian language purposes, but I'm unsure of would it display automatically in SE, since currently it does not. Maybe it needs connecting with something, for proper display? could you do that?

xylographe commented 9 years ago

I think, the three letter ISO language name for Croatian might be hrv ,

PS> [System.Globalization.CultureInfo]::GetCultures('AllCultures')|?{$_.EnglishName -match 'Croa'}|ft ThreeLetterISOLanguageName, EnglishName -auto

ThreeLetterISOLanguageName EnglishName
-------------------------- -----------
hrv                        Croatian
hrv                        Croatian (Croatia)
hrb                        Croatian (Latin, Bosnia and Herzegovina)
diomed commented 9 years ago

well, that's the least of my problems, I'll name it hrv if that's a must. I'd like an answer to my questions, please.

niksedk commented 9 years ago

The OCR fix replace lists can be standalone and will be used by Tools -> Fix common errors -> Fix common OCR errors.

When used via the OCR in SE the spell check dictionary is required to use the ocr fix list. The ocr fix replace list file is determined by the spell check language you choose in the ocr window.

diomed commented 9 years ago

Thank You for explanation. This is solved and can be closed.

diomed commented 9 years ago

ummm... something is unclear to me. should WordPart change parts of words to fixed parts of words, or what exactly?

So if I have wrongly written homeybee would this change every homeybee in honeybee or not?

I need explanation on this.

niksedk commented 9 years ago

WordPart is part of a word, e.g. "vv" to "w" or "oo" to "cc" - it will only be replaced if the current word is not spelled correctly and the new word is, like "vvelcome" to "welcome".