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

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2012, 02:39 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.

TIA

Richard Hurley
Grass Valley Multimedia
Rich_H is offline   Reply With Quote
Old 09-08-2012, 02:54 PM   #2
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,997
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
You might get better replies using the workshop forum:
http://www.mobileread.com/forums/forumdisplay.php?f=178
knc1 is offline   Reply With Quote
Old 09-08-2012, 02:59 PM   #3
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
Will do. I had a feeling I had dived into the nerd cave, but this site's a bit puzzling in the navigation department.

thanks!
Rich_H is offline   Reply With Quote
Old 09-08-2012, 03:01 PM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 5,241
Karma: 5164853
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2; Kobo H2O
@Rich_H: The Mobi forum might also help .
NiLuJe is offline   Reply With Quote
Old 09-08-2012, 03:06 PM   #5
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,997
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by Rich_H View Post
Will do. I had a feeling I had dived into the nerd cave, but this site's a bit puzzling in the navigation department.

thanks!
People usually do not use terms that polite to describe the members in this forum.
And the things we call each other here sometimes . . .
Oops - Off Topic - Sorry

Yup, site has been around a long time, and it can be a bit like: "Hunt the Wampus" for a new member.
knc1 is offline   Reply With Quote
Old 09-08-2012, 03:11 PM   #6
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
Thanks, knc1. As a guest, I thought I should tread lightly.

Just found a parallel post in the Workshop that has a link to a sample, incidentally.

I'll be back here if I stop washing and begin to dream in XML.
Rich_H is offline   Reply With Quote
Old 09-09-2012, 07:58 AM   #7
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
for the record I wash everyday. And I have never dreamed in xml

</dream>

EDIT: Welll... not with a truly valid DTD anyways

Last edited by twobob; 09-09-2012 at 08:06 AM.
twobob is offline   Reply With Quote
Old 09-10-2012, 08:41 PM   #8
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
Sad days

Quote:
Originally Posted by twobob View Post
for the record I wash everyday. And I have never dreamed in xml

</dream>

EDIT: Welll... not with a truly valid DTD anyways
/* Well, there goes the programer mystique... Next you'll be telling me you have a social life! Sad and degenerate days. */
Rich_H is offline   Reply With Quote
Old 09-10-2012, 08:57 PM   #9
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I have heard of this "Social" word... but this other concept "Life"?

Does Not Compute {ʇlnɐɟ uoıʇɐʇuǝɯƃǝs}
║▌║█║▌║▌█║▌║▌║█║▌║▌║█║▌║▌│║▌║║▌║█║
▌║▌║▌║█║▌│║▌║█║▌║▌││║▌║││║▌║││║▌║││▌││║││││││ │ │ │
>

>>

Bios Failure... Reflashing.......[ * Core * ] ....... [ Personality grafted ] ......

We have Social Life!!!

♬ ♫ ♪ ılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılı ♪ ♫ ♬

; )

By the way, it happened just like that 38 years ago today... shhh...

Last edited by twobob; 09-10-2012 at 08:59 PM. Reason: it's my bd - sshhhhh....
twobob is offline   Reply With Quote
Old 09-10-2012, 09:30 PM   #10
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,070
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:

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

EDIT: Ahh... I see. knc1 recommended the other forum in post #2 above.

It would have perhaps been better to request the thread be moved there instead of starting another one. You can do that with the "Report Post" button (looks like a bold exclamation mark to the left of the post).

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

Last edited by geekmaster; 09-10-2012 at 09:41 PM.
geekmaster is offline   Reply With Quote
Old 09-10-2012, 09:34 PM   #11
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6021146
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
*does smily face*

Last edited by twobob; 09-11-2012 at 11:25 AM. Reason: turned that frown upside down
twobob is offline   Reply With Quote
Old 09-10-2012, 09:35 PM   #12
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
social life explained

Looks like you're ready to party, twobob. For those still uncertain as to this concept of social life:

global myGender, myBankAccount

on meetPerson (gender, wealth)
if gender not myGender then
if checkWealth(wealth) > myBankAccount then
proposeMarriage
socialLife = 1
else
returnToKeyboard
drinkBeers (myBankAccount - checkWealth(wealth))
socialLife = 0
end if
haveBeersAnyway
end


(In case you're wondering, it's Lingo, the old Macromedia Director scripting language. Wonderful for writing code to direct your life.)

Last edited by Rich_H; 09-10-2012 at 09:48 PM. Reason: forgot indents
Rich_H is offline   Reply With Quote
Old 09-11-2012, 12:16 AM   #13
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,070
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by Rich_H View Post
Looks like you're ready to party, twobob. For those still uncertain as to this concept of social life:

global myGender, myBankAccount

on meetPerson (gender, wealth)
if gender not myGender then
if checkWealth(wealth) > myBankAccount then
proposeMarriage
socialLife = 1
else
returnToKeyboard
drinkBeers (myBankAccount - checkWealth(wealth))
socialLife = 0
end if
haveBeersAnyway
end


(In case you're wondering, it's Lingo, the old Macromedia Director scripting language. Wonderful for writing code to direct your life.)
void main(void) { while (true) drinkbeer(); }

What's gender or bank account got to do with it? Drink your buddy's beer.


Last edited by geekmaster; 09-11-2012 at 12:24 AM.
geekmaster is offline   Reply With Quote
Reply

Tags
css, html, kindle

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed Layout Sample ".mobi" file with package(html, css, opf, ncx files). Sushil Kindle Fire 1 01-13-2012 08:16 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 04:14 PM
epub CSS versus "Regular" CSS konrad ePub 4 02-18-2011 10:29 AM
Kindle DX optimal "page" size - PDF or Word template guiyoforward Amazon Kindle 12 09-28-2010 08:05 PM
Question - Does iLiab have the "search" & "annotation, highlighting" features? HiSoC8Y iRex 5 07-01-2009 05:37 PM


All times are GMT -4. The time now is 02:53 AM.


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