[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2023-08-14 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

⁨خالد حسني⁩  changed:

   What|Removed |Added

 CC||kha...@libreoffice.org
 Status|NEW |ASSIGNED
   Assignee|libreoffice-b...@lists.free |kha...@libreoffice.org
   |desktop.org |

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

[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2022-01-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #11 from libre officer  ---
(In reply to Eyal Rozenberg from comment #9)
> The text rendering here on bugzilla may be confusing us regarding the actual
> and expected results. Can you explain, in words, what order should the parts
> of the equation appear in? e.g. "From left to write, the words you should
> see are FOO, then BAR, then BAZ"
> 
> Also, are you complaining about what's in the output window, the edit window
> or both?

Hello Eyal,

Please check the picture that I just uploaded, titled ` RTL formula displayed
vs. Expected`.

The problem is that the formula in the text mode letters are ordered correctly,
from right-to-left.

However, in the display window on top of it, you can see that the order of the
letters is incorrect : This will be a problem if letters are words in a
sentence, because reading it will be confusing.

In a short summary: the formula of the top should look exactly like the one in
the bottom.

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

[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2022-01-04 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #10 from libre officer  ---
Created attachment 177313
  --> https://bugs.documentfoundation.org/attachment.cgi?id=177313=edit
RTL formula displayed vs. Expected

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

[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2021-02-26 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #9 from Eyal Rozenberg  ---

The text rendering here on bugzilla may be confusing us regarding the actual
and expected results. Can you explain, in words, what order should the parts of
the equation appear in? e.g. "From left to write, the words you should see are
FOO, then BAR, then BAZ"

Also, are you complaining about what's in the output window, the edit window or
both?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

V Stuart Foote  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #8 from V Stuart Foote  ---
(In reply to libre officer from comment #7)

> ... 
> 2006 is considered antiquity era in 2020 !
> 
> However, I strongly disagree with Rüdiger Timm's `Even RTL languages don't
> use RTL for math` !! That's completely wrong, many countries still uses
> Arabic letters in math formula.

Actually believe the commit author was Alan Yaniger, working with Thomas Lang.

https://bz.apache.org/ooo/attachment.cgi?id=39273=diff 

> 
> People forgot that Math formula could be written in other languages to teach
> kids in school basic geometry rules. For example, how can somebody type this
> 5th grade formula without inducing kids in error:
> 
> 
> مساحة شبه المنحرف = (القاعدة الكبرى + القاعدة الصغرى) × الارتفاع ÷ 2
> 
> (  Trapezoid Area = (smaller side + bigger side) × height ÷ 2  )
> 
> 
> Making exercises or lessons for kids in school would be impractical in
> LibreOffice :(
> 
> 
> I hope in the future that at least the text direction control characters
> will be supported in math formula output..


+1, and it could be as simple as enabling RTL for the sm edit shell to allow
Command windows input RTL in addition to the Bidi handling--but more likely the
sm node creation logic is coded only for standard mathematical formulas.

Getting reasonable RTL Presentation syntax may require sm logic specific to
handle:

U+200E LEFT-TO-RIGHT MARK (LRM)
U+200F RIGHT-TO-LEFT-MARK (RLM)

U+202A LEFT-TO-RIGHT EMBEDDING (LRE)
U+202B RIGHT-TO-LEFT EMBEDDING (RLE)
U+202C POP DIRECTIONAL FORMATTING (PDF)
U+202D LEFT-TO-RIGHT OVERRIDE (LRO)
U+202E RIGHT-TO-LEFT OVERRIDE (RLO)

U+2066 LEFT-TO-RIGHT ISOLATE (LRI)
U+2067 RIGHT-TO-LEFT ISOLATE (RLI)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #7 from libre officer  ---
(In reply to V Stuart Foote from comment #6)
> Due to poor direction handling of formula parsers, RTL formulas were
> specifically suppressed for OpenOffice.org i62413 in 2006.
> 
> https://opengrok.libreoffice.org/xref/core/starmath/source/edit.
> cxx?a=true=be53f326#87

2006 is considered antiquity era in 2020 !

However, I strongly disagree with Rüdiger Timm's `Even RTL languages don't use
RTL for math` !! That's completely wrong, many countries still uses Arabic
letters in math formula.

People forgot that Math formula could be written in other languages to teach
kids in school basic geometry rules. For example, how can somebody type this
5th grade formula without inducing kids in error:


مساحة شبه المنحرف = (القاعدة الكبرى + القاعدة الصغرى) × الارتفاع ÷ 2

(  Trapezoid Area = (smaller side + bigger side) × height ÷ 2  )


Making exercises or lessons for kids in school would be impractical in
LibreOffice :(


I hope in the future that at least the text direction control characters will
be supported in math formula output..

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-23 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

V Stuart Foote  changed:

   What|Removed |Added

   See Also||https://bugs.documentfounda
   ||tion.org/show_bug.cgi?id=13
   ||4045

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

V Stuart Foote  changed:

   What|Removed |Added

   See Also||https://bz.apache.org/ooo/s
   ||how_bug.cgi?id=62413
 CC||fred.w...@free.fr

--- Comment #6 from V Stuart Foote  ---
Due to poor direction handling of formula parsers, RTL formulas were
specifically suppressed for OpenOffice.org i62413 in 2006.

https://opengrok.libreoffice.org/xref/core/starmath/source/edit.cxx?a=true=be53f326#87

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

V Stuart Foote  changed:

   What|Removed |Added

 Blocks||39750

--- Comment #5 from V Stuart Foote  ---
Yes, probably a valid enhancement that the Formula pane, and inline OLE provide
more than simple bidi response to entered strings--and support minimal
Presentation markup needs.

But IIUC that is not supported in any fashion by current sm command logic and
node generators which were implemented to produce normalized mathematical
formula content.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=39750
[Bug 39750] [META] General Math formula editor improvements
-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

--- Comment #4 from libre officer  ---
(In reply to V Stuart Foote from comment #3)
> Our native StarMath, and MathML in general, provide limited support for
> Presentation Markup of Arabic mathematical notation. Only the Content Markup
> needed for standard mathematical notation.
> 
> ICU libs Unicode bidi is functional for literal strings, but literal
> formulas as in OP simply need to be entered in line with text in the module
> in use.
> 
> Would require dev effort to refactor the sm Formula editor to provide logic
> needed to handle localized literal formula input and localized Presentation
> martup of formulas.
> 
> =-ref-=
> 
> https://www.w3.org/TR/2006/NOTE-arabic-math-20060131/

I see that the complex formula are difficult to reimplement, but at least for
primary and secondary schools, you mostly need the ability to be able to render
the unicode bidirectional characters (specially: LRE, RLE, PDF, RLM, LRM, etc.)
in the output window.

At this moment, this is ignored in the output window, but supported in the
command window (however, it should have the right/left alignment).

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 134193] sm Formula editor does not support RTL-CTL localized presentation markup, just content markup of formulas

2020-06-21 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=134193

V Stuart Foote  changed:

   What|Removed |Added

Summary|VIEWING: Arabic formula |sm Formula editor does not
   |doesn't display correctly   |support RTL-CTL localized
   |in the command and output   |presentation markup, just
   |window  |content markup of formulas
   Priority|medium  |low
 Blocks||43808
   Severity|normal  |enhancement
Version|6.4.1.2 release |Inherited From OOo
 CC||rb.hensc...@t-online.de,
   ||vstuart.fo...@utsa.edu
 OS|Windows (All)   |All

--- Comment #3 from V Stuart Foote  ---
Our native StarMath, and MathML in general, provide limited support for
Presentation Markup of Arabic mathematical notation. Only the Content Markup
needed for standard mathematical notation.

ICU libs Unicode bidi is functional for literal strings, but literal formulas
as in OP simply need to be entered in line with text in the module in use.

Would require dev effort to refactor the sm Formula editor to provide logic
needed to handle localized literal formula input and localized Presentation
martup of formulas.

=-ref-=

https://www.w3.org/TR/2006/NOTE-arabic-math-20060131/


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=43808
[Bug 43808] [META] Right-To-Left (aka Complex Text Layout) language issues
(RTL/CTL)
-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs