Page MenuHomePhabricator

arabic templates do work with arabic thousands separator but not with quote
Closed, InvalidPublicBUG REPORT

Description

What happened?:
when typing arabic numbers two problems can be noticed.

first, a normal empty page, number becomes 000'06 instead of 60'000

when typing as you write, from right to left, numbers are printed the wrong way, no matter if arabic thousands separator, U+066C), is used or not.

steps to reproduce:

  1. go to arabic wikipedia, create an empty page
  2. use google translate to translate a sentence into arabic, incouding a number
  3. paste it into the empty page. play with the number. replace the thousands separator with an arabic thousands separator from https://www.compart.com/en/unicode/U+066C, or a single quote (apostrophe). or type the whole number with these thousands separators.

second, in templates, number becomes 000'60

second, a template, e.g. on https://ur.wikipedia.org/w/index.php?title=%D8%A7%D8%AA%D8%AD%D8%A7%D8%AF_%DA%A9%D9%84%D8%A8_(%D8%AC%D8%AF%DB%81)&action=edit

typing 60'000 with quote becomes 000'60. typing 60'000 with arabic thousands separator is correct: 60'000. see attached screenshots. typing it from right to left does not work, for both numbers and text.

steps to reproduce:

  1. open url https://ur.wikipedia.org/w/index.php?title=%D8%A7%D8%AA%D8%AD%D8%A7%D8%AF_%DA%A9%D9%84%D8%A8_(%D8%AC%D8%AF%DB%81)&action=edit
  2. search for number with thousands, insert the different formats with different thousands separators.
  3. exit template edit and see error, do not save the page.

What should have happened instead?:
in all cases the number should be 60'000.

Event Timeline

type number from left to right, number is correct. type number from right to left, number is wrong:

Screenshot from 2023-07-29 03-53-59.png (396×1 px, 41 KB)

type right, using quote:

Screenshot from 2023-07-29 03-58-08.png (852×955 px, 113 KB)

display wrong:

Screenshot from 2023-07-29 03-58-35.png (974×645 px, 102 KB)

Aklapper changed the task status from Open to Stalled.Jul 29 2023, 9:05 AM

@ThurnerRupert: Thanks for reporting this. Please use the bug report form and fill in the sections in the template, instead of deleting them:

Clear steps to replicate the issue, step by step (include links if applicable):

What happens?:

What should have happened instead?:

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

ThurnerRupert changed the task status from Stalled to Open.Jul 30 2023, 7:21 PM

done

Aklapper changed the task status from Open to Stalled.Jul 31 2023, 10:07 AM

Cannot reproduce when entering random Arabic letters in Firefox 116 on Arabic Wikipedia with Arabic input method on my system:

Does that also happen when not copying random and potentially buggy stuff from Google Translate?

typing 60'000 with quote becomes 000'60.

I do not consider this a bug if you use an apostrophe, as you created two separate numbers (000 and 60) and you are writing from right to left.

Does that also happen when not copying random and potentially buggy stuff from Google Translate?

Unfortunately closing this Phabricator task as no further information has been provided.

@ThurnerRupert: After you have provided the information asked for and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!