From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: Re: utf8 char display in buffer
Date: Fri, 12 Jun 2009 11:48:55 -0500 [thread overview]
Message-ID: <JOqdncHRqaVlG6_XnZ2dnUVZ_u6dnZ2d@sysmatrix.net> (raw)
In-Reply-To: <pc7fxe5mpfh.fsf@panix2.panix.com>
Lewis Perin wrote:
> ken <gebser@mousecar.com> writes:
>
>> [...]
>> Lewis,
>>
>> Thanks for posting. It's lonely out there when you're the only one with
>> a particular problem.
>
> The few, the proud...
>
>> To make sure we're suffering the same cyber-indignity, here's the
>> scenario as I see it (from an older version of emacs running on
>> Linux):
>>
>> 0) Some others and myself want to include some non-English characters in
>> a file being edited in emacs. Problems arise, however:
>>
>> 1) In a buffer which is already utf-8 encoded, I set the appropriate
>> input method, type in the desired characters. They display just peachy
>> and there is happiness in EmacsLand.
>>
>> 2) I save the buffer to a file, then close the buffer.
>>
>> 3) I visit the same file (i.e., load it again into emacs). Because it
>> has <!-- -*- coding: utf-8; -*- --> as the first line, it opens
>> utf-8 encoded. This is confirmed by the presence of a 'u' as the second
>> character in the status bar.
>
> I haven't been inserting that special first line.
>
>> 4) The text in the buffer displays fine, except that in place of each of
>> those non-English characters is a little empty box. With the cursor on
>> one of those boxes, an 'a' with a horizontal bar above it, doing "C-x
>> =", emacs returns "Char: ā (01210041, 331809, 0x51021, file ...)".
>> (While, in emacs the character after "Char:" is a little box, if I load
>> this same file into Firefox, that same character appears as it should,
>> as an 'a' with a horizontal bar above it. How it appears in your email
>> client will depend upon your email client.)
>
> My situation differs in that most of the non-ASCII characters (Chinese
> in my case) come through just fine. But the ones that don't have
> those irritating boxes in place of the correct glyphs.
>
> /Lew
> ---
> Lew Perin / perin@acm.org
> http://www.panix.com/~perin/babelcarp.html
I wouldn't be surprised if the gaps and overlaps in the CJK ranges of
glyphs weren't so complicated that many characters from the following
encodings may not be included in utf-8, especially if they are not
precomposed. Try some of these encodings to see if some of the empty
boxes are resolved into characters:
chinese-big5
chinese-hz
chinese-iso-7bit
chinese-iso-8bit
chinese-iso-8bit-with-esc
cn-big5
cn-gb
cn-gb-2312
iso-2022-cjk
iso-2022-cn
iso-2022-cn-ext
Also it might help to install a fontset rather than depending on a
single font to represent all these characters. Unfortunately I can't
help with that. I am on w32 and I don't even know whether fontsets can
be used in Emacs on that build.
Ed
next prev parent reply other threads:[~2009-06-12 16:48 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.227.1244485995.2239.help-gnu-emacs@gnu.org>
2009-06-08 19:10 ` utf8 char display in buffer Teemu Likonen
2009-06-08 19:52 ` Xah Lee
2009-06-09 10:52 ` ken
2009-06-08 20:43 ` B. T. Raven
2009-06-08 20:49 ` B. T. Raven
2009-06-08 22:49 ` ken
2009-06-09 10:24 ` ken
[not found] ` <mailman.289.1244543082.2239.help-gnu-emacs@gnu.org>
2009-06-09 13:03 ` B. T. Raven
2009-06-09 14:51 ` ken
[not found] ` <mailman.297.1244559110.2239.help-gnu-emacs@gnu.org>
2009-06-10 1:34 ` B. T. Raven
2009-06-10 14:03 ` Lewis Perin
2009-06-11 3:21 ` B. T. Raven
2009-06-12 14:54 ` ken
2009-06-13 3:30 ` Eli Zaretskii
[not found] ` <mailman.522.1244818530.2239.help-gnu-emacs@gnu.org>
2009-06-12 15:39 ` Lewis Perin
2009-06-12 16:48 ` B. T. Raven [this message]
2009-06-12 17:45 ` Lewis Perin
2009-06-12 17:53 ` Xah Lee
2009-06-12 20:59 ` Lennart Borgman
2009-06-12 22:23 ` ken
[not found] ` <e01d8a50906121527k5e77f5abj8c2c44f62f85e537@mail.gmail.com>
[not found] ` <4A32E6F6.5080501@mousecar.com>
[not found] ` <E1MFKab-0000GU-Dg@fencepost.gnu.org>
2009-06-13 12:30 ` ken
[not found] ` <mailman.536.1244845400.2239.help-gnu-emacs@gnu.org>
2009-06-13 0:35 ` Xah Lee
2009-06-12 17:27 ` Xah Lee
2009-06-12 19:30 ` Lewis Perin
2009-06-12 19:43 ` Xah Lee
2009-06-12 20:56 ` B. T. Raven
2009-06-13 16:16 ` Xah Lee
2009-06-13 20:35 ` Lewis Perin
2009-06-14 11:47 ` ken
2009-06-15 7:28 ` Bernardo
2009-06-11 12:03 ` Teemu Likonen
2009-06-08 18:33 ken
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=JOqdncHRqaVlG6_XnZ2dnUVZ_u6dnZ2d@sysmatrix.net \
--to=nihil@nihilo.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).