* "ctrl+shift+u codepoint enter"
@ 2019-04-28 21:35 Pierre-Henry F.
2019-04-28 23:24 ` Noam Postavsky
2019-05-06 3:47 ` Dan Sommers
0 siblings, 2 replies; 12+ messages in thread
From: Pierre-Henry F. @ 2019-04-28 21:35 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
Hello,
Is there a way to make Emacs accept utf8 characters as other applications do on linux using IBus?
For example, `ctrl+shift+u 1642 enter` should be interpreted as the character `ᙂ` but is does not.
How to make this happen?
Many thanks,
PHF
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-28 21:35 "ctrl+shift+u codepoint enter" Pierre-Henry F.
@ 2019-04-28 23:24 ` Noam Postavsky
2019-04-29 7:25 ` tomas
2019-05-06 3:47 ` Dan Sommers
1 sibling, 1 reply; 12+ messages in thread
From: Noam Postavsky @ 2019-04-28 23:24 UTC (permalink / raw)
To: Pierre-Henry F.; +Cc: help-gnu-emacs@gnu.org
On Sun, 28 Apr 2019 at 17:46, Pierre-Henry F. <contact@phfrohring.com> wrote:
> Is there a way to make Emacs accept utf8 characters as other applications do on linux using IBus?
> For example, `ctrl+shift+u 1642 enter` should be interpreted as the character `ᙂ` but is does not.
> How to make this happen?
Not sure about IBus, but you could try
(define-key global-map (kbd "C-S-u") 'insert-char)
(Emacs' default binding for insert-char is C-x 8 RET).
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-28 23:24 ` Noam Postavsky
@ 2019-04-29 7:25 ` tomas
2019-04-29 7:31 ` Pierre-Henry F.
2019-04-29 8:00 ` Damien Collard
0 siblings, 2 replies; 12+ messages in thread
From: tomas @ 2019-04-29 7:25 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 867 bytes --]
On Sun, Apr 28, 2019 at 07:24:29PM -0400, Noam Postavsky wrote:
> On Sun, 28 Apr 2019 at 17:46, Pierre-Henry F. <contact@phfrohring.com> wrote:
>
> > Is there a way to make Emacs accept utf8 characters as other applications do on linux using IBus?
> > For example, `ctrl+shift+u 1642 enter` should be interpreted as the character `ᙂ` but is does not.
> > How to make this happen?
>
> Not sure about IBus, but you could try
>
> (define-key global-map (kbd "C-S-u") 'insert-char)
>
> (Emacs' default binding for insert-char is C-x 8 RET).
With the neat feature that you don't have to hammer in the hex code,
but you can also start typing "smi" and TAB and you are offered all
the codes whose Unicode name starts with SMI, from "SMILE" through
"SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
Can IBus do that?
Cheers
-- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 7:25 ` tomas
@ 2019-04-29 7:31 ` Pierre-Henry F.
2019-04-29 8:00 ` Damien Collard
1 sibling, 0 replies; 12+ messages in thread
From: Pierre-Henry F. @ 2019-04-29 7:31 UTC (permalink / raw)
To: tomas, help-gnu-emacs
-------- Message d'origine --------
On 29 avr. 2019 à 09:25, a écrit :
On Sun, Apr 28, 2019 at 07:24:29PM -0400, Noam Postavsky wrote: > On Sun, 28 Apr 2019 at 17:46, Pierre-Henry F. wrote: > > > Is there a way to make Emacs accept utf8 characters as other applications do on linux using IBus? > > For example, `ctrl+shift+u 1642 enter` should be interpreted as the character `ᙂ` but is does not. > > How to make this happen? > > Not sure about IBus, but you could try > > (define-key global-map (kbd "C-S-u") 'insert-char) > > (Emacs' default binding for insert-char is C-x 8 RET). With the neat feature that you don't have to hammer in the hex code, but you can also start typing "smi" and TAB and you are offered all the codes whose Unicode name starts with SMI, from "SMILE" through "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE". Can IBus do that? Cheers -- t
Well, my keycodes are sent from a keyboard configured with QMK. The nice thing is that it works in most applications except Emacs.
The keyboard sends the "ctrl+shift+u 1234 space" sequence of bytes that is interpreted as the U+1234 Unicode Character.
Cheers
Phf
Envoyé depuis ProtonMail mobile
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 7:25 ` tomas
2019-04-29 7:31 ` Pierre-Henry F.
@ 2019-04-29 8:00 ` Damien Collard
2019-04-29 9:06 ` Joost Kremers
2019-04-29 17:58 ` Stefan Monnier
1 sibling, 2 replies; 12+ messages in thread
From: Damien Collard @ 2019-04-29 8:00 UTC (permalink / raw)
To: help-gnu-emacs
On Lun, avr 29 2019, tomas@tuxteam.de wrote:
>> (Emacs' default binding for insert-char is C-x 8 RET).
>
> With the neat feature that you don't have to hammer in the hex code,
> but you can also start typing "smi" and TAB and you are offered all
> the codes whose Unicode name starts with SMI, from "SMILE" through
> "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
also shows the characters themselves, not just their unicode names
(although it takes a while the first time it's invoked in a session as
it "collects" the characters...)
Damien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 8:00 ` Damien Collard
@ 2019-04-29 9:06 ` Joost Kremers
2019-04-29 17:58 ` Stefan Monnier
1 sibling, 0 replies; 12+ messages in thread
From: Joost Kremers @ 2019-04-29 9:06 UTC (permalink / raw)
To: help-gnu-emacs
On Mon, Apr 29 2019, Damien Collard wrote:
> On Lun, avr 29 2019, tomas@tuxteam.de wrote:
>
>>> (Emacs' default binding for insert-char is C-x 8 RET).
>>
>> With the neat feature that you don't have to hammer in the hex
>> code,
>> but you can also start typing "smi" and TAB and you are offered
>> all
>> the codes whose Unicode name starts with SMI, from "SMILE"
>> through
>> "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING
>> FACE".
>
> And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8
> RET but
s/Helm/Helm or Ivy/
> also shows the characters themselves, not just their unicode
> names
> (although it takes a while the first time it's invoked in a
> session as
> it "collects" the characters...)
>
> Damien
--
Joost Kremers
Life has its moments
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 8:00 ` Damien Collard
2019-04-29 9:06 ` Joost Kremers
@ 2019-04-29 17:58 ` Stefan Monnier
2019-04-29 18:13 ` Noam Postavsky
2019-04-29 19:16 ` Damien Collard
1 sibling, 2 replies; 12+ messages in thread
From: Stefan Monnier @ 2019-04-29 17:58 UTC (permalink / raw)
To: help-gnu-emacs
>>> (Emacs' default binding for insert-char is C-x 8 RET).
>> With the neat feature that you don't have to hammer in the hex code,
>> but you can also start typing "smi" and TAB and you are offered all
>> the codes whose Unicode name starts with SMI, from "SMILE" through
>> "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
> And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
> also shows the characters themselves, not just their unicode names
AFAIK `C-x 8 RET` also shows the characters themselves (next to their
name).
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 17:58 ` Stefan Monnier
@ 2019-04-29 18:13 ` Noam Postavsky
2019-04-29 18:29 ` Stefan Monnier
2019-04-29 19:16 ` Damien Collard
1 sibling, 1 reply; 12+ messages in thread
From: Noam Postavsky @ 2019-04-29 18:13 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Help Gnu Emacs mailing list
On Mon, 29 Apr 2019 at 13:58, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
> >>> (Emacs' default binding for insert-char is C-x 8 RET).
> >> With the neat feature that you don't have to hammer in the hex code,
> >> but you can also start typing "smi" and TAB and you are offered all
> >> the codes whose Unicode name starts with SMI, from "SMILE" through
> >> "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
> > And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
> > also shows the characters themselves, not just their unicode names
>
> AFAIK `C-x 8 RET` also shows the characters themselves (next to their
> name).
For plain C-x 8 RET, you need to press TAB (once or twice) before
those show up (whereas I think Helm will show completion candidates
more eagerly).
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 18:13 ` Noam Postavsky
@ 2019-04-29 18:29 ` Stefan Monnier
0 siblings, 0 replies; 12+ messages in thread
From: Stefan Monnier @ 2019-04-29 18:29 UTC (permalink / raw)
To: Noam Postavsky; +Cc: Help Gnu Emacs mailing list
>> > And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
>> > also shows the characters themselves, not just their unicode names
>> AFAIK `C-x 8 RET` also shows the characters themselves (next to their
>> name).
> For plain C-x 8 RET, you need to press TAB (once or twice) before
> those show up (whereas I think Helm will show completion candidates
> more eagerly).
Right, that's also my understanding, but his comment specifically says
"not just their unicode names", so it seems to be hinting at
something else.
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 17:58 ` Stefan Monnier
2019-04-29 18:13 ` Noam Postavsky
@ 2019-04-29 19:16 ` Damien Collard
2019-04-29 20:06 ` Pierre-Henry F.
1 sibling, 1 reply; 12+ messages in thread
From: Damien Collard @ 2019-04-29 19:16 UTC (permalink / raw)
To: help-gnu-emacs
On Lun, avr 29 2019, Stefan Monnier wrote:
>>>> (Emacs' default binding for insert-char is C-x 8 RET).
>>> With the neat feature that you don't have to hammer in the hex code,
>>> but you can also start typing "smi" and TAB and you are offered all
>>> the codes whose Unicode name starts with SMI, from "SMILE" through
>>> "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
>> And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
>> also shows the characters themselves, not just their unicode names
>
> AFAIK `C-x 8 RET` also shows the characters themselves (next to their
> name).
I stand corrected. On my config C-x 8 RET is handled by Helm too and
doesn't show the characters, I had forgotten the vanilla C-x 8 RET does.
Damien
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-29 19:16 ` Damien Collard
@ 2019-04-29 20:06 ` Pierre-Henry F.
0 siblings, 0 replies; 12+ messages in thread
From: Pierre-Henry F. @ 2019-04-29 20:06 UTC (permalink / raw)
To: Damien Collard; +Cc: help-gnu-emacs@gnu.org
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, April 29, 2019 9:16 PM, Damien Collard <damien.collard@distfp.net> wrote:
> On Lun, avr 29 2019, Stefan Monnier wrote:
>
> > > > > (Emacs' default binding for insert-char is C-x 8 RET).
> > > > > With the neat feature that you don't have to hammer in the hex code,
> > > > > but you can also start typing "smi" and TAB and you are offered all
> > > > > the codes whose Unicode name starts with SMI, from "SMILE" through
> > > > > "SMILING CAT FACE WITH HEART-SHAPED EYES" up to "SMIRKING FACE".
> > > > > And if you use Helm, C-c h 8 (bound to `helm-ucs`) is like C-x 8 RET but
> > > > > also shows the characters themselves, not just their unicode names
> >
> > AFAIK `C-x 8 RET` also shows the characters themselves (next to their
> > name).
>
> I stand corrected. On my config C-x 8 RET is handled by Helm too and
> doesn't show the characters, I had forgotten the vanilla C-x 8 RET does.
>
> Damien
Thank you all for your kind messages.
So, here is where I got:
(define-key global-map (kbd "C-S-u") 'insert-char) ;; Thanks for that!
$ setxkbmap us
at: https://github.com/qmk/qmk_firmware/blob/master/quantum/process_keycode/process_unicode_common.c#L109#L124
replace: `tap_code(KC_SPC);`
with: `tap_code(KC_ENTER);`
Compile & flash the thing;
It works!
Problem: I need `$ setxkbmap fr`. With `fr` everything breaks again...
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: "ctrl+shift+u codepoint enter"
2019-04-28 21:35 "ctrl+shift+u codepoint enter" Pierre-Henry F.
2019-04-28 23:24 ` Noam Postavsky
@ 2019-05-06 3:47 ` Dan Sommers
1 sibling, 0 replies; 12+ messages in thread
From: Dan Sommers @ 2019-05-06 3:47 UTC (permalink / raw)
To: help-gnu-emacs
On 4/28/19 2:35 PM, Pierre-Henry F. wrote:
> Hello,
>
> Is there a way to make Emacs accept utf8 characters as other applications do on linux using IBus?
> For example, `ctrl+shift+u 1642 enter` should be interpreted as the character `ᙂ` but is does not.
> How to make this happen?
Try C-q, which normally runs quoted-insert.
By default, emacs reads octal rather than hex, but I
have the following in my .emacs.el file:
(setq read-quoted-char-radix 16)
Because emacs doesn't know a priori how many digits
you're going to type, you may have to press a non-digit
key (e.g., space) to terminate the input.
Dan
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2019-05-06 3:47 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-28 21:35 "ctrl+shift+u codepoint enter" Pierre-Henry F.
2019-04-28 23:24 ` Noam Postavsky
2019-04-29 7:25 ` tomas
2019-04-29 7:31 ` Pierre-Henry F.
2019-04-29 8:00 ` Damien Collard
2019-04-29 9:06 ` Joost Kremers
2019-04-29 17:58 ` Stefan Monnier
2019-04-29 18:13 ` Noam Postavsky
2019-04-29 18:29 ` Stefan Monnier
2019-04-29 19:16 ` Damien Collard
2019-04-29 20:06 ` Pierre-Henry F.
2019-05-06 3:47 ` Dan Sommers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.