From: Jean-Marc Lasgouttes Date: Wed, 12 Jun 2002 15:56:51 +0000 (+0000) Subject: fix drawing of double quotes; fix input of cyrillic and greek characters X-Git-Tag: 1.6.10~19092 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6623030337dea76cb5801f0a7ff68bef55c43844;p=features.git fix drawing of double quotes; fix input of cyrillic and greek characters git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4387 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/ChangeLog b/src/ChangeLog index 726a5f87a8..12634fda39 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2002-06-12 "Andrew Zabolotny" + + * kbmap.C (getiso): add support for cyrillic and greek + 2002-06-12 John Levon * BufferView.h: diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 98a15aa0f1..22a5eafd1e 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,7 @@ +2002-06-12 Vitaly Lipatov + + * insetquotes.C (draw): fix drawing of double quotes + 2002-06-12 John Levon * insettabular.C: s/scrollCB/scrollDocView/ diff --git a/src/insets/insetquotes.C b/src/insets/insetquotes.C index f001179ae9..fef7fa9ff1 100644 --- a/src/insets/insetquotes.C +++ b/src/insets/insetquotes.C @@ -232,7 +232,12 @@ void InsetQuotes::draw(BufferView * bv, LyXFont const & font, { string const text = dispString(font.language()); - bv->painter().text(int(x), baseline, text, font); + if (text.length() == 2 && text[0] == text[1]) { + bv->painter().text(int(x), baseline, text[0], font); + int x2 = int(x + lyxfont::width(',', font)); + bv->painter().text(x2, baseline, text[0], font); + } else + bv->painter().text(int(x), baseline, text, font); x += width(bv, font); } diff --git a/src/kbmap.C b/src/kbmap.C index 1fd6b6dafe..8849e36ed0 100644 --- a/src/kbmap.C +++ b/src/kbmap.C @@ -52,6 +52,10 @@ char kb_keymap::getiso(unsigned int c) case 0x00000200: // latin 4 byte 3 = 3 case 0x00000300: + // cyrillic KOI8 & Co + case 0x00000600: + // greek + case 0x00000700: // latin 8 byte 3 = 18 (0x12) case 0x00001200: // latin 9 byte 3 = 19 (0x13)