On Thu, Sep 27, 2001 at 11:29:10AM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "adrien" == adrien rebollo <[EMAIL PROTECTED]> writes:
>
> adrien> Hello, Here is a small patch to ensure some math-specific
> adrien> characters are treated in latin9 as well as in latin1.
>
> Indeed. it makes sense. However, I have a feeling that this 'special
> casing' (of outputting some characters in \ensuremath{}) should be
> configurable somewhere... But where? Maybe a syntax extension of the
> .cdef files?
Thanks for having it applied. I have noticed there are three characters
which do not need that protection : degree, masculine and feminine ordinal.
I include a patch which corrects this, and which modifies a little bit
the laint1 and latin9 cdef files to handle better the "special" characters
(not accepted by LaTeX natively) : all can be obtained at the same time with
the eurofont package.
> adrien> It solves one of the problems I have with this encoding. But
> adrien> there are many others. The most important appears when I
> adrien> select iso8859-15 as the screen font encoding.
>
> adrien> Instead of displaying accented letters, LyX displays the
> adrien> letter with the character which replaced the accent placed
> adrien> above. For example, the acute accent in latin1 has been
> adrien> replaced by a capital Z with an inverted circumflex, and it is
> adrien> that weird character which appears above the "e" in "�". The
> adrien> same with the umlaut and the cedilla. So I am stuck with
> adrien> iso8859-1 screen fonts.
>
> This is indeed very annoying :( This comes from the fact that the
> 'new' insetlatexaccent (since 1.1.5?) uses the accents from the latin1
> font instead of drawing them by itself.
>
> However, the problem is to know why this accent inset is inserted into
> the document instead of a normal �. Does changing the 'Override
> X-Windows dead keys' in Preference>Look&Feel>Interface improve the situation?
>
By playing around with those settings, I got rid of the problem,
but for example swapping fonts in an existing text can still have weird
effects.
Adrien
? latin9.patch
Index: lib/kbd/iso8859-1.cdef
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/kbd/iso8859-1.cdef,v
retrieving revision 1.7
diff -r1.7 iso8859-1.cdef
11c11
< #162 "\textcent{}"
---
> 162 "\textcent{}" # with package "eurofont"
13,15c13,15
< #164 "\textcurrency{}"
< #165 "\textyen{}"
< #166 "\textbrokenbar{}"
---
> 164 "\textcurrency{}" # with package "eurofont"
> 165 "\textyen{}" # with package "eurofont"
> 166 "\textbrokenbar{}" # with package "eurofont"
Index: lib/kbd/iso8859-15.cdef
===================================================================
RCS file: /cvs/lyx/lyx-devel/lib/kbd/iso8859-15.cdef,v
retrieving revision 1.1
diff -r1.1 iso8859-15.cdef
15c15
< 162 "\cent{}" # cent sign, to use with package wasysym
---
> 162 "\textcent{}" # with package "eurofont"
17,20c17,20
< #164 "\textcurrency{}"
< 164 "\euro{}" # euro sign, to use with package eurofont
< 165 "\yen{}" # yen sign, to use with package amssymb
< #166 "\textbrokenbar{}"
---
> #164 "\textcurrency{}" # with package "eurofont"
> 164 "\texteuro{}" # with package "eurofont"
> 165 "\textyen{}" # with package "eurofont"
> #166 "\textbrokenbar{}" # with package "eurofont"
Index: src/paragraph_pimpl.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/paragraph_pimpl.C,v
retrieving revision 1.16
diff -r1.16 paragraph_pimpl.C
324,326c324,325
< case '�': case '�': case '�': case '�':
< case '�': case '�': case '�': case '�':
< case '�': case '�': case '�':
---
> case '�': case '�': case '�': case '�':
> case '�': case '�': case '�': case '�':