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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-26-2010, 11:01 PM   #1
fcoulter
Enthusiast
fcoulter began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2009
Device: Kindle
Question <Title> Tag

OK, I'm creating an ePub in Sigil, a collection of short stories.

Every story is in it's own .xhtml file rather than creating the one big file that everyone complains about.

When I create a new .xhtml file and I look at the code (before sticking anything in the file), this is what I see:

Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
</head>

<body>
  <p>&nbsp;</p>
</body>
</html>
Everything I type ends up between the <body> tags. What (if anything) goes between the <title> tags? Do they do anything?

If I put the name of the short story (or chapter or whatever) between the tags, do they do anything? Will it change the title bar of the eReader to reflect the name of the current short shory or chapter?

What's the story?
fcoulter is offline   Reply With Quote
Advert
Old 07-27-2010, 12:22 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 20,666
Karma: 20350406
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
Quote:
Originally Posted by fcoulter View Post
OK, I'm creating an ePub in Sigil, a collection of short stories.

Every story is in it's own .xhtml file rather than creating the one big file that everyone complains about.

When I create a new .xhtml file and I look at the code (before sticking anything in the file), this is what I see:

Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
</head>

<body>
  <p>&nbsp;</p>
</body>
</html>
Everything I type ends up between the <body> tags. What (if anything) goes between the <title> tags? Do they do anything?

If I put the name of the short story (or chapter or whatever) between the tags, do they do anything? Will it change the title bar of the eReader to reflect the name of the current short shory or chapter?

What's the story?
Maybe
Not all readers do anything with these.
Some smaller screens have char count limits. Stay Terse
I think they don't cause problems if they exist.
theducks is offline   Reply With Quote
Old 07-27-2010, 04:35 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: 7,072
Karma: 9567891
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
As far as I know, there's nothing defined to be done with the <title> of each XHTML file, and all implementations I've seen just ignore it. It could conceivably be used in a status bar or something, but more it's likely that would be taken from the ncx file or from "oeb-page-head" elements.

There is some use, however. If you convert the file to PDF with prince, you can define what to do with the <title>, and use it as a running header, for instance, but that's very specialised.
Jellby is offline   Reply With Quote
Old 07-29-2010, 01:10 AM   #4
quillaja
Connoisseur
quillaja began at the beginning.
 
quillaja's Avatar
 
Posts: 79
Karma: 42
Join Date: Sep 2009
Device: sony reader touch (prs-600)
I think the <title> tag in the xhtml is ignored most of the time in epub reader implementations. If you're worried about it, stick the book's name in, but leaving it blank is probably fine too.
quillaja is offline   Reply With Quote
Old 07-29-2010, 06:53 AM   #5
fcoulter
Enthusiast
fcoulter began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Nov 2009
Device: Kindle
So basically it's useless overhead. Oh well. I was hoping that it did something useful.
fcoulter is offline   Reply With Quote
Advert
Old 07-30-2010, 07:48 PM   #6
Hatgirl
Addict
Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.Hatgirl ought to be getting tired of karma fortunes by now.
 
Hatgirl's Avatar
 
Posts: 294
Karma: 955301
Join Date: Oct 2008
Device: Sony PRS-300, Sony PRS-T2, Kindle (7th Gen)
I stick in whatever I would expect to see in a standard browser title bar, so that if I ever need to quick-convert the ePub to HTML, it'll be already set up.

Yeah, I'm crazy. What of it?
Hatgirl is offline   Reply With Quote
Reply

Tags
<title> tag

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing from Title-Author to Author - Title Amalthia Calibre 17 01-22-2017 11:20 PM
Problem with the HR tag KNotTed ePub 17 03-06-2010 10:48 AM
Creating a Library file w/Author, Title, Summary and tag info asktheeightball Calibre 2 01-18-2010 10:28 AM
'Keep' tag? AnemicOak Amazon Kindle 13 03-17-2009 04:19 PM
Pulp or Pulp fiction title tag mtravellerh Feedback 2 11-09-2008 06:49 PM


All times are GMT -4. The time now is 12:24 PM.


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