Quantcast
Channel: MobileRead Forums - Kindle Formats
Viewing all 861 articles
Browse latest View live

Image links without underline

$
0
0
Does anyone know how to get rid of a blue link line under clickable images on kindle?

Here's my code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="../Styles/RichmondStyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
<h1>ABOUT THE AUTHOR</h1>

<p>&nbsp;</p>


<p>&nbsp;</p>

<p>&nbsp;</p>

<p class="RPCentredNoIndents"><img alt="Logo" src="../Images/Amazon-small-quality.com.jpg" />&nbsp; &nbsp;<img alt="Logo" src="../Images/Amazon-small-quality.co.uk.jpg" /></p>

<p class="RPCentredNoIndents">Thank you for reading this story. If you enjoyed it, please share your thoughts.</p>

<p class="RPCentredNoIndents">&nbsp;</p>

<p class="RPCentredNoIndents"><a href="http://www.amazon.com/Your-Title-ebook/product-reviews/B00ABCDEFG/%E2%80%9D"><img alt="Logo" src="../Images/Amazon-small-quality.com.jpg" /></a> &nbsp; &nbsp; <a href="http://www.amazon.co.uk/Your-Title-ebook/product-reviews/B00ABCDEFG/%E2%80%9D"><img alt="Logo" src="../Images/Amazon-small-quality.co.uk.jpg" /></a></p>
</body>
</html>

Mobigen Sans-serif generic family in mobigen generated .mobi files

$
0
0
Hi everyone.

I am working on a book that needs to have some of its sections displayed in sans-serif font.

I have set the following rule for these kind of sections; nice and generic.
{font-family: sans-serif;}
The epub version of the book works as intended.

When I preview the file in the Kindle Previewer, however, everything is in serif font (except for some other parts of the book, that needed to be in monospace({font-family: monospace;}) , which are, curiously, displaying correctly)

What is the deal with kindlegen generated .mobi files and the sans-serif font family?
Do they simply not work or is there some trick to make the kindlegen not disregard the CSS rule when it compiles the book from .epub?

.mobi files in question are generated using the up-to-date Kindle Previewer's built in kindlegen functionality.

Thanks

Internal Linking in a MOBI file (Coding Help Needed)

$
0
0
I am a software developer and have added a MOBI export feature to one of my applications. This has worked well so far, but I'm wanting to add an index at the beginning so the document will be easier to navigate.

I am doing all of the coding myself, and am not relying on external tools like Kindlegen, Mobicreator, or Calibre. So I am hoping someone here has low level knowledge of the MOBI file format.

I am attaching a sample file (recipes.mobi) that I have exported from my application. The index shows up, but the links don't do anything when you click them?

I am also attaching the source (recipes.htm) document. This uses simple HTML linking such as
Code:

<a href="#recipe1">Recipe 1</a>
in the index and
Code:

<a id="recipe1" />
at the start of each section.

The links work fine in the HTM source (in a web browser).

If I use KindleGen to encode the Recipes.htm source, the links do work correctly. But if I use Unkindle in Calibre to unpack the MOBI file, the HTM doesn't look much different than my original source. I'm clearly missing something in the MOBI encoding.

Any ideas what I need to do to get the internal links to work?

Thanks,

Anthony Watson

Attached Files
File Type: mobi recipes.mobi (8.6 KB)
File Type: zip recipes.zip (2.5 KB)

Media Queries

$
0
0
I've decided to tackle a simple media query for a book I'm working on but I can't seem to get it to work. What I want to accomplish is this: I have discovered that if I put a logo into a frame then Kindle will recognize em values, and I can make the publisher logo scale with the text. However, this does not work on older Kindle devices or on the Kindle for iOS apps, at least not if Kindle Previewer is to be believed.

Thus, I want to embed one logo for KF8 and one for Kindle and iOS devices.

I added to my CSS:

Code:

.default
    {display:block;}
  .mobi
    {display:none;}
  @media amzn-mobi
    {.default
    {display:none;}
    .mobi
    {display:block;}
  }

In my document I put in this:

Code:

<div class="Frame" style="text-align:center" media="default"><img alt="logo" class="imageEM" src="../Images/logo.jpg" /></div>

<p class="Publisher" media="amzn-mobi"><img alt="logo" src="../Images/logo1.jpg" /></p>

Problem is, when I check in Previewer, both logos appear onscreen. So clearly I am not doing this correctly. Please advise and correct.

Much appreciated.

How to set expiry date to my mobi file

$
0
0
Hi Eveyone,

I am converting epub to mobi file by using kindlegen commandline tool. But i Need to set expiry date for my mobi file. So that after expiry date it will not work in kindle device. Please help.

Whether mobi file will support asp with vbscript in kindle

$
0
0
Hi everyone,

Whether mobi file will support asp with vbscript in kindle. i have to show message box and kindle datetime is that possible with asp with vbscript or any other script. Please help.

Convert set of HTML pages to Mobi

$
0
0
So I have a set of HTML files that I've created that have a structure that looks like this:

Root Folder
-index.html (with questions)
-\Answers
--1.html
--2.html
--3.html
--etc.

In the index.html file there are about 150 questions that all link to the respective html file in the Answers folder, and the html file there links back to a spot on the index.html page (ex. <a href="../index.html#1">).

Is there a way to make that work in a .mobi file? I've tried zipping up the file and importing that into Calibre, but it would only show the original index.html file and won't link to the others.

Any suggestions I can do to make this work?

How to give interactivity in mobi file

$
0
0
HI everyone,

How to give interactivity in mobi file. I am not able to embed javascript in mobi file as it is removed when converted to mobi file. Is there any other way to convert to mobi file.

Regards,
Devaraj

ebook crashes Kindle half way through, how to debug?

$
0
0
Hi,

I have developed a small application that packages recent updates of websites into a periodical, similar to what instapaper does.

The periodical renders fine on the Kindle Previewer application and works on a Kindle Paperwhite 3G, except that somewhere in the middle of the ebook the Kindle freezes when turning the page. Looking through the source code and the documentation, I don't see anything suspiciously wrong at that particular page. (Source code and mobi of a 10 page periodical is attached)

I have switched on the debug mode on the Kindle and looked through the logs, but can't find any further details on where the problem is: the Kindle boots normally, the last things dumbed is "140101:202356 winmgr[1246]: D lua:dbg::flashing rect 0, 0 :: 758 x 1024 -- 12".

What is a better way to debug this? Thank you very much in advance for any hints

Attached Files
File Type: zip example.zip (557.4 KB)

Kindle Previewer questions

$
0
0
I would think I know this answer but need to check with you guys.
If I open a .mobi file in the Kindle previewer and the mobi opens fine I would assume the book will validate?


??
H.I.

Inline footnotes - solved?

$
0
0
Stumbled across this on a book I updated to epub... and finally got it sorted today.

using sigil to edit the epub, and KindlePreview to convert to .mobi

