Bug 156965

Summary: Localized numerals for math formulas
Product: LibreOffice Reporter: Hossein <hossein>
Component: Formula EditorAssignee: ⁨خالد حسني⁩ <khaled>
Status: ASSIGNED ---    
Severity: enhancement CC: khaled
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: PDF with a localized formula using a font with localized numerals
ODT for the localized formula (non-standard font with localized numerals)

Description Hossein 2023-08-28 11:55:27 UTC
Created attachment 189195 [details]
PDF with a localized formula using a font with localized numerals

Description:
In many languages, one of the features of a non-English document which contains math formulas is to use localized numbers.

For example, in Persian (Farsi) language, using such localized numerals is a norm. But unfortunately many typesetting/office applications with the ability to write and edit formulas can not provide localized numerals. Neither LibreOffice, nor MS Word has such ability. On the other hand, LaTeX can do that.

In LibreOffice and MS Word, people overcome this limitation by using special fonts that has localized numerals in place of the normal western numerals. This non-standard approach has its drawbacks.

This is a feature request to have localized numbers using standard fonts. It should be possible to enable/disable this feature from "Tools > Options". Upon enabling, localized numbers should be used according to the language of the relevant context. For example, one may expect Persian numerals in a formula that falls inside a Persian language context.
Comment 1 Hossein 2023-08-28 11:58:26 UTC
Created attachment 189196 [details]
ODT for the localized formula (non-standard font with localized numerals)

This is the ODT file for the above PDF attachment using "B Nazanin" font. Please note that it is using a non-standard font that uses localized numerals specifically created for Persian (Farsi) language in place of western numerals.
Comment 2 ⁨خالد حسني⁩ 2023-09-28 14:08:28 UTC
WIP https://gerrit.libreoffice.org/c/core/+/157375