![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, 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> Code:
<metadata> <meta name="calibre:title_sub" content="The Complete Novels"/> </metadata> |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
IIRC epub3 metadata has support for subtitles, though I dont recall the details offhand.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, 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 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> |
![]() |
![]() |
![]() |
#4 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#5 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,133
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
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. |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,010
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Quote:
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. |
|
![]() |
![]() |
![]() |
#7 | ||
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
![]() Quote:
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> 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> |
||
![]() |
![]() |
![]() |
|
![]() |
||||
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 |