emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Enable customisation for electric-quote-mode chars


From: Göktuğ Kayaalp
Subject: Re: [PATCH] Enable customisation for electric-quote-mode chars
Date: Fri, 02 Sep 2016 00:13:04 +0300

> From: Paul Eggert <address@hidden>
> Date: 2016-09-01 12:15:53 PM -0700
> Paul Eggert wrote:
>
> Göktuğ Kayaalp wrote:
>>                      +-------------------+---------+
>>                      | label             | quotes  |
>>                      +-------------------+---------+
>>                      | curved69          | “‘’”    |
>>                      | curved99          | ”’’”    |
>>                      | guillemets        | «‹›»    |
>>                      | guillemets+curved | «“”»    |
>>                      | guillemets+lo9hi6 | «„“»    |
>>                      | reverseguillemets | »›‹«    |
>>                      | lo9hi6            | „‚‘“    |
>>                      | lo9hi9            | „‚’”    |
>>                      | japan             | 「『』」 |
>>                      | korean            | 《〈〉》 |
>>                      +-------------------+---------+
>
> Thanks for cataloging these, but why bother with inventing names? Just use 
> the 
> "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
‘electric-quotes-chars’ to ‘electric-quotes-style’, as that's a bit more
intuitive.  Comments?

> If we must use names I suggest "angle" over "guillemets" as it's too easy to 
> 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 abovementioned 
> quotation style is not common (and the common style differs in North vs South 
> 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 
> 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
‘electric-punctuation-mode’ which would add these NBSP to where 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
|  " ; ? ! » › " and after " « ‹ "; today often also before " : ") and
|  Russian (before " — "), and in German between multi-part abbreviations
|  (z. B., d. h., v. l. n. r.).
`---- 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 
> 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.

-- 
İ. Göktuğ Kayaalp.
http://gkayaalp.com/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]