From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Enable customisation for electric-quote-mode chars Date: Fri, 02 Sep 2016 00:13:04 +0300 Message-ID: <87r393iasf.fsf@xi.bootis> References: <3ccdad07-2723-0456-c4fa-e22cd252a0f3@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1472763777 23287 195.159.176.226 (1 Sep 2016 21:02:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2016 21:02:57 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 01 23:02:53 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfZ8N-0005QN-3R for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 23:02:51 +0200 Original-Received: from localhost ([::1]:38964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfZ8K-0004Yk-FK for ged-emacs-devel@m.gmane.org; Thu, 01 Sep 2016 17:02:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfZ7l-0004Yb-Ec for emacs-devel@gnu.org; Thu, 01 Sep 2016 17:02:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfZ7j-0005NX-8W for emacs-devel@gnu.org; Thu, 01 Sep 2016 17:02:12 -0400 Original-Received: from relay2-d.mail.gandi.net ([217.70.183.194]:51055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfZ7d-0005Kd-6C; Thu, 01 Sep 2016 17:02:05 -0400 Original-Received: from mfilter17-d.gandi.net (mfilter17-d.gandi.net [217.70.178.145]) by relay2-d.mail.gandi.net (Postfix) with ESMTP id D8BDAC5A69; Thu, 1 Sep 2016 23:02:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter17-d.gandi.net Original-Received: from relay2-d.mail.gandi.net ([IPv6:::ffff:217.70.183.194]) by mfilter17-d.gandi.net (mfilter17-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id pXUdV1giTIfM; Thu, 1 Sep 2016 23:02:02 +0200 (CEST) X-Originating-IP: 78.181.205.50 Original-Received: from localhost (unknown [78.181.205.50]) (Authenticated sender: self@gkayaalp.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 76BA3C5A50; Thu, 1 Sep 2016 23:02:01 +0200 (CEST) In-Reply-To: <3ccdad07-2723-0456-c4fa-e22cd252a0f3@cs.ucla.edu> (message from Paul Eggert on Thu, 1 Sep 2016 12:15:53 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 217.70.183.194 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207102 Archived-At: > From: Paul Eggert > Date: 2016-09-01 12:15:53 PM -0700 > Paul Eggert wrote: > > G=C3=B6ktu=C4=9F Kayaalp wrote: >> +-------------------+---------+ >> | label | quotes | >> +-------------------+---------+ >> | curved69 | =E2=80=9C=E2=80=98=E2=80=99= =E2=80=9D | >> | curved99 | =E2=80=9D=E2=80=99=E2=80=99= =E2=80=9D | >> | guillemets | =C2=AB=E2=80=B9=E2=80=BA=C2= =BB | >> | guillemets+curved | =C2=AB=E2=80=9C=E2=80=9D=C2= =BB | >> | guillemets+lo9hi6 | =C2=AB=E2=80=9E=E2=80=9C=C2= =BB | >> | reverseguillemets | =C2=BB=E2=80=BA=E2=80=B9=C2= =AB | >> | lo9hi6 | =E2=80=9E=E2=80=9A=E2=80=98= =E2=80=9C | >> | lo9hi9 | =E2=80=9E=E2=80=9A=E2=80=99= =E2=80=9D | >> | japan | =E3=80=8C=E3=80=8E=E3=80=8F= =E3=80=8D | >> | korean | =E3=80=8A=E3=80=88=E3=80=89= =E3=80=8B | >> +-------------------+---------+ > > Thanks for cataloging these, but why bother with inventing names? Just us= e the=20 > "quotes" column as the label. That's more intuitive. Fair. I was thinking of an alist (defvar electric-quotes-predefined-styles '((label . (quotes))...)) in my head. I also think of renaming the variable =E2=80=98electric-quotes-chars=E2=80=99 to =E2=80=98electric-quotes-style= =E2=80=99, as that's a bit more intuitive. Comments? > If we must use names I suggest "angle" over "guillemets" as it's too easy= to=20 > misspell "guillemets". > > The "japan" entry has single- and double-quotes interchanged. Sure? I got that straight out of the linked wiki page. Though I'm quite unfamiliar with Japanese. > I would avoid labels like "japan" or "korean". In Korea the abovementione= d=20 > quotation style is not common (and the common style differs in North vs S= outh=20 > Korea -- we really don't want to get into that mess!). Avoiding labels altogether would solve this. > Not sure what to do about require spaces in some languages; perhaps an=20 > independent setting? I don't think the space count as part of the quotation, but it be a different part of general punctuation. So I believe it's out of the scope of this minor mode. However maybe we can have a separate =E2=80=98electric-punctuation-mode=E2=80=99 which would add these NBSP to w= here it may be required according to a defined style, as their use is not limited to quotation: ,---- | It is [...] required for big punctuation in French, [...] (before | "=E2=80=AF;=E2=80=AF?=E2=80=AF!=E2=80=AF=C2=BB=E2=80=AF=E2=80=BA=E2=80= =AF" and after "=E2=80=AF=C2=AB=E2=80=AF=E2=80=B9=E2=80=AF"; today often al= so before "=E2=80=AF:=E2=80=AF") and | Russian (before "=E2=80=AF=E2=80=94=E2=80=AF"), and in German between mu= lti-part abbreviations | (z.=E2=80=AFB., d.=E2=80=AFh., v.=E2=80=AFl.=E2=80=AFn.=E2=80=AFr.). `---- https://en.wikipedia.org/wiki/Non-breaking_space >> maybe >> they're unnecessary if the respective keyboards for the languages allow >> typing them easily (IDK, please comment) > > Typically CJK keyboards do not contain those sorts of quote characters. I= assume=20 > they can be entered more-awkwardly via input methods but do not know the = details. By the shallow research that I can do now, that seems right, dumb quotes and the backtick are there only. I think we should have them then. Best, -gk. --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp. http://gkayaalp.com/