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 03-31-2009, 02:23 PM   #181
jimad
Connoisseur
jimad is on a distinguished road
 
Posts: 53
Karma: 52
Join Date: Apr 2008
Device: Kindle
Parameters to --encoding ?

Are the parameters to the --encoding option on any2mobi documented anywhere? -- I haven't found it yet.

I am having a fair amount of problems with the autoguess encoding feature of any2mobi, which I would like to be able to override.
jimad is offline   Reply With Quote
Old 03-31-2009, 02:34 PM   #182
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by jimad View Post
Are the parameters to the --encoding option on any2mobi documented anywhere? -- I haven't found it yet.
The documentation for any2lrf has a bit more information:
Quote:
--encoding

Specify the character encoding of the source file. If the output LRF file contains strange characters, try changing this option. A common encoding for files from windows computers is cp-1252. Another common choice is utf-8. The default is to try and guess the encoding.
wallcraft is offline   Reply With Quote
Advert
Old 05-02-2009, 09:43 AM   #183
BarnOwl
Enthusiast
BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!BarnOwl is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
BarnOwl's Avatar
 
Posts: 26
Karma: 50106
Join Date: Feb 2008
Location: Netherlands
Device: Kindle III, Kobo Glo, Kobo Libra H2O, TCL NxtPaper 11
I have a 9 mb PDF file with paragraph spacing in the original file. If I convert it to Mobi the paragraph spacing is gone.
This also happens if I convert the pdf (with Acrobat) to rtf/doc whatever and then convert it in Calibre. Somehow Calibre removes the spacing.

Surely I am missing something, a parser with settings in a conversion option menu would be great.
BarnOwl is offline   Reply With Quote
Old 05-05-2009, 12:06 AM   #184
tlc
Zealot
tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!tlc is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 142
Karma: 50288
Join Date: Feb 2009
Device: KK 3G, iPad
Quote:
Originally Posted by kovidgoyal View Post
calibre assumes all txt files are written using markdown syntax
Is there (or could you create) a list of specific syntax details like this somewhere? The Calibre FAQ says it supports TXT and HTML, when it supports subsets of these. I understand why, but it would be very useful to know the subsets.

For example, some time ago when a pdf-to-mobi conversion didn't do well, I looked into the pdf-to-html conversion and saw a bunch of absolute positioning
Quote:
<div style="position:absolute;top:523;left:91">
and no paragraph elements. I would guess that the html-to-mobi (or html-to-*) needs paragraph elements to generate paragraphs.

Specifically, what html elements are useful to the html-to-* converters? Ideally, should the absolute positioning I saw be "fixed" in pdf-to-html or html-to-*?

Thanks,
tlc
tlc is offline   Reply With Quote
Old 05-05-2009, 12:13 AM   #185
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As a general rule, for best results you should generate semantic markup. Use <p> for paragraphs, <h1-6> for headings class="chapter" for chapters and so on.
kovidgoyal is online now   Reply With Quote
Advert
Old 05-08-2009, 07:57 AM   #186
Lee Crocker
Free Software Developer
Lee Crocker began at the beginning.
 
Lee Crocker's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2009
Location: Sacramento, CA
Device: Kindle 2
Is there a way to manually get an "mbpagebreak" tag into the result file from HTML? Putting the Mobipocket-specific code in the source doesn't work, as you specify (input is treated as standard)--but there's no standard equivalent in HTML. This is a real deal-breaker for me--I have to be able to specify my own pagebreaks. Perhaps you could interpret some "magical" CSS like a "pagebefore" class? Or maybe a flag to pass through Mobi tags unmolested?
Lee Crocker is offline   Reply With Quote
Old 05-08-2009, 08:48 AM   #187
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,010
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
No need to invent a pseudo-CSS property for this, there's already a real one:

page-break-before: always

Quote:
Originally Posted by Lee Crocker View Post
Is there a way to manually get an "mbpagebreak" tag into the result file from HTML? Putting the Mobipocket-specific code in the source doesn't work, as you specify (input is treated as standard)--but there's no standard equivalent in HTML. This is a real deal-breaker for me--I have to be able to specify my own pagebreaks. Perhaps you could interpret some "magical" CSS like a "pagebefore" class? Or maybe a flag to pass through Mobi tags unmolested?
pdurrant is offline   Reply With Quote
Old 05-08-2009, 09:34 AM   #188
Lee Crocker
Free Software Developer
Lee Crocker began at the beginning.
 
Lee Crocker's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2009
Location: Sacramento, CA
Device: Kindle 2
(About CSS page-break-before:always)

Yes, but that would require Calibre to parse and interpret all of the CSS associated with the input HTML, a much more difficult task than just using a tag class.

