[Top][All Lists]

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

Re: alphabets resp. locales

From: Andreas Röhler
Subject: Re: alphabets resp. locales
Date: Fri, 13 Aug 2010 08:22:55 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv: Gecko/20100711 Thunderbird/3.0.6

Am 13.08.2010 05:04, schrieb Kevin Rodgers:
Andreas Röhler wrote:


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
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

Thats interesting, however, these iso-sets cover more than one language, ie output is a comprehension of several alphabets and others signs.

Needed alphabet to construct and retrieve filenames from it, storing there regexps relating to word-beginnings.

Thougt at reading keyboard layouts meanwhile, but assume they also deliver more than just a specific alphabet.

For the moment it's done.




reply via email to

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