Opened 4 years ago

Last modified 4 years ago

#14319 confirmed Bug

BIDI: When locale is set to Arabic, Font Size combo displays Arabic-European digits

Reported by: edithk Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc: tomerm@…

Description

Steps to reproduce

Change the browser local to Arabic and reload CKEditor.

Expected result

In the toolbar, in the Font Size dropdown menu:

  • text is displayed in Arabic
  • digits are displayed in Arabic-Indic (٨, ٩)

Actual result

The name and the tooltip of the Font size dropdown are displayed in Arabic but the size digits are displayed in Arabic-European (8, 9).

Attachments (2)

FontSizeCombo.png (9.5 KB) - added by edithk 4 years ago.
screenshot to demonstrate Font Size combo
Arabic_numerals.png (6.0 KB) - added by Jakub Ś 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by edithk

Summary: When locale is set to Arabic, Font Size combo displays Arabic-European digitsBIDI: When locale is set to Arabic, Font Size combo displays Arabic-European digits

Changed 4 years ago by edithk

Attachment: FontSizeCombo.png added

screenshot to demonstrate Font Size combo

Changed 4 years ago by Jakub Ś

Attachment: Arabic_numerals.png added

comment:2 Changed 4 years ago by Jakub Ś

Status: newconfirmed
Version: 4.5.44.0

This is similar issue to #13473 and #14320. Until we find cross language solution we have to use European numbers. Fortunately European numbers can be recognized world-wide so current state can be treated as sort of workaround.

In order to introduce such change we would have to consider languages like (please see attached image): European, Arabic-Indic, Eastern Arabic-Indic, Devanagari and Tamil. Each of them uses different numbers which should be defined in language file. Font size plugin would have to use language codes for style definition names. St the moment they are hardcoded in European numbers.

NOTE: If we were to introduce language specific solution we need to remember that currently style names (e.g. 8px) are used as a backup for style value vars[ styleType ] = values[ i ] = parts[ 1 ] || name;. This could lead to problems so this is something to look out for.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy