Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 05-02-2012, 06:21 AM   #1
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
I made my .opf file w/ Text Wranger; could that be a problem?

Could the program I used to make my .opf file be the problem? I used Text Wrangler.

But the file does not work, or is not being recognized by Kindle preview.

The templates for these files worked just a year ago...
petercrowell is offline   Reply With Quote
Old 05-02-2012, 09:16 AM   #2
xxy
Junior Member
xxy began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2012
Device: Kindle
I'm afraid no one will have any clue if you don't specify it.
xxy is offline   Reply With Quote
Old 05-02-2012, 11:41 AM   #3
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
Hi XXY,

Not sure what you mean. I'm just asking if using Text Wrangler to create the files might present any problems. That seems clear as posted.

Thanks!
petercrowell is offline   Reply With Quote
Old 05-02-2012, 12:21 PM   #4
susan_cassidy
Wizard
susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.susan_cassidy ought to be getting tired of karma fortunes by now.
 
Posts: 1,736
Karma: 1643110
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
As long as it is a simple .txt type file, it should work fine. If it is more like a .doc file, then no.
susan_cassidy is offline   Reply With Quote
Old 05-02-2012, 02:17 PM   #5
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 6,021
Karma: 14705828
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International & Sony PRS-T1
I use TextWrangler and I have no problems.

Sometimes KindleGen can be picky over the stupidest things. Do you have the text encoding set to UTF-8 with Unix LF endings (and also have "use typographer's quotes" turned off)?

Alternatively, your files don't happen to be in a folder path that includes an # character anywhere in the path name, does it? I've found that KindleGen will completely ignore my NCX and other stuff without giving a warning if I have my files in something like, say "Blahblah series/#1 FirstBook" before compiling.
ATDrake is offline   Reply With Quote
Old 05-02-2012, 02:37 PM   #6
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
Hi ATDrake,

Thanks for your response. I'm sure you don't remember, but you talked me through the construction of my first kindle book almost exactly a year ago.

I've found two references to utf codes in the .opf file. They are:

The very first line, (also the first line of the toc.ncx file):
<?xml version="1.0" encoding="utf-8"?>

and between the <metadata></metadata> tags:

<output encoding="utf-8" content type="text/x-oeb1-document"></output>


Thing is, I used the very same files you walked me through as a template for a subsequent book and it worked (still works) fine. So I tried it again with this book and it's not working.

Anyway, if the above info gives you any ideas, I'm eager to hear them.

Thanks again!
petercrowell is offline   Reply With Quote
Old 05-02-2012, 02:52 PM   #7
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 6,021
Karma: 14705828
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International & Sony PRS-T1
If you don't already have TextWrangler set to do so, you may need to tell it to default-output any files you create as UTF-8.

Go to Preferences/Text Encodings and select Unicode (UTF-8) from the dropdown, and while you're at it, Preferences/Text Files should be set to Unix (LF).

It's possible KindleGen may be choking on Mac line endings or a Mac OS Roman-encoded file.

If this is the case, you can check the settings on your existing files by looking at the very bottom of the window, where you'll see a bunch of info which turns out to be dropdown menus you can change stuff with.

The other thing you might try is creating a new OPF from scratch. It's possible that while you think you might have changed everything over from your template, there could be something that was missed, and that could be holding things up.

Also, check to make sure that your NCX has no superfluous closing tags or even tags which don't belong in an NCX, e.g. a </navPoint> end-tag with no beginning or a <div></div>. That's another of the things that KindleGen is picky about and will silently ignore your NCX without even an error warning if it finds one.
ATDrake is offline   Reply With Quote
Old 05-02-2012, 03:02 PM   #8
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
I've checked those settings as you suggest and they're all correct. But Kindlegen does return a warning, when I make the .mobi file, that reads:

Warning(parser):W3005: Found an unsupported text encoding. in file path/5keys.html

