all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Japanese fonts
@ 2011-07-04  4:09 Daniel Anderson
  2011-07-04 14:54 ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Anderson @ 2011-07-04  4:09 UTC (permalink / raw)
  To: help-gnu-emacs

Greetings help-gnu-emacs,

For people not familiar with japanese, this may be a bit confusing...

The issue is that the kanji character set for japanese fonts in emacs
shows up as one font, while the hiragana font shows up as another
font. The inconsistency is a bit ugly. Any one have any solutions?

Here are the properties of each in just a Fundamental mode buffer:


Kanji:
        character: 録 (37682, #o111462, #x9332)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x9332
           syntax: w 	which means: word
         category: .:Base, C:2-byte han, c:Chinese, j:Japanese, |:line breakable
      buffer code: #xE9 #x8C #xB2
        file code: #xE9 #x8C #xB2 (encoded by coding system utf-8-unix)
          display: by this font (glyph code)
    xft:-unknown-Droid Sans Fallback-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x4AC2)

Character code properties: customize what to show
  name: CJK IDEOGRAPH-9332
  general-category: Lo (Letter, Other)





Hiragana:

        character: お (12362, #o30112, #x304a)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x304A
           syntax: w 	which means: word
         category:
                   .:Base, H:2-byte Hiragana, c:Chinese, h:Korean, j:Japanese, |:line breakable
      buffer code: #xE3 #x81 #x8A
        file code: #xE3 #x81 #x8A (encoded by coding system utf-8-unix)
          display: by this font (glyph code)
    xft:-unknown-TakaoPMincho-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x238B)

Character code properties: customize what to show
  name: HIRAGANA LETTER O
  general-category: Lo (Letter, Other)





Thanks for any input!


Daniel




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

