04-13-2011, 05:35 AM | #16 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
I think your best approach is to do this:
You should be able to get blockquotes working if you follow the steps I outlined before, they're working for me. A bugfix just went in for scenarios where the 'ignore margins' setting is enabled, but it works fine without ignore margins today. Superscript may be a bug, I don't know how you've defined your css for that, but in general mobi doesn't appear to allow much in the way of formatting superscript. Check this bug for more details: https://bugs.launchpad.net/calibre/+bug/758667 If you've defined it in epub css matching those parameters then a fix will likely be in the next release. The font issue is most likely a bug, but we'll need the details on how you defined it in the CSS. |
04-13-2011, 07:00 AM | #17 | |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
I've just tried a suggestion from another thread, which was to convert the original Word doc to rtf and then convert that to mobi with calibre. Didn't work - the left margin of the blockquotes was far too big and the there was no right indent. And although the end note numbers were not pushed too high they were all [1] and didn't work anyway. So I'll certainly look at your three step suggestion above. But shouldn't there be a fourth step - to pack the file back into mobi format? So far as blockquotes are concerned: I have the text within <p></p> tags. Will the process you've mention remove those tags, or will I have to do it manually? And if I remove the tags how do I separate the text into paragraphs? Some of the quotes in the book go on for a page or two with many paragraphs. No, I don't think the 'superscript' problem is a bug for calibre, apart from not using my CSS. I have this class in the stylesheet: .fn { font-size: 67%; vertical-align: text-top; } /* With thanks to Weatherwax */ and this markup in the XHTML: <span class="fn" id="C1F1"><a href="Endmatter.html#C1N1">[1]</a></span> <p id="C1N1"><a href="Ch01.html#C1F1">[1]</a> Text of endnote</p> C1F1 is the id of the number in the text of the book, and C1N1 is the location of the end note. The user will see a number with a grey background in the text, and when he or she selects that it brings up the endnote. The same number has a grey background in the endnote file, and when it is selected it takes the reader back to the text. I know it's cumbersome, and would be glad to hear of a simpler method. I'm really not fussed about the font, except as another example of calibre using its own rules and not my stylesheet. But as I wrote in another post perhaps I'm asking calibre to do something it wasn't designed for. Regards, Alex |
|
04-13-2011, 07:30 AM | #19 | |||
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Quote:
Quote:
Code:
<body> <h1 id="heading_id_2">Blockquote Test</h1> <blockquote> <div> First level indent </div> <blockquote> <div> Second level indent </div> </blockquote> </blockquote> <p class="sgc-1">Using <p> tags instead:</p> <blockquote> <p class="noindent">First level indent</p> <blockquote> <p class="noindent">Second level indent</p> </blockquote> </blockquote> </body> Quote:
The only reason I'm asking about this is there is definitely conversion code that should handle this, so it appears to be a limitation with the way you've defined sans-serif in your stylesheet vs. what Calibre is expecting. |
|||
04-13-2011, 07:45 AM | #20 |
Wizard
Posts: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
Yes, that is well and good for ePub output but validating "HTML" is not validating "XHTML" and, my major point, not all that usefull in creating a file for the purposes of converting to MOBI. The EPUB validation standards don't apply to HTML code written for conversion to MOBI.
|
04-13-2011, 08:58 AM | #21 | |||
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Quote:
Quote:
|
|||
04-13-2011, 11:39 PM | #22 |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Thanks again for all your help and suggestions.
The author for whom I prepared the ePub version of his text book wants the mobi version to appear much the same as the print version - indents and all. So far as I can tell the only way I could do that is to prepare another version which will work around mobi's limitations. After completing a version based on valid XHTML 1.1 I'm not prepared to do the book all over again based on invalid HTML 3.2. So I'm going to suggest to the author that he sell the pdf version to those students who use Kindles. I have downloaded the Amazon Kindle publishing guide just to have as a reference. Regards, Alex |
04-14-2011, 12:13 AM | #23 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
PDF is a valid route, but remember if you're planning to publish pdf for the Kindle you need to publish to the Kindle's physical pages size, otherwise any attempts to actually read the document would be worse than a poor mobi conversion. You'll probably want one pdf for the regular Kindle and another for the DX.
Several fixes are now going into the next release based on this thread which will improve mobi conversion somewhat, but I think most of your concerns relate to inherent issues with the mobi format itself, and less with Calibre's conversion. |
04-14-2011, 04:27 AM | #24 | |
Wizard
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
|
Quote:
Regards, Alex |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calbre conversion epub to mobi | dragonflies | Conversion | 4 | 01-24-2011 12:17 AM |
epub to mobi conversion hangs | clittle | Calibre | 7 | 12-12-2010 09:32 AM |
epub to mobi conversion problem. | lutwey | Calibre | 0 | 09-18-2010 11:51 AM |
ePub to Mobi Conversion Quality | Logiedan | Calibre | 8 | 08-17-2010 04:02 PM |
Epub to Mobi conversion | MichaelGray | Calibre | 2 | 08-12-2010 01:08 PM |