From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: alphabets resp. locales Date: Thu, 12 Aug 2010 21:04:07 -0600 Message-ID: References: <4C625688.6080600@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1281668702 12171 80.91.229.12 (13 Aug 2010 03:05:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Aug 2010 03:05:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 13 05:05:01 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OjkZm-0005m7-3N for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Aug 2010 05:04:58 +0200 Original-Received: from localhost ([127.0.0.1]:59052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjkZl-00019J-I5 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Aug 2010 23:04:57 -0400 Original-Received: from [140.186.70.92] (port=57629 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjkZI-00015J-TI for help-gnu-emacs@gnu.org; Thu, 12 Aug 2010 23:04:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjkZE-0001Zi-KZ for help-gnu-emacs@gnu.org; Thu, 12 Aug 2010 23:04:28 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:59715) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjkZE-0001ZV-C4 for help-gnu-emacs@gnu.org; Thu, 12 Aug 2010 23:04:24 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OjkZA-0005fn-8q for help-gnu-emacs@gnu.org; Fri, 13 Aug 2010 05:04:20 +0200 Original-Received: from c-67-166-3-76.hsd1.co.comcast.net ([67.166.3.76]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 05:04:20 +0200 Original-Received: from kevin.d.rodgers by c-67-166-3-76.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Aug 2010 05:04:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-67-166-3-76.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: <4C625688.6080600@online.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74589 Archived-At: 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