unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Neither Emacs nor Vim nor Nano handle ligature literal insertion well
@ 2018-02-02 22:31 Andrew Pennebaker
  2018-02-02 23:38 ` bug#30331: " Alan Third
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Andrew Pennebaker @ 2018-02-02 22:31 UTC (permalink / raw)
  To: vim_use, Emacs Bugs, Nano Help

[-- Attachment #1: Type: text/plain, Size: 1908 bytes --]

Hello,

I would really like convenient access to ligatures in my word processing
software. Unfortunately, none of the major text editing applications
appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS
Word, Google Drive, Libre Office, and InDesign type a dumb "ae" when the
user presses the a and e keyboard keys, whereas historically this sequence
is typically rendered with the ash æ rune.

I am able to work around this limitation in most applications by
configuring TextExpander (macOS, Windows) or autokey (Linux) to match the
keyboard sequence "ae" and replace this with "æ". This allows most UTF-8
compatible graphical software, from Web browsers to document editors, to
correctly insert æ in place of ae. However, traditional text editors
including Emacs, Vim, and Nano are evidently NOT able to handle a literal æ
rune insertion, and tend to raise a generic error message when the text
expander application attempts to insert this key. This may be a result of a
conflict between shell encodings (need UTF-8 everywhere, though I'm
currently typing this with a bare Windows COMSPEC command prompt session).
In any case, it stinks that the user cannot easily insert ligatures into
text editors, so copying & pasting from Wikipedia via the OS clipboard
appears to be one of the more (in)convenient options for accessing
ligatures. We can do better!

-- 
Cheers,
Andrew

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #2: Type: text/html, Size: 2352 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30331: Neither Emacs nor Vim nor Nano handle ligature literal insertion well
  2018-02-02 22:31 Neither Emacs nor Vim nor Nano handle ligature literal insertion well Andrew Pennebaker
@ 2018-02-02 23:38 ` Alan Third
  2018-02-02 23:58   ` Stephen Berman
  2018-02-03  8:45 ` Eli Zaretskii
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Alan Third @ 2018-02-02 23:38 UTC (permalink / raw)
  To: Andrew Pennebaker; +Cc: 30331

On Fri, Feb 02, 2018 at 04:31:05PM -0600, Andrew Pennebaker wrote:
> I am able to work around this limitation in most applications by
> configuring TextExpander (macOS, Windows) or autokey (Linux) to match the
> keyboard sequence "ae" and replace this with "æ". This allows most UTF-8
> compatible graphical software, from Web browsers to document editors, to
> correctly insert æ in place of ae. However, traditional text editors
> including Emacs, Vim, and Nano are evidently NOT able to handle a literal æ
> rune insertion, and tend to raise a generic error message when the text
> expander application attempts to insert this key.

