Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-09-2020, 12:23 AM   #1
dxcore35
Member
dxcore35 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: Kindle Voyage
"Invisible chapter title" but visible in TOC

Hello,

How to archive the automatic recognition of the chapter, but not show chapter title in the book?
* With solution that is file format indepedent (azw3 \ epub)

Example:

- Copyright page with no visible title in HTML body
- After auto-generating chapters (for example in Calibre > EPUB edit >Generate chapters from all headings)
- The copyright page should be recognized

Thanks a lot for suggestions!
dxcore35 is offline   Reply With Quote
Old 01-09-2020, 05:19 PM   #2
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,552
Karma: 14325282
Join Date: Nov 2019
Device: none
I'm not sure if I understand your question but try
Code:
<h2 class="nodisplay" title="Chapter title here">Chapter title here</h2>
and in your CSS file put
Code:
.nodisplay {
display: none;
}
The stuff between the quotes for title= gets picked up the the table of contents generator (overrides what's between the begin and end tags), if I remember correctly.

Last edited by hobnail; 01-09-2020 at 10:50 PM.
hobnail is offline   Reply With Quote
Old 01-09-2020, 05:20 PM   #3
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,552
Karma: 14325282
Join Date: Nov 2019
Device: none
If the above does what you want perhaps you could use an empty h2 tag
Code:
<h2 title="TOC stuff goes here" />
so then you don't need the CSS.
hobnail is offline   Reply With Quote
Old 01-09-2020, 10:07 PM   #4
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,094
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Quote:
Originally Posted by hobnail View Post
If the above does what you want perhaps you could use an empty h2 tag
Code:
<h2 title="TOC stuff goes here" />
so then you don't need the CSS.
Yes, but I think the page still leaves a place holder for an empty tag. You would need to tell it not to allocate space for the tag.
Code:
<h2 style="display:none" title="TOC stuff goes here" />

or

<h2 style="display:none" title="TOC stuff goes here"></h2>
This is a technique I use regularly for Dedication, Copyright, etc. pages.
Turtle91 is offline   Reply With Quote
Old 01-09-2020, 10:51 PM   #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,552
Karma: 14325282
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by Turtle91 View Post
Yes, but I think the page still leaves a place holder for an empty tag. You would need to tell it not to allocate space for the tag.
Code:
<h2 style="display:none" title="TOC stuff goes here" />

or

<h2 style="display:none" title="TOC stuff goes here"></h2>
This is a technique I use regularly for Dedication, Copyright, etc. pages.
Thanks. I hadn't thought of that.
hobnail is offline   Reply With Quote
Old 01-10-2020, 01:18 AM   #6
dxcore35
Member
dxcore35 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: Kindle Voyage
Either CSS solution either direct HTML solution works!
Thank you all, friend.
dxcore35 is offline   Reply With Quote
Reply

Tags
book, chapter, epub, toc


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use "short" instead of "full" title for title sort & renaming? wolpi Library Management 2 08-04-2016 05:25 PM
Making "invisible"characters visible? Phssthpok Editor 4 02-11-2016 01:40 PM
A warning for Linux users: slow "Add Books", "Unknown" title and Author rolgiati Library Management 8 07-24-2013 04:36 PM
Title page does not "translate" as TOC item Caleñ0 Sigil 19 10-19-2012 11:42 AM
Title page does not "translate" as TOC item Caleñ0 Conversion 3 10-18-2012 08:11 PM


All times are GMT -4. The time now is 03:11 PM.


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