The trick seems to be:
1. have a file called "footnotes.xhtml" (but I don't know if you can get away with just .htm or .html and I can't be bothered testing... and I'm not even sure if the name "footnotes" is vital :o )
2. have a link in your text (duh)

and finally, the key to getting it displayed nicely...
3. start each footnote with a link, with something in the link!*

So-ooo... here's how I like to do it...

Code:

chapter01.xhtml...
<p>It was a dark and stormy night<a href="../Text/footnotes.xhtml#fn01" id="ft01**">[1]</a> but that was just the beginning<a href="../Text_footnotes.xhtml#fn02" id="ft02">[2]</a>.</p>

and then

footnotes.xhtml...
<p><a href="../Text/chapter01.xhtml#ft01">^</a> It's always a dark and stormy night.</p>
<p><a href="../Text/chapter01.xhtml#ft02">^</a> Actually, it's the end.</p>

You'll get everything in the pop-up from each <a... to the next <a. e.g.
Code:

^ It's always a dark and stormy night.
I use the carat (^) for style :D but you should have something to click, in the event the device doesn't support pop-ups and as I said you gotta have something in the link.

* If you DON'T put a character in the link in the footnotes page e.g. <a href="BLAH"></a> you will NOT get a pop-up but WILL got straight to the footnotes page link... could be useful if you want to skip the pop-up...
** Seems like you can put the "id" in either the anchor tag <p> or the <a>...

I like to use ordered lists for the footnotes, so you get nice numbering and layout and yet, the pop-up is clean. Shame about needing a character in the link though... especially if you like to add "Click here to return to text" or something, cos that'll look sucky.

Well, FWIW - I hope it helps someone!

Encoding: UTF-8 ot Latin1?

$
0
0
I've always used UTF-8. That is what the standard is, that is what passes the validators.

However, I was troubleshooting an issue the other day and came across this page from Amazon that says:
Quote:

...make sure to save it as ANSI or ASCII, avoiding 'UTF-8' or 'Unicode' as the encoding type.
Quote:

Amazon Kindle Direct Publishing supports text in the 'Latin-1' (ISO-8859-1) format and all characters in that character set.
Quote:

Please be sure to check that all the text you enter in the product info is therefore compliant with the Latin-1 character set.
So, now I am confused about what to encode Kindle products with.

Someone at KDP community suggested UTF-8 is the desired encoding, and that this Amazon page was either entirely inaccurate, or at least poorly worded.

Thoughts?

Is it feasible to build dictionary with opf2mobi/html2mobi?

$
0
0
I'm trying to build a mobi dictionary using mobiperl (with a view to building big dictionaries that crash mobigen).
Unfortunately, Kindle doesn't recognize my dictionaries as dictionaries, no index is available. Mobigen builds my test dictionary (just two entries) without problems so I used MobiMetaEdotor to copy all relevant EXTH records to mobiperl created mobi, but to no avail.
Tried to explode two dictionaries with KindleUnpack and to compare resulting html files but didn't notice considerable differences.
Please take a look at attached files and advise if building dictionaries with mobiperl makes sense.

Attached Files
File Type: zip Test Dictionary.zip (5.8 KB)

Cover discrepancy on ePUb and Kindle

$
0
0
Hi everyone,

I'm making a one source converter from Bluefish authored multichapter well formed Xhtml to ePub, and I want the ePub to be convertable to Kindle specifications via kindlegen. But there's a problem. Here's the Kindle authoring specification: https://kindlegen.s3.amazonaws.com/A...Guidelines.pdf.

Section 3.2 specifies three methods to incorporate a cover, but two of the ways result in a no-cover ePub, at least as viewed by the ebook-viewer software that comes with Calibre.

The only method in section 3.2 that comes close to working in both Kindle and ePub was described in an exception in 3.2.3, where you put the cover image in an Xhtml file, include that file in the metadata, manifest, spine and guide of the OPF file. This gives the cover in both formats, but if you do it according to Kindle specs, the ePub's cover appears at the end of the book, not the beginning. If you break Kindle's rules and in the Spine say linear="yes", it also appears in the front of the ePub, and appears to have no bad effects on the Kindle Mobi (made by converting the ePub via kindlegen).

I could kludge up something that writes an ePub, then changes linear="yes" to "no", and writes another ePub exclusively for kindle generation. But before I do that, I figured I'd ask you guys if you have a better solution.

Would it be a bad idea for me to cross post this question to the Kindle Formats forum?

Thanks,

SteveT

Creating a mobi from an epub

$
0
0
Up to now I've been creating a nice clean epub and then using kindlegen to create a mobi file. The only reason I've been doing this is to check that it comes out okay in the Kindle Previewer. My assumption has been that my distributor (or Amazon) will be using a similar conversion tool when they get my epub, so it seemed like a good thing to check. The result, in Kindle Previewer, has always looked very good, so I didn't worry any more about it.

But now I'm thinking of rearranging my distribution options and may want to produce a mobi file that readers will actually use, so I've been looking at mobi files in more detail.

One thing that I've noticed is that kindlegen creates a file around three times larger than the epub. I recently read in the MR Wiki that this is because the mobi file actually does contain three copies of the book. This may be fine for sending to Amazon, who will send whichever bit of the file is appropriate for the device at the other end, but if I want a mobi to put on Smashwords (for example) then do I really need a three-in-one file? (And there's a note in the Calibre conversion that suggests some devices might have trouble with such files.)


I've tried following instructions on the wiki to use Mobipocket Creator v4.2 (I get the impression it's now long out of date) to create a PRC file - and it produces a file slightly smaller than my original epub. Great, but along the way it seems to be getting unicode characters corrupted and distorting some of the styles.

I've tried using Calibre to do the conversion (I've read both recommendations and denigrations of this option). It also produces a smaller file (if you don't ask it to install "both" formats), but it distorts the layout of the front matter (something that kindlegen never did).


So who should I believe? Since kindlegen gives me a good, albeit very big, result, should I be happy with that? Or should I keep playing with my epub in the hope of producing some variation that Calibre (for example) can convert consistently? Do Kindle users downloading from sources like Smashwords care if the mobi file is three times larger than the epub?

These are all questions I don't know how to answer, and I'm sort of hoping the good folks here may be able to offer some suggestions.

Do Kindle covers stretch to fit?

$
0
0
Hi everyone :-)

I wanted to ask what happens if a Kindle loads an ebook with a small image cover (i.e. 800 x 600)? Does the image get stretched to fit?

