Closed AvtechScientific closed 3 years ago
Should pretty easy to fix, mind giving it a go? I'm still pretty short of time
I think I have a bit of spare time right now, so I can give it a try. To this end, could you please:
Thank you!
After taking a look on common/LangTables.hh
I understood that the approach is just to list all known traineddata files and not to try to analyze them. So ita_old.traineddata
should work actually. So I solved the issue by listing the lacking filenames.
Some of the traineddata files have complex names, e.g.:
Right now gImageReader would not recognize, e.g., srp_latn.traineddata as Serbian in the Language/traineddata selection drop-down menu, i.e. it will not be displayed as [srp] srpski -> (and the list of Serbian spell checking dictionaries), but rather it will be displayed undetected as: srp_latn . If you can't choose appropriate spell dictionary - it is not merely an aesthetics problem...
My suggestion is to parse the first part (till the dot) of traineddata file name as follows:
So display the language selection menu as follows:
Or, if the above mapping is too complex, then don't use native language names and just do:
The most important part here is that we can get access to the relevant spell dictionaries...
Thank you!