From: Cesar Crusius <cesar.crusius@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Cesar Crusius <cesar.crusius@gmail.com>,
jhanschoo@gmail.com, emacs-devel@gnu.org
Subject: Re: [ELPA] New Package: greek-polytonic.el
Date: Sat, 14 Jul 2018 18:37:23 -0700 [thread overview]
Message-ID: <86sh4le0to.fsf@gmail.com> (raw)
In-Reply-To: <83o9f9acsf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 14 Jul 2018 21:32:32 +0300")
[-- Attachment #1: Type: text/plain, Size: 3551 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Cesar Crusius <cesar.crusius@gmail.com> Cc: Johannes Choo
>> <jhanschoo@gmail.com>, emacs-devel@gnu.org Date: Sat, 14 Jul
>> 2018 10:11:01 -0700
>> > Is this a good idea? It seems to go against the intent of
>> > whoever is typing the text: they do want the decomposed
>> > characters to appear in the text. Emacs will automatically
>> > (by default) compose them on display (and if it doesn't,
>> > that's a bug that should be reported and fixed), per Unicode
>> > requirements, and if the font supports the precomposed glyph,
>> > you will actually see that glyph on display. Replacing
>> > characters with their NFC equivalents should IMO be a
>> > separate feature, not something an input method does. Am I
>> > missing something?
>> I'm not sure what you mean by "want the decomposed characters
>> to appear in the text," but when I am writing polytonic Greek
>> and type the sequence above, all I want is to see an
>> alpha+macron+acute in front of me.
>
> On display or in the buffer? If on display, then Emacs should
> already do that, provided that the font you are using supports
> the composed characters. That's because by default we have the
> auto-composition-mode turned on.
>
> I was talking about what's in the buffer. I think that if the
> user types a sequence of characters, Emacs should generally put
> those characters unaltered in the buffer. If the user wants a
> precomposed character, she could always type that character's
> codepoint using "C-x 8 RET", no?
>
> But maybe I don't know enough about the expectations of users
> who would use greek-polytonic input method, maybe in some use
> cases such automatic composition in the buffer is expected?
Maybe we're talking about different things...
Input methods do automatic composition all the time. That's what
they are expected to do. I do it every day when writing Portuguese
text. Consider "á": I just wrote it by switching input methods and
typing "<acute>-<a>". What ends up in the buffer and on the
display is one single character. If my buffer had instead
"<a>+<combining acute>" I would consider that a bug. Unicode
supports the combination, I want the combination there.
This means that the input method's semantics is to translate a
sequence of keys into the most natural underlying
representation. For "a acute," it is "á", not "a+combining acute",
and nobody blinks an eye.
For polytonic Greek, however, the problem is that Unicode does not
have pre-composed characters to represent all the
possibilities. Combining characters will be needed, but the input
method can -- and I argue /should/ -- combine what they
can. Example:
* Typing "a + macron" should give U+1FB1, "Greek small letter
alpha with
macron," /one/ character, just as "á" above. Similarly, I would
consider "<a>+<combining macron>" a bug.
* Typing "a + macron + acute" should give the above plus a U+0301
"combining
acute", because it is the best it can do -- and it is what fonts
like Skolar expect.
"C-x 8 RET" is not a solution if you are typing in a language that
requires it once or more every word. (Again, that becomes the job
of the input method.)
By the way, I'm all for greek.el supporting polytonic Greek
natively and naturally. I don't remember what the problems were,
but I gave up on it quickly when trying polytonic because it
didn't work.
Cheers,
--
Cesar Crusius
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 658 bytes --]
next prev parent reply other threads:[~2018-07-15 1:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-14 9:29 [ELPA] New Package: greek-polytonic.el Johannes Choo
2018-07-14 11:16 ` Eli Zaretskii
2018-07-14 17:11 ` Cesar Crusius
2018-07-14 18:32 ` Eli Zaretskii
2018-07-15 0:31 ` Richard Stallman
2018-07-15 1:37 ` Cesar Crusius [this message]
2018-07-16 15:57 ` Eli Zaretskii
2018-07-16 16:23 ` Cesar Crusius
2018-08-08 13:12 ` Johannes Choo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86sh4le0to.fsf@gmail.com \
--to=cesar.crusius@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jhanschoo@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).