Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-14-2020, 05:23 PM   #1
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,584
Karma: 14328510
Join Date: Nov 2019
Device: none
epub 3 and subtitles

If I add a subtitle with Sigil by adding the metadata for Title, then add to that the property for subtitle, that subtitle needs to be after the main title in the content.opf; it it's before the main title then Calibre displays the subtitle as the book's title. Maybe it's in the epub 3 standard that order is significant for title and subtitle?

Subtitle first:
Code:
<dc:title id="tle">Subtitle</dc:title>
<meta refines="#tle" property="title-type">subtitle</meta>
<dc:title>Main title</dc:title>

Main title first:
Code:
<dc:title>Main title</dc:title> 
<dc:title id="tle">Subtitle</dc:title> 
<meta refines="#tle" property="title-type">subtitle</meta>
hobnail is offline   Reply With Quote
Old 09-14-2020, 06:28 PM   #2
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: 79,408
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Or just do it like this which is the most common way to do it and it works.

Code:
<dc:title>Main title: subtitle</dc:title>
JSWolf is offline   Reply With Quote
Advert
Old 09-14-2020, 09:17 PM   #3
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: 45,321
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hobnail View Post
If I add a subtitle with Sigil by adding the metadata for Title, then add to that the property for subtitle, that subtitle needs to be after the main title in the content.opf; it it's before the main title then Calibre displays the subtitle as the book's title. Maybe it's in the epub 3 standard that order is significant for title and subtitle?

Subtitle first:
Code:
<dc:title id="tle">Subtitle</dc:title>
<meta refines="#tle" property="title-type">subtitle</meta>
<dc:title>Main title</dc:title>

Main title first:
Code:
<dc:title>Main title</dc:title> 
<dc:title id="tle">Subtitle</dc:title> 
<meta refines="#tle" property="title-type">subtitle</meta>
I would suspect that calibre is using the first dc:title as the title.
DNSB is offline   Reply With Quote
Old 09-15-2020, 02:27 AM   #4
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: 45,251
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No calibre will only use the first title as the main title if there is no title that has the "main" title-type. So if you want to put a subtitle AND have it before the main title for some reason, be sure to add the refine to the main title saying it is the main title.
kovidgoyal is offline   Reply With Quote
Old 09-15-2020, 02:36 AM   #5
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,584
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by kovidgoyal View Post
No calibre will only use the first title as the main title if there is no title that has the "main" title-type. So if you want to put a subtitle AND have it before the main title for some reason, be sure to add the refine to the main title saying it is the main title.
Thanks, good to know. I'll add that to my template/startup epub file for sigil.
hobnail is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre: Setting subtitles Jonnan001 Calibre 2 04-04-2017 09:16 PM
PRS-T2 is slow but work, and anyway I am prisoner of the subtitles trocchietto Sony Reader 0 03-16-2015 10:14 AM
Content Can I make Kindle Paperwhite collection subtitles? Katdragon Amazon Kindle 1 06-29-2014 10:34 PM
Bookdesigner loading Subtitles? ProDigit LRF 2 02-03-2009 10:51 AM


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


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