Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-22-2021, 11:19 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Does "Set semantics" work with an epub3 file <nav section?

I have an epub3 book (upgraded from epub2) and I set semantics on several files

They show under <guide> in content.opf, but I thought that they were also supposed to also show in <nav epub:type="landmarks" hidden=""> in the nav.xhtml file so that other viewers would find them

If it makes a difference, I upgraded the internals to epub3 before I set semantics
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	111
Size:	98.2 KB
ID:	189770   Click image for larger version

Name:	Capture1.JPG
Views:	105
Size:	13.9 KB
ID:	189771  

Last edited by phossler; 10-22-2021 at 11:22 PM.
phossler is offline   Reply With Quote
Old 10-23-2021, 01:34 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,992
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, I think that tool was created before epub 3 existed and was never updated for it. I suppose I should add support for landmarks to it as well. Though I doubt there is a complete mapping of guide types to landmark types, and since this tool presents only one list of types, its going to be fairly confusing in books that have both. Oh well, the vissictudes of EPUB.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-23-2021, 06:52 AM   #3
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,992
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...e6f43d1456c912
kovidgoyal is offline   Reply With Quote
Old 10-23-2021, 04:51 PM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,079
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Thanks

I was working on a RegEx to reformat the content.opf <guide> <references after copying them to the nav.xhtml landmarks section, but your way is much better
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding semantics to ePub 2.0: where are "Notes"? roger64 Sigil 13 01-15-2019 07:25 AM
"C'mon, I Want Lolcats" or "how to abuse JS in EPUB3" AlPe ePub 18 06-29-2013 06:31 PM
Set the list of words considered to be "articles" for sort strings lousignolo Library Management 8 05-13-2012 06:54 PM
"Potential Energy" free now through 2/15 (Dystopian sci-fi novel set in Superfrance) HughMyers Self-Promotions by Authors and Publishers 1 02-11-2012 10:06 PM


All times are GMT -4. The time now is 11:31 AM.


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