Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emojis on rxvt-unicode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lbjork64
n00b
n00b


Joined: 27 Sep 2017
Posts: 6
Location: Sweden

PostPosted: Thu Oct 12, 2017 1:33 pm    Post subject: [SOLVED] Emojis on rxvt-unicode Reply with quote

I am having a bit of a problem getting Unicode emojis to render on rxvt-unicode. So far, I've installed the font "Emojione Color".
I've also added this entry to ~/.Xresources and merged it with xrdb:

Code:

URxvt*font: xft:DejaVu Sans Mono:size=10,xft:Emojione Color:size=10
URxvt*letterSpace: -2


I've also checked the spelling to make sure I didn't say "colour" instead of "color". And yet, emojis refuse to render properly -- only appearing as square boxes.

What should I do?

EDIT:

.ps 36
.ft B
SOLVED: SOLUTION:
.ft R
Use xterm or st.
_________________
I'm a wanna-be computer scientist. Not good at anything. When I die, throw me in the trash.


Last edited by lbjork64 on Thu Oct 12, 2017 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4532

PostPosted: Thu Oct 12, 2017 8:21 pm    Post subject: Reply with quote

urxvt only supports the first 64K characters. Install a terminal that doesn't lie about its unicode support, like st or xterm.
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 959
Location: KUUSANKOSKI, Finland

PostPosted: Fri Oct 13, 2017 4:37 pm    Post subject: Reply with quote

Ant P. wrote:
urxvt only supports the first 64K characters.
Interesting... I like urxvt, but this might be a reason to change. So... urxvt supports "utf-6"? :roll:
st sure is "pure" in it's design. It should replace xterm as a "default" term in xorg (imo).
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4532

PostPosted: Fri Oct 13, 2017 5:07 pm    Post subject: Reply with quote

urxvt only supports UCS-2, like Windows 2000 or Java 1.3. The author is one of those types that gets angry if you so much as point out bugs, so it'll likely never be fixed (same goes for its use of manually-premultiplied alpha transparency and color escape code parsing).

st's unicode isn't perfect, it doesn't know some characters should be double-width, but at least it's trying.
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
Zucca
l33t
l33t


Joined: 14 Jun 2007
Posts: 959
Location: KUUSANKOSKI, Finland

PostPosted: Sat Oct 14, 2017 8:08 pm    Post subject: Reply with quote

I wonder how's the support on other terminal emulators then... Like Konsole, xfce-terminal or even alacritty.
_________________
..: Zucca :..
This space is not for rent.
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4532

PostPosted: Sat Oct 14, 2017 8:42 pm    Post subject: Reply with quote

AFAIK most of the heavyweight terms nowadays are just wrappers around libvte, which should get this stuff right.
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
zlg
Developer
Developer


Joined: 11 Sep 2012
Posts: 46
Location: United States

PostPosted: Tue Oct 17, 2017 11:34 pm    Post subject: Reply with quote

Thanks for the info on terminals, Ant P. You seem to know quite a bit about terminal emulators; are there any that can mimic urxvt's Ctrl+Shift (ISO 14755 mode) behavior? For example, I can hold Ctrl+Shift, then press 2665. When I let go of the modifier keys, it prints ♥, as expected. I know GTK+ enabled terminal emulators have Ctrl+Shift+u <numbers><Enter>, but urxvt's chord feels more natural. Do other terminal emulators offer anything like that?
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4532

PostPosted: Wed Oct 18, 2017 5:58 pm    Post subject: Reply with quote

urxvt's is done via a perl plugin iirc. No idea if others have anything like that.

XCompose is a better way of doing unicode imo: it works in any window (even Wine ones), and the default list (in /usr/share/X11/locale/en_US.UTF-8/Compose) covers nearly everything I can think of wanting to use regularly. Note that it makes heavy use of "<Multi_key>" which defaults to shift+altgr (not altgr+shift!)
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum