Rendering of accent symbols [PATCH]

Bug #1033830 reported by Marc Palmans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WPF-Math
New
Undecided
Unassigned

Bug Description

Accent symbols are rendered separately instead of above other characters.
The following patch appears to fix this issue but someone with more knowledge of the source code and latex should check it.

Index: TexFormulaParser.cs
===================================================================
--- TexFormulaParser.cs (revision 15462)
+++ TexFormulaParser.cs (revision 15463)
@@ -326,8 +326,16 @@
             if (symbolAtom != null)
             {
                 // Symbol was found.
-
- formula.Add(AttachScripts(formula, value, ref position, symbolAtom));
+ if (symbolAtom.Type == TexAtomType.Accent)
+ {
+ TexFormulaHelper helper = new TexFormulaHelper(formula);
+ TexFormula accentFormula = ReadScript(formula, value, ref position);
+ helper.AddAccent(accentFormula, symbolAtom.Name);
+ }
+ else
+ {
+ formula.Add(AttachScripts(formula, value, ref position, symbolAtom));
+ }
             }
             else if (predefinedFormula != null)
             {

Tags: accent
summary: - Rendering of accent symbols
+ Rendering of accent symbols [PATCH]
Revision history for this message
Friedrich von Never (friedrich-v) wrote :

Hello, Marc. Years later, your patch has finally been applied to the fork: https://github.com/ForNeVeR/wpf-math/pull/8

Thank you!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.