Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 09-22-2021, 06:20 PM   #1
Iridium
Junior Member
Iridium began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
Question [Kobo] Unicode emoticons / emojis are not displayed

I have a book with some emoticons / emojis, that display perfectly fine on PC and the Calibre viewer and editor, but when reading the book on Kobo Libra H2O are not shown.

I've already tried installing new fonts that supposedly support unicode symbols to kobo (Google's Noto font), and using it for that book, but it didn't fix anything.

This is a test string I came up to test it easily:

Code:
<p>Converted emojis: 1-🧐 2-😃 3-😅 4-😌 5-😏 6-😓 7-😔 8-😤 9-😬 10-😲</p>
  
<p>Using html codes: 1-&#x1F9D0; 2-&#x1F603; 3-&#x1F605; 4-&#x1F60C; 5-&#x1F60F; 6-&#x1F613; 7-&#x1F614; 8-&#x1F624; 9-&#x1F62C; 10-&#x1F632;</p>
Is there anything I can do, or does kobo simply not support this?
Iridium is offline   Reply With Quote
Old 09-22-2021, 06:33 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Did you link that font to a font-family (@fontface...) and the assign the Family to the span needed to enclose the character)?

Code:
@font-face {
   font-family: "noto";
   font-weight: normal;
   font-style: normal;
   src: url(../fonts/<filenamehere>.ttf);
}
Code:
1-<span class="usenoto">&#x1F9D0;</span>
theducks is offline   Reply With Quote
Advert
Old 09-22-2021, 07:06 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,426
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Were you trying to use the Noto Color Emoji font? That is not a standard font and has issues on a Kobo ereader. Using the Noto Emoji font worked for most of the glyphs other than the first one in your set.
DNSB is offline   Reply With Quote
Old 09-22-2021, 07:38 PM   #4
Iridium
Junior Member
Iridium began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
Quote:
Originally Posted by theducks View Post
Did you link that font to a font-family (@fontface...) and the assign the Family to the span needed to enclose the character)?
No, what I did was send the ebook with no embedded fonts whatsoever, but install these 3 fonts on the device on a new "fonts" folder:
- Noto Serif Regular
- Noto emoji
- Noto color emoji - (this one wasn't recognised, the rest installed fine)

Then when opening the ebook I changed the Font Face font to any of those two.

Meanwhile I now tried your method as well, embedding those two fonts in the ebook, and specifically using them for those glyphs. But unfortunately still no luck. They just appear as blank spaces.
Iridium is offline   Reply With Quote
Old 09-22-2021, 10:24 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,426
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
As I said, I added the Noto Emoji font as an embedded font and it worked. I also tried adding the Noto Emoji to the fonts directory on my Forma and it worked from there as well. I also tested a couple of other fonts that had emoji support and the results were pretty decent.

See attached image for Noto Emoji.

Most the work in creating the attached epub and embedding the font was done by Sigil.
Attached Thumbnails
Click image for larger version

Name:	screen_001.png
Views:	250
Size:	67.2 KB
ID:	189359  
Attached Files
File Type: epub Emoji Test - Ima Pseudonym.epub (514.1 KB, 192 views)
DNSB is offline   Reply With Quote
Advert
Old 09-22-2021, 11:38 PM   #6
Iridium
Junior Member
Iridium began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2021
Device: Kobo Libra H2O
Quote:
Originally Posted by DNSB View Post
As I said, I added the Noto Emoji font as an embedded font and it worked. I also tried adding the Noto Emoji to the fonts directory on my Forma and it worked from there as well. I also tested a couple of other fonts that had emoji support and the results were pretty decent.
Thanks alot for taking the trouble to do this, with your epub I managed to figure out what I was doing wrong: your epub worked, as expected; my previous error was because I was doing

Code:
<span style="font-family:'Noto Emoji'">
..with STYLE in uppercase. Don't know how I missed that.

Anyway, glad it was just my stupid mistake and not some incompatibility problem, although changing font face on my Kobo Libra doesn't work when changing to Noto Emoji font: all text in the book just vanishes, which is odd.

With that said, just to be able to get ALL the emojis I wanted, I ended up adding inline SVGs to the book, which have the bonus of looking better, although the CSS dimensions took some work.

Thanks again to you both. Problem fixed now.
Iridium is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Conversion Fail Due to Emojis? JimmXinu Conversion 2 12-04-2019 01:02 PM
kindle and emojis? Trigun Amazon Kindle 21 03-15-2018 08:27 PM
Chapter Heading formate displayed wrong in Kobo Kaylee Skylyn ePub 9 07-26-2015 12:13 AM
Covers in Epubs not being displayed on Kobo when transfered from Calibre acail0607 Devices 1 12-12-2011 04:32 AM


All times are GMT -4. The time now is 05:31 PM.


MobileRead.com is a privately owned, operated and funded community.