[Ruby] Fox, FXRuby
Тим Алексеевский
realtim на mail.ru
Чт Май 20 11:03:52 MSD 2004
Привет!
Yuri Leikind (Май 19, 18:23):
> Я тут накатал письмо для FoX списка рассылки, придержал его, чтобы
> сначала скачать и собрать последний FoX, дабы посмотреть, не
> изменилось ли что, да подумал, может кто в этом списке рассылки сможет
> сказать что-нибудь по поводу моих проблем.
Могу. Я тоже с такими сталкивался. На мой взгляд Jeroen (автор FOX-а)
не очень разбирается в вопросе, поэтому эта часть библиотеки сделана
странновато.
> Вот мое письмо
>
> Hello all,
>
> Though I code FoX using FXRuby, the questions I have are related
> directly to the FoX library.
>
> When creating an FXFont instance, we set the encoding property.
> Encodings related to the Russian language declared in FXFont.h are
>
> FONTENCODING_ISO_8859_5 - cyrillic ISO charset, used very rarely
> FONTENCODING_CYRILLIC - the same
Мне кажется, не стоит называть CYRILLIC ни одну из кирилических
кодировок (тем более столь редкую).
> FONTENCODING_KOI8_R - KOI8-R, Russian charset traditionally used in Unix, now in Linux
> FONTENCODING_KOI8_U - KOI8-U, a variation of KOI8_R modified to include glyphs for the
> Ukrainian language, these glyphs are missing in KOI8_R
>
> FONTENCODING_KOI8 - KOI8 ??
> FONTENCODING_RUSSIAN - the same
И RUSSIAN тоже странно.
> Here are my questions:
>
>
> 1) What is FONTENCODING_KOI8 here? KOI8 is just a family of charsets, including KOI8-R and KOI8-U.
>
> 2) Why is ISO_8859_5 called Cyrillic in FXFontDialog? This is not quite evident for a Russian speaking
> user that Cyrillic _is_ ISO 8859 5, and not CP1251 or whatever?
>
> 3) The charset used in Windows for Russian is CP1251. It is missing in
> the list of encodings in FXFont.h, but I found out, to my great
> astonishment, that FXFont objects created with encoding = 5
> (FONTENCODING_ISO_8859_5 or FONTENCODING_CYRILLIC) render text
> written in CP2151.
опечатка..
> Evidently fonts created are CP1251 fonts?..
> Or is there something I am missing?
>
> 4) If I want to use FXFontDialog under Linux to choose some KOI8-R
> font, I choose "Russian" in Character Set dropdown list. FXFontDesc
> objects returned by FXFontDialog in this case have encoding set to
> 17, that is FONTENCODING_KOI8 or FONTENCODING_RUSSIAN. The list of
> font families shown in FXFontDialog has just 2 families, though I
> have far greater number of KOI8-R fonts. I can view them in, say,
> gtkfontsel. Or I can even create an FXFont object with encoding set
> to FONTENCODING_RUSSIAN and face set to "helvetica", though
> helvetica is not shown in the list of font families in FXFontDialog
> with "Russian" in Character Set.
Так вот. Конструктивного ничего сказать не могу (типа на самом деле
все работает). Писать в рассылку стоит :)
Тим
--
++ 43% of all statistics are worthless. ++
--
Подробная информация о списке рассылки Ruby