View Single Post
Old 07-23-2021, 03:53 AM   #17
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by slowsmile View Post
Deleting what from where?
I had a toc with 3 levels of headings, as mentioned. Using the plugin combined level 1 and level 2, deleted level 3. Only affecting the ncx file, to clarify, the HTML files aren't affected.

This is the way the chapter headings were coded originally.
Code:
<body class="content">
  <div class="title-page-contributor-primary-block">
    <div class="heading1">
      <div class="heading-contents1">
        <div class="title-page-contributor-primary-block">
          <div class="element-number-block">
            <h1>5</h1>
          </div>
          <div class="title-page-contributor-primary-block">
            <h2>Jake</h2>
          </div>

          <h3>Day One</h3>
        </div>
      </div>
    </div>
Using Sigil's generate TOC tool gives 3 levels of headings.
Then using the plugin combines h1 and h2 text in the TOC, and the h3 heads disappear.



Quote:
Originally Posted by slowsmile View Post
When you say configurable separator character do you mean being able to configure different font characters/symbols with different font sizes etc?
The character.
I know there is no formatting in the NCX, at least no way I know of.

The plugin offers space, em dash, en dash, tilde as separator.
Many use period or colon, (Chapter 2: The Story Continues) but rather than add more and more symbols, etc., simplest just have a default and let user change it to whatever, preferably retained for next use.

Last edited by AlanHK; 07-23-2021 at 06:52 AM.
AlanHK is offline   Reply With Quote