But it doesn't tell me what the unsupported encoding is and it does not reference a specific line in the file.

I'll scour the files for any loose code, and I'll rebuild the .opf from scratch, as you suggest.

Thanks again!
petercrowell is offline   Reply With Quote
Old 05-02-2012, 03:14 PM   #9
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 6,021
Karma: 14705828
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International & Sony PRS-T1
Check the 5keys.html file with TextWrangler. IIRC, KindleGen only accepts UTF-8 and Windows-1252 (and the new versions prefer UTF-8). The text encoding applies to the entire file, not just any one line.

In any case, since you've said that your TOC, NCX, and start points are all ignored, very likely something has gone wrong in your <guide> and/or <manifest> section as previously suggested.

Possibly Amazon has updated how they want things to be referenced in the OPF, and you may want to check against the latest version of the Kindle Publishing Guidelines to make sure your files are specified in the way that the latest KindleGen/Previewer want, if anything's changed since the older versions.
ATDrake is offline   Reply With Quote
Old 05-02-2012, 03:28 PM   #10
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
Well, I tried to create the .mobi file by dragging/dropping the .opf file onto the terminal with Kindlegen. It put me through a few rounds of errors, but I sorted them out and now it's functioning. It starts where I want it to start, and the Cover, TOC and NCX TOC buttons all work as expected.

It did say my cover is too small, however. So I'll have to fix that.

So far so good, thanks to your help ATDrake. Thanks so much!
petercrowell is offline   Reply With Quote
Old 05-02-2012, 03:30 PM   #11
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 6,021
Karma: 14705828
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International & Sony PRS-T1
Good to hear. Glad everything seems to be working okay now!
ATDrake is offline   Reply With Quote
Old 05-02-2012, 03:32 PM   #12
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
I should add, I'd previously been drag/dropping the html file onto Kindlegen. Could that be what I've been doing wrong all along?
petercrowell is offline   Reply With Quote
Old 05-02-2012, 03:40 PM   #13
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
Quote:
Originally Posted by susan_cassidy View Post
As long as it is a simple .txt type file, it should work fine. If it is more like a .doc file, then no.

Thanks Susan. Yes, it's all just regular .txt. This seemed like a stupid question when I first asked it, but I'm glad I did because it broke the log jam.

Thanks for your response!
petercrowell is offline   Reply With Quote
Old 05-02-2012, 03:43 PM   #14
ATDrake
Wizzard
ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.ATDrake ought to be getting tired of karma fortunes by now.
 
Posts: 6,021
Karma: 14705828
Join Date: Mar 2010
Location: Roundworld
Device: Kindle 2 International & Sony PRS-T1
Quote:
Originally Posted by petercrowell View Post
I should add, I'd previously been drag/dropping the html file onto Kindlegen. Could that be what I've been doing wrong all along?
Yes, that would be exactly it. Without knowing that the OPF file exists, KindleGen can't add in the TOC, NCX, or start points, so you always have to aim it at the OPF (or an ePub) if you want those in your finished Mobi.
ATDrake is offline   Reply With Quote
Old 05-02-2012, 04:00 PM   #15
petercrowell
Connoisseur
petercrowell began at the beginning.
 
Posts: 61
Karma: 10
Join Date: Apr 2011
Device: Kindle
Well this makes my day. And I learned something!

Thanks very much again.
petercrowell is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] What's an OPF file? Anarel Calibre 6 08-14-2012 08:23 AM
TWO OPF files or something like Media Queries in the OPF file for KF8 and MOBI? DHahn Kindle Formats 3 04-17-2012 04:06 AM
opf file iomari Calibre 10 09-23-2011 01:28 AM
OPF file OPS/package.opf is missing Run2Eat ePub 2 05-31-2011 06:52 PM
Adding book via OPF file itimpi Calibre 2 11-11-2009 10:28 AM


All times are GMT -4. The time now is 01:09 AM.


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