I can get the pagebreaks I need by using the --chapter-mark tag, and then using my own .ncx file for the TOC (which I have to do anyway). Now if I can figure out how to attach a second ncx file for a list of illustrations...
Lee Crocker is offline   Reply With Quote
Old 05-08-2009, 12:54 PM   #189
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by Lee Crocker View Post
(About CSS page-break-before:always)

Yes, but that would require Calibre to parse and interpret all of the CSS associated with the input HTML, a much more difficult task than just using a tag class.

I can get the pagebreaks I need by using the --chapter-mark tag, and then using my own .ncx file for the TOC (which I have to do anyway). Now if I can figure out how to attach a second ncx file for a list of illustrations...
calibre does parse all CSS. And using page-break-before:always will work. Int he 0.6 release of aclibre you will also be able to specify an XPath expression to insert page breaks.
kovidgoyal is online now   Reply With Quote
Old 05-08-2009, 08:00 PM   #190
Lee Crocker
Free Software Developer
Lee Crocker began at the beginning.
 
Lee Crocker's Avatar
 
Posts: 5
Karma: 10
Join Date: May 2009
Location: Sacramento, CA
Device: Kindle 2
Cool. What about multiple NCXs?
Lee Crocker is offline   Reply With Quote
Old 05-08-2009, 08:09 PM   #191
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
What's the point of multiple NCXs? Just create one NCX with multiple sections
kovidgoyal is online now   Reply With Quote
Old 06-16-2009, 03:26 PM   #192
kindleformatting
Member
kindleformatting began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2008
Device: Kindle
Mobipocket Creator alternative

Kovid, et al.,

With the release of the Kindle DX, the problems with Creator's default image re-sizing/scaling has become more apparent.

http://kindleformatting.com/blog/200...image-test.php

I would love to have the ability to create a Mobi file from my Mobipocket-specific source using a third-party app. Any2mobi converts to an ePub first and removes my Mobi-specific HTML, and also ignores the NCX file. That happens even if I run any2mobi on an OPF created in Creator.

Thoughts on a solution?

- Joshua
kindleformatting is offline   Reply With Quote
Old 06-17-2009, 12:22 AM   #193
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre does not ignore NCX files, if they are pointed to in the OPF. As for mobi specific formatting, what formatting exactly do you have in mind that you can't acheive with normal HTML?
kovidgoyal is online now   Reply With Quote
Old 06-17-2009, 05:27 AM   #194
kindleformatting
Member
kindleformatting began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2008
Device: Kindle
Kovid, thanks for the reply back. I was unable to make the NCX file catch when I was testing any2mobi. I tried running it on the opf I had made in Creator and on the HTML file. I am trying to get the location bar on the K2 to have waypoints the same way it does in a PRC made with Creator

As I outline in my Kindle Formatting book, there is a lot of HTML formatting that is not valid in Mobi/Kindle, and some specific Kindle formatting that is not necessarily valid HTML. An example of this problem is the lack of support for outlines made from list tags. Mobi does not support the list-style-type CSS or the related HTML attribute, so there is no way to make an outline like that. I use a selection of special markup to make outlines look good. So, I could make an ePub first, but, as with Mobigen, the formatting does not necessarily translate to Mobi perfectly. I really want the best of both worlds: Mobipocket Creator's ability to take my HTML and make a Mobi directly, and any3mobi's ability to gracefully handle large image files.

The best way for you to see the types of formatting peculiarities I am talking about is for you to read my book. I'd be happy to send you a copy if you like. Just tell me if you want it in print, PDF, ePub, or Mobi (print, PDF, and ePub are best).

I appreciate your assistance.

- Joshua
kindleformatting is offline   Reply With Quote
Old 06-17-2009, 06:20 AM   #195
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by kindleformatting View Post
As I outline in my Kindle Formatting book, there is a lot of HTML formatting that is not valid in Mobi/Kindle, and some specific Kindle formatting that is not necessarily valid HTML. An example of this problem is the lack of support for outlines made from list tags. Mobi does not support the list-style-type CSS or the related HTML attribute, so there is no way to make an outline like that. I use a selection of special markup to make outlines look good. So, I could make an ePub first, but, as with Mobigen, the formatting does not necessarily translate to Mobi perfectly. I really want the best of both worlds: Mobipocket Creator's ability to take my HTML and make a Mobi directly, and any3mobi's ability to gracefully handle large image files.
html2mobi or opf2mobi in MobiPerl will probably handle this. They do not change MobiPocket specific markup and they allow the images not to be rescaled or resized.
tompe 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 06:45 AM.


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