https://bugs.documentfoundation.org/show_bug.cgi?id=166477

--- Comment #5 from Caolán McNamara <[email protected]> ---
There's always been confusion about the naming of these. This is a feature that
if document text has the digits 0-9 in it then they are optionally replaced by
alternative digits. This replacement happens in vcl/source/outdev/text.cxx via
GetLocalizedChar in that file.

With "Arabic" (the default) then 123... is not replaced by anything else. The
reference language is "LANGUAGE_ENGLISH"

With "Eastern Arabic" then 123... is replaced with ١٢٣. The reference language
is "LANGUAGE_ARABIC_SAUDI_ARABIA". (Docs that still refer to this as "Hindi"
numerals probably should be updated to use this naming.)

With "System", then 123... is replaced by whatever digits are implied as
suitable by "Locale Setting" of "tools, options, languages and locales,
general, locale setting. Which is retrieved via
"Application::GetSettings().GetLanguageTag()" in the code.

With "Context", then as an example pasting this line as plain text into writer:
اَلْعَرَبِيَّةُ123 English123
will try and decide by context what language 123 is in and use that reference
language to substitute the digits, so what is displayed in this case is
اَلْعَرَبِيَّةُ١٢٣ English123. Selecting the text and changing via format 
character,
complex, language to other things like Amharic, Burmese, Odia, etc might render
it differently by changing the language seen as the context.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to