From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?iso-8859-1?Q?Adrogu=E9?= Newsgroups: gmane.emacs.help Subject: Re: changing word boundaries Date: Sun, 8 Nov 2009 18:07:22 +0100 Message-ID: <20091108170722.GA822@doriath.local> References: <87ljiqcb9a.fsf@fx-laptop.ukfsn.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257700250 3498 80.91.229.12 (8 Nov 2009 17:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Nov 2009 17:10:50 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dave Love Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 08 18:10:43 2009 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.50) id 1N7BHi-0001C8-ON for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Nov 2009 18:10:39 +0100 Original-Received: from localhost ([127.0.0.1]:55279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7BHi-0002te-7B for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Nov 2009 12:10:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7BEg-0000zs-0a for help-gnu-emacs@gnu.org; Sun, 08 Nov 2009 12:07:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7BEa-0000vD-Nf for help-gnu-emacs@gnu.org; Sun, 08 Nov 2009 12:07:29 -0500 Original-Received: from [199.232.76.173] (port=58661 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7BEa-0000uv-HA for help-gnu-emacs@gnu.org; Sun, 08 Nov 2009 12:07:24 -0500 Original-Received: from mail-ew0-f228.google.com ([209.85.219.228]:42124) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N7BEY-00080O-DD; Sun, 08 Nov 2009 12:07:22 -0500 Original-Received: by ewy28 with SMTP id 28so2702995ewy.42 for ; Sun, 08 Nov 2009 09:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :x-operating-system:user-agent; bh=XvPfP1aZS9u/+YFrSrHUJJR0NGysCkUXHCNSowLgHe8=; b=V+SV84W91o41RN2M5GH56Nl130KSUmCO/myL6e5VKXmAlsgrU0QQc1YBQQYCDydAz7 X41+aSv/GB0ubYOUAcR0fyyU8QlU8bBVT2f6teR0NYtaj8hgHcWTcHe7riJXBeZXuJkc jsv3j/IwdgQpmztOWL4bK4on5yCyyerlqP53g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:x-operating-system:user-agent; b=fS4MYCqRjZ/1geY4P2nMtNc6acUXS1r2dvgrRcDCbPj3poGZXJRZQET6+wExaQjY/h qjWfQRRyQTZCxRYcAt6MvVZ7nfjY20K60Yp6EdKjY8vE+ZSiK2rrOC86DpLl1CflsdWu YYtKVsuvNvBHF6D3pKI8DXdX2D7rzza8xac2U= Original-Received: by 10.216.86.212 with SMTP id w62mr2198315wee.131.1257700040065; Sun, 08 Nov 2009 09:07:20 -0800 (PST) Original-Received: from doriath (84.Red-83-51-32.dynamicIP.rima-tde.net [83.51.32.84]) by mx.google.com with ESMTPS id 10sm4146830eyd.6.2009.11.08.09.07.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 08 Nov 2009 09:07:19 -0800 (PST) Content-Disposition: inline In-Reply-To: <87ljiqcb9a.fsf@fx-laptop.ukfsn.org> X-Operating-System: Debian (x86_64-pc-linux-gnu) User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:69609 Archived-At: 1/11/09 @ 19:09 (+0000), thus spake Dave Love: > Ernest Adrogu=E9 writes: >=20 > > Hi there, > > > > The Catalan language has a ligature consisting in one > > "l" character, followed by a middle dot ("=B7"), followed > > by another "l". See here for more details: > > http://en.wikipedia.org/wiki/L=B7l#Catalan > > > > Is there a way to make emacs aware of this, so that it > > doesn't treat a word containing "l=B7l" as two separate > > words? >=20 > [You're probably not really interested in word boundaries, just word > constituents. For an illustration of the difference, see variable > `word-combining-categories' and what capitalized-words-mode does in > Emacs 23.] >=20 > You should define a Catalan language environment to be used in ca_ES > locales. (I'm surprised I didn't do it, as there's a relevant input > method.) It should set the base syntax of =B7 to word, and set a suitable > default input method. The existing one, `catalan-prefix', should > presumably bind `~.' to `=B7', as in latin-prefix; it doesn't currently, > and maybe needs other fixes. >=20 > The environment would be something like this (untested), which is > probably better then trying to use categories. [The default Latin-1 > character set is overridden in, say, ca_ES.UTF-8.] > =20 > (push '("ca" . "Catalan") locale-language-names) >=20 > (set-language-info-alist > "Catalan" '((tutorial . "TUTORIAL.es") ; maybe... > (charset iso-8859-1) > (coding-system iso-latin-1 iso-latin-9) > (coding-priority iso-latin-1) > (input-method . "catalan-prefix") > (nonascii-translation . iso-8859-1) > (unibyte-display . iso-latin-1) > (setup-function > . (lambda () > (modify-syntax-entry ?=B7 "w" (standard-syntax-table)))) > (exit-function > . (lambda () > (modify-syntax-entry ?=B7 "_" (standard-syntax-table)))) > ;; Fixme: > ;; (sample-text . "Spanish (Espa=F1ol) =A1Hola!") > (documentation . "\ > This language environment uses the Latin-1 character set, sets > the default input method to \"catalan-prefix\", and sets the > syntax of `=B7' to word. It selects the Spanish tutorial, in the > absence of a Catalan translation.")) > '("European")) Thanks a lot. Have you got any idea of where this should be put in order to be loaded automatically at start-up? I tried in init.el, and in a file in the "language" directory in /usr/share/emacs/23.1/lisp/ to no avail. It says that there's "no match", when I try to set the language environment to Catalan interactively. > You could make a bug report if you have more luck than me with reports > about stuff I worked on. I will try, once I get it to work :) Cheers, Ernest