From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ernest =?UTF-8?Q?Adrogu=C3=A9?= Newsgroups: gmane.emacs.bugs Subject: bug#18279: 24.4.50; [PATCH] add language environment for the Catalan language Date: Sat, 16 Aug 2014 14:42:45 +0200 Message-ID: <20140816124244.GA12549@doriath.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="W/nzBZO5zC0uMSeA" X-Trace: ger.gmane.org 1408210827 7300 80.91.229.3 (16 Aug 2014 17:40:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2014 17:40:27 +0000 (UTC) To: 18279@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 16 19:40:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XIhxj-00065v-U5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Aug 2014 19:40:20 +0200 Original-Received: from localhost ([::1]:36180 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIhxj-0000bR-Jo for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Aug 2014 13:40:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIhxa-0000WH-1t for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 13:40:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIhxU-0005aQ-FH for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 13:40:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIhxU-0005Zw-Cq for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 13:40:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XIhxU-0004Rf-28 for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 13:40:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ernest =?UTF-8?Q?Adrogu=C3=A9?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Aug 2014 17:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18279 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140821078417030 (code B ref -1); Sat, 16 Aug 2014 17:40:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Aug 2014 17:39:44 +0000 Original-Received: from localhost ([127.0.0.1]:44719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIhx8-0004Qb-OT for submit@debbugs.gnu.org; Sat, 16 Aug 2014 13:39:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42142) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XIdKI-0004C8-7b for submit@debbugs.gnu.org; Sat, 16 Aug 2014 08:43:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIdK7-000893-BX for submit@debbugs.gnu.org; Sat, 16 Aug 2014 08:43:12 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIdK7-00088x-7r for submit@debbugs.gnu.org; Sat, 16 Aug 2014 08:43:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIdK1-0002o6-PS for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 08:43:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIdJw-00083u-AO for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 08:43:01 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:38068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIdJv-00082J-V4 for bug-gnu-emacs@gnu.org; Sat, 16 Aug 2014 08:42:56 -0400 Original-Received: by mail-wg0-f44.google.com with SMTP id m15so3194959wgh.3 for ; Sat, 16 Aug 2014 05:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=HJibaEvDAajp+c6tSfd2nplQhLgEzY/+vm93NqFzbew=; b=PcolA9cIZ7eYKTJ0Pgs/jZ0Uranmww3WCr9tb/8TkKrRztgUD4oJLo0E/DOpeJ/U2e tR4Op2D1/nbViGumHNh8zZ0BWwJO4LtVdKRBO7dxvDT0rf9vkF7nVtaLGabEFrAWv1dy HLDmuZvKIRgsaZPGre+sDj9DPxdzkpHHyM6TP7pV6f3doGX7XeKkee1WlkvgybyAPCvF qO/W6L9JONsLTdss9j+NMT3DkvoJ1blqFYMjw5K+SRcbn6zYyqfeYWRs6MYvLILLx3Ri 1VJ+DXZ0KEyyJafz3Lq0I/JNFxN5aDv+lMA43LRWpicr3/j9i3mhcr+ZMKk3i2NI8xOe 0G1w== X-Received: by 10.180.187.141 with SMTP id fs13mr28384822wic.57.1408192975089; Sat, 16 Aug 2014 05:42:55 -0700 (PDT) Original-Received: from doriath (45.Red-83-63-243.staticIP.rima-tde.net. [83.63.243.45]) by mx.google.com with ESMTPSA id gb5sm16719398wib.8.2014.08.16.05.42.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 16 Aug 2014 05:42:53 -0700 (PDT) Content-Disposition: inline X-Operating-System: GNU/Linux (Debian jessie/sid) User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 16 Aug 2014 13:39:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92488 Archived-At: --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable This patch adds a language environment for the Catalan language. It is needed in order to get word motion commands work correctly, as in Catalan the middle dot character `=B7' is a word constituent. This is done= by changing the syntax class of the middle dot character. Changes made: * international/mule-cmds.el (locale-language-names): Map locale language name `ca' to language environment `Catalan'. * language/european.el: Add definition of language environment for the Catalan language. * leim/quail/latin-pre.el: Add quail rule to the `catalan-prefix' input method to support input of middle dot characters through composition. =20 This is a trivial patch based on a post by Dave Love on the help-gnu-emacs mailing list [1], and therefore I believe a copyright assignment from me is unnecessary. [1] http://lists.gnu.org/archive/html/help-gnu-emacs/2009-11/msg00008.html --W/nzBZO5zC0uMSeA Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename="0001-Added-Catalan-language-environment.patch" Content-Transfer-Encoding: quoted-printable =46rom e1e7b8a61ac220486ea5b55f95479317f193b8a7 Mon Sep 17 00:00:00 2001 =46rom: nfdisco Date: Sat, 16 Aug 2014 13:06:03 +0200 Subject: [PATCH 1/1] Added Catalan language environment. --- lisp/international/mule-cmds.el | 2 +- lisp/language/european.el | 22 ++++++++++++++++++++++ lisp/leim/quail/latin-pre.el | 2 ++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds= =2Eel index f6c0719..47e2968 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el @@ -2235,7 +2235,7 @@ See `set-language-info-alist' for use in programs." ("br" . "Latin-1") ; Breton ("bs" . "Latin-2") ; Bosnian ("byn" . "UTF-8") ; Bilin; Blin - ("ca" . "Latin-1") ; Catalan + ("ca" "Catalan" iso-8859-1) ; Catalan ; co Corsican ("cs" "Czech" iso-8859-2) ("cy" "Welsh" iso-8859-14) diff --git a/lisp/language/european.el b/lisp/language/european.el index 96ae232..40ec0b1 100644 --- a/lisp/language/european.el +++ b/lisp/language/european.el @@ -614,6 +614,28 @@ method and applying Turkish case rules for the charact= ers i, I, =C4=B1, =C4=B0."))) (documentation . "Support for Brazilian Portuguese.")) '("European")) =20 +(set-language-info-alist + "Catalan" '((charset iso-8859-1) + (coding-system iso-8859-1 iso-8859-15) + (coding-priority iso-8859-1) + (input-method . "catalan-prefix") + (nonascii-translation . iso-8859-1) + (unibyte-display . iso-8859-1) + (setup-function + . (lambda () + (modify-syntax-entry ?=C2=B7 "w" (standard-syntax-table)))) + (exit-function + . (lambda () + (modify-syntax-entry ?=C2=B7 "_" (standard-syntax-table)))) + (sample-text . "\ +Catalan (Catal=C3=A0) Avui dem=C3=A0 i ahir s'esfullar=C3=A0 una rosa.") + (documentation . "\ +This language environment uses the ISO-8859-1 character set, +sets the default input method to \"catalan-prefix\", and sets +the syntax of the middle dot character `=C2=B7' to word.")) + '("European")) + + =0C (define-coding-system 'mac-roman "Mac Roman Encoding (MIME:MACINTOSH)." diff --git a/lisp/leim/quail/latin-pre.el b/lisp/leim/quail/latin-pre.el index 6202b89..03de5f2 100644 --- a/lisp/leim/quail/latin-pre.el +++ b/lisp/leim/quail/latin-pre.el @@ -188,6 +188,7 @@ diaeresis | \" | \"i -> =C3=AF \"\" -> =C2=A8 tilde | ~ | ~n -> =C3=B1 cedilla | ~ | ~c -> =C3=A7 + middle dot | ~ | ~. -> =C2=B7 symbol | ~ | ~> -> =C2=BB ~< -> =C2=AB ~! -> =C2=A1 ~? ->= =C2=BF " nil t nil nil nil nil nil nil nil nil t) =20 @@ -223,6 +224,7 @@ ("~<" ?\=C2=AB) ("~!" ?=C2=A1) ("~?" ?=C2=BF) + ("~." ?=C2=B7) ("~ " ?~) ) =20 --=20 2.0.1 --W/nzBZO5zC0uMSeA--