![]() |
#16 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
OTOH, you do get a kindlegen-created mobi with an inline toc that way. ETA: Aha! But, I see you can edit the second epub in sigil, add back the semantics, edit the content.opf and change the "text" semantic to "start-reading," re-zip, and then kindlegen -> mobi and hey, presto! TOC and semantic index, both working! A bit convoluted, but not TOO bad. And that's why they pay us the big bucks, no? ![]() Last edited by st_albert; 10-14-2010 at 06:48 PM. Reason: added thought. |
|
![]() |
![]() |
![]() |
#17 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,593
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
Hi everyone. Sorry I've not been contributing, despite being named in the title.
I've been asked about what to do with blockquotes and Kindlegen, as sometimes they don't seem to work. The answer is that Kindlegen (& Mobipocket Creator) don't handle blockquotes well. They will only apply to the first paragraph immediately following the blockquote open tag. Ughh... If you're aiming at generating ePub and Kindle/Mobipocket from the same source, I've found it's necessary to limit the formatting choices in the ePub — keeping the CSS very simple. But even then there are lots of pitfalls. See the thread here: https://www.mobileread.com/forums/showthread.php?t=96061 |
![]() |
![]() |
![]() |
#18 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Being ever the optimist, I posted this to the Mobipocket.com forum.
Quote:
![]() |
|
![]() |
![]() |
![]() |
#19 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Frustration
Since kindlegen does not handle <blockquote>, I experimented with the following class:
Code:
.block{ padding-bottom: 4px; padding-top: 4px; padding-left: 3em; } By keeping the toc and list of illustrations from the PG file (with some re-formatting) any data in the opf guide shows up in the contet menu of the Mobireader and works fine. The toc and loi work also. I'm out of ideas. |
![]() |
![]() |
![]() |
#20 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,593
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
padding is completely ignored by kindlegen. margin-top and margin-bottom might work.
|
![]() |
![]() |
![]() |
#21 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 106
Karma: 3566
Join Date: Aug 2008
Location: London UK
Device: iPhone 5, Kindle K3, Kindle Voyage
|
I've found that mobi <blockquote> will work as long as there are NO <p></p> tags within the <blockquote></blockquote> block. Use <div></div> instead (or naked lines separated by <br>).
You might want to define a ".p" class with the same characteristic as you are using for <p>, so you can state <div class="p"> to gain a pseudo-para. This is sorta implied in the Kindle Formatting Guide in the example in the section on Nested TOC Guideline. Also, be careful if you use 'margin- top/bottom' in the blockquote style, since the mobi/kindle reader will round any fractions up - so 1.2em becomes 2em - which is probably not at all what you wanted. Similarly, the left margin indent is 1em (implemented in the *reader*), unless the 'margin-left' setting is used, in which case the value is used as an increment in em to the pre-defined 1em indent display. For my own purposes, I assumed 16px=1em, and found that the css definition 'blockquote{margin: 8px 0 8px 0;}' (the left margin is ALWAYS in ems) works about as well as I care to get without a lot of extra effort. regards Snowman. Last edited by Snowman; 10-18-2010 at 06:56 PM. |
![]() |
![]() |
![]() |
#22 | ||
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Answer from Amazon
Quote:
Quote:
Snowman, you are a genius. ![]() ![]() ![]() |
||
![]() |
![]() |
![]() |
#23 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
It works fine.
![]() ![]() ![]() ![]() ![]() I went in and changed all the <p> tags inside the block with the <div> tag. Every one displayed as desired. Now I only have to fine tune the spacing. I leave in the in-line toc and loi in the file, mark the sections w/ the desired semantics, edit the OPF as needed and use kindlegen. A beautiful mobi file results. I then save the toc and loi xthml files to the working folder in case I have further need and then delete the toc and loi from the sigil file. Busy but worth the effort. Thanks for all the help. |
![]() |
![]() |
![]() |
#24 | |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Using c:\kindlegen book.epub
This is the response the a query about the generation of a mobi toc from an epub from Sigil
Quote:
|
|
![]() |
![]() |
![]() |
#25 |
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Response from whom?
Errr, crutledge:
Response by whom, please? Or, rather, from whence? Amazon? Thx, Hitch |
![]() |
![]() |
![]() |
#26 |
eBook FANatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 18,301
Karma: 16078357
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preserving format from ePub (Sigil) to Mobi | jeff47 | Calibre | 9 | 10-22-2010 10:17 PM |
Sigil OPF to MOBI Pocket Creator | crutledge | Sigil | 9 | 10-08-2010 01:26 PM |
Sigil ePub to MOBI | crutledge | Calibre | 1 | 10-08-2010 12:04 PM |
Book Creation Tutorials | HarryT | Kindle Books | 76 | 09-21-2010 12:17 PM |