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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2012, 02:04 PM   #1
Rich_H
Member
Rich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animals
 
Rich_H's Avatar
 
Posts: 10
Karma: 6500
Join Date: Sep 2012
Location: Grass Valley, CA
Device: kindle
Kindle Newbie needs "template" HTML & CSS

Hi folks,

I'm an old multimedia programmer who is crashing into digital printing and ePUB. Can anyone point me at a simple template of a valid Kindle file in HTML & CSS? (I.e., before it gets rolled into MOBI format.) Whenever I work in a new area, I find having a sample of related code to be a huge help. HTML and CSS aren't exactly new to me, but their application to Kindle is.

I have Kindle's HTML Formatting Guidelines and Custom HTML Tags documents at hand, but they leave a lot to the the imagination. For instance, Guidelines says "normal" text must use the default font family, but it does not say what that font family is. Or even if it needs to be defined. With a valid HTML- and CSS-for-Kindle file around, I could just glance at the code and say "Aha! That's what they mean," instead of thrashing around.

Don't need anything esoteric. I'm just trying to get an historical fiction into Kindle from InDesign CS5. There are a couple of illustrations in the front of the book. I'm doing the Sigil tutorials now with an eye to assembling the book there, but any suggestions on workflow gratefully accepted.

TIA

Richard Hurley
Grass Valley Multimedia
Rich_H is offline   Reply With Quote
Old 09-08-2012, 02:40 PM   #2
Rich_H
Member
Rich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animalsRich_H is kind to children and small, furry animals
 
Rich_H's Avatar
 
Posts: 10
Karma: 6500
Join Date: Sep 2012
Location: Grass Valley, CA
Device: kindle
I'm new here – just found the working "Similar Threads" function at the bottom. Fantastic! I spent too much time on the Adobe CS forums to believe that was really possible. Found the Alice in Wonderland samples, but would still be grateful for any kibitzing on workflow or leads to other examples.

TIA
Rich_H is offline   Reply With Quote
Old 09-09-2012, 03:33 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,091
Karma: 4571547
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by Rich_H View Post
For instance, Guidelines says "normal" text must use the default font family, but it does not say what that font family is. Or even if it needs to be defined.
It means you should not specify any particular font, i.e. you should leave the font undefined. The actual "default" font used will be chosen by the reader.

For a MOBI you don't need any CSS. You can use it, but the converter will turn it into pseudo-HTML code before it gets packed into the MOBI, so the final MOBI will contain no CSS at all.

Here is an example of the source code for Kipling's Just So Stories (the conversion to MOBI was done with MobiPerl).
Attached Files
File Type: zip JustSoStories.zip (65.9 KB, 173 views)
Jellby is offline   Reply With Quote
Old 09-09-2012, 06:18 AM   #4
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 1,908
Karma: 4632610
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Rich_H View Post
Found the Alice in Wonderland samples, but would still be grateful for any kibitzing on workflow or leads to other examples.
If you found the Alice in Wonderland samples on the old Mobipocket web site you may want to also check out the Kindle KF8 overview web site for information on the latest mobi version and download some samples from there.
(KF8 basically added support for most ePub2 elements and a handful of HTML5 elements to .mobi files.)
Doitsu is offline   Reply With Quote
Old 09-10-2012, 08:33 PM   #5
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
The problem with crossposting a new thread (this one) to two forums is that the replies are distributed between them. Here is the OTHER half of this thread:

http://www.mobileread.com/forums/sho...d.php?t=190424

EDIT: I see that the other thread had a reply that suggested using this forum instead. It would have been better to move the thread here (using the "Report Post" button to the left of the first post) instead of forking it. Now both threads have ongoing discussions.

At least the link above lets you follow both halves of this thread.

Last edited by geekmaster; 09-10-2012 at 08:40 PM.
geekmaster 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
Kindle newbie needs "template" HTML & CSS Rich_H Kindle Developer's Corner 12 09-10-2012 11:16 PM
Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files). Sushil Kindle Fire 1 01-13-2012 07:16 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 09:29 AM
Kindle DX optimal "page" size - PDF or Word template guiyoforward Amazon Kindle 12 09-28-2010 07:05 PM


All times are GMT -4. The time now is 06:34 PM.


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