рассылка русскоязычной группы пользователей и разработчиков KDE
 help / color / mirror / Atom feed
From: "Nikita V. Youshchenko" <yoush@cs.msu.su>
To: "Albert R. Valiev" <darkstar@altlinux.ru>
Cc: kde-russian@lists.kde.ru
Subject: [kde-russian] Re: mc in qt
Date: Thu, 24 Oct 2002 11:40:44 +0400
Message-ID: <200210241140.44864@zigzag.cs.msu.su> (raw)
In-Reply-To: <200210241128.11507.darkstar@altlinux.ru>

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]


>     Привет!
> 
> Никита, а можно попродробнее об исправлении? чего-то я не въехал....
> если можно, патчик :))))

Да это грязный хак, а не исправление. В аттачменте.
Просто кормить X терминалы базе на санов с процами по 40 МГц юникодными 
шрифтами - это смерть. А с этой штукой пользователи хотя бы рамочки в mc 
видят, если установят шрифт -monotype-courier new-...

Видимо, проблема такая.
Некоторые iso8859 шрифты имеют символы-рамочки в диапазоне 0x8-0x1F, 
некоторые не имеют. Некоторые koi шрифты имеют эти символы в диапазоне 
0x8-0x1F, некоторые - в диапазоне 0x80-0x97, а некоторые вовсе не имеют.
В xfd все это прекрасно видно.
Похоже, раньше в Qt стояло, что символы есть в диапозоне 0x8-0x1f, но потом 
господам из trolltech надоело, что в зависимости от конкретного шрифта 
рамочки то есть, то нет. И они решили, что пусть все либо используют 
юникод (с которым все работает), либо сидят без рамочек.

Кажется, стандарте koi8 символы вроде как обязаны находится в диапазоне 
0x80-0x97 (я не уверен, но по крайней мере freetype их туда помещает).
Но, скажем, в шрифтах cronyx нет их там ...

[-- Attachment #2: qt-patch-geom-chars --]
[-- Type: text/x-diff, Size: 1601 bytes --]

diff -ur qt-x11-free-3.0.5.orig/src/kernel/qfont_x11.cpp qt-x11-free-3.0.5/src/kernel/qfont_x11.cpp
--- qt-x11-free-3.0.5.orig/src/kernel/qfont_x11.cpp	Mon Jul  8 14:27:02 2002
+++ qt-x11-free-3.0.5/src/kernel/qfont_x11.cpp	Wed Oct 23 13:49:39 2002
@@ -108,6 +108,8 @@
 static const char * const latinA14_encodings[] = { "iso8859-14", 0 };
 static const char * const latinA15_encodings[] = { "iso8859-15", 0 };
 
+static const char * const geometric_encodings[] = { "koi8-r", 0 };
+
 // we select on of these at initialization time for Han use
 static const char * const hancn_encodings[] =
 { "gb18030-0", /*"gb18030.2000-1",*/ "gb18030.2000-0", "gbk-0", "gb2312.1980-0", "big5*-*", "jisx0208.1983-0", "ksc5601.1987-0", 0 };
@@ -215,7 +217,7 @@
     // TechnicalSymbols
     { 0, empty_encodings },
     // GeometricSymbols
-    { 0, empty_encodings },
+    { 0, geometric_encodings },
     // MiscellaneousSymbols
     { 0, empty_encodings },
     // EnclosedAndSquare
@@ -2280,7 +2282,7 @@
     case QFont::NumberForms:               row = 0x21; cell = 0x5b; break;
     case QFont::MathematicalOperators:     row = 0x22; cell = 0x2b; break;
     case QFont::TechnicalSymbols:          row = 0x24; cell = 0x40; break;
-    case QFont::GeometricSymbols:          row = 0x25; cell = 0xa1; break;
+    case QFont::GeometricSymbols:          row = 0x25; cell = 0x02; break;
     case QFont::MiscellaneousSymbols:      row = 0x26; cell = 0x00; break;
     case QFont::EnclosedAndSquare:         row = 0x24; cell = 0x60; break;
     case QFont::Braille:                   row = 0x28; cell = 0x00; break;

       reply	other threads:[~2002-10-24  7:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24  7:40 ` Nikita V. Youshchenko [this message]
2002-10-24  9:37   ` А.Л. Клютченя
2002-10-24 10:52     ` Nikita V. Youshchenko
2002-10-24 11:47       ` А.Л. Клютченя
2002-10-24 11:54     ` Leon Kanter
2002-10-25  6:21       ` Nikita V. Youshchenko
2002-10-24 11:52   ` Leon Kanter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210241140.44864@zigzag.cs.msu.su \
    --to=yoush@cs.msu.su \
    --cc=darkstar@altlinux.ru \
    --cc=kde-russian@lists.kde.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

рассылка русскоязычной группы пользователей и разработчиков KDE

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kde-russian/0 kde-russian/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kde-russian kde-russian/ http://lore.altlinux.org/kde-russian \
		kde-russian@lists.kde.ru
	public-inbox-index kde-russian

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kde-russian


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git