Quantcast
Channel: MobileRead Forums - Conversion
Viewing all 3900 articles
Browse latest View live

Problems converting EPub to MOBI

$
0
0
I am using a Kindle (so need MOBI format files). I regularly download ePub files from my local public digital library (which uses Overdrive as a delivery platform) and then use Calibre to convert the files into MOBI.

In the past, I've had no problems at using this process, but recently I've had problems with a few books. Some work just fine, but others give an error message indicating an ODF error in the source file, even though the source ePub file is fully readable in Adobe Digital Editions. Have Overdrive changed their file format recently? Are they adding additional protection to stop us from converting? Is there a solution?

I attach the error log.

Can anyone help?

Attached Files
File Type: doc Calibre Library Error Message.doc (36.0 KB)

Help animated images in epub

$
0
0
Hi everybody,

I'll try an explain what kind of help do I need. I use calibre to convert docx files into epubs, so I do it very simple, sometimes my documents had an image (static one), and I never have any problem with that, recently I convert a document that I didn't realize had an image that it was a gif file, the way that I notice it was because in the epub version it was animated, this obviously make me realize that I can put animated images in my documents and have them in the epub format.

My problem is that I didn't did anything different with the one that has the animated image, but when I try to do it on purpose, I couldn't do it, I insert the gif image in the document, change the size, etc, but it simple doesn't even put the image without any animation, it just like it doesn't even exist one.

Can anybody help me understand this, I will really appreciate it, is driving me crazy not to know why.

Thanks in advance
:)

Fixed Ebook Conversion - music book project

$
0
0
Hi all,

I am new here and new to Calibre, so I am just now testing it out. I am working on a music book with images and musical notation in it. And so I need my EBook conversion to be Fixed format to preserve the formatting and look.

I have a complete PDF working draft of my book. Every time I run it through Calibre I really don't like the output. It's pretty skewed - in that the text size(s) are all out of whack and the output did not handle the images and music notation very well at all.

Does Calibre offer an kind of Fixed conversion that would help me? Are there some settings I should be looking at? thanks much -ryan

How to stop Calibre from adding a number to Chapter head

$
0
0
I'm assuming this is a newbie issue but for the life of me I can't figure it out?

Starting with a document in Word 2016 .docx. The chapter heads are tagged with the "Heading 1" style. In Calibre common conversions, I've changed the "h1" to "Heading 1". Heading 1 is formatted with a page break before in Word. The original document has a TOC already created and formatted with links to bookmarks in the document.

Now if I convert the .docx file to ePub everything works fine.

However, if I convert to old MOBI, the page breaks disappear and a number is added to the Chapter heads text, such as "2." This number appears to be the count of Heading 1 styles seen.

If I delete the .docx version from Calibre and convert the ePub version to MOBI, I get the page breaks but the number remains.

Can anyone tell me how to get rid of the number Calibre adds to the Chapter heads tagged as "Heading 1"?

Convert ePub to Landscape PDF with facing pages

$
0
0
Hi there,

I'd like to convert an ePub book to a PDF file, with a landscape page layout with two facing pages (sort of like a book scan). In the conversion options, I don't see anywhere to indicate landscape page layout for PDF. Is this only achievable through CSS or editing the ePub file directly?

Thanks!
Derek

DOCX Identation - Ebook-Convert

$
0
0
According to the documentation for ebook-convert the option
--remove-paragraph-spacing-indent-size=10
should add an identation of 10 em

However this does not work. Neither do the --remove-paragraph-spacing option. The same applies to --insert-blank-line and --insert-blank-line-size

My sourcefile contain p and div tags. And each paragraph should be idented or divided by a blank line.

