Bookshelf | Reports | Community | KDP Select

Home » Amazon KDP Support » Ask the Community » Formatting

Thread: The simplest basics of the HTML language and HTML editing


Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 39 - Pages: 3 [ Previous | 1 2 3 | Next ] - Last Post: Oct 13, 2012 12:49 AM Last Post By: shaddamax
man2010

Posts: 1,897
Registered: 01/01/10
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 27, 2011 11:33 AM   in response to: wbyancey in response to: wbyancey
Click to report abuse...   Click to reply to this thread Reply
yep, jtorrence is me. Congrats on the book, wbyancey, that's monumental work, 204 images.

if you care for some feedback, I downloaded your free sample and here's what caught my eye:

1. I would delete the extra cover image from your .html file. You have two covers in the book.

2. I would align all images to the center. You have left-aligned, right-aligned and center-aligned images. See the simple image code in the first post here. This code also inserts spacing between text and images.

3. Paragraphs have different indentation. I would make it all the same, except the first paragraph (immediately following a heading) can have zero indentation.

4. Numbered lists could be improved. See the code for ordered and unordered lists in the HTML template in the first post.

Anyway, that's just icing on a cake. Your book looks nice as is.
wendy902

Posts: 12
Registered: 06/27/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 27, 2011 2:44 PM   in response to: man2010 in response to: man2010
Click to report abuse...   Click to reply to this thread Reply
It is important when writing HTML to close your tags. Here is a tip, when you start a new tag, include the closing tag at the same time, then add the content in between the tags.


Here's an example:


1. write ( p )


2. then write ( / p )


3. then write the content between ( p ) and ( / p )



NOTE: ( and ) should be changed to < and > respectively, and the spaces between ( and ) should be removed.


Even better, certain html editing programs, including even some note editors such as Notepad++, will automatically add the closing tag for you when you type the opening tag.
badken

Posts: 828
Registered: 04/10/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 27, 2011 7:11 PM   in response to: wbyancey in response to: wbyancey
Click to report abuse...   Click to reply to this thread Reply
@wbyancey: Sigil is good because it gives you an ebook WYSIWYG view, and lets you tweak the code at the same time. Congrats on getting your book together!

One thing for future reference--as notjohn points out you can upload the Word DOC version directly, but if you want to tweak, you can also upload the Sigil EPUB version directly! There's no need to convert to MOBI from EPUB, because the formats are very similar. There are a few things you can do in EPUB that you can't do in MOBI, but for the most part, if you stick with the formatting available in Sigil, your EPUB should translate to a MOBI with no changes at all.

url=mailto:ken@ebookfab.comK. P. Badertscher[/url] – Ebookfab.comEbook blogFacebook@ebookfab
Transforming manuscripts into beautiful ebooks.
wbyancey

Posts: 31
Registered: 04/15/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 1:45 AM   in response to: notjohn in response to: notjohn
Click to report abuse...   Click to reply to this thread Reply
Roundabout or not, it offers some advantages. SIGIL is WYSIWYG. The changes you make in the document are immediately visible in the near HTML EPUB code. It's very useful for seeing how things fit together and what the tags do. Also it's easy to check the TOC display. The only unfortunate part is that the end result is EPUB, which is misinterpreted during the upload to Amazon, hence the Calibre step.

As an aside, you can take the SIGIL EPUB version and run it through Calibre to get an EPUB version that uploads nicely to the BN site for that ereader. The SIGIL EPUB version doesn't translate well, but the Calibre version works very nicely.
wbyancey

Posts: 31
Registered: 04/15/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 2:02 AM   in response to: man2010 in response to: man2010
Click to report abuse...   Click to reply to this thread Reply
man2010: Thanks for the review and the BN info on the other site. I think I'll leave things as they are. Took 2 weeks of part-time work to make the changes and find a way to upload to both sites. Don't know why images present such a problem. Maybe it's my lack of programming skill, but WORD docs, filtered HTML, and SIGIL EPUB just don't look the same once uploaded with images.
notjohn

Posts: 15,241
Registered: 01/06/10
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 2:16 AM   in response to: badken in response to: badken
Click to report abuse...   Click to reply to this thread Reply
[i]you can also upload the Sigil EPUB version directly! [/i]

Good news! Have you actually done this? I was under the impression that epubs, like PDFs, were tricky even though supposedly supported.
wbyancey

Posts: 31
Registered: 04/15/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 2:37 AM   in response to: man2010 in response to: man2010
Click to report abuse...   Click to reply to this thread Reply
man2010:

You mentioned the two covers. There is a reason for that. When I download my samples to my iPod (don't laugh, it's all I have other than the desktop), if I don't put in the second cover image, there is no image for the book when I start to read. I like having the image on the first page to remind folks what the cover looks like. There is an image in my list of books, but that image doesn't show up in the text.

If you are seeing two covers, then apparently your Kindle or whatever virtual Kindle you are using is working differently than my iPod. Hate to aggravate everyone with two covers but don't know a way around it.
badken

Posts: 828
Registered: 04/10/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 2:43 AM   in response to: notjohn in response to: notjohn
Click to report abuse...   Click to reply to this thread Reply
@wbyancey: [i]The only unfortunate part is that the end result is EPUB, which is misinterpreted during the upload to Amazon, hence the Calibre step.[/i]

