all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* emacs could not show this symbol.
@ 2008-02-26  1:11 anhnmncb
  2008-02-26  4:05 ` anhnmncb
  2008-02-26 11:35 ` Peter Dyballa
  0 siblings, 2 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-26  1:11 UTC (permalink / raw)
  To: help-gnu-emacs

        character: ๑ (3665, #o7121, #xe51)
preferred charset: gb18030 (GB18030)
       code point: 0x8132D639
           syntax: w 	which means: word
         category: 6:digit t:Thai
      buffer code: #xE0 #xB9 #x91
        file code: #xE0 #xB9 #x91 (encoded by coding system utf-8-unix)
          display: no font available

How to configure emacs to show this symbol? I'm quite sure I have the
font that contains it, because urxvt and opera (yes, I use opera to test
it ;p) could. urxvt use "wenquanyi zen hei", I don't know how to get the
font info opera uses.

My .emacs font setting:
  (set-default-font "Bitstream Vera Sans Mono-12")
  (set-fontset-font (frame-parameter nil 'font)
		    'latin '("Bitstream Vera Sans Mono" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'han '("Microsoft YaHei" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'cjk-misc '("Microsoft Yahei" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'bopomofo '("Microsoft Yahei" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'gb18030 '("Microsoft Yahei". "unicode-bmp"))
  (set-fontset-font "fontset-default"
		    'gb18030 '("WenQuanYi Zen Hei". "unicode-bmp"))
  (set-fontset-font "fontset-default"
		    'mule-unicode-0100-24ff
		    '("Courier New". "unicode-bmp"))
  (add-to-list 'default-frame-alist '(font . "Bitstream Vera Sans Mono-12"))

-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-26  1:11 emacs could not show this symbol anhnmncb
@ 2008-02-26  4:05 ` anhnmncb
  2008-02-26  6:33   ` David Hansen
       [not found]   ` <mailman.7947.1204007911.18990.help-gnu-emacs@gnu.org>
  2008-02-26 11:35 ` Peter Dyballa
  1 sibling, 2 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-26  4:05 UTC (permalink / raw)
  To: help-gnu-emacs

Sorry, I forgot to give my OS and emacs info:
OS: freebsd_stable7
emacs: 23.0.60.2, yesterdaya cvsed from trunk. font-backend has been enabled.
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-26  4:05 ` anhnmncb
@ 2008-02-26  6:33   ` David Hansen
       [not found]   ` <mailman.7947.1204007911.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 15+ messages in thread
From: David Hansen @ 2008-02-26  6:33 UTC (permalink / raw)
  To: help-gnu-emacs

On Tue, 26 Feb 2008 12:05:03 +0800 anhnmncb <anhnmncb@gmail.com> wrote:

> Sorry, I forgot to give my OS and emacs info:
> OS: freebsd_stable7
> emacs: 23.0.60.2, yesterdaya cvsed from trunk. font-backend has been enabled.

  -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1

shows this symbol here.  But I have font-backend disabled (works far
better for me).

David





^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
       [not found]   ` <mailman.7947.1204007911.18990.help-gnu-emacs@gnu.org>
@ 2008-02-26 11:00     ` anhnmncb
  2008-02-27 12:09       ` Peter Dyballa
       [not found]       ` <mailman.7995.1204114181.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-26 11:00 UTC (permalink / raw)
  To: help-gnu-emacs

I don't seem it's font's problem. I think that urxvt's font
selection mechanism is great, if a font doesn't contain a symbol in that
encoding, it will find another font to display it, don't know whether
emacs could implement this technique?
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-26  1:11 emacs could not show this symbol anhnmncb
  2008-02-26  4:05 ` anhnmncb
@ 2008-02-26 11:35 ` Peter Dyballa
  2008-02-26 11:46   ` anhnmncb
  1 sibling, 1 reply; 15+ messages in thread
From: Peter Dyballa @ 2008-02-26 11:35 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 26.02.2008 um 02:11 schrieb anhnmncb:

> How to configure emacs to show this symbol?


By adding a clause for Thai? GNU Emacs tells you it's Thai:

         character: ๑ (3665, #o7121, #xe51)
	[...]
          category: 6:digit t:Thai

which is not mentioned in the excerpt from your ~/.emacs file.  
Code2000, Bitstream Cyberbase, TITUS Cyberbit, and more provide it.

Be aware also that Opera will use a proportional font while in GNU  
Emacs monospaced fonts are in regular use.

--
Greetings

   Pete

UNIX is user friendly, it's just picky about who its friends are.






^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-26 11:35 ` Peter Dyballa
@ 2008-02-26 11:46   ` anhnmncb
  0 siblings, 0 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-26 11:46 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 26.02.2008 um 02:11 schrieb anhnmncb:
>
> By adding a clause for Thai? GNU Emacs tells you it's Thai:
>
>         character: ๑ (3665, #o7121, #xe51)
> 	[...]
>          category: 6:digit t:Thai
>
> which is not mentioned in the excerpt from your ~/.emacs
> file. Code2000, Bitstream Cyberbase, TITUS Cyberbit, and more provide
> it.
How to add a clause for Thai? Could you give me example?
I have the font contain it, so I dont' want to add another font to my
system ;p

-- 
Regards,

  anhnmncb
 gpg key: 44A31344




^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-26 11:00     ` anhnmncb
@ 2008-02-27 12:09       ` Peter Dyballa
       [not found]       ` <mailman.7995.1204114181.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 15+ messages in thread
From: Peter Dyballa @ 2008-02-27 12:09 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 26.02.2008 um 12:00 schrieb anhnmncb:

> I don't seem it's font's problem. I think that urxvt's font
> selection mechanism is great, if a font doesn't contain a symbol in  
> that
> encoding, it will find another font to display it, don't know whether
> emacs could implement this technique?

It would not be that easy.

A terminal emulation has an easy job: display things in one encoding.  
GNU Emacs supports some dozens. Less than a handful are sensible,  
IMO, i.e. Unicode based. Some encodings are 8 bit, left from the  
child days of some operating systems, other are 16 bit or more, most  
of them for some restricted national use.

Ideally GNU Emacs would need to construct font sets for all these  
encodings, at least for those in use. It also supports scripts  
(writing systems) and their languages (language environments). This  
*can* mean that for different font sizes and font variants (regular,  
bold, italic, bold italic) 100 MB of fonts would be loaded into  
memory, at least for 16 bit encodings. The size needed might be  
reduced when 8 bit encodings could be derived from 16 bit encodings  
(for example ISO 8859-11 and TIS620 are the same and both could map  
into Unicode).

The idea of font backends eases this situation by delegating font  
handling to the operating system (what Mac OS X or MS Losedos or ...  
or X11 are providing in some way, some better, some worse). To make  
this work the OS has to know what its fonts support/deliver. This  
information usually is derived from the fonts. Some provide enough  
information, others tend to hide it. The it becomes difficult.

With fc-list you can check what your system provides. The language  
name used is based on RFC 3066 which in turn references ISO 639. A  
font with your Thai character could be searched for with:

	fc-list :lang=th

Much more options are possible. To find all monospaced fonts with  
Thai support:

	fc-list : file lang spacing | grep spac | egrep 'lang=.*th'

This is because fc-list tends to report either too much or not enough  
– or I need more practise with fc-list!

--
Greetings

   Pete

Got Mole problems?
Call Avogadro 6.02 x 10^23






^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
       [not found]       ` <mailman.7995.1204114181.18990.help-gnu-emacs@gnu.org>
@ 2008-02-28  0:10         ` anhnmncb
  2008-02-28  0:56           ` anhnmncb
                             ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-28  0:10 UTC (permalink / raw)
  To: help-gnu-emacs

Thank you for very detail explanation!

th or thai? In my system, using thai produces nothing, but th.
The output is:
   /usr/home/anhnmncb $ fc-list :lang=th
   Fixed:style=Bold
   Fixed:style=SemiCondensed
   Fixed:style=Oblique
   Fixed:style=Regular

I guess the font "Fixed" supports it(don't know how to let my system
knows that wenquanyi  supports it too), how to configure for
that?
I tried:
  (set-fontset-font (frame-parameter nil 'font)
		    'thai '("Fixed" . "unicode-bmp"))
and
  (set-fontset-font "fontset-default"
		    'thai '("Fixed" . "unicode-bmp"))
both have no effect.
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-28  0:10         ` anhnmncb
@ 2008-02-28  0:56           ` anhnmncb
  2008-02-28 10:12             ` Peter Dyballa
  2008-02-28  9:49           ` Peter Dyballa
       [not found]           ` <mailman.8026.1204192187.18990.help-gnu-emacs@gnu.org>
  2 siblings, 1 reply; 15+ messages in thread
From: anhnmncb @ 2008-02-28  0:56 UTC (permalink / raw)
  To: help-gnu-emacs

ok, I have done it, perfectly!
Now I find another symbol emac couldn't recognize:

        character: ✺ (10042, #o23472, #x273a)
preferred charset: gb18030 (GB18030)
       code point: 0x8137C136
           syntax: w 	which means: word
      buffer code: #xE2 #x9C #xBA
        file code: #xE2 #x9C #xBA (encoded by coding system utf-8-unix)
          display: no font available

Even does not show which language it is belonged to.
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-28  0:10         ` anhnmncb
  2008-02-28  0:56           ` anhnmncb
@ 2008-02-28  9:49           ` Peter Dyballa
       [not found]           ` <mailman.8026.1204192187.18990.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 15+ messages in thread
From: Peter Dyballa @ 2008-02-28  9:49 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 28.02.2008 um 01:10 schrieb anhnmncb:

> th or thai?

It is according to ISO 639 and ISO 3166 th. You can try:

	fc-list : file family lang

It will be a long listing in *shell* buffer ...


>
> I guess the font "Fixed" supports it(don't know how to let my system
> knows that wenquanyi  supports it too), how to configure for
> that?

The file fonts.conf configures the libfontconfig based system. I am  
confident that there is a way to "correct" the information a font  
gives by making it responsible for something it can do.

> I tried:
>   (set-fontset-font (frame-parameter nil 'font)
> 		    'thai '("Fixed" . "unicode-bmp"))
> and
>   (set-fontset-font "fontset-default"
> 		    'thai '("Fixed" . "unicode-bmp"))
> both have no effect.


Could be it works better when launching a new instance of GNU Emacs  
after ~/.emacs was augmented? C-h H can also be an easy proof to see  
whether the font setup is OK ...

--
Greetings

   Pete

Windows, c'est un peu comme le beaujolais nouveau: à chaque nouvelle  
cuvée on sait que ce sera dégueulasse, mais on en prend quand même,  
par masochisme.






^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-28  0:56           ` anhnmncb
@ 2008-02-28 10:12             ` Peter Dyballa
  0 siblings, 0 replies; 15+ messages in thread
From: Peter Dyballa @ 2008-02-28 10:12 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 28.02.2008 um 01:56 schrieb anhnmncb:

> Now I find another symbol emac couldn't recognize:
>
>         character: ✺ (10042, #o23472, #x273a)

It's from the dingbats block: SIXTEEN POINTED ASTERISK. Zapf Dingbats  
has it, the Lucida Sans fonts in Java have it, Code2000, FreeSerif ...

I think there is no way to use fc-list.


The name of the character can be output when you customise what is  
printed by C-u C-x =. There is particularly one variable name:  
describe-char-unicodedata-file in GNU Emacs 22 ... 23.0.50 and  
unicodedata-file in GNU Emacs 23.0.60:

	'(describe-char-unicodedata-file "/Applications/UnicodeChecker.app/ 
Contents/Resources/Unicode Data/UnicodeData.txt")
	'(unicodedata-file "/sw/lib/clisp-2.43/data/UnicodeDataFull.txt")

The file UnicodeData.txt comes with Kermit, Perl, xindy, XeTeX – and  
GNU Emacs 23.x.
The file UnicodeDataFull.txt comes with CLisp or xindy.

The output then can be:

         character: ✺ (10042, #o23472, #x273a)
preferred charset: gb18030 (GB18030)
        code point: 0x8137C136
            syntax: w 	which means: word
       buffer code: #xE2 #x9C #xBA
         file code: #xE2 #x9C #xBA (encoded by coding system utf-8-unix)
           display: by this font (glyph code)
      -monotype-arial unicode ms-medium-r-normal--10-98-74-74-p-99- 
gb18030.2000-0 (#xC136)

Character code properties: customize what to show
   name: SIXTEEN POINTED ASTERISK
   general-category: So (Symbol, Other)
   canonical-combining-class: 0 (Spacing, split, enclosing,  
reordrant, and Tibetan subjoined)


--
Greetings

   Pete

Government is actually the worst failure of civilized man. There has  
never been a really good one, and even those that are most tolerable  
are arbitrary, cruel, grasping and unintelligent.
				– H. L. Mencken







^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
       [not found]           ` <mailman.8026.1204192187.18990.help-gnu-emacs@gnu.org>
@ 2008-02-28 12:47             ` anhnmncb
  2008-02-28 15:01               ` Peter Dyballa
       [not found]               ` <mailman.8038.1204210929.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 15+ messages in thread
From: anhnmncb @ 2008-02-28 12:47 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks peter_dyballa for your very patient answer!
Pardon for my terrible English, I tried my best to make my expression
clear.

Now I have resolved the problem though don't know why :)
I use this configuration in .Xdefaults:
--------------------------x----------------------------x--------------------------------
  Emacs.Fontset-0: \
  -misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,\
  chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,\
  chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,\
  gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\
  thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\
  mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*-iso10646-1

  Emacs.Font: fontset-dejavu
--------------------------x----------------------------x--------------------------------

And this in .emacs:
--------------------------x----------------------------x--------------------------------
(create-fontset-from-fontset-spec
 (concat
  "-misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,"
  "chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,"
  "chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*-iso10646-1,"
  "gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*-iso10646-1,"
  "thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,"
  "mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*-iso10646-1"))
  (set-fontset-font (frame-parameter nil 'font)
		    'han '("Microsoft YaHei" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'cjk-misc '("Microsoft Yahei" . "unicode-bmp"))
  (set-fontset-font (frame-parameter nil 'font)
		    'gb18030 '("Microsoft Yahei". "unicode-bmp"))

  (set-fontset-font "fontset-default"
		    'gb18030 '("WenQuanYi Zen Hei". "unicode-bmp"))
  (set-fontset-font "fontset-default"
		    'mule-unicode-0100-24ff '("Courier New". "unicode-bmp"))

  (set-fontset-font "fontset-default"
		    'thai "-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1")
(set-default-font "fontset-dejavu")
(add-to-list 'default-frame-alist '(font . "fontset-dejavu"))
--------------------------x----------------------------x--------------------------------
Now emacs could use fixed and dejavu  for those symbols.

Another question, maybe emacs.font-backend is enabled by default?
I comment it and find that xft is going on well. Don't know what's the
most correct way to configure fontset for xft emacs, although I tell
emacs to use fontset-dejavu, I find that emacs doesn't use this fontset
actually. And many times emacs could not align a line correctly, for
example, in my bookmark buffer, it shows:
  .emacs		        ~/.emacs
  equation.tex		        ~/doc/work/pk/equation.tex
  tip-font		        /usr/home/anhnmncb/doc/tips/tip-font
  tip-words-pro		        ~/doc/tips/tip-words-pro
So weird for me! Anyway, now emacs can display most of the symbols.
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-28 12:47             ` anhnmncb
@ 2008-02-28 15:01               ` Peter Dyballa
       [not found]               ` <mailman.8038.1204210929.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 15+ messages in thread
From: Peter Dyballa @ 2008-02-28 15:01 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 28.02.2008 um 13:47 schrieb anhnmncb:

> Now I have resolved the problem though don't know why :)
> I use this configuration in .Xdefaults:
> --------------------------x---------------------------- 
> x--------------------------------
>   Emacs.Fontset-0: \
>   -misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,\
>   chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p- 
> *-iso10646-1,\
>   chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*- 
> iso10646-1,\
>   gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*- 
> iso10646-1,\
>   thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\
>   mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*- 
> iso10646-1

I admit that I am not the font or fontset expert, I would have used  
here a gb2312.1980-0 encoded for the chinese-gb2312 encoding, a  
gb18030.2000-0 encoding for the gb18030 encoding, and a tis620-2  
encoded font for the thai-tis620 encoding. For mule-unicode-0100-24ff  
encoding I would use a font that has more to offer than Monotype  
Courier, Lucida Sans Typewriter or DejaVu Sans Mono or Free Mono.  
Well, anyway, I should improve my own settings, too, and learn from  
this a bit.

> And this in .emacs:
> --------------------------x---------------------------- 
> x--------------------------------
> (create-fontset-from-fontset-spec
>  (concat
>   "-misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,"
>   "chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p- 
> *-iso10646-1,"
>   "chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*- 
> iso10646-1,"
>   "gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*- 
> iso10646-1,"
>   "thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,"
>   "mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m- 
> *-iso10646-1"))

Here above I would also check whether the font encodings match the  
GNU Emacs encodings.

>   (set-fontset-font "fontset-default"
> 		    'thai "-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1")
> (set-default-font "fontset-dejavu")
> (add-to-list 'default-frame-alist '(font . "fontset-dejavu"))

You were constructing a "fontset-default" and then you're setting a  
"fontset-dejavu" to be used as default? I admit, documentation  
(particularly examples) of fontsets can be improved.

>
> Another question, maybe emacs.font-backend is enabled by default?

You can check this easily by choosing "Send Bug Report..." from the  
Help menu. It will show the configure options used. And ldd (on GNU/ 
Linux) could tell you which to libraries GNU Emacs is linked. This  
can give you a hint of what it's able to use.

> I comment it and find that xft is going on well. Don't know what's the
> most correct way to configure fontset for xft emacs, although I tell
> emacs to use fontset-dejavu, I find that emacs doesn't use this  
> fontset
> actually.

See my comment above!

> And many times emacs could not align a line correctly,

Because you are using monospaced and proportionally spaced fonts in  
your fontsets:

	*-*-p-*-iso10646-1
	*-*-m-*-iso10646-1

--
Greetings

   Pete

Mac OS X is like a wigwam: no fences, no gates, but an apache inside.






^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
       [not found]               ` <mailman.8038.1204210929.18990.help-gnu-emacs@gnu.org>
@ 2008-02-29  0:25                 ` anhnmncb
  2008-02-29 11:15                   ` Peter Dyballa
  0 siblings, 1 reply; 15+ messages in thread
From: anhnmncb @ 2008-02-29  0:25 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> I admit that I am not the font or fontset expert, I would have used
> here a gb2312.1980-0 encoded for the chinese-gb2312 encoding, a
> gb18030.2000-0 encoding for the gb18030 encoding, and a tis620-2
> encoded font for the thai-tis620 encoding. For mule-unicode-0100-24ff
> encoding I would use a font that has more to offer than Monotype
> Courier, Lucida Sans Typewriter or DejaVu Sans Mono or Free Mono.
> Well, anyway, I should improve my own settings, too, and learn from
> this a bit.
Vista courier has a symbol even dejavu doesn't contain :``ˏ'' , could
you see it? ;p

>>   (set-fontset-font "fontset-default"
>> 		    'thai "-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1")
>> (set-default-font "fontset-dejavu")
>> (add-to-list 'default-frame-alist '(font . "fontset-dejavu"))
>
> You were constructing a "fontset-default" and then you're setting a
> "fontset-dejavu" to be used as default? I admit, documentation
> (particularly examples) of fontsets can be improved.

I think this setting is meant that when the fontset-dejavu donesn't have
a suitable font to show the character, then emacs will use fontset-default
instead, don't know if I correct, but I find that this setting works
well for me.

>
>> And many times emacs could not align a line correctly,
>
> Because you are using monospaced and proportionally spaced fonts in
> your fontsets:
>
> 	*-*-p-*-iso10646-1
> 	*-*-m-*-iso10646-1
I changed dejavu sans mono to dejavu sans, and m to p, did not work.
-- 
Regards,

  anhnmncb
 gpg key: 44A31344


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: emacs could not show this symbol.
  2008-02-29  0:25                 ` anhnmncb
@ 2008-02-29 11:15                   ` Peter Dyballa
  0 siblings, 0 replies; 15+ messages in thread
From: Peter Dyballa @ 2008-02-29 11:15 UTC (permalink / raw)
  To: anhnmncb; +Cc: help-gnu-emacs


Am 29.02.2008 um 01:25 schrieb anhnmncb:

>> For mule-unicode-0100-24ff
>> encoding I would use a font that has more to offer than Monotype
>> Courier, Lucida Sans Typewriter or DejaVu Sans Mono or Free Mono.

My sentence can be misunderstood: I was recommending to use Lucida  
Sans Typewriter or DejaVu Sans Mono or Free Mono instead of Monotype  
Courier.

>>
> Vista courier has a symbol even dejavu doesn't contain :``ˏ'' , could
> you see it? ;p

The character you are quoting is MODIFIER LETTER LOW ACUTE ACCENT, U 
+02CF. It's not in DejaVu, but it's rather insignificant.

> I think this setting is meant that when the fontset-dejavu donesn't  
> have
> a suitable font to show the character, then emacs will use fontset- 
> default
> instead, don't know if I correct, but I find that this setting works
> well for me.

No. Initially GNU Emacs has two fontsets defined. None of them is  
meant as the other's fall-back. It's more like two trains starting  
from the same station: one leaves in this direction giving you the  
view of this landscape, the other leaves in that direction giving you  
the view of that landscape. No fall-back possible (but in GNU Emacs  
you can switch from this to that fontset).


I made experiments with GNU Emacs, launching it with -q and making it  
load some ELisp code that uses data defined in X resources:

Emacs.Fontset-0:	-b&h-lucidatypewriter-medium-r-*-*-10-*-*-*-*-*- 
fontset-mine,\
		  ascii: -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*-m-*-iso8859-1,\
	 chinese-gb2312: -misc-han nom a-medium-r-*-*-0-*-*-*-p-*- 
gb2312.1980-0,\
		gb18030: -misc-han nom a-medium-r-*-*-0-*-*-*-p-*-gb18030.2000-0,\
	    thai-tis620: -monotype-arial unicode ms-medium-r-*-*-0-*-*-*-p-*- 
tis620-2,\
        arabic-iso8859-6: -b&h-lucida sans typewriter-medium-r-*-*-0- 
*-*-*-m-*-iso8859-6.16,\
       japanese-jisx0208: -apple-osaka-medium-r-*-*-0-*-*-*-p-*- 
jisx0208.1983-0,\
       katakana-jisx0201: -apple-osaka-medium-r-*-*-0-*-*-*-p-*- 
jisx0201.1976-0,\
        ethiopic-unicode: -misc-ethiopia jiret-medium-r-*-*-0-*-*-*-p- 
*-iso10646-1,\
  mule-unicode-0100-24ff: -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*- 
m-*-iso10646-1,\
  mule-unicode-e000-ffff: -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*- 
m-*-iso10646-1,\
  mule-unicode-2500-33ff: -b&h-lucidatypewriter-medium-r-*-*-10-*-*-*- 
m-*-iso10646-1

Emacs.Font:		fontset-mine

which allows me to use in the ELisp file:

;	(set-fontset-font "fontset-mine" 'bengali-akruti '("Arial Unicode  
MS" . "unicode-bmp"))
	
	(set-fontset-font "fontset-mine" (cons (decode-char 'ucs #x10a0)
						 (decode-char 'ucs #x10ff)) '("dejavu sans mono" .  
"iso10646-1"))	; Georgian
	(set-fontset-font "fontset-mine" (cons (decode-char 'ucs #x1200)
						 (decode-char 'ucs #x137f)) '("ethiopia jiret" .  
"iso10646-1"))	; Ethiopic
	(set-fontset-font "fontset-mine" (cons (decode-char 'ucs #x1380)
						 (decode-char 'ucs #x139f)) '("code2000" . "iso10646-1"))		;  
Ethiopic Supplement
	(set-fontset-font "fontset-mine" (cons (decode-char 'ucs #x0980)
						 (decode-char 'ucs #x09ff)) '("freeserif" . "iso10646-1"))		;  
Bengali

I.e. there is no error in using the "fontset-mine" symbol, but GNU  
Emacs does not use that fontset, it uses a bad startup fontset with  
many empty boxes. When launching GNU Emacs with an additional -- 
disable-font-backend I can see that my fontset is used (M-x describe- 
fontset RET RET) and that the HELLO buffer has much less boxes ...

Maybe the fontset for use with any font backend has to be built from  
fontconfig specification ...

>
>> Because you are using monospaced and proportionally spaced fonts in
>> your fontsets:
>>
>> 	*-*-p-*-iso10646-1
>> 	*-*-m-*-iso10646-1
> I changed dejavu sans mono to dejavu sans, and m to p, did not work.


Actually the width of glyphs taken from more than one monospaced font  
will most probably vary. So a fontset comprised of more than one  
(monospaced) font will show variations when it happens that glyphs  
from more than one font are used to display that text. When you use  
proportionally spaced fonts, *every* glyph has its own personal  
width. These fonts are good for menus or pop-up forms.

--
Greetings

   Pete

What is this talk of 'release?' Klingons do not make software  
'releases.'  Our software 'escapes,' leaving a bloody trail of  
designers and quality assurance people in its wake.







^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-02-29 11:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-26  1:11 emacs could not show this symbol anhnmncb
2008-02-26  4:05 ` anhnmncb
2008-02-26  6:33   ` David Hansen
     [not found]   ` <mailman.7947.1204007911.18990.help-gnu-emacs@gnu.org>
2008-02-26 11:00     ` anhnmncb
2008-02-27 12:09       ` Peter Dyballa
     [not found]       ` <mailman.7995.1204114181.18990.help-gnu-emacs@gnu.org>
2008-02-28  0:10         ` anhnmncb
2008-02-28  0:56           ` anhnmncb
2008-02-28 10:12             ` Peter Dyballa
2008-02-28  9:49           ` Peter Dyballa
     [not found]           ` <mailman.8026.1204192187.18990.help-gnu-emacs@gnu.org>
2008-02-28 12:47             ` anhnmncb
2008-02-28 15:01               ` Peter Dyballa
     [not found]               ` <mailman.8038.1204210929.18990.help-gnu-emacs@gnu.org>
2008-02-29  0:25                 ` anhnmncb
2008-02-29 11:15                   ` Peter Dyballa
2008-02-26 11:35 ` Peter Dyballa
2008-02-26 11:46   ` anhnmncb

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.