I know the Kindle Fire has a high res screen that WAY exceeds 800x600. So does that mean that 800x600 pixel covers look teeny tiny on a Kindle Fire?

For reference sake, I use KindleGen to generate these books. The reason why I'm asking these questions is because I have a ton of books in the 800x600 size and I don't know how pressing it is for me to re-do them all in a high res size.

If the images scale to 100% on Kindle devices (Kindle DX, Kindle Fire, Kindle Paperwhite), then I might not be bothered to upscale them all just yet.

Any help would be great, for I do not have Kindles.

Stodder

MOBI TOC works on Kindle, Adobe Digital Editions, Calibre but NOT on iPhone Kindle

$
0
0
Would really appreciate some help with this.

I'm producing a massive .mobi for a friend of mine and it's doing my head in.

We're already distributing a PDF and EPUB built in Indesign and exported from there. I edited the EPUB by hand and we're all happy with the result, it validates and works perfectly (some formatting I'd like to clean up but frankly I've moved on).

This EPUB is huge and has a functioning TOC that incorporates at least 40 to 50 items.

I've tried converting this EPUB using a variety of methods to get the best result, including by Kindle Preview / Kindlegen, uploading the EPUB to Amazon KDP and allowing it to process the file which I downloaded and checked, and by converting the EPUB via Calibre.

However, now matter what version I check out I get the same problem. The MOBI has a functioning smart TOC on Kindle devices, in Adobe Digital Editions, and in Calibre BUT when I use the iPhone to checkout the MOBI there's no TOC. I'd be happy to gloss over this fact except that the book is HUGE and broken into quite necessary sections. Without a working TOC, I'm screwed.

Does anybody have any suggestions? I'm at a loss.

In the MOBI7 file there is a well structured .ncx but this isn't linked in the .opf under guide and I'm wondering if that might be an issue. If this is, what code do I need to place to link the two files together and then what can I use to compress the MOBI again. I keep seeing MOBI unpack but I've no idea how to combine the split files into a function MOBI.

I've provided an upload of the .ncx and .opf if anybody cares to take a look and I'm happy to upload the MOBI file if people can help out.

Thanks everyone.

Attached Files
File Type: zip Game+Design+Companion.zip (310.7 KB)

AZK issues

$
0
0
Well, a former client contacted me for another project, and I agreed to take it on. So I was thrilled when I updated Kindle Previewer and discovered that Amazon has updated their approach to Apple iOS devices. I opened an EPUB using Previewer, saw the instructions to sideload the AZK file to my iPad, did what you're supposed to do in iTunes and — got nothing. No matter how many times I synced, the file never showed up on the 1st generation iPad I use for proofing. I could, however, sideload it onto an iPad mini in my household (more on that in a moment).

I take this to mean that the Kindle app for iOS 5.1.1, which is the latest that will run on the iPad I have, somehow doesn't recognize azk files. However, having checked the release notes, this was not made explicit, so I'm wondering if maybe I'm missing something in the sideloading process, or if anyone knows if my hunch is correct.

Now, about the azk file on the iPad mini: I'm doing some initial proofing, simply to make sure the formatting of the text is coming in without errors, but I see already that the azk file has dropped all italics, while the italics have come through intact in the mobi file (which is all I can preview on my iPad) and Previewer's rendering of KF8 devices. Has anyone seen similar problems with azk files?

toc.ncx okay in calibre, missing after kindlegen...?

$
0
0
Hi all,

I'm generating an epub and using kindlegen to make a mobi for kindle.

The resulting epub and mobi files look fine in calibre ... the inline html toc is fine, the icon "Table of Contents" brings up the calibre sidebar ... all good.

But when I move the mobi to my keypad kindle, the "Goto" panel can't find my table of contents.

When I run kindlegen it says: "Building table of content URL: /tmp/mobi-Di8irA/toc.ncx" even though my opf provides one.

Any ideas?

I've attached my opf file and my ncx file

Many thanks

Attached Files
File Type: opf content.opf (4.0 KB)
File Type: xml toc.ncx.xml (3.3 KB)

Italics on Kindle app for Android

$
0
0
Hi,

My ebook was formatted with css/html, and converted with Calibre. The italics show up in the Kindle app for PC, as well as Kindle Fire and legacy Kindle devices. They do not show up in the Kindle app for Android. The app is up to date.

I've tried html italics tag, em, and css id but all with the same results. I specified the font as Times New Roman. Same issue.

Any ideas?

Thanks,

R
Viewing all 861 articles
Browse latest View live