![]() |
#196 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre 0.5 does not have support for MOBI indexing (that's what is responsible for the waypoints and joystick based navigation on the Kindle). calibre 0.6 however does, thanks to some nifty reverse engineering by Gregory Riker.
As for support for special mobipocket markup, it should be possible to add support for it to calibre, however, it's not really a priority for me, since most calibre users will never use it. Still if someone wants to take it on, I am always happy to accept patches. ![]() |
![]() |
![]() |
![]() |
#197 |
Provocateur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
But it's still not turned on in 0.6b6, right?
|
![]() |
![]() |
Advert | |
|
![]() |
#198 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
![]() |
#199 |
Provocateur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,859
Karma: 505847
Join Date: Feb 2009
Location: Columbus, OH
Device: Kindle Touch, Kindle 2, Kindle DX, iPhone 3GS
|
|
![]() |
![]() |
![]() |
#200 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 206
Karma: 547516
Join Date: Mar 2008
Location: Berlin, Germany
Device: KObo Clara, Kobo Aura, PRS-T1, PB602, CyBook Gen3
|
problem with <strike>
I have tried to convert html to mobi with the any2mobi tool using a intermediated opf-file. On most parts the conversion works very well. But in one of my sources there is a text part that has a line through it. That is converted to normal text.
The original uses the <strike> tag, but I did tried <span style="text-decoration: line-through">, too. Both are lost when using any2mobi and both are retained by mobigen. Code:
<p>strike through:<br /> <strike>This is a sentence with a strike through.</strike><br /> <span style="text-decoration: line-through">This is a sentence with a strike through.</span><br /> </p> html any2mobi: Code:
<p align="justify" height="1em" width="0pt">strike through:<br /> This is a sentence with a strike through.<br /> This is a sentence with a strike through.<br /> Code:
<p>strike through:<br /> <strike>This is a sentence with a strike through.</strike><br /> <span><strike>This is a sentence with a strike through.</strike></span><br /> Am I doing something wrong? Is there a way to conserve strike through text with any2mobi? |
![]() |
![]() |
Advert | |
|
![]() |
#201 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
|
Is this format information documented anywhere? In the Wiki?
|
![]() |
![]() |
![]() |
#202 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@Sunlite: Open a ticket for strike through support, IIRC, calibre's MOBI output doesn't implement it
@tompe: In the source code, but, GRiker who did the reverse engineering plans to release some documentation of it of soon |
![]() |
![]() |
![]() |
#203 | |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
|
|
![]() |
![]() |
![]() |
#204 |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Is this something that will allow ebook-convert's Mobipocket output to create navigation entries? The ones you use by adding <reference> tags under the <guide> section of the .opf file? Most of my custom Mobipocket books include things like Table of Contents, Copyright Page, Dedication, Notes, etc. When I create the book with mobigen, these entries show up in the Contents menu (in the desktop Reader app) or in the Navigation menu (in the Windows Mobile app). But when I create them with ebook-convert, which is of course the only way to get larger images to store properly in the books, only the Table of Contents shows up. I've tried searching to see if I'm missing something, but I haven't been able to find out.
Last edited by chorpler; 07-04-2009 at 11:44 AM. Reason: Specified <reference> tags |
![]() |
![]() |
![]() |
#205 | |
Member
![]() Posts: 15
Karma: 10
Join Date: Oct 2008
Device: Kindle
|
Quote:
Another issue is that calibre does not support the <mbp ![]() calibre also requires that any attached NCX file be added to the end of the document, even when there is a TOC in the HTML, and that NCX-generated TOC takes the focus of the TOC guide element. I have also noticed some differences in how calibre interprets and displays some basic formatting, like line heights and heading font sizes. I have attached a sample book with these issues all shown. Source files are included, as well as a mobi file created by calibre and a prc created by Mobipocket Creator. - Joshua |
|
![]() |
![]() |
![]() |
#206 | ||||
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Quote:
Quote:
Quote:
Quote:
Headers will definitely be a little different though -- instead of passing through <hn> tags, calibre just groks the (possibly default) CSS and produces pure-formatting output as-similar-as-possible to the supplied styling. -Marshall |
||||
![]() |
![]() |
![]() |
#207 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
Create an OPF file, add //guide/reference tags, and convert the OPF file instead of the source HTML directly? That is supposed to work, although I don't have the code open in front of me ATM.
|
![]() |
![]() |
![]() |
#208 | |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Quote:
Code:
<guide> <reference type="title-page" title="Title Page" href="generic_file.xhtml" /> <reference type="toc" title="Table of Contents" href="generic_file.xhtml#toc" /> <reference type="copyright-page" title="Copyright Page" href="generic_file.xhtml#copyright" /> </guide> Code:
<reference title="Title Page" type="title-page" filepos=0000000681 /><reference title="Table of Contents" type="toc" filepos=0000002434 /><reference title="Copyright Page" type="copyright-page" filepos=0000001140 /> Edited: Hmm, I've actually been misinterpreting it. I just noticed that the //head/guide/reference entry that ebook-convert creates is to the automatically generated Table of Contents link at the end of the file, rather than to the existing Table of Contents link in the OPF file. So it's really completely ignoring the //guide/reference tags in the source OPF. Edited again:: I just noticed that calibre 0.5.14's oeb2mobi command does, in fact, translate the //guide/reference tags properly. So the problem must be with ebook-convert not realizing it should read and use those tags instead of generating its own Table of Contents. Or maybe there's a way to disable Table of Contents generation that I haven't figured out? I tried using the --chapter=/ option to disable chapter detection, but that didn't work. Last edited by chorpler; 07-06-2009 at 11:57 AM. Reason: Added final paragraph |
|
![]() |
![]() |
![]() |
#209 |
Reticulator of Tharn
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
As you noticed, that support has accidentally gone away ATM in 0.6 due to some internal changes. I'll see if I can make the changes necessary to get it working again.
|
![]() |
![]() |
![]() |
#210 | |
Zealot
![]() ![]() ![]() Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
|
Quote:
But thanks, you'll probably do a much better job of it than I could, since as I understand it you wrote the Mobipocket output in the first place, right? ![]() |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
main menu, section menu, css for calibre mobipocket output | naisren | Calibre | 2 | 08-23-2010 11:42 PM |
Trying to get consistent look to all output | daveps | Calibre | 0 | 03-08-2010 02:18 PM |
Anyone Have mobipocket desktop? Mobipocket server is down. | Ireadfreely | Kindle Formats | 3 | 10-27-2008 10:29 AM |
convert from 'new' mobipocket to 'old' mobipocket? | Indigo Ink | Kindle Formats | 11 | 06-22-2008 01:43 AM |
Mobipocket Reader 4.8 and Mobipocket eNews Creator | Mobipocket | Reading and Management | 1 | 01-29-2004 08:03 AM |