Time to hear my seriously true story about the formatting process and my main problem. (psst, if there is any programmers that read this please tell me that you know what the answer is).
The Form Post That I Never Had to Make
But can everyone tell me why my Table of Contents is not working at all. It works fine in a browner, just not in Kindle Previewer.
This is the list of things that I have done. (by the way I am using OpenOffice for the main program).
This all works in OpenOffice.
1. I just downloaded Kindle Previewer and KindleGen and the manual that helps you go through it all. I as well have the free E-book (Building Your Book for Kindle) by Amazon that tells you how to make your Kindle book for Microsoft Word. Okay, (I thought to myself) that will have to do, sense there is not very many tutorials for OpenOffice. It must be pretty compatible.
It was to, except.... Kindle wants you to export your file to a 'Filtered HTML document.' OpenOffice only has 'Save as HTML Document'. Okay so I tried this and it didn't work, naturally.
2. So what was my options? I took a look into that too. There was 'Send Create HTML Document' that one didn't work.
3. There was also 'Wizards Web Page' this one looked to risky. I don't want to delete my file.
4. I did a lot of research online. People didn't have to say much on this subject. From all the research that I did. So what did I do? Told my mom about it. So she did some research and found a plug-in for OpenOffice called Writer2xhtml. Cool. So I downloaded it.
So I made the file into a .epub file. Sounds like it would work in Kindle right? You know with it being a .epub. That's not what I went through.
I had no idea where the Kindle Previewer went to when I installed it. And the KindleGen was not working. I must have reinstalled these programs dozens of times not knowing what was happening with them.
Good thing for that manual! Okay I will try to use KindleGen. Here I go looking for the Command Prompt. That was not too hard to find.
So I write the necessary code to create the MOBIE file. As well as writing the exact location where the file was (by the way this was before I found out that you can just drag a file into the Command Prompt and it will write down the information for you). Several times it kept saying the file information I wrote did not exist. But eventually I got the right file name written.
Guess what it did not create the MOBIE file. It didn't even tell me why.
Finally found out what happen to the Kindle Previewer. You know how the first Windows 8 does not have a proper start menu? Well that's where it should have been. But because of Windows 8 I had to search it in the search bar. Another thing I tried to make my .epub file here and it told me that it did not support the file.
After looking on the internet, I watched a movie with that guy said you need to first do something to your .epub file first. And he gives you a site at which to do that in.
I tried to do this but the site told me that it could not do that something to my file. Fine. I said. I will use something else.
I did some reading and read that .epub was not the best way to do this anyway and to do it on HTML.
5. So now I tried to export my file to HTLM 5. Put the file into Kindle Previewer and get this error: Warning(prcgen):W14001: Hyperlink not resolved.
The links for my Table of Contents does not work, so I guess that's what they mean about the Hyperlink not resolved. But all my links for websites work. Weird.
Oh and I get these weird symbols, but only for HTML 5.
Okay.... HTML 5 out the window.
6. Going to try XHTML 1.1 + MathML 2.0. And I get this error: Warning(prcgen):W14001: Hyperlink not resolved. Okay done with this one too.
7. Now hoping that XHTML 1.1 will work. Error: Warning(prcgen):W14001: Hyperlink not resolved.
8. Trying XHTML 1.0 strict. Another error: Warning(prcgen):W14001: Hyperlink not resolved.
9. By this time I was getting pretty annoyed. I looked everywhere online and I couldn't figure it out.
So I put the thing in KindleGen using all these codes:
C:/Kindlegen\kindlegen Filename.html -c0 -verbose
C:/Kindlegen\kindlegen Filename.html -c0 -western
C:/Kindlegen\kindlegen Filename.html -c1 -verbose
C:/Kindlegen\kindlegen Filename.html -c1 -western
C:/Kindlegen\kindlegen Filename.html -c2 -verbose
C:/Kindlegen\kindlegen Filename.html -c2 -western
10. You know that manual? They tell you a couple of methods to make your table of contents by writing it in raw HTML.
I know as much as nothing about coding in HTML. Ya sure I know a little of Small Basic, C#, and Python, but not enough to really know what I am doing. HTML is new to me.
Plus at the time I did not have a HTML editor. So coding in a very messy notepad. Kids do not try to do this at home. It kind of hard the eyes. =) (note without the extra > <).
<<li><a href="Sway_body.html# Prologue"> Prologue </a></li>>
<<li><a href="Sway_body.html#chapter_1">Chapter 1</a></li>>
<<li><a href="Sway_body.html#chapter_2">Chapter 2</a></li>>
I tried some other code that I found online too, but nothing was working.
11. I looked for hours on the internet to find a answer. But nothing came up. My mom is also trying to make a E-book and was having the same problems that I was so she was looking too.
Guess what? My mom found something! She found out that you are suppose to insert bookmarks at the beginning of each chapter and make a hyperlink at the table of contents. She did this for her book and it works. Okay it works great! However she had to delete a some kind of extra div code that was under the main Table of Contents making two table of contents in her file. This was the same code that I had in my thing that was not working. Guess div code in HTML does not work very good.
So I deleted my 'Indexes and Tables' and started to add the bookmarks and hyperlinks that I was told to do.
Because we thought that I would have to delete some code, Mom suggested that I get this free HTML editor to make it easier on the eyes called Arachnophilia (wished that it was called Arachnophobia the fear of spiders). It's a pretty good program.
When I converted the file back into a HTML file I put it in Arachnophilia to delete that piece of code. But there was no div code in there. Weird, I thought to myself. So I tried to put it into Kindle Previewer and I still get the same error: Warning(prcgen):W14001: Hyperlink not resolved.
12. I could not figure what to do now nothing I did was working. I couldn't even tell you why something that my mom did worked, but when I tried the same thing it did not.
But that gave me a great idea! What if I copied Mom's Table of Contents code and paste it into mine?
So I went over her code and over mine and sure enough there was a big difference in the code. There was something called a: class="Internet20link".
My code did not have that. So I copy and pasted it onto my flash drive and put it on the other computer and pasted it into my code.
Put it in Kindle Previewer and again with this error: Warning(prcgen):W14001: Hyperlink not resolved. (Don't you just love it when you always get the same errors?)
13. At this time I was thinking to myself 'Do I really need this table of contents? Is it really worth all the effort?'
Mom told me that she would try to help. But after a few minutes of playing around with it, I had this great idea. "Hey, Mom. What if we just use your computer to make the file?"
She agreed. And I put the file on her computer and put it in Kindle Previewer and.... It worked!!!! How I still have no idea. But it worked! =D
The only warning that I had was about the cover not being specified. This error is not serious at all sense Kindle wants you to put up your cover separately.
"Kindle is easier to format than print books! I recommend to make your book available on Kindle first!"
-Quote from Everyone I Read
However I have found out that there is a problem with either OpenOffice, Kindle Previewer, or the HTML on this computer.
I wanted to change something, so I thought that maybe I just go and write it up in the HTML code. I did that and put it back into the Kindle Previewer and it gave me the error: Warning(prcgen):W14001: Hyperlink not resolved. I did nothing to the Table of Contents and it still gave me this error. Replaced it on my mom's computer and it worked fine.
Also I knew that the OpenOffice version I was using was not making the same HTML code that Mom's OpenOffice was making. I knew that she had the latest and greatest version, and I had an older version. But does that really matter?
So really I don't know why this computer does not want to work with this. Good thing I have Mom's computer to help me! =)
If you have any ideas why this is happing please let me know in the comments below. Also I would love to hear about your Kindle adventures!
Good bye! And happy Kindle publishing! =)
Grace M. Morris