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

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2024, 07:56 AM   #1
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
[Q] How to properly include a subtitle?

Yesterday I saw an excellent explanation on how to use subtitles in combination with Kobo e-readers. I knew it was possible, but somehow never implemented it. I decided to bite the bullet and give it a go.

Thereafter, I was figuring: how to add those subtitles actually INSIDE the e-books so they exist outside calibre too (without adding them to the<title>)? There is no defined tag <subtitle> or is there? In short: What might be a proper way to do it?

I have seen some constructs in the .opf files like:
Code:
<metadata>
<meta name="calibre:title_sort" content="Sherlock Holmes"/>
</metadata>
I can add something like:
Code:
<metadata>
<meta name="calibre:title_sub" content="The Complete Novels"/>
</metadata>
But makes this sense?
DrChiper is offline   Reply With Quote
Old 01-12-2024, 08:30 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,826
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
IIRC epub3 metadata has support for subtitles, though I dont recall the details offhand.
kovidgoyal is offline   Reply With Quote
Old 01-12-2024, 09:01 AM   #3
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Yes, I found it:
Code:
Name: title-type
Description: 	
The title-type property indicates the form or nature of a title.

When the title-type value is drawn from a code list or other formal enumeration, EPUB creators SHOULD attach a scheme attribute to identify its source. 
When a scheme is not specified, reading systems SHOULD recognize the following title type values: main, subtitle, short, collection, edition and expanded.

Allowed value(s): xsd:string
Cardinality: zero or one
Extends: dc:title
With example:
Code:
<meta refines="#ID12345" property="prism:contentType">article</meta>
<meta property="dc:title" id="t4main">
   Meet The Rejuvenated, Revitalized LeBron
</meta>
<meta refines="#t4main" property="title-type">main</meta>
<meta property="dc:title" id="t4sub">
   After a tumultuous first year in Miami, LeBron James locked himself
   in his house, rued disappointing his teammates—then worked hard to
   hone his game. The result: one of the best seasons in NBA history
</meta>
<meta refines="#t4sub" property="title-type">subtitle</meta>
<meta refines="#ID12345" property="dc:creator">LEE JENKINS</meta>
Hmm, I fear the whole thing would be moot as it is unlikely that any e-reader currently is able to use this. OTOH: it could prepare e-books for the future.
DrChiper is offline   Reply With Quote
Old 01-12-2024, 10:38 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,858
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DrChiper View Post
Yes, I found it:
Code:
Name: title-type
Description: 	
The title-type property indicates the form or nature of a title.

When the title-type value is drawn from a code list or other formal enumeration, EPUB creators SHOULD attach a scheme attribute to identify its source. 
When a scheme is not specified, reading systems SHOULD recognize the following title type values: main, subtitle, short, collection, edition and expanded.

Allowed value(s): xsd:string
Cardinality: zero or one
Extends: dc:title
With example:
Code:
<meta refines="#ID12345" property="prism:contentType">article</meta>
<meta property="dc:title" id="t4main">
   Meet The Rejuvenated, Revitalized LeBron
</meta>
<meta refines="#t4main" property="title-type">main</meta>
<meta property="dc:title" id="t4sub">
   After a tumultuous first year in Miami, LeBron James locked himself
   in his house, rued disappointing his teammates—then worked hard to
   hone his game. The result: one of the best seasons in NBA history
</meta>
<meta refines="#t4sub" property="title-type">subtitle</meta>
<meta refines="#ID12345" property="dc:creator">LEE JENKINS</meta>
Hmm, I fear the whole thing would be moot as it is unlikely that any e-reader currently is able to use this. OTOH: it could prepare e-books for the future.
I've never seen an instance where have a subtitle would cause an iseue. But in most cases, it would be ignored.
JSWolf is offline   Reply With Quote
Old 01-12-2024, 04:49 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,229
Karma: 145277352
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by DrChiper View Post
Yesterday I saw an excellent explanation on how to use subtitles in combination with Kobo e-readers. I knew it was possible, but somehow never implemented it. I decided to bite the bullet and give it a go.
Personally, I just use the subtitle capability in the Kobo driver along with a custom column (very boringly called subtitle) where I can copy/paste the subtitle for the few books where it is worth while. Most the of subtitles I see are more along the lines of "Book Title: An exciting fantasy novel perfect for the fans of <insert list of authors>" or "Book Title: A Novel".

