On Thu, Oct 04, 2001 at 12:23:51PM +0200, Jean-Marc Lasgouttes wrote: > >>>>> "adrien" == adrien rebollo <[EMAIL PROTECTED]> writes: > > adrien> Thanks for having it applied. I have noticed there are three > adrien> characters which do not need that protection : degree, > adrien> masculine and feminine ordinal. I include a patch which > adrien> corrects this, and which modifies a little bit the laint1 and > adrien> latin9 cdef files to handle better the "special" characters > adrien> (not accepted by LaTeX natively) : all can be obtained at the > adrien> same time with the eurofont package. > > I was hesitating whether I should apply this or not. In fact, these > characters do need \ensuremath for some latex versions (including the > one I am using :). I do not know whether simplifying this code will be > a problem for many people or not. I do not want to force gratuitously > people to upgrade... > I was not aware of this change, and I apologize : you were right not to apply it. However, the modifs to the cdef files are harmless. I send them back, with a small correction to the latin9 quote patch, which was wrong with the ``xx'' quotes because the acute accent alone is absent.
I have played with various encodings recently, and have added some latin3 support, for esperanto. I send this too (patch and cdef file). Adrien
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/insets/insetquotes.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/insets/insetquotes.C,v retrieving revision 1.59 diff -r1.59 insetquotes.C 156,157c156 < || lyxrc.font_norm_type == LyXRC::ISO_8859_9 < || lyxrc.font_norm_type == LyXRC::ISO_8859_15) { --- > || lyxrc.font_norm_type == LyXRC::ISO_8859_9) { 162c161,165 < else if (disp == "<<") --- > } > if (lyxrc.font_norm_type == LyXRC::ISO_8859_1 > || lyxrc.font_norm_type == LyXRC::ISO_8859_9 > || lyxrc.font_norm_type == LyXRC::ISO_8859_15) { > if (disp == "<<")
Index: src/lyxrc.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/lyxrc.C,v retrieving revision 1.100 diff -r1.100 lyxrc.C 1652a1653,1654 > else if (font_norm == "iso8859-3") > font_norm_type = ISO_8859_3; Index: src/lyxrc.h =================================================================== RCS file: /cvs/lyx/lyx-devel/src/lyxrc.h,v retrieving revision 1.54 diff -r1.54 lyxrc.h 255a256,257 > ISO_8859_3, > /// Index: src/frontends/kde/docdlg.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/kde/docdlg.C,v retrieving revision 1.10 diff -r1.10 docdlg.C 147a148 > language->combo_encoding->insertItem(_("latin3")); Index: src/frontends/qt2/QDocument.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QDocument.C,v retrieving revision 1.5 diff -r1.5 QDocument.C 155a156 > dialog->inputEncCO->insertItem( _( "latin3" ) ); Index: src/frontends/qt2/ui/QDocumentDialog.ui =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/ui/QDocumentDialog.ui,v retrieving revision 1.2 diff -r1.2 QDocumentDialog.ui 1479a1480,1484 > <string>latin3</string> > </property> > <item> > <property> > <name>text</name> 1482a1488,1492 > <item> > <property> > <name>text</name> > <string>latin9</string> > </property> Index: src/frontends/xforms/FormDocument.C =================================================================== RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormDocument.C,v retrieving revision 1.64 diff -r1.64 FormDocument.C 186c186 < "default|auto|latin1|latin2|latin5|latin9" --- > "default|auto|latin1|latin2|latin3|latin5|latin9"
# Character definition file for iso8859-3 character set # # File modified (c)2001 by Adrien Rebollo from : # # Character definition file for iso8859-1 character set # # (c)1996 by Ivan Schreter, [EMAIL PROTECTED] # # Any takers to complete the stuff? # 160 "\nobreakspace{}" #161 "\textexclamdown{}" 161 "\textmalteseH{}" #162 "\textcent{}" # with package "eurofont" 162 "\u{}" 163 "\pounds{}" # pound sign 164 "\textcurrency{}" # with package "eurofont" #165 "\textyen{}" # with package "eurofont" #166 "\textbrokenbar{}" # with package "eurofont" 166 "\^{H}" 167 "\S{}" # paragraph 168 "\"{}" # umlaut #169 "\copyright{}" 169 "\.{I}" #170 "\textordfeminine{}" 170 "\c{S}" #171 "\guillemotleft{}" 171 "\u{G}" #172 "$\lnot$" 172 "\^{J}" 173 "\-{}" #174 "\textregistered{}" #175 "\={}" 175 "\.{Z}" 176 "\textdegree{}" # circle #177 "$\pm$" 177 "\textmalteseh{}" 178 "$\mathtwosuperior$" 179 "$\maththreesuperior$" 180 "\'{}" # acute 181 "$\mu$" # micro #182 "\P{}" 182 "\^{h}" 183 "$\cdot$" # or \textperiodcentered 184 "\c{}" # cedilla #185 "$\mathonesuperior$" 185 "\i{}" #186 "\textordmasculine{}" 186 "\c{s}" #187 "\guillemotright{}" 187 "\u{g}" #188 "\textonequarter{}" 188 "\^{j}" 189 "\textonehalf{}" #190 "\textthreequarters{}" # "0BE #191 "\textquestiondown{}" # mirrored ? 191 "\.{z}" 192 "\`{A}" 193 "\'{A}" 194 "\^{A}" #195 "\~{A}" 196 "\"{A}" #197 "\r{A}" # A with circle 197 "\.{C}" # A with circle #198 "\AE{}" # AE cat'ed together 198 "\^{C}" # AE cat'ed together 199 "\c{C}" # C cedilla 200 "\`{E}" 201 "\'{E}" 202 "\^{E}" 203 "\"{E}" 204 "\`{I}" 205 "\'{I}" 206 "\^{I}" 207 "\"{I}" #208 "\DH{}" 209 "\~{N}" 210 "\`{O}" 211 "\'{O}" 212 "\^{O}" #213 "\~{O}" 213 "\.{G}" 214 "\"{O}" 215 "$\times$" #216 "\O{}" 216 "\^{G}" 217 "\`{U}" 218 "\'{U}" 219 "\^{U}" 220 "\"{U}" #221 "\'{Y}" 221 "\u{U}" #222 "\TH{}" 222 "\^{S}" 223 "\ss{}" # German sharp S 224 "\`{a}" 225 "\'{a}" 226 "\^{a}" #227 "\~{a}" 228 "\"{a}" #229 "\r{a}" # a with circle 229 "\.{c}" #230 "\ae{}" 230 "\^{c}" 231 "\c{c}" # c cedilla 232 "\`{e}" 233 "\'{e}" 234 "\^{e}" 235 "\"{e}" 236 "\`{\i}" 237 "\'{\i}" 238 "\^{\i}" 239 "\"{\i}" #240 "\dh{}" 241 "\~{n}" 242 "\`{o}" 243 "\'{o}" 244 "\^{o}" #245 "\~{o}" 245 "\.{g}" 246 "\"{o}" 247 "$\div$" #248 "\o{}" 248 "\^{g}" 249 "\`{u}" 250 "\'{u}" 251 "\^{u}" 252 "\"{u}" #253 "\'{y}" 253 "\u{u}" #254 "\th{}" 254 "\^{s}" #255 "\"{y}" 255 "\.{}"