microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
106.76k stars 6.28k forks source link

TextExtractor: Russian starts with lowercase #32831

Open evinnichenko opened 1 month ago

evinnichenko commented 1 month ago

Microsoft PowerToys version

0.80.1

Utility with translation issue

TextExtractor

🌐 Language affected

Russian

❌ Actual phrase(s)

image

✔️ Expected phrase(s)

Русский (note the case)

ℹ Why is the current translation wrong

I am not sure if it is system-wide (probably not), app-wide, or unique to TE, but here title for Russian language (русский) mistakenly starts with a lowercase letter despite it being start of a new line, which warrants an uppercase.

jaimecbernardo commented 1 month ago

We list all available languages with OcrEngine.AvailableRecognizerLanguages https://learn.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrengine.availablerecognizerlanguages?view=winrt-22621

And then access the NativeName to list it: https://learn.microsoft.com/en-us/uwp/api/windows.globalization.language.nativename?view=winrt-22621#windows-globalization-language-nativename

This is the way it seems to be saved in the OcrLanguage internals.