I’m not sure about the use of TextExpander as I’ve never heard of it
before, but Emacs on macOS can handle the insertion of æ using alt‐’,
but you might need to change the default binding of the alt key
(https://www.emacswiki.org/emacs/EmacsForMacOS#toc30).

Aside from that Emacs allows you to enter æ using:

    C-x 8 RET LATIN SMALL LETTER AE

It’s a bit of a handful though, I know, but you can enter all sorts of
things:

    ffl fi 🙲

You should be able to configure abbrev-mode to automatically convert
ae to æ. Or maybe prettify symbols mode would do:

    http://www.modernemacs.com/post/prettify-mode/

Proper ligature support is purely a presentation issue, though, and
should happen automatically on software that supports it even if
you’re loading in text written in software that doesn’t.
-- 
Alan Third





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30331: Neither Emacs nor Vim nor Nano handle ligature literal insertion well
  2018-02-02 23:38 ` bug#30331: " Alan Third
@ 2018-02-02 23:58   ` Stephen Berman
  0 siblings, 0 replies; 6+ messages in thread
From: Stephen Berman @ 2018-02-02 23:58 UTC (permalink / raw)
  To: Alan Third; +Cc: 30331

On Fri, 2 Feb 2018 23:38:21 +0000 Alan Third <alan@idiocy.org> wrote:

> On Fri, Feb 02, 2018 at 04:31:05PM -0600, Andrew Pennebaker wrote:
>> I am able to work around this limitation in most applications by
>> configuring TextExpander (macOS, Windows) or autokey (Linux) to match the
>> keyboard sequence "ae" and replace this with "æ". This allows most UTF-8
>> compatible graphical software, from Web browsers to document editors, to
>> correctly insert æ in place of ae. However, traditional text editors
>> including Emacs, Vim, and Nano are evidently NOT able to handle a literal æ
>> rune insertion, and tend to raise a generic error message when the text
>> expander application attempts to insert this key.
>
> I’m not sure about the use of TextExpander as I’ve never heard of it
> before, but Emacs on macOS can handle the insertion of æ using alt‐’,
> but you might need to change the default binding of the alt key
> (https://www.emacswiki.org/emacs/EmacsForMacOS#toc30).
>
> Aside from that Emacs allows you to enter æ using:
>
>     C-x 8 RET LATIN SMALL LETTER AE
>
> It’s a bit of a handful though, I know, 

A somewhat smaller handful is `C-x RET e6' (mentioned, as is the above
Unicode name method, in the *Help* you get by typing `C-u C-x =' on the
character æ).

>                                         but you can enter all sorts of
> things:
>
>     ffl fi 🙲
>
> You should be able to configure abbrev-mode to automatically convert
> ae to æ. 

You can also do that by using the norwegian-postfix input method
(entered by typing `C-x RET C-\ no TAB p TAB').

Steve Berman





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30331: Neither Emacs nor Vim nor Nano handle ligature literal insertion well
  2018-02-02 22:31 Neither Emacs nor Vim nor Nano handle ligature literal insertion well Andrew Pennebaker
  2018-02-02 23:38 ` bug#30331: " Alan Third
@ 2018-02-03  8:45 ` Eli Zaretskii
  2018-02-03  9:56 ` Lifepillar
  2018-02-03 19:13 ` bug#30331: " Richard Stallman
  3 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2018-02-03  8:45 UTC (permalink / raw)
  To: Andrew Pennebaker; +Cc: vim_use, help-nano, 30331

> From: Andrew Pennebaker <andrew.pennebaker@gmail.com>
> Date: Fri, 2 Feb 2018 16:31:05 -0600
> 
> I would really like convenient access to ligatures in my word processing software. Unfortunately, none of the
> major text editing applications appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS Word,
> Google Drive, Libre Office, and InDesign type a dumb "ae" when the user presses the a and e keyboard keys,
> whereas historically this sequence is typically rendered with the ash æ rune.

I don't see how any text-based application could do that
automatically, since there are many cases where "ae" needs to be left
as literal 2 characters.  Just a few random examples:

  maestro
  Rafael
  (Joan) Baez

I think the right thing would be to have a special key sequence for
inserting ligatures, since the need for that is somewhat rare,
certainly more rare than the need to insert the characters literally.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Neither Emacs nor Vim nor Nano handle ligature literal insertion well
  2018-02-02 22:31 Neither Emacs nor Vim nor Nano handle ligature literal insertion well Andrew Pennebaker
  2018-02-02 23:38 ` bug#30331: " Alan Third
  2018-02-03  8:45 ` Eli Zaretskii
@ 2018-02-03  9:56 ` Lifepillar
  2018-02-03 19:13 ` bug#30331: " Richard Stallman
  3 siblings, 0 replies; 6+ messages in thread
From: Lifepillar @ 2018-02-03  9:56 UTC (permalink / raw)
  To: vim_use; +Cc: bug-gnu-emacs, help-nano

On 02/02/2018 23:31, Andrew Pennebaker wrote:
> Hello,
> 
> I would really like convenient access to ligatures in my word processing 
> software. Unfortunately, none of the major text editing applications 
> appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS 
> Word, Google Drive, Libre Office, and InDesign type a dumb "ae" when the 
> user presses the a and e keyboard keys, whereas historically this 
> sequence is typically rendered with the ash æ rune.
> 
> I am able to work around this limitation in most applications by 
> configuring TextExpander (macOS, Windows) or autokey (Linux) to match 
> the keyboard sequence "ae" and replace this with "æ". This allows most 
> UTF-8 compatible graphical software, from Web browsers to document 
> editors, to correctly insert æ in place of ae. However, traditional text 
> editors including Emacs, Vim, and Nano are evidently NOT able to handle 
> a literal æ rune insertion, and tend to raise a generic error message 
> when the text expander application attempts to insert this key.

Besides what others have suggested, on macOS I'd recommend Ukelele
(http://scripts.sil.org/ukelele). It allows you to easily define your
own system-wide keyboard layouts. According to the web site: "Ukelele
can assign multiple-character strings and can create "dead keys", where
a keystroke sets a new state that modifies the output of the following
keystroke."

Hope this helps,
Life.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#30331: Neither Emacs nor Vim nor Nano handle ligature literal insertion well
  2018-02-02 22:31 Neither Emacs nor Vim nor Nano handle ligature literal insertion well Andrew Pennebaker
                   ` (2 preceding siblings ...)
  2018-02-03  9:56 ` Lifepillar
@ 2018-02-03 19:13 ` Richard Stallman
  3 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2018-02-03 19:13 UTC (permalink / raw)
  To: Andrew Pennebaker; +Cc: 30331

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > However, traditional text editors
  > including Emacs, Vim, and Nano are evidently NOT able to handle a literal æ
  > rune insertion, and tend to raise a generic error message when the text
  > expander application attempts to insert this key.

I'd expect that Quail input methods could handle this for Emacs.  They
notice when you enter a' and convert it to á, so they could notice ae
and convert it to æ.

When you want separate a and e, you'd type another e.



-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)
Skype: No way! See https://stallman.org/skype.html.






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-02-03 19:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-02 22:31 Neither Emacs nor Vim nor Nano handle ligature literal insertion well Andrew Pennebaker
2018-02-02 23:38 ` bug#30331: " Alan Third
2018-02-02 23:58   ` Stephen Berman
2018-02-03  8:45 ` Eli Zaretskii
2018-02-03  9:56 ` Lifepillar
2018-02-03 19:13 ` bug#30331: " Richard Stallman

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).