I have also tried to insert two &nbsp (&#160) at the start of each paragraph via xslt, but these spaces are not shown (no identation appears) in the docx.

However when I replace the &nbsp with ** these characters are displayed in the docx file.

Any suggestions how to solve these problems?

HTML to MOBI via command line: Can't remove left and right page margins

$
0
0
Hello! I'm part of the Archive of Our Own development team, and we'd like to use Calibre's command line interface to offer MOBI downloads of our users' stories. Our users strongly prefer MOBI files with no left or right margins at all, but we're having trouble achieving that. If it's relevant, you can see our planned implementation of Calibre in this pull request. The process amounts to the following:

First, we create an HTML file. Here's a Gist with an example HTML file.

Then we convert that HTML file to MOBI using the following command:

Code:

ebook-convert input_file output_file --input-encoding="utf-8" --use-auto-toc --title="story title" --authors="authors" --comments="story summary" --tags="tag" --pubdate="date" --chapter="//h:body/h:div[@id='chapters']/h:h2[@class='toc-heading'] | //h:body/h:div[@id='chapters']/h:div[@class='meta group']/h:h2[@class='heading'] | //h:body/h:div[@id='preface' or @id='afterword']/h:h2[@class='toc-heading']" --mobi-ignore-margins --remove-paragraph-spacing --extra-css=".meta dt { font-weight: bold; }"
We've tried adding the following CSS to the HTML file's stylesheet without any luck:

Code:

@page, html, body, div, p, blockquote { margin-right: 0; margin-left: 0; }
We tried specifying 0pt as well, since we know Calibre uses pts for margins.

We also tried including the above CSS with the --extra-css option, removing the --mobi-ignore-margins option, and using --margin-left="0" and --margin-right="0".

We even tried completely removing the CSS that's in the HTML file, just in case one of our styles was to blame.

Finally, I used the KindleImport plugin for Sigil to compare a MOBI file that didn't have margins with the MOBI file we were generating using Calibre. The file without margins had margin attributes (leftmargin="0" bottommargin="0" topmargin="0" rightmargin="0") added to the body tag, so I added those to our HTML file's template. Unfortunately, it didn't help, and when I examined the resultant MOBI file using Sigil, the margin attributes had been removed from the body element.

For reference, I've attached a MOBI file without margins (without_margins.mobi), which we produced using our old system, and one with margins that we produced using Calibre (with_margins.mobi). We've tried versions 3.27.1 and 3.28.0 of Calibre, but we just can't seem to make the margins go away.

We'd be very grateful for any help you can provide!

Thanks,
Sarken

Attached Files
File Type: mobi with_margins.mobi (17.5 KB)
File Type: mobi without_margins.mobi (8.1 KB)

How do you add 'More by this author' to the end of the book?

$
0
0
Not sure if I'm in the right area but...

Is it possible to put a 'Customers who bought this book also bought' and 'More by this author' or 'Next in the series' lists into the last page at the end of book like Amazon and Apple do? I think it has something to do with adding a xml file to the book? This post refers to it but unsure whether it is possible to put something like it in books of our own.

I also note when you convert kindle books into epub these features disappear as well...Does conversion delete these features? Can you change something so this feature doesn't disappear?

Inukami :thanks:

EPUB to AZW3 adds inline ToC to end of book?

$
0
0
I have a quite normal EPUB with a ToC in the toc.ncx but no inline ToC in the text of the book. When I convert it to AZW3 it suddenly acquires an inline ToC following the last chapter, which has <body id="calibre_generated_inline_toc"> as if it were generated by Calibre's "Insert Inline ToC" tool.

Does anyone have any idea what might be causing this? I regularly convert EPUBs to AZW3 to read on my Kindle, and I've never seen this happen before...

KFX to KFX to remove DRM

$
0
0
Hey all,

Historically, I've had no issues with converting KFX to AZW3 to strip DRM. My understanding now, however, is that KFX is superior to AZW3, and I should stop converting to an inferior format.

As such, I figured if I convert from KFX to KFX (assuming you must convert a KFX file for it to strip the DRM), that this would resolve the issue of retaining the integrity of the original KFX file, while stripping DRM.

This worked, but when viewing the files, the original source file is 0.90mb and the new KFX file is 0.20mb, which suggests that I'm losing 'something' during the conversion, and my intention is to retain the full integrity/quality of the original file.

So, my questions:

1. Is the only way to strip DRM from KFX to convert it?
2. If so, what can I do to prevent a loss in 'quality' when converting KFX to KFX via the Calibre KFX Input > KFX Output plugins?

Thanks!

AttributeError: 'NoneType' object has no attribute 'data'

$
0
0
I get this error converting a epub file to pdf:

AttributeError: 'NoneType' object has no attribute 'data'

Is there a config option to fix this?

Still no absolute fix for kindle books showing in docs?

$
0
0
Hello!

I have researched this through the years till I'm blue in the face. I still cannot get "some" of my books to show up under books rather than docs on my Kindle Fires using "send to kindle" or sideloading. (My default is "send to kindle" because I want them archived.)

I typically convert EPUBS to MOBI and remove the [PDOC] tab. I leave it blank though I've tried the [EBOK] tag also. It occasionally works but most of the time the show in docs. I still can't find any recent info on instructions that works all the time.

Is there any new details on this or am I just missing something?

Thanks so much for any insight!
Nancy

Calibre3.29 6bit
Windows 7 Pro
New Kindle 10

Output Profile Options

$
0
0
Regarding the Page Setup section for conversion to ePub, I see there are still only two options for iPads: iPad & iPad3. The recent iPad & iPad Mini 4 use the 2048 x 1536 resolution of the iPad 3, but the iPad Pro models have different resolutions: 2224 x 1668 for the 10.5" and 2732 x 2048 for the 12.9". How will images look on them using the 2048 x 1536 iPad 3 setting? Will Calibre be updated to add the two larger resolution settings?

[DOCX ->EPUB] em-dash converts to triple minus

$
0
0
Windows 10 1703, Calibre 64 bit 3.29

em-dashes '' are being converted to triple minus hyphen '---'

Don't think I changed any settings

Sample attached

Can anyone confirm?

BR

Attached Files
File Type: zip test (571).zip (181.6 KB)

Hello with Conversion Problem

$
0
0
very happy using Calibre as my editor - but a novice who doesn't use any of the coding features. Anhow:

converting .epub (default input page setup) to .epub (iPad output page setup) does a great job rescaling images (there are lots in this 40MB book) but the CSS parse routine seems to ignore and remove many rules that are used to vary the text indent. e.g.

.ltr8indent {
border-bottom: 0;
border-bottom-color: currentColor;
border-bottom-style: none;
border-bottom-width: 0;
border-top: 0;
border-top-color: currentColor;
border-top-style: none;
border-top-width: 0;
display: block;
font-family: serif;
font-size: 1em;
font-style: italic;
font-weight: normal;
line-height: 1.2;
margin-bottom: 0;
margin-left: 24px;
margin-right: 0;
margin-top: 0;
orphans: 2;
padding-bottom: 0;
padding-top: 0;
text-align: justify;
text-indent: 1.5em;
widows: 2
}

has a value text-indent: 8em; in the original - and there are other rules .ltr5indent, .ltr10indent, etc. that were just dropped and replaced with the above after CSS parsing. I wanted to provide "custom" .epub versions based on the device but it's frustrating to think I have to edit every conversion to restore the CSS rules and their effect.

The conversion log shows no errors.

Didn't attempt to attach the two files - original is 40MB - the iPad output file is 10MB :).

Any suggestions appreciated. Thx although you may regret allowing me to join :)

