Enrico Forestieri <[EMAIL PROTECTED]> schrieb:

> You managed to convice me. With the attached patch, the unicode accented
> characters are interpreted as math variables when they are entered in
> mathmode. Please test.

Thanks for your work.

Unfortunately, I did not have the time to compile a patched LyX.

Some thoughts from looking at the source:

1)

+        * When in mathmode, do we have to output this character as LaTeX
+        * command in any case? This is true if the "forcemath" flag is set.
+        * We use this as an input method for entering accented symbols,
+        * such that, as an example, Ä is output as \ddot{A}.
+        */
+       static bool isForcedMath(char_type c);

and

+# - forcemath Always output replacement command when in mathmode

IMO, replacements should be (and are) always forced in mathmode(except
for XeTeX with unicodemath.sty), so the boolean and flag are misnamed.

As they are used to determine if the character is a "math letter" and
should be typeset italic/slanted in the GUI, something like "mathalpha"
seems more in place.

2)

IMO it would be consistent to handle combining accents in math the same
way, e.g. in unicodesymbols

0x0308 "\\\""                     "" "combining,force" "\ddot" "" # COMBINING 
DIAERESIS

This currently sets the ddot accent *behind* the accented character. I
guess that the "combining" flag is not (yet) handled in mathmode.

Thanks again

Günter

Reply via email to