From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: alphabets resp. locales
Date: Thu, 12 Aug 2010 21:04:07 -0600 [thread overview]
Message-ID: <i42cn6$bls$1@dough.gmane.org> (raw)
In-Reply-To: <4C625688.6080600@online.de>
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
next prev parent reply other threads:[~2010-08-13 3:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 7:51 alphabets resp. locales Andreas Röhler
2010-08-11 11:31 ` Peter Dyballa
2010-08-11 11:56 ` Andreas Röhler
2010-08-11 13:05 ` Peter Dyballa
2010-08-11 13:48 ` Andreas Röhler
2010-08-11 14:52 ` Peter Dyballa
2010-08-13 3:04 ` Kevin Rodgers [this message]
2010-08-13 6:22 ` Andreas Röhler
[not found] <mailman.1.1281513191.2982.help-gnu-emacs@gnu.org>
2010-08-11 15:45 ` Stefan Monnier
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='i42cn6$bls$1@dough.gmane.org' \
--to=kevin.d.rodgers@gmail.com \
--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.
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.