From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: alphabets resp. locales Date: Fri, 13 Aug 2010 08:22:55 +0200 Message-ID: <4C64E4BF.4050103@easy-emacs.de> 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 1281680716 13109 80.91.229.12 (13 Aug 2010 06:25:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Aug 2010 06:25:16 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Kevin Rodgers Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 13 08:25:15 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 1Ojnhb-0006ox-4e for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Aug 2010 08:25:15 +0200 Original-Received: from localhost ([127.0.0.1]:37489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ojnha-0006QB-3U for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Aug 2010 02:25:14 -0400 Original-Received: from [140.186.70.92] (port=60800 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OjngX-0006P6-Rv for help-gnu-emacs@gnu.org; Fri, 13 Aug 2010 02:24:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OjngW-0002qb-Cw for help-gnu-emacs@gnu.org; Fri, 13 Aug 2010 02:24:09 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.187]:55792) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OjngW-0002q6-1F for help-gnu-emacs@gnu.org; Fri, 13 Aug 2010 02:24:08 -0400 Original-Received: from [192.168.178.27] (brln-4dbc4b13.pool.mediaWays.net [77.188.75.19]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MgJWc-1OVzve3uAY-00N8Yv; Fri, 13 Aug 2010 08:24:05 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 In-Reply-To: X-Provags-ID: V02:K0:3d/K54mkv3f8YWuoy9DfudJVbqQz8SZJ28ze7kmOow2 fgYRCXP41mLQxbzVL47C6viuIv/TYJ0ZYXaMnVUO3GGepKsgoJ rH324YCflpnj4i/E41urQaJJhXGQcsIgy1obmtzaHHlfr8g08P lgYkkIP71f9WaWx0LUSGVsY/pyvN0OEr1vsSp9iOPh83lIFXrR gY2pbd0hjWr31A3UHhn8bim6Vb+J0p7lgq9Lg88yRk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:74590 Archived-At: Am 13.08.2010 05:04, schrieb Kevin Rodgers: > 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 > 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. Thanks. Andreas -- https://code.launchpad.net/~a-roehler/python-mode https://code.launchpad.net/s-x-emacs-werkstatt/