Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-16-2024, 09:33 AM   #3091
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,457
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Runnerbeen View Post
I've rolled back to version 3.7.0 and the issue still remains ie there is very little and sometimes no space after an italicised word. Justification settings are set to off.
This might be a reader problem instead of a plugin problem. Spaces after italics can seem to disappear depending on the font and whether any kerning is happening. For example, this string:
PHP Code:
[SIZE="3"][FONT="Tahoma"]The expression [I]([/I'abc' [I])[/I][/FONT][/SIZE
when rendered by this forum produces this.
Quote:
The expression ( 'abc' )
The space after the opening parenthesis is effectively gone and the space before the closing parenthesis seems too large. Italicizing the space can make it worse.

Without the italics we see
Quote:
The expression ( 'abc' )
The spaces are very apparent.
chaley is offline   Reply With Quote
Old 12-16-2024, 09:47 AM   #3092
Runnerbeen
Enthusiast
Runnerbeen began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Nov 2024
Device: Kobo Libre Colour
Quote:
Originally Posted by chaley View Post
This might be a reader problem instead of a plugin problem. Spaces after italics can seem to disappear depending on the font and whether any kerning is happening. For example, this string:
PHP Code:
[SIZE="3"][FONT="Tahoma"]The expression [I]([/I'abc' [I])[/I][/FONT][/SIZE
when rendered by this forum produces this.

The space after the opening parenthesis is effectively gone and the space before the closing parenthesis seems too large. Italicizing the space can make it worse.

Without the italics we see

The spaces are very apparent.
Thank you for that explanation. Is there anything I can do to fix this? TY
Runnerbeen is offline   Reply With Quote
Old 12-16-2024, 10:14 AM   #3093
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,457
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Runnerbeen View Post
Thank you for that explanation. Is there anything I can do to fix this? TY
Assuming the problem is in the device's typography, one way I can think of is to use a larger space before and after italics, such as an M space or an N space. Here are some examples using the same string as above:
  • M space: The expression ( 'abc' )
  • N space: The expression ( 'abc' )
  • Normal space: The expression ( 'abc' )
Another possibility: sometimes a rendering engine treats non-breaking spaces differently from standard spaces, not changing their widths when it would change the width of a normal space.

This site discusses unicode (and thus HTML) space characters.

Of course I might be entirely wrong and the problem is elsewhere.
chaley is offline   Reply With Quote
Old 12-16-2024, 03:27 PM   #3094
nikosan
Connoisseur
nikosan doesn't litternikosan doesn't litter
 
Posts: 61
Karma: 198
Join Date: Feb 2022
Device: Kobo Sage (prev. Kindle PW5)
Quote:
Originally Posted by Runnerbeen View Post
Thank you for that explanation. Is there anything I can do to fix this? TY
Could it be an issue with how the font was installed? I've seen where if the true "italic" style of a font isn't installed, the reader will just angle the "regular" style, which can make the italic word look like it's closer to the next word. You might try re-installing the Literata font on your reader, and make sure each version of the font files is named correctly, e.g.: [FontName].ttf, [FontName]-Bold.ttf, [FontName]-BoldItalic.ttf, and [FontName]-Italic.ttf.

(Also, Literata Book works better for adjustable line-spacing than Literata 3.0. You can get the OTF of Literata Book at FontSquirrel.)
nikosan is offline   Reply With Quote
Old 12-16-2024, 03:59 PM   #3095
mrbt
Junior Member
mrbt began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Dec 2024
Device: Kobo Libra Color
Let me show you an example of the missing space.

Original epub:
Jenny. <span class="italic">The

3.7.1:
Jenny.</span><span class="koboSpan" id="kobo.69.2"></span><span class="koboSpan" id="kobo.69.3"> </span><span class="koboSpan" id="kobo.69.4"></span><span class="italic"><span class="koboSpan" id="kobo.70.1">The

3.7.2:
Jenny.</span><span class="italic"><span class="koboSpan" id="kobo.70.1">The

So before the last release, the space after the dot get an own group.
In the last release, you drop that space without making a group of it.
mrbt is offline   Reply With Quote
Old 12-16-2024, 10:09 PM   #3096
hengyu
Connoisseur
hengyu began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Aug 2016
Device: Kobo Libra Colour
Quote:
Originally Posted by Runnerbeen View Post
Thank you for that explanation. Is there anything I can do to fix this? TY
If it's really something to do with the rendering, I wonder if

webkitTextRendering=geometricPrecision

or
webkitTextRendering=optimizelegibility

in "Kobo eReader.conf" could make any difference?
hengyu is offline   Reply With Quote
Old 12-17-2024, 12:25 AM   #3097
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: 46,661
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I did some playing with the issue with kepub converted epubs and missing spaces when italics were used.

Here's the original epub file using span, naked i, naked em and i and em with a class:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
</head>

<body>
  <p>Jenny. <span class="italic">The </span></p>

  <p>Jenny. <i>The </i></p>

  <p>Jenny. <i class="italic">The </i></p>

  <p>Jenny. <em>The </em></p>

  <p>Jenny. <em class="italic">The </em></p>
</body>
</html>
and here is the result of converting to kepub with the 3.7.2 code version of Kepub Output:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
  <style type="text/css" class="kobostylehacks">div#book-inner { margin-top: 0; margin-bottom: 0;}</style>
</head>

<body>
  <div id="book-columns">
    <div id="book-inner">
      <p><span class="koboSpan" id="kobo.1.1">Jenny. </span><span class="italic"><span class="koboSpan" id="kobo.1.2">The </span></span></p>

      <p><span class="koboSpan" id="kobo.2.1">Jenny. </span><i><span class="koboSpan" id="kobo.2.2">The </span></i></p>

      <p><span class="koboSpan" id="kobo.3.1">Jenny. </span><i class="italic"><span class="koboSpan" id="kobo.3.2">The </span></i></p>

      <p><span class="koboSpan" id="kobo.4.1">Jenny. </span><em><span class="koboSpan" id="kobo.4.2">The </span></em></p>

      <p><span class="koboSpan" id="kobo.5.1">Jenny. </span><em class="italic"><span class="koboSpan" id="kobo.5.2">The </span></em></p>
    </div>
  </div>
</body>
</html>
and the last version which using the KoboTouchExtended driver to send the book with conversion on the fly to kepub.epub:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
  <link rel="stylesheet" href="../../kte-css/stylehacks.css" type="text/css"/>
</head>

<body>
  <div id="book-columns">
    <div id="book-inner">
      <p><span class="koboSpan" id="kobo.2.1">Jenny.</span><span class="italic"><span class="koboSpan" id="kobo.3.1">The</span></span></p>

      <p><span class="koboSpan" id="kobo.5.1">Jenny.</span><i><span class="koboSpan" id="kobo.6.1">The</span></i></p>

      <p><span class="koboSpan" id="kobo.8.1">Jenny.</span><i class="italic"><span class="koboSpan" id="kobo.9.1">The</span></i></p>

      <p><span class="koboSpan" id="kobo.11.1">Jenny.</span><em><span class="koboSpan" id="kobo.12.1">The</span></em></p>

      <p><span class="koboSpan" id="kobo.14.1">Jenny.</span><em class="italic"><span class="koboSpan" id="kobo.15.1">The</span></em></p>
    </div>
  </div>
</body>
</html>
It's a bit odd that kepubify and the Kepub Output conversion calibre plugin maintain the spaces but the KoboTouchExtended driver does not.
Attached Files
File Type: epub Kepub Italics Space test - Ann Onymous.epub (63.4 KB, 137 views)
DNSB is online now   Reply With Quote
Old 12-17-2024, 03:18 AM   #3098
Runnerbeen
Enthusiast
Runnerbeen began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Nov 2024
Device: Kobo Libre Colour
Quote:
Originally Posted by nikosan View Post
Could it be an issue with how the font was installed? I've seen where if the true "italic" style of a font isn't installed, the reader will just angle the "regular" style, which can make the italic word look like it's closer to the next word. You might try re-installing the Literata font on your reader, and make sure each version of the font files is named correctly, e.g.: [FontName].ttf, [FontName]-Bold.ttf, [FontName]-BoldItalic.ttf, and [FontName]-Italic.ttf.

(Also, Literata Book works better for adjustable line-spacing than Literata 3.0. You can get the OTF of Literata Book at FontSquirrel.)
Thank you, I was using the variable version of the font. I removed this and installed the four separate fonts as mentioned above and it looks much better now though there are some slightly odd spacing issues here and there. I’ll try the Book version too but I quite like the spacing of the TT version.

Last edited by Runnerbeen; 12-17-2024 at 03:26 AM.
Runnerbeen is offline   Reply With Quote
Old 12-17-2024, 03:20 AM   #3099
Runnerbeen
Enthusiast
Runnerbeen began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Nov 2024
Device: Kobo Libre Colour
Quote:
Originally Posted by hengyu View Post
If it's really something to do with the rendering, I wonder if

webkitTextRendering=geometricPrecision

or
webkitTextRendering=optimizelegibility

in "Kobo eReader.conf" could make any difference?
I should have mentioned before that I added the geometric precision code into the config file. In the end removing the variable font I was using and installing the four separate fonts seems to have worked though there still seems to be some odd and uneven spacing issues in places. Thank you
Runnerbeen is offline   Reply With Quote
Old 12-18-2024, 02:36 AM   #3100
fedett92
Junior Member
fedett92 began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Nov 2024
Device: Kindle PaperWhite 2 (2013)
Quote:
Originally Posted by DNSB View Post
I did some playing with the issue with kepub converted epubs and missing spaces when italics were used.

Here's the original epub file using span, naked i, naked em and i and em with a class:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
</head>

<body>
  <p>Jenny. <span class="italic">The </span></p>

  <p>Jenny. <i>The </i></p>

  <p>Jenny. <i class="italic">The </i></p>

  <p>Jenny. <em>The </em></p>

  <p>Jenny. <em class="italic">The </em></p>
</body>
</html>
and here is the result of converting to kepub with the 3.7.2 code version of Kepub Output:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
  <style type="text/css" class="kobostylehacks">div#book-inner { margin-top: 0; margin-bottom: 0;}</style>
</head>

<body>
  <div id="book-columns">
    <div id="book-inner">
      <p><span class="koboSpan" id="kobo.1.1">Jenny. </span><span class="italic"><span class="koboSpan" id="kobo.1.2">The </span></span></p>

      <p><span class="koboSpan" id="kobo.2.1">Jenny. </span><i><span class="koboSpan" id="kobo.2.2">The </span></i></p>

      <p><span class="koboSpan" id="kobo.3.1">Jenny. </span><i class="italic"><span class="koboSpan" id="kobo.3.2">The </span></i></p>

      <p><span class="koboSpan" id="kobo.4.1">Jenny. </span><em><span class="koboSpan" id="kobo.4.2">The </span></em></p>

      <p><span class="koboSpan" id="kobo.5.1">Jenny. </span><em class="italic"><span class="koboSpan" id="kobo.5.2">The </span></em></p>
    </div>
  </div>
</body>
</html>
and the last version which using the KoboTouchExtended driver to send the book with conversion on the fly to kepub.epub:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
<head>
  <title>Kepub Italics Space Test</title>
  <link href="../Styles/stylesheet.css" type="text/css" rel="stylesheet"/>
  <link rel="stylesheet" href="../../kte-css/stylehacks.css" type="text/css"/>
</head>

<body>
  <div id="book-columns">
    <div id="book-inner">
      <p><span class="koboSpan" id="kobo.2.1">Jenny.</span><span class="italic"><span class="koboSpan" id="kobo.3.1">The</span></span></p>

      <p><span class="koboSpan" id="kobo.5.1">Jenny.</span><i><span class="koboSpan" id="kobo.6.1">The</span></i></p>

      <p><span class="koboSpan" id="kobo.8.1">Jenny.</span><i class="italic"><span class="koboSpan" id="kobo.9.1">The</span></i></p>

      <p><span class="koboSpan" id="kobo.11.1">Jenny.</span><em><span class="koboSpan" id="kobo.12.1">The</span></em></p>

      <p><span class="koboSpan" id="kobo.14.1">Jenny.</span><em class="italic"><span class="koboSpan" id="kobo.15.1">The</span></em></p>
    </div>
  </div>
</body>
</html>
It's a bit odd that kepubify and the Kepub Output conversion calibre plugin maintain the spaces but the KoboTouchExtended driver does not.
I'm also having the same issue.
Sending a converted on-the-fly kepub via calibre to my Kobo Libra 2 delete the spaces before italic words!
Versione 3.7.2
fedett92 is offline   Reply With Quote
Old 12-18-2024, 12:04 PM   #3101
Runnerbeen
Enthusiast
Runnerbeen began at the beginning.
 
Posts: 46
Karma: 10
Join Date: Nov 2024
Device: Kobo Libre Colour
I have rolled back to version 3.7.0 and edited a book using Sigil, converted it and now the italic issue is back again. It's only appearing in the new book I've transferred but the spaces before italics are missing again.
Runnerbeen is offline   Reply With Quote
Old 12-18-2024, 12:15 PM   #3102
repilo
Connoisseur
repilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmosrepilo has become one with the cosmos
 
Posts: 97
Karma: 21870
Join Date: Apr 2021
Location: Spain
Device: Kobo Libra 2
I would like to add that since I updated the plugins my Libra 2 keeps freezing every now and then. This last time it froze when highlighting a sentence (it contained a word in italics): it has unintentionally highlighted all the text to the end of the page and I can no longer unhighlight it or turn the page; not even after restarting. I had to restart, delete the book and install a previous version of the plugin.
repilo is offline   Reply With Quote
Old 12-18-2024, 07:36 PM   #3103
khoogeland
Member
khoogeland began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2010
Location: Amsterdam
Device: Kobo Sage/ Kobo Elipsa
I also had issues with spaces disappearing, not just italics, but also at other places where the original had a <span> of some sort. Checking the code of the kepub with Sigil showed that the spaces were actually missing from the html.

After reverting to version 3.7.1 (and a lot of deleting and re-adding) I have my spaces back. I hope this helps someone. The github has a full archive for anyone who wants to try reverting.

Love this plugin! I am also very grateful for this forum, as it helped me figure out that the plugin might be causing issues. I almost made a complaint to the bookseller, before realizing that the original epub has none of the problems I saw on my kobo reader.
khoogeland is offline   Reply With Quote
Old 12-18-2024, 08:10 PM   #3104
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: 46,661
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For now, I've settled for using kepubify to convert the few books I use kepub for (basically, they have large images that I want to be able to zoom) and reverted to using the KoboTouch driver instead of the KoboTouchExtended driver.
DNSB is online now   Reply With Quote
Old 12-19-2024, 07:29 AM   #3105
khoogeland
Member
khoogeland began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2010
Location: Amsterdam
Device: Kobo Sage/ Kobo Elipsa
Rolling back to version 3.7.1 has introduced a new problem. Styles that use + are broken on my Kobo Sage.

For instance:
.ff-plat + .ff-plat {
text-indent: 1.5em;
}

The indent disappears because there are extra <span> sections introduced between the paragraphs.

I'm trying 3.7.0 now, which hasn't given me problems with italics so far.
Is there a better way to report these errors. I'm not very familiar with doing this.
khoogeland is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 02:37 AM.


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