help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alphabets resp. locales


From: Kevin Rodgers
Subject: Re: alphabets resp. locales
Date: Thu, 12 Aug 2010 21:04:07 -0600
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

Andreas Röhler wrote:

Hi,

is there a way to get the chars of alphabets with resp. to locales?

A general way to get all chars of the french alphabet for example?

Below some work-around for the german alphabet.

I don't know how to map the locale/language to a character set (possibly via
a coding system), but locale-language-names looks promising.

Once that's done, here's a start:

(map-charset-chars (lambda (range arg)
                     (let ((char (car range)))
                       (while (<= char (cdr range))
                         (when (string-match "[[:alpha:]]"
                                             (char-to-string char))
                           (print (char-to-string char)))
                         (setq char (1+ char)))))
                   character-set) ; e.g. iso-8859-1

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]