Thread: Kobo Bug thread
View Single Post
Old 10-31-2013, 04:17 PM   #301
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by jgoguen View Post
Can you PM me a link to a freely-downloadable Spanish book that demonstrates this problem? Even better if you can point to what chapter and page it happens on.
It's easier than that. Here you have a pretty simple epub to play around with it. (Thanks, Sigil ).

Or if you want to build it yourself, its html code is just this:

Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!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>Dashes Test</title>
</head>

<body style="text-align:justify;">
  <p>—This is the reference sentence —whoever exclaimed.</p>

  <p>—This is AStressTestWithVeryLongWordsAgainstJustification, —whoever exclaimed—. TheStressTest ContinuesHere.</p>

  <p><i>Now I'm protecting the wrong wrap with the</i> &lt;span style="white-space:nowrap;"&gt; <i>workaround:</i></p>

  <p>—This is AStressTestWithVeryLongWordsAgainstJustification, <span style="white-space:nowrap">—whoever</span> <span style="white-space:nowrap">exclaimed—.</span> TheStressTest ContinuesHere.</p>

  <p>&nbsp;</p>

  <p><b><i>Now the same sentences using</i> &amp;mdash; <i>instead of —:</i></b></p>

  <p>&mdash;This is the reference sentence &mdash;whoever exclaimed.</p>

  <p>&mdash;This is AStressTestWithVeryLongWordsAgainstJustification, &mdash;whoever exclaimed&mdash;. TheStressTest ContinuesHere.</p>

  <p><i>Now I'm protecting the wrong wrap with the</i> &lt;span style="white-space:nowrap;"&gt; <i>workaround:</i></p>

  <p>&mdash;This is AStressTestWithVeryLongWordsAgainstJustification, <span style="white-space:nowrap">&mdash;whoever</span> <span style="white-space:nowrap">exclaimed&mdash;.</span> TheStressTest ContinuesHere.</p>
</body>
</html>
Play with it as much as you want.

I also upload a screenshot from Calibre e-book viewer which shows the right rendering and how the span trick fixes the wrong sentence wrap.

Edited----
Hey, what the hell! Here you have a picture directly taken from my Aura HD. In the second sentence the problem is already shown but the third one is just crazy. (The bigger spaces in the third sentence are caused because the span trick doesn't allow "exclaimed" and its "—" being in different lines).

Playing with margins and font sizes you can make it more or less obvious.

OTOH. Is it possible to take a screenshot directly from the Kobo Aura HD with some trick? (In my old PRS-650, you need PRS+ modified firmware to get it)

IMPORTANT EDIT - NEW BUG!!!! -------
Look at the new image (IMG_0241.jpg) which uses epub renderer NOT kepub one:

<span style="white-space:nowrap;"> has stopped working!!!!
Attached Thumbnails
Click image for larger version

Name:	Within Calibre.jpg
Views:	570
Size:	195.5 KB
ID:	114396   Click image for larger version

Name:	IMG_0240.jpg
Views:	733
Size:	362.0 KB
ID:	114398   Click image for larger version

Name:	IMG_0241.jpg
Views:	745
Size:	477.7 KB
ID:	114401  
Attached Files
File Type: epub Dashes Test - Yo.epub (2.1 KB, 402 views)

Last edited by arspr; 10-31-2013 at 05:18 PM. Reason: More info (a direct picture from the Kobo Aura HD) - AND ANOTHER RELATED BUG
arspr is offline   Reply With Quote