]> git.lyx.org Git - features.git/commitdiff
better latin3&4 support
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Oct 2001 14:50:16 +0000 (14:50 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 8 Oct 2001 14:50:16 +0000 (14:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2848 a592a061-630c-0410-9148-cb99ea01b6c8

13 files changed:
lib/ChangeLog
lib/kbd/iso8859-4.cdef [new file with mode: 0644]
lib/kbd/iso8859-9.cdef [new file with mode: 0644]
src/ChangeLog
src/frontends/qt2/ChangeLog
src/frontends/qt2/QDocument.C
src/frontends/qt2/ui/QDocumentDialog.ui
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormDocument.C
src/insets/ChangeLog
src/insets/insetquotes.C
src/lyxrc.C
src/lyxrc.h

index 08038141cfcd8dcffa34d47773ddcfb168320961..bd7f258df7fa7df7d633a2876b2b9e9c61f84cb9 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-07  Adrien Rebollo  <adrien.rebollo@gmx.fr>
+
+       * kbd/iso8859-4.cdef: 
+       * kbd/iso8859-9.cdef: new files
+
 2001-10-05  Adrien Rebollo  <adrien.rebollo@gmx.fr>
 
        * kbd/iso8859-3.cdef: new file
diff --git a/lib/kbd/iso8859-4.cdef b/lib/kbd/iso8859-4.cdef
new file mode 100644 (file)
index 0000000..85261f4
--- /dev/null
@@ -0,0 +1,157 @@
+# Character definition file for iso8859-4 character set
+#
+# File modified (c)2001 by Adrien Rebollo from :
+#
+# Character definition file for iso8859-1 character set
+#
+# (c)1996 by Ivan Schreter, schreter@ccsun.tuke.sk
+#
+# Any takers to complete the stuff?
+#
+
+160    "\nobreakspace{}"
+#161   "\textexclamdown{}"
+161    "\k{A}"
+#162   "\textcent{}"   # with package "eurofont"
+162    "\textkra{}"
+#163   "\pounds{}"     # pound sign
+163    "\c{R}"
+164    "\textcurrency{}"       # with package "eurofont"
+#165   "\textyen{}"    # with package "eurofont"
+165    "\~{I}"
+#166   "\textbrokenbar{}"      # with package "eurofont"
+166    "\c{L}"
+167    "\S{}"          # paragraph
+168    "\"{}"  # umlaut
+#169   "\copyright{}"
+169    "\v{S}"
+#170   "\textordfeminine{}"
+170    "\={E}"
+#171   "\guillemotleft{}"
+171    "\c{G}"
+#172   "$\lnot$"
+172    "\textTstroke"
+173    "\-{}"
+#174   "\textregistered{}"
+174    "\v{Z}"
+175    "\={}"
+176    "\textdegree{}" # circle
+#177   "$\pm$"
+177    "\k{a}"
+#178   "$\mathtwosuperior$"
+178    "\k{}"
+#179   "$\maththreesuperior$"
+179    "\c{r}"
+180    "\'{}"  # acute
+#181   "$\mu$"
+181    "\~{i}"
+#182   "\P{}"
+182    "\c{l}"
+#183   "$\cdot$"
+183    "\v{}"
+184    "\c{}"  # cedilla
+#185   "$\mathonesuperior$"
+185    "\v{s}"
+#186   "\textordmasculine{}"
+186    "\={e}"
+#187   "\guillemotright{}"
+187    "\c{g}"
+#188   "\textonequarter{}"
+188    "\texttstroke{}"
+#189   "\textonehalf{}"
+189    "\NG{}"
+#190   "\textthreequarters{}"
+190    "\v{z}"
+#191   "\textquestiondown{}"
+191    "\ng{}"
+#192   "\`{A}"
+192    "\={A}"
+193    "\'{A}"
+194    "\^{A}"
+195    "\~{A}"
+196    "\"{A}"
+197    "\r{A}"         # A with circle
+198    "\AE{}"         # AE cat'ed together
+#199   "\c{C}"
+199    "\k{I}"
+#200   "\`{E}"
+200    "\v{C}"
+201    "\'{E}"
+#202   "\^{E}"
+202    "\k{E}"
+203    "\"{E}"
+#204   "\`{I}"
+204    "\.{E}"
+205    "\'{I}"
+206    "\^{I}"
+#207   "\"{I}"
+207    "\={I}"
+#208   "\DH{}"
+208    "\DJ{}"
+#209   "\~{N}"
+209    "\c{N}"
+#210   "\`{O}"
+210    "\={O}"
+#211   "\'{O}"
+211    "\c{K}"
+212    "\^{O}"
+213    "\~{O}"
+214    "\"{O}"
+215    "$\times$"
+216    "\O{}"
+#217   "\`{U}"
+217    "\k{U}"
+218    "\'{U}"
+219    "\^{U}"
+220    "\"{U}"
+#221   "\'{Y}"
+221    "\~{U}"
+#222   "\TH{}"
+222    "\={U}"
+223    "\ss{}"         # German sharp S
+#224   "\`{a}"
+224    "\={a}"
+225    "\'{a}"
+226    "\^{a}"
+227    "\~{a}"
+228    "\"{a}"
+229    "\r{a}"         # a with circle
+230    "\ae{}"
+#231   "\c{c}"
+231    "\k{i}"
+#232   "\`{e}"
+232    "\v{c}"
+233    "\'{e}"
+#234   "\^{e}"
+234    "\k{e}"
+235    "\"{e}"
+#236   "\`{\i}"
+236    "\.{\e}"
+237    "\'{\i}"
+238    "\^{\i}"
+#239   "\"{\i}"
+239    "\={\i}"
+#240   "\dh{}" 
+240    "\dj{}" 
+#241   "\~{n}"
+241    "\c{n}"
+#242   "\`{o}"
+242    "\={o}"
+#243   "\'{o}"
+243    "\c{k}"
+244    "\^{o}"
+245    "\~{o}"
+246    "\"{o}"
+247    "$\div$"
+248    "\o{}"
+#249   "\`{u}"
+249    "\k{u}"
+250    "\'{u}"
+251    "\^{u}"
+252    "\"{u}"
+#253   "\'{y}"
+253    "\~{u}"
+#254   "\th{}"
+254    "\={u}"
+#255   "\"{y}"
+255    "\.{}"
diff --git a/lib/kbd/iso8859-9.cdef b/lib/kbd/iso8859-9.cdef
new file mode 100644 (file)
index 0000000..5ddbf45
--- /dev/null
@@ -0,0 +1,114 @@
+#
+# Character definition file for iso8859-9 character set
+#
+# Modified (c)2001 by Adrien Rebollo from :
+#
+# Character definition file for iso8859-1 character set
+#
+# (c)1996 by Ivan Schreter, schreter@ccsun.tuke.sk
+#
+# Any takers to complete the stuff?
+#
+
+160    "\nobreakspace{}"
+161    "\textexclamdown{}"
+162    "\textcent{}"   # with package "eurofont"
+163    "\pounds{}"     # pound sign
+164    "\textcurrency{}"       # with package "eurofont"
+165    "\textyen{}"    # with package "eurofont"
+166    "\textbrokenbar{}"      # with package "eurofont"
+167    "\S{}"          # paragraph
+168    "\"{}"  # umlaut
+169    "\copyright{}"
+170    "\textordfeminine{}"
+171    "\guillemotleft{}"
+172    "$\lnot$"
+173    "\-{}"
+174    "\textregistered{}"
+175    "\={}"
+176    "\textdegree{}" # circle
+177    "$\pm$"
+178    "$\mathtwosuperior$"
+179    "$\maththreesuperior$"
+180    "\'{}"  # acute
+181    "$\mu$" # micro
+182    "\P{}"
+183    "$\cdot$" # or \textperiodcentered
+184    "\c{}"  # cedilla
+185    "$\mathonesuperior$"
+186    "\textordmasculine{}"
+187    "\guillemotright{}"
+188    "\textonequarter{}"
+189    "\textonehalf{}"
+190    "\textthreequarters{}"            # "0BE
+191    "\textquestiondown{}"           # mirrored ?
+192    "\`{A}"
+193    "\'{A}"
+194    "\^{A}"
+195    "\~{A}"
+196    "\"{A}"
+197    "\r{A}"         # A with circle
+198    "\AE{}"         # 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{}"
+208    "\u{G}"
+209    "\~{N}"
+210    "\`{O}"
+211    "\'{O}"
+212    "\^{O}"
+213    "\~{O}"
+214    "\"{O}"
+215    "$\times$"
+216    "\O{}"
+217    "\`{U}"
+218    "\'{U}"
+219    "\^{U}"
+220    "\"{U}"
+#221   "\'{Y}"
+221    "\.{I}"
+#222   "\TH{}"
+222    "\c{S}"
+223    "\ss{}"         # German sharp S
+224    "\`{a}"
+225    "\'{a}"
+226    "\^{a}"
+227    "\~{a}"
+228    "\"{a}"
+229    "\r{a}"         # a with circle
+230    "\ae{}"
+231    "\c{c}"         # c cedilla
+232    "\`{e}"
+233    "\'{e}"
+234    "\^{e}"
+235    "\"{e}"
+236    "\`{\i}"
+237    "\'{\i}"
+238    "\^{\i}"
+239    "\"{\i}"
+#240   "\dh{}" 
+240    "\u{g}" 
+241    "\~{n}"
+242    "\`{o}"
+243    "\'{o}"
+244    "\^{o}"
+245    "\~{o}"
+246    "\"{o}"
+247    "$\div$"
+248    "\o{}"
+249    "\`{u}"
+250    "\'{u}"
+251    "\^{u}"
+252    "\"{u}"
+#253   "\'{y}"
+253    "\i{}"
+#254   "\th{}"
+254    "\c{s}"
+255    "\"{y}"
index 71b2888ac3da6a74971dfef94956c0f1823c59c9..903d6308ded412491768bd1cfc80fe8d0b958992 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-07  Adrien Rebollo  <adrien.rebollo@gmx.fr>
+
+       * lyxrc.C (set_font_norm_type): support iso8859-4
+
 2001-07-02  Claus Hentschel  <claus.hentschel@mbau.fh-hannover.de>
 
        * LaTeX.C (deplog): add another regex for MikTeX
index 75cfc1bd38cfb660d836093eeff77e0906b811df..10d3d6c6733bb52cb45a73e603f50f5b8eb31c65 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-07  Adrien Rebollo  <adrien.rebollo@gmx.fr>
+
+       * ui/QDocumentDialog.ui: 
+       * QDocument.C (build_dialog): support latin4
+
 2001-10-05  Adrien Rebollo  <adrien.rebollo@gmx.fr>
 
        * ui/QDocumentDialog.ui: 
index 61ce5b6132162cbd274e2af4e0d77cacbf04f63c..920a7f2cc1999668a0a8fa8a54f994ad701d33e1 100644 (file)
@@ -154,6 +154,7 @@ void QDocument::build_dialog()
        dialog->inputEncCO->insertItem( _( "latin1" ) );
        dialog->inputEncCO->insertItem( _( "latin2" ) );
        dialog->inputEncCO->insertItem( _( "latin3" ) );
+       dialog->inputEncCO->insertItem( _( "latin4" ) );
        dialog->inputEncCO->insertItem( _( "latin5" ) );
        dialog->inputEncCO->insertItem( _( "latin9" ) );
        dialog->inputEncCO->insertItem( _( "koi8-r" ) );
index 0d61bda66d7df6d161aa64fecb512c303b616ae0..ee33debd4fa39eadf40eb1c27c3de3249ba4057a 100644 (file)
                                                 <name>text</name>
                                                 <string>latin3</string>
                                             </property>
+                                        </item>
+                                        <item>
+                                            <property>
+                                                <name>text</name>
+                                                <string>latin4</string>
+                                            </property>
+                                        </item>
                                         <item>
                                             <property>
                                                 <name>text</name>
                                                 <name>text</name>
                                                 <string>latin9</string>
                                             </property>
+                                        </item>
                                         <item>
                                             <property>
                                                 <name>text</name>
index 237c08cb1e846335d7bc441f02910c75bed4091a..750e6b62cf7c9a4d2ee4fb6aab0a59b0b73231d1 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-07  Adrien Rebollo  <adrien.rebollo@gmx.fr>
+
+       * FormDocument.C (build): support latin4
+
 2001-10-05  Adrien Rebollo  <adrien.rebollo@gmx.fr>
 
        * FormDocument.C (build): support latin3
index 7e5bf6150cd0bcd1c075a81e8ba0aeaba8ac6cd8..30af0d07812af625501130573e7a7b8ba6a2f64f 100644 (file)
@@ -183,7 +183,7 @@ void FormDocument::build()
        // the document language form
        language_.reset(build_doc_language());
        fl_addto_choice(language_->choice_inputenc,
-                       "default|auto|latin1|latin2|latin3|latin5|latin9"
+                       "default|auto|latin1|latin2|latin3|latin4|latin5|latin9"
                        "|koi8-r|koi8-u|cp866|cp1251|iso88595");
 
        // The language is a combo-box and has to be inserted manually
index 78afcca3dc51ab3e0ad548a9197e86f2c2bf528b..b76c7c856d08ac5b2dc6608e502346893667474a 100644 (file)
@@ -1,3 +1,7 @@
+2001-10-07  Adrien Rebollo <adrien.rebollo@gmx.fr>
+
+       * insetquotes.C (dispString): handles latin3 and latin4 quotes
+
 2001-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
 
        * insetquotes.C (dispString): fix handling of latin9 quotes
index beb5887d0f86b3c6120552c7336b394aa93e9f9c..437b1d747f0f503d0d2417b9f9860a3fb47de4c6 100644 (file)
@@ -153,6 +153,8 @@ string const InsetQuotes::dispString(Language const * loclang) const
                disp += disp;
 
        if (lyxrc.font_norm_type == LyXRC::ISO_8859_1
+           || lyxrc.font_norm_type == LyXRC::ISO_8859_3
+           || lyxrc.font_norm_type == LyXRC::ISO_8859_4
            || lyxrc.font_norm_type == LyXRC::ISO_8859_9) {
                if (disp == "'")
                        disp = "ยด";
index 8a6173fad1998ce3c7e7e69149448649f6971045..f0d70852e3fe5d4991e659acddcf5baa9608cdcd 100644 (file)
@@ -1652,6 +1652,8 @@ void LyXRC::set_font_norm_type()
                font_norm_type = ISO_8859_1;
        else if (font_norm == "iso8859-3")
                font_norm_type = ISO_8859_3;
+       else if (font_norm == "iso8859-4")
+               font_norm_type = ISO_8859_4;
        else if (font_norm == "iso8859-6.8x")
                font_norm_type = ISO_8859_6_8;
        else if (font_norm == "iso8859-9")
index 33f76ffcf721e0bb792c459e37a9130098c5bcea..823c0f33ba2f1a8bcf20f2d0cf6114a17b68a6ac 100644 (file)
@@ -255,6 +255,8 @@ enum LyXRCTags {
                ///
                ISO_8859_3,
                ///
+               ISO_8859_4,
+               ///
                ISO_8859_6_8,
                ///
                ISO_8859_9,