MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   heading tag with sigil 0.7.4 (https://www.mobileread.com/forums/showthread.php?t=231212)

bobcdy 01-11-2014 11:50 PM

heading tag with sigil 0.7.4
 
With earlier versions of Sigil I often used the title in my headings, such as

<h3 id="head_5" title="Chapter I. This is the Title">Chapter I.</h3>

then in ADE the internal toc would show

Chapter I. This is the Title

and the text page would show

Chapter I.

With v 0.7.4 this tag does not seem to work. The ADE internal toc shows Chapter I. just as does the text page. I compared tags from my earlier epubs with those I create in 0.7.4 and there seems no difference except the earlier epubs don't have a problem with titles in the heading tags. Is there a bug in Sigil 0.7.4 or is there something that I'm doing incorrectly in the newest version? Perhaps I've always misused the title but earlier Sigils just tolerated the error?

theducks 01-12-2014 12:47 AM

Quote:

Originally Posted by bobcdy (Post 2736916)
With earlier versions of Sigil I often used the title in my headings, such as

<h3 id="head_5" title="Chapter I. This is the Title">Chapter I.</h3>

then in ADE the internal toc would show

Chapter I. This is the Title

and the text page would show

Chapter I.

With v 0.7.4 this tag does not seem to work. The ADE internal toc shows Chapter I. just as does the text page. I compared tags from my earlier epubs with those I create in 0.7.4 and there seems no difference except the earlier epubs don't have a problem with titles in the heading tags. Is there a bug in Sigil 0.7.4 or is there something that I'm doing incorrectly in the newest version? Perhaps I've always misused the title but earlier Sigils just tolerated the error?

It really works
I just recently built one from 2 lines via the magic of REGEX

<h3 class="chapno">Chapter 1</h3>\s+
<p class="subtitle">Subtitle for chapter 1</p>

<h3 class="chapno" title="\1: \2">\1</h3><p class="subtitle">\2</p>

Did you remember to regenerate your NCX ?

bobcdy 01-12-2014 01:21 AM

Thanks, theducks,
Duh... I had indeed forgotten to regenerate the TOC - regenerating it and the problem went away.

theducks 01-12-2014 01:45 PM

:D
Blame the Cat for interuppting your train of thought .
That is what I do.
With 4 cats to blame, I am always safe ;)


All times are GMT -4. The time now is 10:30 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.