Adding non-standard metadata into the ePub would not be all that useful, IMHO. calibre already stuffs that into one of it's metadata content block.
DNSB is offline   Reply With Quote
Old 01-13-2024, 05:41 AM   #6
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,024
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by DNSB View Post
Personally, I just use the subtitle capability in the Kobo driver along with a custom column (very boringly called subtitle)



Adding non-standard metadata into the ePub would not be all that useful, IMHO. calibre already stuffs that into one of it's metadata content block.
+1 on all that.
Wife does like the subtitle on "My Books" list on Kobo now that I've started putting a piece of the Blurb or other description in it even if there is no subtitle.

Obviously because a title can be in any number of collections no collection is shown there, so the subtitle can give a clue to genre and flavour etc when viewing unread Titles sorted by Recent.
Though if a book is in a Series that's a good clue. Sometimes we deviate from original official series name if that's too generic.
Quoth is offline   Reply With Quote
Old 01-13-2024, 08:08 AM   #7
DrChiper
Bookish
DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.DrChiper ought to be getting tired of karma fortunes by now.
 
DrChiper's Avatar
 
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
Quote:
Originally Posted by DNSB View Post
Personally, I just use the subtitle capability in the Kobo driver along with a custom column (very boringly called subtitle) where I can copy/paste the subtitle for the few books where it is worth while. Most the of subtitles I see are more along the lines of "Book Title: An exciting fantasy novel perfect for the fans of <insert list of authors>" or "Book Title: A Novel".
Granted. I myself have just a few e-books showing subtitles. But I have e-books from various authors and different publishers using all the same title (I guess originality is out these days ). In those cases it is handy to differentiate with the subtitle (which amazingly all those books have also).

Quote:
Originally Posted by DNSB View Post
Adding non-standard metadata into the ePub would not be all that useful, IMHO. calibre already stuffs that into one of it's metadata content block.
Indeed. But as some subtitles can be meaningful, they are now present only in the calibre database and not inside the e-book itself: hence they can get lost.
Further, I did found about 78 EPUB3-ish books in my collection, of which only 2 did use the subtitle element. One in the .opf file as follows:
Code:
<metadata ...>
    <dc:title id="maintitle">The Title</dc:title>
    <dc:title id="subtitle">An Interesting Subtitle</dc:title>
    . . . 
    <meta property="title-type" refines="#maintitle">main</meta>
    <meta property="display-seq" refines="#maintitle">1</meta>
    <meta property="title-type" refines="#subtitle">subtitle</meta>
    <meta property="display-seq" refines="#subtitle">2</meta>
    . . .
</metadata>
and one in the HTML file:
Code:
<div epub:type="fulltitle">
  <h1 class="BookTitle" epub:type="title" lang="en">Main Title</h1>
  <h2 class="BookSubTitle" epub:type="subtitle" lang="en" role="doc-subtitle">An Interesting Subtitle</h2>
</div>
So indeed, usage and adding of subtitles seems very rare and probably not worth the effort.
DrChiper 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
Subtitle Template WillE Library Management 13 02-25-2023 07:00 AM
Can subtitle be used as a second series? JSWolf Kobo Reader 11 10-11-2020 02:02 PM
Subtitle in metadata? Notjohn ePub 6 10-23-2016 05:34 AM
Distance between title and subtitle GraciousMe ePub 1 10-23-2012 01:37 PM
Book SubTitle? taraboom11 Library Management 1 03-01-2011 08:48 PM


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


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