Page MenuHomePhabricator

Incorrect text conversion in Kazakh Wikipedia.
Open, MediumPublicBUG REPORT

Description

The Kazakh Wikipedia uses a converter from Cyrillic to Latin and Arabic. But there is a problem: sometimes the text in Latin turns into Cyrillic. For example: Elizabeth II turns into Елізабетһ II as shown in the screenshot.

photo1668304320.jpeg (1×591 px, 78 KB)


Steps to replicate the issue (include links if applicable):

Current behavior (What happens?):

  • kk (unconverted): Elizabeth II
  • kk-cyrl (converted to Cyrillic): Елізабетһ II

Expected behavior (What should have happened instead?):

  • kk (unconverted): Elizabeth II
  • kk-cyrl (English texts shouldn't converted) : Elizabeth II

Event Timeline

I believe this is the intended behavior for LanguageConverter.

This issue should be fixed in the template:

Change the wikitext from

{{lang|{{{1}}}|{{{4}}}}}

to

{{lang|{{{1}}}|-{kk|{{{4}}}}-}}

should fix the issue.

in this example, it seems that the problem is in the template, but in fact this happens with simple texts that are outside the template.

For example you can see this screen, where all II. VII turns into ЫЫ ВЫЫ, and heir presumptive into һеір пресұмптіве,

photo5190843606922018613.jpg (1×591 px, 105 KB)

Oh yeah, there are some conversion issues with Roman numerals.

No, it’s not only Roman numerals, if you look clearly you can see English words too, which turned into Cyrillic one. I notice this error in the Wikipedia mobile app, as well as in the phone browser

I think you misunderstand how the conversion work.

The one you expected is kk (unconverted, "mix-script") instead of kk-Cyrl (converted to Cyrl) as the converter won't know whether each Latn words need to be converted or not respectively, so you need to specify the behavior on each "Latn - not to convert" words.

Yes, I know about that, but idk where i can change it

So the issue is there's no place to change the language variant to kk in Wikipedia mobile app, right?

LGoto triaged this task as Medium priority.Mon, Dec 5, 5:28 PM
Dbrant added a subscriber: Dbrant.

It sounds like this might be a duplicate of T305383?
I noticed that the above task is closed, but the last comment from Anthony is that it's still reproducible.

So the issue is there's no place to change the language variant to kk in Wikipedia mobile app, right?

No, there is no such need. English text is automatically converted to Cyrillic, but it should not change at all.

It sounds like this might be a duplicate of T305383?
I noticed that the above task is closed, but the last comment from Anthony is that it's still reproducible.

Sounds like a different issue from this one.