emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TUTORIAL.bg and windows-1251


From: Kenichi Handa
Subject: Re: TUTORIAL.bg and windows-1251
Date: Tue, 13 Jan 2004 13:07:25 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Ognyan Kulev <address@hidden> writes:
> Just copy&paste in both directions works fine.  But how can I be sure 
> that the text is encoded with microsoft-cp1251, not with iso10646-1? 
> What program would show the difference?

If (encode-coding-string CYRILLIC_STRING
'ctext-with-extensions) produces a string that contains
"microsoft-cp1251", it means that Emacs is using
microsoft-cp1251 extended seqement in X selection.  And if
copy&paste works fine, that means that the encoding is in a
correct format.

>>  Please tell me what this returns:
>>  
>>  (get-language-info "Bulgarian" 'overriding-fontspec)

> ((#^[t nil nil nil nil nil nil nil nil nil nil nil ...] nil . 
> "microsoft-cp1251") (#^[t nil nil nil nil nil nil nil nil nil nil nil 
> ...] nil . "koi8-r"))

> Is it normal that there are (almost) only nil:s?

Yes.

>>  and the effect of this.
>>  
>>  (set-overriding-fontspec-internal
>>   (get-language-info "Bulgarian" 'overriding-fontspec))

> I see no effect after evaling it :-(  That is, cyrillic characters are 
> still shown in iso10646-1 instead of microsoft-cp1251.  (CVS 2004-01-09 
> and "emacs -q".)

Hmmm strange.  What is the result of this?

(x-resolve-font-name "*-microsoft-cp1251")

---
Ken'ichi HANDA
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]