Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-16-2009, 11:44 AM   #346
kaytuss
Junior Member
kaytuss began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2008
Device: PRS-505
Problem w/ EPUB on New York Times Subscription w/ 4.137

I havebeen usin Calibre for months with no issues. After updating to 4.137, I can no longe read NY Times subscription on the PRS-505. I see thetable of contents ad it shows the total number of pages but when i change to the page after the TOC, the screen goes blank.

Can yo direct m to where your previus files are so that I can go back to where I was before?
kaytuss is offline   Reply With Quote
Old 02-16-2009, 02:19 PM   #347
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by kaytuss View Post
I havebeen usin Calibre for months with no issues. After updating to 4.137, I can no longe read NY Times subscription on the PRS-505. I see thetable of contents ad it shows the total number of pages but when i change to the page after the TOC, the screen goes blank.

Can yo direct m to where your previus files are so that I can go back to where I was before?
This will likely have been caused by a change on the NYTimes website as there was no change associated with the feed fetching code in calibre, so returning to a previous version is unlikely to solve your problem. Open a ticket about it and I will fix it before the next release.
kovidgoyal is offline   Reply With Quote
Advert
Old 02-16-2009, 05:41 PM   #348
ddavtian
Addict
ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.ddavtian has a complete set of Star Wars action figures.
 
Posts: 274
Karma: 332
Join Date: Nov 2003
Location: San Francisco, USA
Device: Sage, Elipsa, Oasis, Galaxy Tab 8U, S22U
Quote:
Originally Posted by kaytuss View Post
I can no longe read NY Times subscription on the PRS-505. I see thetable of contents ad it shows the total number of pages but when i change to the page after the TOC, the screen goes blank.
I have the same problem on the reader, but Calibre viewer shows it just fine.
The second NY Times (not subscription) works fine.
ddavtian is offline   Reply With Quote
Old 02-16-2009, 09:10 PM   #349
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
Hi,

found a small problem when converting from html to epub, tried first changing all marging settings and page break settings, but when viewed on my sony 505 the epub format has missing letters on the right end. Is there a way to force the text to overflow rather than be be cut if it doesn t fit on the resolution of the device?


thanks
Student1 is offline   Reply With Quote
Old 02-16-2009, 09:54 PM   #350
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
This happends when you source HTML uses non reflowable markup like <pre> tags of <table> tags. First try the --linearize-tables option in calibre
kovidgoyal is offline   Reply With Quote
Advert
Old 02-17-2009, 01:12 AM   #351
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
Thanks going to give it a try once caliber finishes importing a ton of books !
Student1 is offline   Reply With Quote
Old 02-17-2009, 12:25 PM   #352
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
Was also wondering, when converting html to opf and then to epub is there a way to remove the header and footer of each html page without having to do it manually ?

thanks
Student1 is offline   Reply With Quote
Old 02-17-2009, 01:38 PM   #353
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If the headers and footers are in some sort of regular markup you can use override css to remove them, fo example if headers are always in markup of the form

<div class="header">some text</div>

you can use

.header { display:none }

in override css
kovidgoyal is offline   Reply With Quote
Old 02-17-2009, 04:04 PM   #354
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
Thanks that will work perfectly! Thanks for all your help and this great soft! Would be hell working with sony s software... and they are getting payed for it... amazing!
Student1 is offline   Reply With Quote
Old 02-17-2009, 04:22 PM   #355
klx14
Junior Member
klx14 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2009
Device: Sony PRS-505
I can confirm the bug reported in #346 and #348. With the attached self-developed recipe I have exactly the same problem: Page count and TOCs are OK, but following a link gives a blank page only. Reverting to 0.4.136 solved the problem for me - so there is definitely a regression in 0.4.137. My suspicion is that there is a bug in the EPUB conversion routines, not the fetching.

Here is the recipe I am using:

