05-16-2011, 05:22 AM | #1 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
|
Conversionproblems from HTML to ePub with the <pre>-Tag
Hello,
first of all: I love calibre! But there is a problem. When I converse a HTML-Site (for Example a Blogpost via RSS), calibre not will converse the <pre>-nodes an its content. Here are some screenshots: Original Website HTML-Code: and the result after conversion by calibre: I couldn't find a solution. Please help me. Matthias |
05-16-2011, 06:44 AM | #2 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
You mentioned RSS. How did you convert the HTML- did you use a recipe or did you download the HTML to your disk, add it as a book and convert?
|
Advert | |
|
05-16-2011, 07:05 AM | #3 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
It might be worth opening up the ePub file (via the Calibre Tweak ePub feature) to look at the xhtml that made it into the epub file. It is possible that the text is there but something is affecting its display.
|
05-17-2011, 04:51 AM | #4 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Or it's possible that <pre> is not valid in XHTML.
Regards, Alex |
05-17-2011, 04:56 AM | #5 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
|
Advert | |
|
05-17-2011, 11:00 AM | #6 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the inspect feature of the calibre viewer to see what the code in the epub file is.
|
05-17-2011, 11:18 AM | #7 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Never noticed that Inspect option (or seen any mention of it)! Has it always been there? It looks as if it could be very useful.
|
05-17-2011, 11:28 AM | #8 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Just do a search for inspect on the whats-new page and you will see when it was introduced. It's also mentioned in the whats new in 0.8 page.
|
05-18-2011, 08:23 AM | #9 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
|
@Manichean
I take this Tool: Unfortunately I only have (and use) the german version of calibre, so I do not know the name in english. @Kovidgoyal I'd installed Version 0.8.1, but still does not work. When I have a look at the ebup-data the part with the <pre>-node will still ignored in the epub-file Pity... |
05-18-2011, 11:49 AM | #10 | |
Well trained by Cats
Posts: 29,792
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
05-18-2011, 05:20 PM | #11 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
What recipe are you using? It could be remotely possible that <pre>- tags are excluded.
|
05-19-2011, 10:54 AM | #12 | |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
|
This:
Quote:
Last edited by matthias2011; 05-19-2011 at 10:58 AM. |
|
05-19-2011, 10:57 AM | #13 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
|
05-19-2011, 11:56 AM | #14 |
Wizard
Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
And that recipe doesn't remove any tags. Did you have a look at the source code of the book to see if the missing text is there, but just isn't displayed?
|
05-20-2011, 04:57 AM | #15 |
Junior Member
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
|
Here it is:
There is nothing like «sudo apt-get install...» |
Tags |
conversion, html tags, pre |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<pre> tag issue while conveting to epub | Colaveare | Calibre | 8 | 10-09-2010 12:02 AM |
ePub files do not center a custom <hr /> tag! | Haidon | ePub | 2 | 08-21-2010 04:29 AM |
ebook-convert HTML to EPUB and problem with <pre><code> | mikegr | Calibre | 2 | 03-09-2010 02:27 PM |
HTML Book + non HTML TOC to epub | aarcane | Calibre | 4 | 03-02-2010 02:58 AM |
Applying Calibre recipes to a folder of pre-existing HTML files | MattK | Calibre | 3 | 09-24-2008 01:15 PM |