• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Need To Have Different TOC Entry Display In Reader

Engaged ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

I'm putitng the final touch on a reflowable ePub. Each chapter, as it appears on the book, has 3 different paragraph styles: 1 for the number, 2 for the word "Chapter" and a 3rd for the chapter name. (screenshot) 

 

The author wants the TOC in the ePub reader to display Chapter 1 Leaving Home. How would I do this using one style, but still preserve the appearance in the book? Is it possible to add this to the page below the image, create a style with the text size to 1pt, but set the color to be 100% transparent so the eReader picks it up, but invisible to the person reading? The transparent part would have to be done after export, if it's even an option, using RGBA. The problem that might arise is whether the ePub reader supports transparent text. I'm open to other ideas.

 

TOC.png

 


It's only an island if you look at it from the water.
TOPICS
EPUB , How to

Views

279

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 27, 2023 Jul 27, 2023

It actually hurts my fingers to type this, but another approach would be to edit the display text in the exported EPUB's TOC file. That would have to be repeated for each new export.

Votes

Translate

Translate
Community Expert ,
Jul 26, 2023 Jul 26, 2023

Copy link to clipboard

Copied

You could add "Chapter 1 Leaving Home" on a non-printing layer and/or move the text frame to the side so that just a little bit is overlapping the page. Then call in the style assigned to that text into the TOC. Just a little frame overlap (and no letters) is enough for InDesign to see it.

 

~Barb

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

I'm in a non experimenting place, so can't check, but I'm not sure that would work,  Barb. EPUB export doesn't discard content (in actuality or effectively) the way print and PDF do. Nor am I sure swapping TOC anchor points in and out, with layers or conditional text, will work right. 

 

The micro text idea is the most reliable method, I think, but neither EPUB nor Kindle supports transparent/None objects. Making it white and accepting that some readers might show it, however tiny, on black or tinted backgrounds, is as close as it gets.

 

Need to work through some options on this next time I'm at my desk.  🙂


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

It actually hurts my fingers to type this, but another approach would be to edit the display text in the exported EPUB's TOC file. That would have to be repeated for each new export.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

Thank you everyone for your ideas.

 

James, you gave me the idea to edit the toc.Xhtml file which turned out to be pretty easy to do. It just took me a few minutes to copy and paste the chapter details into the <ol><li>. I tested it on Thorium, Google Play Books and 2 other eReader apps. The TOC is displaying correctly in each case.


It's only an island if you look at it from the water.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

Well, good. Yes, it's easy enough to edit that text and there's nothing tricky about it, but I avoid EPUB surgery like the plague it is, and it will have to be repeated, without flaw, every time you update and export. So many chances to bollix up either the TOC or the whole EPUB... which is why validation exists for that approach and why I avoid it.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

How about simple script that will work on a temporary INDD file - "combine" Paragraphs styled with selected ParaStyles - and you'll export ePUB from this temporary file?

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

It has to be a two-ended thing, like a web page link. Just generating the TOC without preserving the text links won't work... there will be no destination for them. 


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

From the script - you can check for Bookmarks / Hyperlinks in the text you want to modify - and act accordingly - so I don't see a problem.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

I don't see how going 'forward and back' with the INDD file will get to both goals — a reliable compound TOC, and the contents the way the OP and author want them. Either the ID file needs to be constructed so that the TOC is automatically generated, or the TOC is going to have to be manually edited... I see no third option.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

OP wants to combine 3x consecutive paragraphs into one and then create new TOC - not sure why do you think it's a problem?

 

Of course it won't materialise from a thin air - but is perfectly doable - including what you've mentioned before - "refirecting" Bookmarks and Hyperlinks.

 

But as OP already done it the brute force way - problem solved? 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 27, 2023 Jul 27, 2023

Copy link to clipboard

Copied

LATEST

Yes, you can combine the text, and then generate the TOC... but that no longer leaves the page layout as desired. I'm saying you can't have both without some workaround to allow the three separately styled paragraphs.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines