|
|
#1 |
|
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,049
Karma: 2006208
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,617
Karma: 28549044
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,049
Karma: 2006208
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: 80,832
Karma: 150249619
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: 48,276
Karma: 174315444
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: 15,038
Karma: 111111255
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,049
Karma: 2006208
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Quote:
). In those cases it is handy to differentiate with the subtitle (which amazingly all those books have also).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 Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Subtitle Template | WillE | Library Management | 13 | 02-25-2023 08:00 AM |
| Can subtitle be used as a second series? | JSWolf | Kobo Reader | 11 | 10-11-2020 03:02 PM |
| Subtitle in metadata? | Notjohn | ePub | 6 | 10-23-2016 06:34 AM |
| Distance between title and subtitle | GraciousMe | ePub | 1 | 10-23-2012 02:37 PM |
| Book SubTitle? | taraboom11 | Library Management | 1 | 03-01-2011 09:48 PM |