Bug 997 - Problems with showing ukrainian letters.
Summary: Problems with showing ukrainian letters.
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs-common (show other bugs)
Version: unstable
Hardware: all Linux
: P4 major
Assignee: Ivan Zakharyaschev
QA Contact:
URL:
Keywords:
: 1273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-13 16:58 MSD by StrA~
Modified: 2005-09-04 21:42 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description StrA~ 2002-06-13 16:58:57 MSD
After command:
M-x set-default-font -*-koi8-u
it dosn\'t show ukrainian (not from koi8-r) symbols correctly...
---

---

Comment 1 imz 2002-11-09 20:57:59 MSK
in emacs-21.2-alt10 by refining the regexp for koi8-r font encoding:

--- emacs-21.2.orig/lisp/language/cyrillic.el   Fri Apr 12 21:07:11 2002                                                                                          
+++ emacs-21.2/lisp/language/cyrillic.el        Sun Apr 14 12:35:50 2002                                                                                          
@@ -222,7 +222,8 @@                                                                                                                                               
   \"CCL program to encode Cyrillic chars to KOI font.\")                                                                                                           
                                                                                                                                                                  
 (setq font-ccl-encoder-alist                                                                                                                                     
-      (cons \'(\"koi8\" . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                            
+      (cons \'(\"koi8-\\\\(1\\\\|r\\\\)\" . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                
+; We need a finer regexp to display Ukrainian correctly (with koi8-u).                                                                                           
                                                                                                                                                                  
 (set-language-info-alist                                                                                                                                         
  \"Cyrillic-KOI8\" `((tutorial . \"TUTORIAL.ru\")
Comment 2 imz 2002-11-09 20:57:59 MSK
in emacs-21.2-alt10 by refining the regexp for koi8-r font encoding:

--- emacs-21.2.orig/lisp/language/cyrillic.el   Fri Apr 12 21:07:11 2002                                                                                          
+++ emacs-21.2/lisp/language/cyrillic.el        Sun Apr 14 12:35:50 2002                                                                                          
@@ -222,7 +222,8 @@                                                                                                                                               
   \"CCL program to encode Cyrillic chars to KOI font.\")                                                                                                           
                                                                                                                                                                  
 (setq font-ccl-encoder-alist                                                                                                                                     
-      (cons \'(\"koi8\" . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                            
+      (cons \'(\"koi8-\\\\(1\\\\|r\\\\)\" . ccl-encode-koi8-font) font-ccl-encoder-alist))                                                                                
+; We need a finer regexp to display Ukrainian correctly (with koi8-u).                                                                                           
                                                                                                                                                                  
 (set-language-info-alist                                                                                                                                         
  \"Cyrillic-KOI8\" `((tutorial . \"TUTORIAL.ru\")
Comment 3 imz 2003-02-10 22:07:24 MSK
In fact, it\'d be nice if no matter what the default fontset/font is, the Ukrainian letters would be displayed correctly unless the X font with them (koi8-u, cp1251, iso8859-5) is unavailable.
Comment 4 imz 2003-02-10 22:07:24 MSK
In fact, it\'d be nice if no matter what the default fontset/font is, the Ukrainian letters would be displayed correctly unless the X font with them (koi8-u, cp1251, iso8859-5) is unavailable.
Comment 5 imz 2003-02-11 03:00:15 MSK
emacs-21.2-alt14: if iso8859-5, or cp1251, or koi8-u fonts are available (in this prefernce order), emacs uses them for Cyrillic. And thus displays ukrainina letters correctly (no matter what the font encoding in the fontset specification is). only if no such fonts are available, koi8-r fonts are used.
Comment 6 imz 2003-02-11 03:00:15 MSK
emacs-21.2-alt14: if iso8859-5, or cp1251, or koi8-u fonts are available (in this prefernce order), emacs uses them for Cyrillic. And thus displays ukrainina letters correctly (no matter what the font encoding in the fontset specification is). only if no such fonts are available, koi8-r fonts are used.