Gnus development mailing list
 help / color / mirror / Atom feed
From: ShengHuo ZHU <zsh@cs.rochester.edu>
Subject: Re: Have Emacs guess the charset?
Date: Mon, 20 Aug 2001 17:07:24 -0700	[thread overview]
Message-ID: <2nhev2uvgj.fsf@piglet.jia.vnet> (raw)
In-Reply-To: <871ym71ulx.fsf@inanna.rimspace.net> (Daniel Pittman's message of "Mon, 20 Aug 2001 09:46:18 +1000")

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

Daniel Pittman <daniel@rimspace.net> writes:

> On Sun, 19 Aug 2001, Lars Magne Ingebrigtsen wrote:
> > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>> 
>>> Sometimes I get email which has no predeclared charset. Emacs assumes
>>> Latin-1 in those cases. This is good in general. But is there a way
>>> to have Emacs inspect the current message and suggest a better
>>> charset?
>>>
>>> In particular, I sometimes know there is Chinese in it, but I don't
>>> know if it's GB or Big5 encoded.  So I try both until I see a
>>> character I recognize.  Is there a way to have Emacs/Gnus guess
>>> whether it's GB or Big5?
>> 
>> Surely there must be some Mule functions for guessing what charset
>> some text is in, but I have no idea what it's called.  Anybody?
>
> `detect-coding-region'

I tested the function on the attached files in both Emacs 21 and
XEmacs 21.4.  I found the one in XEmacs did a good job, but the one in
Emacs is almost useless.

ShengHuo


[-- Attachment #2: Big5.tex --]
[-- Type: application/octet-stream, Size: 565 bytes --]

% This is the file Big5.tex of the CJK package
%   for testing Chinese (in Big 5 encoding).
%
% written by Werner Lemberg <wl@gnu.org>
%
% Version 4.2.0 (13-Dec-1998)
%
%
% process this file with bg5latex

\documentclass[12pt]{article} 

\usepackage{CJK}


\begin{document}

\begin{CJK*}{Bg5}{song}
\CJKtilde

\noindent ¥»±`°Ý°Ýµª¶°~(FAQ list)~¬O±q¤@¨Ç¸g±`³Q°Ý¨ìªº°ÝÃD¤Î¨ä¾A·íªº¸Ñ
µª¤¤¡A¥H¤è«Kªº§Î¦¡ºK­n¦Ó¥Xªº¡C¸ò¤W¤@ª©¤£¦Pªº¬O¡A¨ä½s±Æµ²ºc¤w¹ý©³§ïÅÜ¡C
\textbf{¦³Ãö·sµ²ºcªº²Ó¸`¡A¥i°Ñ¦Ò¡u¦p¦ó¾\Ū¥»°Ýµª¶°¤Î¤F¸Ñ¨ä½s±Æµ²ºc¡v¸Ó
¶µ¤¤ªº»¡©ú¡C}

\end{CJK*}

\end{document}

[-- Attachment #3: GB.tex --]
[-- Type: application/octet-stream, Size: 520 bytes --]

% This is the file GB.tex of the CJK package
%   for testing Chinese (in GB encoding).
%
% written by Werner Lemberg <wl@gnu.org>
%
% Version 4.2.0 (13-Dec-1998)

\documentclass[12pt]{article}

\usepackage{CJK}


\begin{document}

\begin{CJK*}{GB}{song}
\CJKtilde

\noindent ±¾³£ÎÊÎÊ´ð¼¯~(FAQ list)~ÊÇ´ÓһЩ¾­³£±»Îʵ½µÄÎÊÌâ¼°ÆäÊʵ±µÄ½â
´ðÖУ¬ÒÔ·½±ãµÄÐÎʽժҪ¶ø³öµÄ¡£¸úÉÏÒ»°æ²»Í¬µÄÊÇ£¬Æä±àÅŽṹÒѳ¹µ×¸Ä±ä¡£
\textbf{ÓйØнṹµÄϸ½Ú£¬¿É²Î¿¼¡¸ÈçºÎÔĶÁ±¾Îʴ𼯼°Á˽âÆä±àÅŽṹ¡¹¸Ã
ÏîÖеÄ˵Ã÷¡£}

\end{CJK*}

\end{document}

  parent reply	other threads:[~2001-08-21  0:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-15 14:01 Kai Großjohann
2001-08-19 20:41 ` Lars Magne Ingebrigtsen
2001-08-19 23:46   ` Daniel Pittman
2001-08-20  0:36     ` Lars Magne Ingebrigtsen
2001-08-20  1:26       ` Daniel Pittman
2001-08-20  6:35         ` Lars Magne Ingebrigtsen
2001-08-20  7:26           ` Daniel Pittman
2001-08-20  8:25             ` Lars Magne Ingebrigtsen
2001-08-20  9:13               ` Daniel Pittman
2001-08-20 10:02                 ` Lars Magne Ingebrigtsen
2001-08-20  9:34               ` Kai Großjohann
2001-08-20 10:02                 ` Lars Magne Ingebrigtsen
2001-09-01 16:32       ` Dave Love
2001-08-21  0:07     ` ShengHuo ZHU [this message]
2001-08-21 21:58       ` Lars Magne Ingebrigtsen
2001-09-01 16:32       ` Dave Love

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2nhev2uvgj.fsf@piglet.jia.vnet \
    --to=zsh@cs.rochester.edu \
    /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 NNTP newsgroup(s).