* Japanese fonts
@ 2011-07-04  6:16 Daniel Anderson
  2011-07-05 10:09 ` Ivan Kanis
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Anderson @ 2011-07-04  6:16 UTC (permalink / raw)
  To: help-gnu-emacs

Greetings help-gnu-emacs,

For people not familiar with japanese, this may be a bit confusing...

The issue is that the kanji character set for japanese fonts in emacs
shows up as one font, while the hiragana font shows up as another
font. The inconsistency is a bit ugly. Any one have any solutions?

Here are the properties of each in just a Fundamental mode buffer:


Kanji:
       character: 録 (37682, #o111462, #x9332)
preferred charset: unicode (Unicode (ISO10646))
      code point: 0x9332
          syntax: w    which means: word
        category: .:Base, C:2-byte han, c:Chinese, j:Japanese, |:line breakable
     buffer code: #xE9 #x8C #xB2
       file code: #xE9 #x8C #xB2 (encoded by coding system utf-8-unix)
         display: by this font (glyph code)
   xft:-unknown-Droid Sans
Fallback-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x4AC2)

Character code properties: customize what to show
 name: CJK IDEOGRAPH-9332
 general-category: Lo (Letter, Other)





Hiragana:

       character: お (12362, #o30112, #x304a)
preferred charset: unicode (Unicode (ISO10646))
      code point: 0x304A
          syntax: w    which means: word
        category:
                  .:Base, H:2-byte Hiragana, c:Chinese, h:Korean,
j:Japanese, |:line breakable
     buffer code: #xE3 #x81 #x8A
       file code: #xE3 #x81 #x8A (encoded by coding system utf-8-unix)
         display: by this font (glyph code)
   xft:-unknown-TakaoPMincho-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1
(#x238B)

Character code properties: customize what to show
 name: HIRAGANA LETTER O
 general-category: Lo (Letter, Other)





Thanks for any input!


Daniel



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

* Re: Japanese fonts
  2011-07-04  4:09 Daniel Anderson
@ 2011-07-04 14:54 ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2011-07-04 14:54 UTC (permalink / raw)
  To: Daniel Anderson; +Cc: help-gnu-emacs


Am 04.07.2011 um 06:09 schrieb Daniel Anderson:

> The issue is that the kanji character set for japanese fonts in emacs
> shows up as one font, while the hiragana font shows up as another
> font. The inconsistency is a bit ugly. Any one have any solutions?


Create a fontset in which both ranges are covered by the same font!  
You might also try to pass a --font or -fn font argument to GNU Emacs  
or set an X resource – which can a be fontset as well:

	Emacs.Fontset-0: -*-bitstream vera sans mono-medium-r-normal-*-10-*-*- 
*-*-*-fontset-10,\
		chinese-gb2312:-*-fangsong ti-medium-r-*-*-10-*-*-*-*-*- 
gb2312.1980-0,\
	!        chinese-gbk:-*-fangsong ti-medium-r-*-*-10-*-*-*-*-*-gbk-0,\
	        unicode:-*-fangsong ti-medium-r-*-*-10-*-*-*-*-*-iso10646-1
	Emacs.font: fontset-14

Here you see also the use of character "ranges" (so-called  
"encodings"). GNU Emacs knows quite a lot of them...

--
Greetings

   Pete

Sending unsolicited commercial eMail to this account incurs a fee of €  
500 per message and acknowledges the legality of this contract.




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

* Re: Japanese fonts
  2011-07-04  6:16 Japanese fonts Daniel Anderson
@ 2011-07-05 10:09 ` Ivan Kanis
  2011-07-06  5:33   ` Daniel Anderson
  0 siblings, 1 reply; 5+ messages in thread
From: Ivan Kanis @ 2011-07-05 10:09 UTC (permalink / raw)
  To: Daniel Anderson; +Cc: emacs help

Daniel Anderson <dankles@gmail.com> wrote:

> The issue is that the kanji character set for japanese fonts in emacs
> shows up as one font, while the hiragana font shows up as another
> font. The inconsistency is a bit ugly. Any one have any solutions?

It's annoying, I have the following in my .emacs:

(set-fontset-font ; fix japanese font
 "fontset-default" 'japanese-jisx0208
 (if (eq window-system 'x)
     "-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0"
 "-outline-MS Mincho-normal-normal-normal-mono-24-*-*-*-c-*-jisx0208*-*"))

Take care,
-- 
Ivan Kanis, Release Manager, Vision Objects,
Tel +33 2 28 01 84 44,  Fax +33 2 40 25 89 20
http://www.visionobjects.com

Academic politics is the most vicious and bitter form of politics,
because the stakes are so low.
    -- Wallace Sayre 



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

* Re: Japanese fonts
  2011-07-05 10:09 ` Ivan Kanis
@ 2011-07-06  5:33   ` Daniel Anderson
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Anderson @ 2011-07-06  5:33 UTC (permalink / raw)
  To: help-gnu-emacs

Ivan Kanis <expire-by-2011-07-10@kanis.fr> writes:

> Daniel Anderson <dankles@gmail.com> wrote:
>
>> The issue is that the kanji character set for japanese fonts in emacs
>> shows up as one font, while the hiragana font shows up as another
>> font. The inconsistency is a bit ugly. Any one have any solutions?
>
> It's annoying, I have the following in my .emacs:
>
> (set-fontset-font ; fix japanese font
>  "fontset-default" 'japanese-jisx0208
>  (if (eq window-system 'x)
>      "-jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0"
>  "-outline-MS Mincho-normal-normal-normal-mono-24-*-*-*-c-*-jisx0208*-*"))
>
> Take care,


Thanks!




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

end of thread, other threads:[~2011-07-06  5:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-04  6:16 Japanese fonts Daniel Anderson
2011-07-05 10:09 ` Ivan Kanis
2011-07-06  5:33   ` Daniel Anderson
  -- strict thread matches above, loose matches on Subject: below --
2011-07-04  4:09 Daniel Anderson
2011-07-04 14:54 ` Peter Dyballa

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.