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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-18-2011, 08:00 PM   #16
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 320
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Quote:
Originally Posted by kovidgoyal View Post
Merged your code with some minor cleanups:

http://bazaar.launchpad.net/~kovid/c.../mobi/writer2/

Incidentally, have you tested a recipe with a single feed, that becomes a "blog" on the Kindle?
Yes, the code inserts the periodical and (single) section TOC but because the MOBI type is 102 the Kindle v3.1 doesn't provide the Sections and Articles view--just the Articles List. It works fine, though.
nickredding is offline   Reply With Quote
Old 08-19-2011, 12:46 PM   #17
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 320
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Kovid - there is a strange problem with the mobi writer2 code--it seems to shuffle the images in the periodical somehow (it looks random) so images appear in the wrong articles. I checked the mobi writer2 code with and without my changes--same result. I also checked OEB recipe output and the images are in the right places, so it is something that happens in MOBI conversion. I can't see the issue immediately and I'll try t run it down, but I thought I'd give you the heads up in case you have any ideas what might be causing this.
nickredding is offline   Reply With Quote
Old 08-19-2011, 12:49 PM   #18
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,822
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Probably a bug in the code that maps image urls to indexes. See generate_images(). I vaguely recall noting to myself that I needed to test that code more thoroughly. I'm a little busy right now so I wont be able to look at it until later.
kovidgoyal is online now   Reply With Quote
Old 08-19-2011, 03:03 PM   #19
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,822
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fix committed.
kovidgoyal is online now   Reply With Quote
Old 08-19-2011, 04:56 PM   #20
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,712
Karma: 43913160
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Quote:
Originally Posted by kovidgoyal View Post
I'm a little busy right now so I wont be able to look at it until later.
Quote:
Originally Posted by kovidgoyal View Post
Fix committed.
I'd hate to see how long it takes to fix something when you are NOT busy!
PeterT is offline   Reply With Quote
Old 08-19-2011, 05:14 PM   #21
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,822
Karma: 5006091
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
When I'm not busy, I'm usually goofing off, so it would take considerably longer
kovidgoyal is online now   Reply With Quote
Old 08-19-2011, 05:56 PM   #22
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 320
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Rev 10200 traceback

I get this on all recipes with the 10200 revision
Code:
34% Download finished
Parsing all content...
Python function terminated unexpectedly
  '2to3' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "C:\Users\Nick\calibre\src\calibre\ebooks\conversion\cli.py", line 286, in main
    plumber.run()
  File "C:\Users\Nick\calibre\src\calibre\ebooks\conversion\plumber.py", line 946, in run
    encoding=self.input_plugin.output_encoding)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\conversion\plumber.py", line 1084, in create_oebbook
    reader()(oeb, path_or_stream)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\oeb\reader.py", line 71, in __call__
    self._all_from_opf(opf)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\oeb\reader.py", line 610, in _all_from_opf
    self._metadata_from_opf(opf)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\oeb\reader.py", line 132, in _metadata_from_opf
    mi = OPF(stream).to_book_metadata()
  File "C:\Users\Nick\calibre\src\calibre\ebooks\metadata\opf2.py", line 609, in to_book_metadata
    ans = MetaInformation(self)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\metadata\__init__.py", line 264, in MetaInformation
    return Metadata(title, authors, other=mi)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\metadata\book\base.py", line 108, in __init__
    self.smart_update(other)
  File "C:\Users\Nick\calibre\src\calibre\ebooks\metadata\book\base.py", line 567, in smart_update
    other_lang = getattr(other, 'languages', [])
  File "C:\Users\Nick\calibre\src\calibre\ebooks\metadata\opf2.py", line 955, in fget
    l = canonicalize_lang(t.strip())
  File "C:\Users\Nick\calibre\src\calibre\utils\localization.py", line 216, in canonicalize_lang
    m2to3 = iso639['2to3']
KeyError: '2to3'
nickredding is offline   Reply With Quote
Old 08-19-2011, 06:58 PM   #23
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 320
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
Kovid - I just saw your message about running from source and today's release, and that was the problem.
nickredding is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem downloading articles... DarkElf Recipes 0 04-21-2011 06:57 AM
Show articles only, hide sections sjk9 Recipes 1 04-11-2011 11:04 AM
(another) FIX: New York Times Missing Articles bcollier Recipes 11 02-11-2011 03:16 PM
Help me fix my problem....$25 bonus roland1919 Sony Reader 13 05-16-2008 04:37 AM
FB2 problem in V3. How to fix it. reycat HanLin eBook 2 02-18-2008 03:18 PM


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


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