Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 11-23-2010, 05:47 AM   #16
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Hitch View Post
Yes, thrawn_aj:

I know that Calibre can and does generate an html toc when you convert from ePUB to mobi; but that first-generation mobi isn't saleable on Amazon, as Calibre's mobi's don't leave enough room in the headers for K4PC's second layer of encryption. And the html that Calibre generates is fine, but it is rather crowded with Calibre styles. It could be used, though, no two ways about it.

As I said somewhere--in this thread?--we're putting together a clip in-house to convert toc.ncx to an html toc w/appropriate entries in the spine and guide to facilitate clean conversion w/o all the CSS flattening. (Hopefully. ;-))

Hitch
Has this issue been reported so the mobi generation code can be fixed?
JSWolf is offline   Reply With Quote
Old 11-24-2010, 04:11 AM   #17
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
JSWolf:

It has indeed. I had a lengthy thread in the Calibre forum and discussed it in the thread with Kovid; and had private correspondence with him on same. I obtained approval from a client to use his books as testbeds for Kovid and sent Kovid the mobi made by Calibre that did not work, and the KindleGenned file, from the same ePUB originally, that did, so that Kovid could compare the Headers, and provided Kovid with all the correspondence by and between myself and Amazon.

This was discussed on the Calibre forum some months ago, when I discovered that I could not open a DRM'ed client file that I dl'ed from Amazon on K4PC. (Said Mobi having been made by Calibre from a Sigil ePUB). My original worked fine on both device and K4PC; but the client couldn't dl to K4PC...and about 3 weeks later, after MUCH correspondence with Amazon, it was determined it was the header space that causes the problems.

On a bright note, that plus another item got me my own Technical Account Manager there, at Amazon's Kindle Publishing unit, so that was a silver lining. For me, anyway.

In the interim, we've written our own clip, in-house, which now converts Sigil ePUBs into ePUBs that we then feed into KindleGen, and it works great; even generates a nice html TOC to make Kindle happy. Saves me about 20 minutes per mobi conversion, which doesn't sound like much until you do it 10 times a day. ;-)

Hitch
Hitch is offline   Reply With Quote
Advert
Old 11-24-2010, 07:15 AM   #18
crutledge
eBook FANatic
crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.crutledge ought to be getting tired of karma fortunes by now.
 
crutledge's Avatar
 
Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
Quote:
Originally Posted by Hitch View Post
JSWolf:

In the interim, we've written our own clip, in-house, which now converts Sigil ePUBs into ePUBs that we then feed into KindleGen, and it works great; even generates a nice html TOC to make Kindle happy. Saves me about 20 minutes per mobi conversion, which doesn't sound like much until you do it 10 times a day. ;-)

Hitch
Converting Sigil to MOBI was not difficult once I asked a lot of questions and finally got everything into one sack.

The following OPF guide is modified in the Sigil OPF and handles most needs.

Code:
    <guide>
        <reference type="cover" title="Cover" href="Text/COVER.xhtml"/>
        <reference type="title-page" title="Title Page" href="Text/TITLE_PAGE.xhtml"/>
        <reference type="toc" title="Table Of Contents" href="Text/Table of Contents.xhtml"/>
        <reference type="text" title="Start Reading" href="Text/CHAPTER_I.xhtml"/>
    </guide>
Additional editing can handle Preface, Dedication, Copyright, etc.

The biggest problem as I see it in converting PG files is how MOBI will react to some of the "STYLES" used so well in Sigil and ePub. This is especially true with styles which modify "MARGIN", "PADDING", Hanging Indents and <p> tags inside "BLOCKQUOTE." MOBI is indeed crippled.

As limited as BD is, they went to great lengths to accomdate MOBI. I now understand the use of the <div> tag in place of <p>. Calibre does the same and seemingly modifies the code in converting to MOBI.

So, JSWOLF, I would be very interested in seeing how your efforts come to fruition. Until the Good Lord shakes the firmament and Amazon moves to ePub, we will struggle along.

Charlie
crutledge is offline   Reply With Quote
Old 12-05-2010, 08:36 PM   #19
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,763
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Actually, I've converted a few ePub recently to Mobipocket using Mobipocket Reader for Windows and the conversions came out pretty well.
JSWolf is offline   Reply With Quote
Old 12-07-2010, 10:46 AM   #20
Danger
Evangelist
Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.Danger ought to be getting tired of karma fortunes by now.
 
Danger's Avatar
 
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
Quote:
Originally Posted by theducks View Post
Maybe in Code View

If you can find a pattern to write a REGEX search against and replace term and change the current Tags wrapping the Chapter heading with the "h# tags.
Unfortunately, not all ( about 80% are) are single pass, simple , I recently did a 150 chapter book that had roman numerals in a single pass ("Chapter XI").
A bit late on this but I figured I'd give my 2cents... in code view, CTRL+F and search for "chapter" in ALL HTML files. Then at each chapter I replace the tags with H2... <h2>Chapter .... </h2>
Danger is offline   Reply With Quote
Advert
Old 12-07-2010, 11:20 AM   #21
st_albert
Guru
st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'st_albert gives new meaning to the word 'superlative.'
 
Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by JSWolf View Post
Actually, I've converted a few ePub recently to Mobipocket using Mobipocket Reader for Windows and the conversions came out pretty well.
Hmm, when I try that, it seems not to grok the UTF-8 encoding. Is there a workaround for that? (I haven't noticed this problem when using kindlegen or calibre for conversion from epub).
st_albert is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Mapping Using toc.ncx lorddon ePub 35 01-16-2018 12:18 PM
Converting a web page to epub with TOC philosopherdog Calibre 5 07-23-2010 07:55 AM
Trying to make an Inline TOC crutledge Sigil 2 05-09-2010 05:46 AM
patch: LrfError: page id invalid in toc grimborg Calibre 0 04-07-2010 05:22 AM
HELP, how do i make the TOC work in Ebook Publisher. Lago Fictionwise eBookwise 7 03-07-2010 08:08 PM


All times are GMT -4. The time now is 07:03 AM.


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