Code:
class AdvancedUserRecipe1231145686(BasicNewsRecipe):
    title          = u'Tagesspiegel'
    encoding = 'cp1252'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    remove_tags = [dict(attrs={'class':['related', 'themen_alarm',
                                        'tso_tool', 'postings ps_swus_nowrap',
                                        'anzeige_spacer', 'tool2',
                                        'anzeige_top_double_border',
                                        'ISI_IGNORE ps_rs_versteckt',
                                        'ISI_IGNORE tso_tools',
                                        'login_box', 'tso_small',
                                        'aufmacher_content',
                                        'tso_breadcrumb', 'tso_headline']}),
                   dict(id=['footer', 'toolsRight', 'articleInline',
                            'navigation', 'archive', 'side_search',
                            'blog_sidebar', 'side_tool', 'thumblupe',
                            'thumbbig_var', 'linkbox_spacer',
                            'navbar', 'header', 'search', 'masthead',
                            'banner', 'sky', 'sky_move']),
                   dict(name=['script', 'noscript', 'style',
                              'pinboardbtn'])]
    remove_tags_after  = dict(id='ar_text')
    import re
    preprocess_regexps = [
        (re.compile(r'float:left;', re.DOTALL|re.IGNORECASE),
         lambda match: ''),
        ]

    extra_css = '#ar_text {font-family:times; font-size:9pt}'
    cover_url = 'file:///home/peterh/eBooks/tagesspiegel.png'
    html2lrf_options = ['--base-font-size', '9']
    
    feeds          = [(u'Aktuelle Nachrichten aus dem Ressort Politik', u'http://www.tagesspiegel.de/rss/politik.xml'), (u'Aktuelle Nachrichten aus Berlin und Brandenburg', u'http://www.tagesspiegel.de/rss/berlin.xml'), (u'Aktuelle Nachrichten aus dem Ressort Wirtschaft', u'http://www.tagesspiegel.de/rss/wirtschaft.xml'), (u'Aktuelle Nachrichten aus dem Ressort Kultur', u'http://www.tagesspiegel.de/rss/kultur.xml'), (u'Buch-Rezensionen aus dem gedruckten Tagesspiegel', u'http://www.tagesspiegel.de/rss/literatur.xml'), (u'Aktuelle Nachrichten aus aller Welt', u'http://www.tagesspiegel.de/rss/welt.xml')]
BTW on Linux you can revert by issuing:

Code:
easy_install -U calibre==0.4.136
calibre_postinstall
klx14 is offline   Reply With Quote
Old 02-17-2009, 06:41 PM   #356
Student1
Groupie
Student1 doesn't litterStudent1 doesn't litter
 
Posts: 159
Karma: 170
Join Date: Feb 2009
Device: PRS-505
Quote:
Originally Posted by kovidgoyal View Post
If the headers and footers are in some sort of regular markup you can use override css to remove them, fo example if headers are always in markup of the form

<div class="header">some text</div>

you can use

.header { display:none }

in override css
Tried it but it didn t work, words are still cut on the right side, well one letter or two so its not so bad, would there be a css overide to force the code to cut from the left so the right can show? Would enable to get that missing letter and loose some white space on the left side .

thanks!
Student1 is offline   Reply With Quote
Old 02-17-2009, 07:54 PM   #357
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The roblem with the NYT (and hopefully the other feeds as well) will be fixed in the next release (basically it was caused by Adobe DE not being able to handle HTML comments with code in them. calibre now strips the comments, so it should be fine.
kovidgoyal is offline   Reply With Quote
Old 02-19-2009, 05:29 PM   #358
kaytuss
Junior Member
kaytuss began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2008
Device: PRS-505
Quote:
Originally Posted by kovidgoyal View Post
The roblem with the NYT (and hopefully the other feeds as well) will be fixed in the next release (basically it was caused by Adobe DE not being able to handle HTML comments with code in them. calibre now strips the comments, so it should be fine.
Thanks for your help. 4.138 corrected the NY Times issue. It now works like a gem.
kaytuss is offline   Reply With Quote
Old 02-24-2009, 04:38 PM   #359
yacoob
Zealot
yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.yacoob is no ebook tyro.
 
yacoob's Avatar
 
Posts: 120
Karma: 1326
Join Date: Feb 2009
Device: none
A small question: is there a way to set 'collection' the book prepared with any2epub is going to end up with? After looking at the options, --subjects looks related, but looks like it's not working.
yacoob is offline   Reply With Quote
Old 02-24-2009, 04:55 PM   #360
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: 44,565
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use the --tags option of the epub-meta command
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Epub Output: Line Height greenapple Conversion 20 01-27-2013 10:27 AM
EPUB output justification toki08 Calibre 10 01-08-2011 05:14 PM
Calibre epub output details and Nook squidward Calibre 6 11-24-2010 04:21 PM
epub output metadata troymc Calibre 5 05-22-2010 01:23 AM
Problem with epub output in Cybook Gen3 fjf Calibre 3 02-03-2010 03:23 AM


All times are GMT -4. The time now is 01:18 AM.


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