Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2009, 11:52 PM   #211
chorpler
Zealot
chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.
 
Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
Does calibre always add an <mbp:pagebreak/> tag after an horizontal line tag? Both oeb2mobi and ebook-convert seem to add the <mbp:pagebreak/> tag after every <hr> or <hr /> tag in the source file, even when the CSS says:

hr { page-break-after: avoid; }

Is there a way to control this behavior?
chorpler is offline   Reply With Quote
Old 07-07-2009, 10:44 AM   #212
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
sorry if this has been covered elsewhere, but i'm still trying to get to grips with book generation.

book file written manually in xhtml editor (SciTE).
result tested to almost perfection in Mozilla, one bug in ie....But ...
on conversion through Calibre to Mobi output ....

a) I've generated my own TOC (with links) on page 1 - is it possible to disable the auto-generated TOC [ I guess not from what I've read ].
b) horizontal lines separating sections have been grouped at the foot of the book on conversion!
c) copyright symbol converts to S (or similar).


edit : comparing output using Mobi Creator ...
horizontal lines ignored totally.
ignores <pre></pre> tags that calibre accepts.

any thoughts on solutions/where I am in error ?

Last edited by GeoffC; 07-07-2009 at 10:47 AM.
GeoffC is offline   Reply With Quote
Advert
Old 07-07-2009, 12:14 PM   #213
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: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
a) It will be possible to suppress the auto generated TOC in the next beta
b) llasram will have to help you with that
c) How are you specifying the symbol in the source HTML?
kovidgoyal is online now   Reply With Quote
Old 07-07-2009, 04:06 PM   #214
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Quote:
Originally Posted by kovidgoyal View Post
a) It will be possible to suppress the auto generated TOC in the next beta
b) llasram will have to help you with that
c) How are you specifying the symbol in the source HTML?

sorry for the delay in replying -
c) the copyright symbol is one that originated from Coffeecup editor ...
(I transferred to Scite because the coffeecup ouput was complicated and it kept 'putting' its own version over mine ....)
GeoffC is offline   Reply With Quote
Old 07-07-2009, 04:08 PM   #215
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: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
can you locate the symbol in the source html file generated by coffeecup and paste it here (or just post an extract from the file containing the section that has the symbol as a attachment)
kovidgoyal is online now   Reply With Quote
Advert
Old 07-07-2009, 06:00 PM   #216
chorpler
Zealot
chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.
 
Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
Quote:
Originally Posted by GeoffC View Post
sorry for the delay in replying -
c) the copyright symbol is one that originated from Coffeecup editor ...
(I transferred to Scite because the coffeecup ouput was complicated and it kept 'putting' its own version over mine ....)
Try using &copy; instead of the original copyright symbol, in the HTML file. That will generate the proper symbol in Mobipocket.
chorpler is offline   Reply With Quote
Old 07-07-2009, 07:04 PM   #217
chorpler
Zealot
chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.
 
Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
Hmm, neither 0.5.14's oeb2mobi nor 0.6.0b10's ebook-convert seem to properly scale images from source HTML files, with either the deprecated "width" attribute or using CSS, as in:

<img style='width: 200px' ...>

mobigen will respect the "width" attribute, but not the CSS; it seems to just stick the "width" attribute and value in the Mobipocket markup directly. But calibre seems to actually take the width of the image, translate it into "em" units, and put that value in for the "width" attribute in the corresponding <img> tag in the Mobipocket markup.
chorpler is offline   Reply With Quote
Old 07-07-2009, 07:10 PM   #218
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: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert won't scale the images. But it should translate the width or css width to a Mobipocket width attribute. I know it does this for EPUB, perhaps llasram can tell us why it doesn't do this for MOBI?
kovidgoyal is online now   Reply With Quote
Old 07-07-2009, 07:13 PM   #219
chorpler
Zealot
chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.chorpler has a complete set of Star Wars action figures.
 
Posts: 128
Karma: 278
Join Date: Jun 2008
Device: Kindle; PRS-500; MobiPocket on Windows Mobile
Er, yeah, I didn't mean scale as in physically resize, I just meant translate the width settting. I definitely don't want it to rescale the actual image before storing it in the file; that's the main problem with mobigen, that it forces you to rescale big images.
chorpler is offline   Reply With Quote
Old 07-08-2009, 03:44 AM   #220
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Quote:
Originally Posted by chorpler View Post
Try using &copy; instead of the original copyright symbol, in the HTML file. That will generate the proper symbol in Mobipocket.
interesting - I used &copy in the original write in coffeecup and the auto system changed it to the symbol © ; but I'll put that back into the code and see if calibre handles it...
GeoffC is offline   Reply With Quote
Old 07-08-2009, 06:57 AM   #221
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
mmm : &copy is recognised by mobicreator as copyright symbol.
Calibre treats as text....
GeoffC is offline   Reply With Quote
Old 07-08-2009, 09:12 AM   #222
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
It looks as though calibre thinks my toc is a 'front page', if I add a front page during the build process my toc is ignored.

if it would help Kovid, I attach the file I am using .... (changed to a .txt in order to upload).
Attached Files
File Type: txt Poetry.txt (35.1 KB, 213 views)
GeoffC is offline   Reply With Quote
Old 07-08-2009, 11:03 AM   #223
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: 45,376
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The correct form for the entity is &copy; (note the trailing semi-colon)
kovidgoyal is online now   Reply With Quote
Old 07-08-2009, 11:04 AM   #224
GeoffC
Chocolate Grasshopper ...
GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.GeoffC ought to be getting tired of karma fortunes by now.
 
GeoffC's Avatar
 
Posts: 27,599
Karma: 20821184
Join Date: Mar 2008
Location: Scotland
Device: Muse HD , Cybook Gen3 , Pocketbook 302 (Black) , Nexus 10: wife has PW
Quote:
Originally Posted by kovidgoyal View Post
The correct form for the entity is &copy; (note the trailing semi-colon)

ah !

ie and firefox be damned .... !!!


thanks Kovid


edit : Yep - Calibre recognises it .... Thanks .....
looks like I'll have to re-code for the other issues ...

Last edited by GeoffC; 07-08-2009 at 11:10 AM.
GeoffC is offline   Reply With Quote
Old 07-08-2009, 11:50 PM   #225
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
The XHTML/HTML standards specify the trailing semi-colon for all character entities even if certain browsers handle it being missing.
itimpi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:26 AM.


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