Promise, this is my last patch about quotes (:

This one displays ' as ´ if an appropriate encoding is used, and french
guillemets are also displayed in 8859-9 (some encodings dont't support
both quotes, but they are not yet handled separatly by LyX)

-- 
        Yves
Index: src/insets/ChangeLog
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/ChangeLog,v
retrieving revision 1.154
diff -u -p -r1.154 ChangeLog
--- src/insets/ChangeLog        2001/07/25 22:05:53     1.154
+++ src/insets/ChangeLog        2001/07/27 07:43:01
@@ -1,3 +1,8 @@
+2001-07-26  Yves Bastide  <[EMAIL PROTECTED]>
+
+       * insetquotes.C (dispString): display the right ISO8859-{1,9,15}
+       quotes
+
 2001-07-26  Lars Gullik Bjønnes  <[EMAIL PROTECTED]>
 
        * insetminipage.C (read): handle missing parameters more gracefully
Index: src/insets/insetquotes.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/insetquotes.C,v
retrieving revision 1.53
diff -u -p -r1.53 insetquotes.C
--- src/insets/insetquotes.C    2001/07/23 10:04:17     1.53
+++ src/insets/insetquotes.C    2001/07/27 07:43:01
@@ -153,11 +153,17 @@ string const InsetQuotes::dispString(Lan
                disp += disp;
 
        if (lyxrc.font_norm_type == LyXRC::ISO_8859_1
-           || lyxrc.font_norm_type == LyXRC::ISO_8859_15)
-               if (disp == "<<")
+           || lyxrc.font_norm_type == LyXRC::ISO_8859_9
+           || lyxrc.font_norm_type == LyXRC::ISO_8859_15) {
+               if (disp == "'")
+                       disp = "´";
+               else if (disp == "''")
+                       disp = "´´";
+               else if (disp == "<<")
                        disp = '«';
                else if (disp == ">>")
                        disp = '»';
+       }
 
        // in french, spaces are added inside double quotes
        if (times_ == DoubleQ && prefixIs(loclang->code(), "fr")) {

Reply via email to