Conversion Newb: Tips for Docx to Mobin conversion?

$
0
0
While I have a dozen books in some state of work done, I finally managed to finish one, a short book on my experiences in a common medical situation. My writing platform kicked the file out to a DOCX file and I found that I had to do some after-the-fact editing since the export seemed to eliminate all Ctrl-Enter page breaks. I cleaned them up and then dragged the DOCX file into Calibre and went for the conversion. (I am using the most current version). The result was not pleasing in the viewer built into Calibre. I had done the whole thing in a single font (Tahoma) knowing that the Kindle would convert to whatever it wanted anyway. But my sizing was off. Some text was unmanageably big. The italics was almost indistinguishable. I knew enough to skip the bold attribute. And I didn't use much, if any, under-lining. The few small graphics were big enough to appear drawn in Windows Paint circa 1995. It just was an epic fail.

I THEN went back to the DOCX and exported that to HTML. The Calibre process was better with the HTML code, but still off in a few places. One was a left-hand margin that was indented. The second was a white-washed background to some of the text that I copied in from the Canadian ISBN site, despite my using Clipboard Stripper to remove those sort of artifacts. (it was text, not a graphic).

So, I come here and humbly ask for your best tips on moving from DOCX source or HTML source into Mobi format. Thanks in advance. GM

"Use author sort for author" not working

$
0
0
So I'm having some trouble getting EPUB files to convert properly to MOBI - specifically, when I sideload the converted MOBI files to my Kindle (7th gen) and try to sort by author, they get sorted by the author's first name instead of their last. The "Use author sort for author" option doesn't seem to be working, which is weird because it's always worked for me before, and I don't remember changing any settings that would interfere with that. (I heard that changing both the author and author sort fields are lastname, firstname solves the problem, but I have a lot of a books and I really don't want to have to do that.) If anyone has any suggestions, I'd really appreciate it!

KFX multiple author problem

$
0
0
Hello everyone. I have been converting my books to KFX, as the text seems to format better on my kindle oasis (drop caps in particular). However, if the book has multiple authors, the book on the kindle only displays one name in the description. Using MOBI and AZW3, multiple author names show correctly, but the book text isn't formatted as good as KFX.

I polish before sending to device (to embed the correct metadata in the KFX file) but it doesn't make a difference. Is there a way to get the kindle to show both author's names?

ePub to... ? Best format for Kindle PaperWhite

$
0
0
Hi,

I just switched from Kobo to Kindle. (I'll be receiving my PaperWhite in a few days.)

My Calibre library is all in ePub.

Which format should I convert me ebooks to : mobi, azw3, kfx ? :blink:

I knew about the mobi and azw3 format, but not kfx. Which is the best?

I've seen here a plugin kfx output. I installed the KFX Previewer 3. Tried it. Converted one ePub. It resulted in a file 3 times the size... Is it worth it?

I use to have a Kindle, but that was 4 years ago. I need to get back into it!

Thanks.

Kindle KBC rendered file is too big!

$
0
0
Hi,

I am using Kindles Kids Book Creator to create fixed layout kids books and the files that this software is generating is WAY too big (58 mbs)

Is there any method that i can use in order to reduce the file size? I've already shrunk the image size but that doesn't seem to be working.

I've heard mention of using Kindle Strip in order to strip the mobi and clean up the code. Is this the only method?

Any insight would be great!

Thank you! :)
Viewing all 3900 articles
Browse latest View live