unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Incorrect tab-width when using non-english fonts
@ 2008-08-22  9:05 Forrest Y. Yu
  2008-08-22 11:10 ` David Hansen
  0 siblings, 1 reply; 2+ messages in thread
From: Forrest Y. Yu @ 2008-08-22  9:05 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1352 bytes --]

Hi,

  I fetched Emacs-23.0.60.1 yesterday and built it successfully. It is
beautiful. However, when I set default font to SimSun -- a common Chinese
font, the tab-width becomes twice as before, that is, Emacs calculates the
tab width in width of Chinese, which often occupies a space of two English
letters. That makes my document looks weird.

  My last installation was done about 8 months ago. Things were ok with that
version. The tab-width was correct no matter what fonts I used.

  This is not a simple tab-width problem, so I don't know how to search the
internet. I tried but found no useful information.

  One possible solution is to use two kinds of fonts, one for English the
other for Chinese, but that will make my doc fail to align. I need that one
Chinese character occupies exactly the width of two monospace-type english
letters. I cannot find any English font that satisfies this.

  In a word, my problem might be solved in these two ways:

  1. To make Emacs calculate width using English letters regardless of the
font
  2. To find an English font whose width is half of a Chinese character (of
course, it should be monospace)

  Neither of the way I know how to do.

  Could anyone help me out?

  Thanks for your attention. Your suggestion will be very appreciated.

Best Regards,
Forrest (YYu)

-- 
Stupid is as stupid does.

[-- Attachment #2: Type: text/html, Size: 1524 bytes --]

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

* Re: Incorrect tab-width when using non-english fonts
  2008-08-22  9:05 Incorrect tab-width when using non-english fonts Forrest Y. Yu
@ 2008-08-22 11:10 ` David Hansen
  0 siblings, 0 replies; 2+ messages in thread
From: David Hansen @ 2008-08-22 11:10 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 22 Aug 2008 17:05:50 +0800 Forrest Y. Yu wrote:

>   I fetched Emacs-23.0.60.1 yesterday and built it successfully. It is
> beautiful. However, when I set default font to SimSun -- a common Chinese
> font, the tab-width becomes twice as before, that is, Emacs calculates the tab
> width in width of Chinese, which often occupies a space of two English
> letters. That makes my document looks weird.
>
>   My last installation was done about 8 months ago. Things were ok with that
> version. The tab-width was correct no matter what fonts I used.

I'm not familiar with non latin scripts.  But if you consider this to be
"not correct" the best is probably to M-x report-emacs-bug or at least
write to emacs-devel.

David





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

end of thread, other threads:[~2008-08-22 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22  9:05 Incorrect tab-width when using non-english fonts Forrest Y. Yu
2008-08-22 11:10 ` David Hansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).