Hello I am not sure whether this is a gnus only question, but who do you display smiley(s) either in message mode, or in article mode when you display a message. I use autosmiley, ;;; autosmiley.el --- Convert smileys into their graphical ;;; representation Damyan Pepper a rather old package I must say that works fine in message mode, but does not cover all smiley(s) and I am not sure how to configure it. Regards Uwe Brauer
Uwe writes: > I am not sure whether this is a gnus only question, but who do you > display smiley(s) either in message mode, or in article mode when you > display a message. I use the functionality built into Gnus: ,----[ C-h v smiley-style RET ] | smiley-style is a variable defined in ‘smiley.el’. | | Its value is ‘emoji’ | Original value was ‘low-color’ | | You can customize this variable. | This variable was introduced, or its default value was changed, in | version 23.1 of Emacs. | Probably introduced at or before Emacs version 28.1. | | Smiley style. `---- > that works fine in message mode, but does not cover > all smiley(s) and I am not sure how to configure it. If you use gnus/smiley.el, you can configure this alist: ,----[ C-h v smiley-emoji-regexp-alist RET ] | smiley-emoji-regexp-alist is a variable defined in ‘smiley.el’. | | Its value is shown below. | | You can customize this variable. | This variable was introduced, or its default value was changed, in | version 28.1 of Emacs. | | A list of regexps to map smilies to emoji. | The elements are (REGEXP MATCH EMOJI), where MATCH is the submatch in | regexp to replace with EMOJI. | | Value: | (("\\(;-)\\)\\W" 1 "😉") | ("[^;]\\(;)\\)\\W" 1 "😉") | ("\\(:-]\\)\\W" 1 "😬") | ("\\(8-)\\)\\W" 1 "🥴") | ("\\(:-|\\)\\W" 1 "😐") | ("\\(:-[/\\]\\)\\W" 1 "😕") | ("\\(:-(\\)\\W" 1 "😠") | ("\\(X-)\\)\\W" 1 "😵") | ("\\(:-{\\)\\W" 1 "😦") | ("\\(>:-)\\)\\W" 1 "😈") | ("\\(;-(\\)\\W" 1 "😢") | ("\\(:-D\\)\\W" 1 "😀") | ("\\(O:-)\\)\\W" 1 "😇") | ("\\(\\^?:-?)\\)\\W" 1 "🙂")) `---- Best regards, Adam -- "Super heroes wear snow pants?" Adam Sjøgren "When there's snow out, they do!" asjo@koldfront.dk
[-- Attachment #1: Type: text/plain, Size: 930 bytes --] >>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes: > Uwe writes: >> I am not sure whether this is a gnus only question, but who do you >> display smiley(s) either in message mode, or in article mode when you >> display a message. > I use the functionality built into Gnus: > ,----[ C-h v smiley-style RET ] > | smiley-style is a variable defined in ‘smiley.el’. > | > | Its value is ‘emoji’ > | Original value was ‘low-color’ Interesting. Thanks 1. With the low-color option auto-smiley displays smileys (but not all of them) in the message and the article buffers. 2. With the emoji option, auto-smiley does not display any smiley, gnus, however does display most of the smiley in the article buffer but none in the message buffer. Hm strange that is > | ("\\(O:-)\\)\\W" 1 "😇") > | ("\\(\\^?:-?)\\)\\W" 1 "🙂")) > `---- regards [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
Uwe writes:
> Hm strange that is
I doubt that gnus/smiley.el and your auto-smiley.el have been designed
to cooperate :-)
Best regards,
Adam
--
"Where the world is going? Adam Sjøgren
Back to where it once was" asjo@koldfront.dk
[-- Attachment #1: Type: text/plain, Size: 374 bytes --] >>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes: > Uwe writes: >> Hm strange that is > I doubt that gnus/smiley.el and your auto-smiley.el have been designed > to cooperate :-) Given that their relevant latest releases are 15 years apart I doubt this as well. If I understand your approach correctly you don't see the smileys while you type a message? [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
Uwe writes:
> If I understand your approach correctly you don't see the smileys while you type a message?
Correct, that would annoy me.
Sorry, I missed the part about composing messages - I don't think the
built-in smiley.el in Gnus tries to do that.
:-),
Adam
--
"I like maxims that don't Adam Sjøgren
encourage behavior modification" asjo@koldfront.dk
On Thursday, 2 Sep 2021 at 09:21, Uwe Brauer wrote:
> If I understand your approach correctly you don't see the smileys
> while you type a message?
Correct: the gnus smiley package makes emojis appear when you view an
article but does not affect message composition.
The alternative, and this being Emacs there is always an alternative,
would be to insert the emojis directly when composing, as in
C-x 8 RET slightly smiling face RET
to give you 🙂. This allows you to insert anything, not limited to
those emojis listed in the translation table posted earlier in this
thread including cats etc. 😉
--
Eric S Fraga via Emacs 28.0.50 & org 9.4.6 on Debian 11.0
[-- Attachment #1: Type: text/plain, Size: 852 bytes --] >>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 2 Sep 2021 at 09:21, Uwe Brauer wrote: >> If I understand your approach correctly you don't see the smileys >> while you type a message? > Correct: the gnus smiley package makes emojis appear when you view an > article but does not affect message composition. > The alternative, and this being Emacs there is always an alternative, > would be to insert the emojis directly when composing, as in > C-x 8 RET slightly smiling face RET 🙂 Indeed this is really cool and was a looking for, I would then try to bind smiley to functions and then to keys, very nice indeed. > to give you 🙂. This allows you to insert anything, not limited to > those emojis listed in the translation table posted earlier in this > thread including cats etc. 😉 😎 [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
[-- Attachment #1: Type: text/plain, Size: 904 bytes --] >>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 2 Sep 2021 at 09:21, Uwe Brauer wrote: >> If I understand your approach correctly you don't see the smileys >> while you type a message? > Correct: the gnus smiley package makes emojis appear when you view an > article but does not affect message composition. > The alternative, and this being Emacs there is always an alternative, > would be to insert the emojis directly when composing, as in > C-x 8 RET slightly smiling face RET > to give you 🙂. This allows you to insert anything, not limited to > those emojis listed in the translation table posted earlier in this > thread including cats etc. 😉 I just realized that some fail, for example SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a sort of square 🤭 and SMILING FACE WITH TEAR 01F872 What do I miss here? [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
On Thursday, 2 Sep 2021 at 16:17, Uwe Brauer wrote:
> I just realized that some fail, for example
> SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a
> sort of square 🤭
This works for me as does 🥲.
The key is the fonts you have available for displaying the emojis.
I have the following line in my init files:
(set-fontset-font t '(#x1f300 . #x1fad0) (font-spec :family "Noto Color Emoji"))
and obviously have the Noto font set installed (specifically the
fonts-noto-color-emoji package in Debian). There probably are many
other choices for fonts for displaying emojis.
HTH,
eric
--
Eric S Fraga via Emacs 28.0.50 & org 9.4.6 on Debian 11.0
Uwe Brauer <oub@mat.ucm.es> writes:
> I just realized that some fail, for example
> SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a sort of square 🤭
> and
> SMILING FACE WITH TEAR 01F872
>
> What do I miss here?
I guess a capable font, because I can see your "hand covering mouth"
emoji is displaying just fine. My computer says it is using "symbola"
for that.
The second is not available to me neither (🥲), I thought at least
"fonts-noto" would cover them all.
--
Alberto
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> (set-fontset-font t '(#x1f300 . #x1fad0) (font-spec :family "Noto Color Emoji"))
I thought they would be picked automatically instead of having to state
every range. That said, having fonts-noto-color-emoji installed
doesn't make the second symbol to show up.
--
Alberto
>>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 2 Sep 2021 at 16:17, Uwe Brauer wrote: >> I just realized that some fail, for example >> SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a >> sort of square 🤭 > This works for me as does 🥲. > The key is the fonts you have available for displaying the emojis. > I have the following line in my init files: > (set-fontset-font t '(#x1f300 . #x1fad0) (font-spec :family "Noto Color Emoji")) > and obviously have the Noto font set installed (specifically the > fonts-noto-color-emoji package in Debian). There probably are many > other choices for fonts for displaying emojis. Thanks, well that package is not in Ubuntu 16.04 but in 20.04 and I know, I should upgrade 😇, but... So I just tried out to download the NotoColorEmoji.ttf from https://github.com/googlefonts/noto-emoji But that seems not enough, most likely some png should be generated, but I think right now, I will not try that out, it seems more sensible to upgrade ubuntu. Uwe
On Thursday, 2 Sep 2021 at 17:37, Uwe Brauer wrote:
> Thanks, well that package is not in Ubuntu 16.04 but in 20.04 and I
> know, I should upgrade 😇, but...
I understand your hesitation to upgrade. I'm the same.
I'm sure ubuntu must have a font set that includes emojis. Maybe
somebody else here can chime in or ask on the ubuntu forums?
--
Eric S Fraga via Emacs 28.0.50 & org 9.4.6 on Debian 11.0
[-- Attachment #1: Type: text/plain, Size: 816 bytes --] >>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 2 Sep 2021 at 17:37, Uwe Brauer wrote: >> Thanks, well that package is not in Ubuntu 16.04 but in 20.04 and I >> know, I should upgrade 😇, but... > I understand your hesitation to upgrade. I'm the same. Just thinking of what I need later to fine tune, makes me shudder. > I'm sure ubuntu must have a font set that includes emojis. Maybe > somebody else here can chime in or ask on the ubuntu forums? The funny thing is I copied NotoColorEmoji.ttf into /usr/share/fonts/truetype/noto And run, as I always do sudo fc-cache -f However sudo fc-list | grep Emoji /usr/share/fonts/truetype/noto/NotoEmoji-Regular.ttf: Noto Emoji:style=Regular So the NotoColorEmji.ttf is somehow not found by the system 🥲 [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
Uwe writes:
> So the NotoColorEmji.ttf is somehow not found by the system 🥲
Try putting the file in ~/.fonts/ - that works for me.
I have this in my ~/.emacs/init.el:
;; Emoji: 😄, 🤦, 🏴, 🙂, 😉, 😃
(set-fontset-font t 'symbol "Noto Color Emoji" nil 'append)
(set-fontset-font t 'symbol "Symbola" nil 'append)
Best regards,
Adam
--
"You know, if the sun was an oboe, what would you Adam Sjøgren
do?" asjo@koldfront.dk
[-- Attachment #1: Type: text/plain, Size: 587 bytes --] >>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes: > Uwe writes: >> So the NotoColorEmji.ttf is somehow not found by the system 🥲 > Try putting the file in ~/.fonts/ - that works for me. I tried it as well, no difference, font seems not found by the system > I have this in my ~/.emacs/init.el: > ;; Emoji: 😄, 🤦, 🏴, 🙂, 😉, 😃 > (set-fontset-font t 'symbol "Noto Color Emoji" nil 'append) > (set-fontset-font t 'symbol "Symbola" nil 'append) Ok I have symbola installed But I still cannot see 🥲 as I should [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
[-- Attachment #1: Type: text/plain, Size: 675 bytes --] >>> "AL" == Alberto Luaces <aluaces@udc.es> writes: > Uwe Brauer <oub@mat.ucm.es> writes: >> I just realized that some fail, for example >> SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a sort of square 🤭 >> and >> SMILING FACE WITH TEAR 01F872 >> >> What do I miss here? > I guess a capable font, because I can see your "hand covering mouth" > emoji is displaying just fine. My computer says it is using "symbola" > for that. Strange I have Symbola installed but I cannot see that symbol. > The second is not available to me neither (🥲), I thought at least > "fonts-noto" would cover them all. Something is odd here [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
[-- Attachment #1: Type: text/plain, Size: 514 bytes --] >>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes: > Uwe writes: >> So the NotoColorEmji.ttf is somehow not found by the system 🥲 > Try putting the file in ~/.fonts/ - that works for me. > I have this in my ~/.emacs/init.el: > ;; Emoji: 😄, 🤦, 🏴, 🙂, 😉, 😃 > (set-fontset-font t 'symbol "Noto Color Emoji" nil 'append) > (set-fontset-font t 'symbol "Symbola" nil 'append) BTW, now emoji utf8 font is available on MacOS at least not for emacs28 [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
[-- Attachment #1: Type: text/plain, Size: 699 bytes --] >>> "UB" == Uwe Brauer <oub@mat.ucm.es> writes: >>> "AS" == Adam Sjøgren <asjo@koldfront.dk> writes: >> Uwe writes: >>> So the NotoColorEmji.ttf is somehow not found by the system 🥲 >> Try putting the file in ~/.fonts/ - that works for me. >> I have this in my ~/.emacs/init.el: >> ;; Emoji: 😄, 🤦, 🏴, 🙂, 😉, 😃 >> (set-fontset-font t 'symbol "Noto Color Emoji" nil 'append) >> (set-fontset-font t 'symbol "Symbola" nil 'append) (set-fontset-font t 'symbol (font-spec :family "Apple Color Emoji") nil 'prepend) Seems to work save the crying emoji, ah well > BTW, now emoji utf8 font is available on MacOS at least not for emacs28 [-- Attachment #2: smime.p7s --] [-- Type: application/pkcs7-signature, Size: 5673 bytes --]
On Thursday, 2 Sep 2021 at 16:52, Alberto Luaces wrote: > Eric S Fraga <e.fraga@ucl.ac.uk> writes: > >> (set-fontset-font t '(#x1f300 . #x1fad0) (font-spec :family "Noto Color Emoji")) > > I thought they would be picked automatically instead of having to state > every range. Could be. I copied this from somewhere and it works so haven't investigated further! ;-) > That said, having fonts-noto-color-emoji installed doesn't make the > second symbol to show up. Strange. Typing C-u C-x = on the character tells me (elided): character: 🥲 (displayed as 🥲) (codepoint 129394, #o374562, #x1f972) charset: unicode (Unicode (ISO10646)) code point in charset: 0x1F972 display: by this font (glyph code) ftcrhb:-GOOG-Noto Color Emoji-normal-normal-normal-*-26-*-*-*-m-0-iso10646-1 (#x498) -- Eric S Fraga via Emacs 28.0.50 & org 9.4.6 on Debian 11.0
>>>>> On Thu, 02 Sep 2021 21:10:30 +0200, Uwe Brauer <oub@mat.ucm.es> said:
>>>> "AL" == Alberto Luaces <aluaces@udc.es> writes:
>> Uwe Brauer <oub@mat.ucm.es> writes:
>>> I just realized that some fail, for example
>>> SMILING FACE WITH SMILING EYES AND HAND COVERING MOUTH gives 01F92D a sort of square 🤭
>>> and
>>> SMILING FACE WITH TEAR 01F872
>>>
>>> What do I miss here?
>> I guess a capable font, because I can see your "hand covering mouth"
>> emoji is displaying just fine. My computer says it is using "symbola"
>> for that.
Uwe> Strange I have Symbola installed but I cannot see that symbol.
>> The second is not available to me neither (🥲), I thought at least
>> "fonts-noto" would cover them all.
Uwe> Something is odd here
If youʼre running Ubuntu 16.04, then I strongly suspect youʼre using
the Xft font backend (C-u C-x = on a character will show 'xft:' just
before the font name). Emacs with Xft refuses to use 'Noto Color
Emoji', because it causes crashes. (you can check the value of
'face-ignored-fonts')
Solution: upgrade to a system where you can build Emacs with the ftcr
backend, which is FreeType + Cairo, and then you can use Noto Color Emoji.
Robert
--