Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages should be sorted #59

Open
THausherr opened this issue Apr 28, 2022 · 6 comments
Open

Languages should be sorted #59

THausherr opened this issue Apr 28, 2022 · 6 comments

Comments

@THausherr
Copy link

Environment

  • Tesseract Version: v5.0.1.20220107
  • Platform: W10.0.19043.1645 64 bit

Current Behavior:

grafik

Expected Behavior:

Languages should be sorted

Suggested Fix:

Sort

@stweil
Copy link
Member

stweil commented Apr 28, 2022

I think they are sorted by filename (deu.traineddata for German).

Ideally the list should use localized names ("Deutsch" for users who selected the German user interface) and sort those localized names. Do you want to implement that and send us a pull request?

@THausherr
Copy link
Author

Sorry, no, not enough time, sadly.

@stweil
Copy link
Member

stweil commented Apr 30, 2022

Nor do I have enough time. Maybe someone else has an idea how this can be done with reasonable efforts.

@Ruandv
Copy link

Ruandv commented Jun 9, 2022

@stweil I would like to TRY and give this a go. But I am looking for the files / list in the repo but does not seem to find it. Where is the code that generates the installer package?

Can you please give some pointers if possible?

@stweil
Copy link
Member

stweil commented Jun 9, 2022

That code is available here: https://github.com/UB-Mannheim/tesseract/tree/windows/nsis.

@filak
Copy link

filak commented Apr 6, 2023

The language selection is sorted by the Tesseract language code, but only the description is being displayed so it looks messy.

https://github.com/tesseract-ocr/tesseract/blob/main/doc/tesseract.1.asc#languages-and-scripts

 cos (Corsican), cym (Welsh), dan (Danish), deu (German), div (Dhivehi)

https://github.com/UB-Mannheim/tesseract/blob/windows/nsis/tesseract.nsi

 Section /o "German" SecLang_deu

Maybe a quick fix would do ?

 Section /o "deu - German" SecLang_deu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants