|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
![]()
Hi everyone,
I’ve encountered an issue with my Kobo device failing to properly render italicized text in an EPUB file. Specifically, the text uses Unicode (e.g., 𝘸𝘦𝘭𝘤𝘰𝘮𝘦 ![]() Does Calibre offer any built-in tools or plugins to convert it to a readable version? Thanks in advance for your help! p.s. i'm rather new to all of this |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,947
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Are you using KePub or ePub? Thanks. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Quote:
Code:
div.svg_outer { display: block; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; text-align: left; } div.svg_inner { display: block; text-align: center; } h1, h2 { text-align: center; margin-bottom: 10%; margin-top: 10%; } h3, h4, h5, h6 { text-align: center; margin-bottom: 15%; margin-top: 10%; } ol, ul { padding-left: 8%; } body { margin: 2%; } p { overflow-wrap: break-word; } dd, dt, dl { padding: 0; margin: 0; } img { display: block; min-height: 1em; max-height: 100%; max-width: 100%; padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; margin-left: auto; margin-right: auto; margin-bottom: 2%; margin-top: 2%; } img.inline { display: inline; min-height: 1em; margin-bottom: 0; margin-top: 0; } .thumbcaption { display: block; font-size: 0.9em; padding-right: 5%; padding-left: 5%; } hr { color: black; background-color: black; height: 2px; } a:link { text-decoration: none; color: #0B0080; } a:visited { text-decoration: none; } a:hover { text-decoration: underline; } a:active { text-decoration: underline; }table { width: 90%; border-collapse: collapse; } table, th, td { border: 1px solid black; } .webToEpub-author-note { border: 1px solid black; padding: 0.5em } Code:
<div class="dib pr"> <p>He was transported to a temple like room with a fairy</p> </div> </div> <div class="db cha-paragraph pr hover-light j_paragraph j_para_644d08e41ee2cec772e6c122453de06d "> <div class="dib pr"> <p>she said " 𝘸𝘦𝘭𝘤𝘰𝘮𝘦 𝘵𝘰 𝘰𝘮𝘦𝘨𝘢... 𝘮𝘺 𝘯𝘢𝘮𝘦 𝘪𝘴 𝘨𝘢𝘪𝘢 𝘪 𝘢𝘮 𝘵𝘩𝘦 𝘢𝘳𝘵𝘪𝘧𝘪𝘤𝘪𝘢𝘭 𝘪𝘯𝘵𝘦𝘭𝘭𝘪𝘨𝘦𝘯𝘤𝘦 𝘪𝘯𝘤𝘩𝘢𝘳𝘨𝘦 𝘰𝘧 𝘵𝘩𝘪𝘴 𝘸𝘰𝘳𝘭𝘥."</p> </div> </div> Code:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Chapter 2: 'Omega'</title><link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet" /></head><body><div class="cha-tit skiptranslate"> <div class="pr hover-light j_paragraph j_para_54688165499297042_title mb14" data-ejs="{"paragraphId":"54688165499297042_title","chapterId":"54688165499297042"}"> <h1 class="dib mb0 fw700 fs24 lh1.5">Chapter 2: 'Omega'</h1> </div> </div> <div class="cha-content " data-report-l1="3"> <div class="cha-words _font_54688165499297042"> <div class="db cha-paragraph pr hover-light j_paragraph j_para_630c1f8f089b272c2f26148c5233d4ef "> Quote:
|
||
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,592
Karma: 9499994
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It is a bit hard to figure out. Your html code snippet shows numerous classes but they are not shown in your css snippet. I do wonder why this is needed...
<div class="db cha-paragraph pr hover-light j_paragraph j_para_644d08e41ee2cec772e6c122453de06d "> <div class="dib pr"> Your missing sentence is captured by the above, so who knows which one of those classes is responsible. Maybe post the ebook here? If in copyright, scramble it first. |
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,518
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I am just curious as to why you are using "mathematical sans-serif italic small e" instead of a standard e? That character would need to in a font on your Kobo that is accessible to the ePub while a standard e is available in pretty much every font.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
It looks as if this is from "MMORPG : Rebirth Of The Strongest Guild Master" https://m.webnovel.com/book/mmorpg-r...66446406794005
I haven't yet managed to figure out how to download the content in ePub format to look at the underlying markup. |
![]() |
![]() |
![]() |
#7 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,518
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Opening the 2nd chapter of MMORPG : Rebirth Of The Strongest Guild Master on WebNovel and looking at the stylesheet and code associated with that page, there is no styling for italic. The author appears to have used italic characters from the Mathematical section of the font file to generate italics.
Other than the 1.6+ setting for line height, this appears to have been typed and not created in any decent editor. The following quote expresses my opinion of this: "Well, here's another nice mess you've gotten me into."—Oliver Hardy of Laurel & Hardy I've attached an image of what the code looks like in either calibre's ebook-editor or in Sigil. The code block below is a copy/paste from calibre's ebook-editor. Code:
<p>He was transported to a temple like room with a fairy</p> <p>she said ” �������������� ���� ����������… ���� �������� ���� �������� �� ���� ������ �������������������� ������������������������ ���������������� ���� �������� ����������.”</p> <p>������������ ������������ �������� ��������������</p> Last edited by DNSB; 01-27-2025 at 09:33 PM. |
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,518
Karma: 167912829
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I did some more digging at the file to kill time between periods while watching hockey and found that the Code2001 font from the Code2001 site would display the mathematical sans-serif italic grouping.
Still ugly as homemade sin since the author/translator was likely not very comfortable in English but at least you can read the text. |
![]() |
![]() |
![]() |
#9 | ||||
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
Quote:
|
||||
![]() |
![]() |
![]() |
#10 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,651
Karma: 103503445
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Formatted by a nearly clueless web page "hacker". It's not about lack of English but lack of understanding of formatting.
Quote:
Last edited by Quoth; 01-28-2025 at 01:50 PM. |
|
![]() |
![]() |
![]() |
#11 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Excuse me?
|
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Since I can no longer edit my post after 5 minutes, here’s what I originally intended to say:
The process involves removing unnecessary tags, normalizing Unicode characters, converting them to Kobo-compatible HTML/CSS, and cleaning up nested tags. My question was whether Calibre offers any automated tools that can perform all these tasks at once. I discovered that the Edit Book tool provides some functionality, but I’m seeking guidance on the best regex patterns to efficiently accomplish these tasks. I have basic knowledge of CSS/HTML and some other programming languages, but as I mentioned in my earlier comment, while I am not a programmer by any means, that does not mean I lack understanding of the topic. Your snarky comments, however, are not contributing meaningfully to this discussion. I would kindly request that you refrain from replying if you do not have useful information to add to the topic. |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
One thing to keep in mind is that your favourite font does NOT include the characters that the html uses.
Sent from my Pixel 7a using Tapatalk |
![]() |
![]() |
![]() |
#14 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,270
Karma: 78869092
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Quote:
Sent from my Pixel 7a using Tapatalk |
|
![]() |
![]() |
![]() |
#15 |
Junior Member
![]() Posts: 7
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
I decided to reach out to the creator of the novel extraction software I used. In hindsight, I probably should’ve done that in the first place, but hey, 🤷 He provided the solution!
So, for any future readers: You can remove all Unicode characters with Calibre by following these steps:
This solution will obviously remove bold and/or italic text formatted with Unicode, but I can perfectly live with that. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Plugboard: Removing Unicode characters that Kobo can't render | ownedbycats | Devices | 6 | 09-11-2021 01:03 AM |
Unable to download some Epubs from Kobo | rashkae | Kobo Reader | 64 | 10-07-2019 05:48 PM |
Italics don't render in NOOK app | Ballory | Devices | 10 | 03-27-2019 11:03 PM |
ePub CSS @fontface Unicode chars render in <td>, not in <div>, other elements | Abelinkin | ePub | 2 | 06-05-2012 04:24 AM |