Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2017, 03:27 PM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
calibre 3.5: previewer has issues with tables

Today I had some issues on creating a table which used rowspan. The result in the calibre previewer did not show some borders, nor when viewing the epub with calibre. Only after a long time of trying and trying, it turned out that the resulting epub page was showing correct on my e-reader itself, but just not on the calibre (pre)viewer.

To test I used the following (test) html page:
Spoiler:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<style>
table {
border: solid thin;
border-collapse: collapse;
}
caption {
padding-bottom: 0.5em;
}
th, td {
border: solid thin;
padding: 0.5em 2em;
}
td {
white-space: nowrap;
}
th {
font-weight: normal;
}
td {
border-style: none solid;
vertical-align: top;
}
th {
padding: 0.2em;
vertical-align: middle;
text-align: center;
}
body {
padding: 1em;
}
</style>
</head>

<body>

<h1>TEST</h1>

<table id="table-example-1"><caption>Specification values: <b>Steel</b>, <b>Castings</b>,
Ann. A.S.T.M. A27-16, Class B;* P max. 0.06; S max. 0.05.</caption>
<thead><tr><th rowspan="2">Grade.</th>
<th rowspan="2">Yield Point.</th>
<th colspan="2">Ultimate tensile strength</th>
<th rowspan="2">Per cent elong. 50.8*mm or*2*in.</th>
<th rowspan="2">Per cent reduct. area.</th>
</tr><tr><th>kg/mm<sup>2</sup></th>
<th>lb/in<sup>2</sup></th>
</tr></thead><tbody><tr><td>Hard</td>
<td>0.45 ultimate</td>
<td>56.2</td>
<td>80,000</td>
<td>15</td>
<td>20</td>
</tr><tr><td>Medium</td>
<td>0.45 ultimate</td>
<td>49.2</td>
<td>70,000</td>
<td>18</td>
<td>25</td>
</tr><tr><td>Soft</td>
<td>0.45 ultimate</td>
<td>42.2</td>
<td>60,000</td>
<td>22</td>
<td>30</td>
</tr></tbody></table>

</body>

</html>


The code above produced the following result in the calibre previewer (picture1), in which borders where missing (indicated by red in picture2). These missing borders are showing on my e-readers.

Is this a known anomaly of the calibre (pre)viewer?
Attached Thumbnails
Click image for larger version

Name:	calibre1.jpg
Views:	165
Size:	57.4 KB
ID:	158226   Click image for larger version

Name:	calibre2.jpg
Views:	171
Size:	55.3 KB
ID:	158227  
DrChiper is offline   Reply With Quote
Old 08-02-2017, 06:46 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It is a bug in the version of webkit shipped with Qt. Using a newer version of webkit fixes it, but it will be some time before calibre ships with a newer version of webkit. You can use the new browser viewer in the mentime which will not have this bug.
kovidgoyal is offline   Reply With Quote
Old 08-04-2017, 02:33 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Thanks Kovid.
DrChiper is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobigen Kindle previewer does not convert as good as Calibre? Help! zoldier Kindle Formats 20 12-04-2016 05:26 PM
Converting Epub to Mobi: Calibre v KindleGen/Kindle Previewer Jane12 Kindle Formats 16 11-22-2012 07:47 PM
Kindle Previewer issues DanBenton Kindle Formats 4 01-27-2012 05:40 AM
ePub to Mobi issues with tables apastuszak Conversion 11 06-20-2011 09:19 PM
Calibre to Kindel previewer .NCX issues Matt.Geiger Conversion 16 04-03-2011 12:41 AM


All times are GMT -4. The time now is 10:32 PM.


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