Not true. Amazon handles EPUBs just fine. Also:

[i]As an aside, you can take the SIGIL EPUB version and run it through Calibre to get an EPUB version that uploads nicely to the BN site for that ereader. The SIGIL EPUB version doesn't translate well, but the Calibre version works very nicely.[/i]

That doesn't make any sense at all. Sigil has an epubcheck-like thingy built in, and Calibre doesn't. Calibre adds extra crap to the EPUB that isn't strictly necessary. Calibre also inserts front-cover code that does not pass epubcheck. It doesn't make any sense that running an EPUB through Calibre would improve it.

@notjohn: [i] I was under the impression that epubs, like PDFs, were tricky even though supposedly supported. [/i]

I haven't had any problems. I've tried both a picture book and a more standard story, and both turned out great. It's a very different situation than PDF. The EPUB format is very similar to the MOBI format. PDF is very different. MOBI and EPUB both use OPF format package files, NCX format logical table of contents, XHTML for content and the usual suspects for images. EPUB is a bit more flexible, so there are things you can do with EPUB that MOBI doesn't support, but if you stick to the subset that MOBI supports, you're fine.

url=mailto:ken@ebookfab.comK. P. Badertscher[/url] – Ebookfab.comEbook blogFacebook@ebookfab
Transforming manuscripts into beautiful ebooks.

wbyancey

Posts: 31
Registered: 04/15/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 11:17 AM   in response to: badken in response to: badken
Click to report abuse...   Click to reply to this thread Reply
Sorry badken,

It may be that since I am dealing with 204 images, my manuscript is overwhelming the software. Final size is 5 megs.

Even if it makes no sense, if I upload the EPUB version from SIGIL, the BN version is screwed up beyond recognition. The Kindle upload is slightly screwed up, but the Calibre MOBI version fixes that. If I allow Calibre to change the SIGIL EPUB version to the Calibre EPUB version and upload to BN, the BN version looks just like the good MOBI Kindle version. Don't know why, either. Do know I spent a whole day trying different ways to upload to get an acceptable version on BN and that's the only way that worked. All the crap that Calibre added made for a much nicer manuscript. If you don't believe me, look at both samples. I'd fix the stuff man2010 mentions, but after 2 weeks, I'm happy enough with the outcome to let it sit for a while. ;-/
badken

Posts: 828
Registered: 04/10/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 28, 2011 1:54 PM   in response to: wbyancey in response to: wbyancey
Click to report abuse...   Click to reply to this thread Reply
[i]All the crap that Calibre added made for a much nicer manuscript.[/i]

Well, in the end it's results that matter, isn't it?

The takeaway from your experience for me is to be careful using Sigil with a lot of images. I seem to recall reading somewhere that it has trouble with large books in general.

I'll just have to keep its limitations in mind when I want to use it.
notjohn

Posts: 15,241
Registered: 01/06/10
Re: The simplest basics of the HTML language and HTML editing
Posted: Jun 29, 2011 8:44 AM   in response to: badken in response to: badken
Click to report abuse...   Click to reply to this thread Reply
There's a very good forum at http://www.mobileread.com/forums/ including the author of the program, very helpful to sorting out problems with Sigil.
wbyancey

Posts: 31
Registered: 04/15/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jul 2, 2011 5:34 AM   in response to: notjohn in response to: notjohn
Click to report abuse...   Click to reply to this thread Reply
Thanks, notjohn. After I catch my breath, I may take a look at it.
xpikch3rxframex

Posts: 7
Registered: 07/25/11
Re: The simplest basics of the HTML language and HTML editing
Posted: Jul 24, 2011 11:34 PM   in response to: man2010 in response to: man2010
Click to report abuse...   Click to reply to this thread Reply
I suppose this is the right place to ask. I am completely incompetent when it comes to anything with technology, haha.

Okay, so, I wrote the book up in OpenOffice, inserted the page breaks, saved it as a .html, and tried running it through MobiPocket. However, MobiPocket was all, 'WHOA HOLD UP YOU DON'T EVEN HAVE BODY TAGS YO." So I went back and added "<html><body>" at the beginning and "</body></html>" at the end. The file went through that time, but when I looked at it in the Kindle Previewer, the tags showed. How can I get the tags not to show, but still have everything work?
notjohn

Posts: 15,241
Registered: 01/06/10
Re: The simplest basics of the HTML language and HTML editing
Posted: Jul 25, 2011 1:36 AM   in response to: xpikch3rxframex in response to: xpikch3rxframex
Click to report abuse...   Click to reply to this thread Reply
I think you may have taken too many steps. What happens if you upload your html file to your Bookshelf and look at it on the online Preview? (It probably already has the html and body tags in it.)

Either that, or feed your *.doc file (from Open Office) into Mobi?
man2010

Posts: 1,897
Registered: 01/01/10
Re: The simplest basics of the HTML language and HTML editing
Posted: Jul 25, 2011 7:41 AM   in response to: xpikch3rxframex in response to: xpikch3rxframex
Click to report abuse...   Click to reply to this thread Reply
MobiPocket Creator is designed to work with Microsoft Word-generated files. My advice is to undo your coding and to ask a friend to open your file in Word and save as a Word 1997-2003 file. You can then import it into MPC directly (MPC will convert the .doc file to HTML).
Legend
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums