Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-16-2011, 05:22 AM   #1
matthias2011
Junior Member
matthias2011 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
Question 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
matthias2011 is offline   Reply With Quote
Old 05-16-2011, 06:44 AM   #2
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
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?
Manichean is offline   Reply With Quote
 
Enthusiast
Old 05-16-2011, 07:05 AM   #3
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,048
Karma: 777825
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.
itimpi is online now   Reply With Quote
Old 05-17-2011, 04:51 AM   #4
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 2,252
Karma: 3868800
Join Date: May 2008
Location: Launceston, Tasmania
Device: Kindle3, Kobo Touch, Sony PRS T3, Nexus 7, iPad mini
Or it's possible that <pre> is not valid in XHTML.

Regards, Alex
AlexBell is offline   Reply With Quote
Old 05-17-2011, 04:56 AM   #5
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
Quote:
Originally Posted by AlexBell View Post
Or it's possible that <pre> is not valid in XHTML.
No, it should be valid- I've seen a few threads were it was suggested the user put code fragments in <pre>- tags, and it worked.
Manichean is offline   Reply With Quote
Old 05-17-2011, 11:00 AM   #6
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: 25,795
Karma: 4998511
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.
kovidgoyal is offline   Reply With Quote
Old 05-17-2011, 11:18 AM   #7
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,048
Karma: 777825
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.
itimpi is online now   Reply With Quote
Old 05-17-2011, 11:28 AM   #8
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: 25,795
Karma: 4998511
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.
kovidgoyal is offline   Reply With Quote
Old 05-18-2011, 08:23 AM   #9
matthias2011
Junior Member
matthias2011 began at the beginning.
 
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...
matthias2011 is offline   Reply With Quote
Old 05-18-2011, 11:49 AM   #10
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 14,500
Karma: 5567061
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by matthias2011 View Post
@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...
That is the "Download News" tool icon
theducks is offline   Reply With Quote
Old 05-18-2011, 05:20 PM   #11
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
What recipe are you using? It could be remotely possible that <pre>- tags are excluded.
Manichean is offline   Reply With Quote
Old 05-19-2011, 10:54 AM   #12
matthias2011
Junior Member
matthias2011 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Location: germany
Device: Sony prs 650
This:

Quote:
class AdvancedUserRecipe1305816964(BasicNewsRecipe):
title = u'Ubuntu'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'planetUbuntu', u'http://planet.ubuntuusers.de/feeds/full/25/')]
I don't change anything from the default content.

Last edited by matthias2011; 05-19-2011 at 10:58 AM.
matthias2011 is offline   Reply With Quote
Old 05-19-2011, 10:57 AM   #13
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,048
Karma: 777825
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Quote:
Originally Posted by matthias2011 View Post
What do you mean with «recipe»?
That icon you mentioned provides a list of news sources. The code that implements each of these is known as a recipe. I guess therefore the question is which news source are you using.
itimpi is online now   Reply With Quote
Old 05-19-2011, 11:56 AM   #14
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80446
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?
Manichean is offline   Reply With Quote
Old 05-20-2011, 04:57 AM   #15
matthias2011
Junior Member
matthias2011 began at the beginning.
 
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...»
matthias2011 is offline   Reply With Quote
Reply

Tags
conversion, html tags, pre

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 02:19 PM.


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