mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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
This commit is contained in:
parent
0db59752e2
commit
6623030337
@ -1,3 +1,7 @@
|
||||
2002-06-12 "Andrew Zabolotny" <zap@cobra.ru>
|
||||
|
||||
* kbmap.C (getiso): add support for cyrillic and greek
|
||||
|
||||
2002-06-12 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* BufferView.h:
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-06-12 Vitaly Lipatov <LAV@VL3143.spb.edu>
|
||||
|
||||
* insetquotes.C (draw): fix drawing of double quotes
|
||||
|
||||
2002-06-12 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* insettabular.C: s/scrollCB/scrollDocView/
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user