Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 01-01-2011, 10:50 AM   #1
HopelessManu
Junior Member
HopelessManu began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
MultiLevel TOC Sigil

Hi everybody!
Let's say I've created quite a good epub from InDesign, fixing things with Dreamweaver. Now: the TOC on the left is not as I expected. I'm just too bad to manually change the TOC in, e.g., TextEditor, but luckily enough I've just discovered Sigil!
It allows me to change the voices, eliminate some of them... BUT WHAT ABOUT TRANSFORMING A 1st LEVEL VOICE INTO A 2nd LEVEL ONE?

Please help soon!
HopelessManu is offline   Reply With Quote
Old 01-01-2011, 11:21 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HopelessManu View Post
Hi everybody!
Let's say I've created quite a good epub from InDesign, fixing things with Dreamweaver. Now: the TOC on the left is not as I expected. I'm just too bad to manually change the TOC in, e.g., TextEditor, but luckily enough I've just discovered Sigil!
It allows me to change the voices, eliminate some of them... BUT WHAT ABOUT TRANSFORMING A 1st LEVEL VOICE INTO A 2nd LEVEL ONE?

Please help soon!
Voice? Translates as "Heading"?

In Sigil. Place the cursor on the line with the heading (Notice the Style box switched from 'Normal' to 'Heading1' )
Simply change(pull down) that to 'Heading 2'

Do NOT highlight text,
Just place the cursor on the same line.
These styles and Justification apply to entire 'paragraphs' that terminate with a non-visible end-of-line character (in CV)
theducks is offline   Reply With Quote
Advert
Old 01-01-2011, 11:27 AM   #3
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
<h1> is for first level, <h2> for second level down to level 6.

If you want to change <h2> into <h3> use the following regex:

search:
Code:
<h2(.*>)(.*)</h2>
replace:
Code:
<h3\1>\2</h3>
options: minimal matching, search in all html files

but be careful: if you want to change now all old h3 to h4 you cant cause you have now new h3 which will be converted to. So you have to start at the bottom going to the top when changing the levels in more then one hierarchy.
huebi is offline   Reply With Quote
Old 01-01-2011, 12:07 PM   #4
HopelessManu
Junior Member
HopelessManu began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
yes, "heading", sorry!
Mmm... Let me give you an example: I have a cover (an image) and an abstract (without the title "Abstract", just plain text). COVER must be level 1 in the TOC, ABSTRACT level 2.
If I put the cursor on the abstract and give it "heading 2", it changes format! But I don't want that!
HopelessManu is offline   Reply With Quote
Old 01-01-2011, 12:59 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HopelessManu View Post
yes, "heading", sorry!
Mmm... Let me give you an example: I have a cover (an image) and an abstract (without the title "Abstract", just plain text). COVER must be level 1 in the TOC, ABSTRACT level 2.
If I put the cursor on the abstract and give it "heading 2", it changes format! But I don't want that!

It chnges size

OK, time to hit the stylesheet and overide the size

Add/paste at the top (outside any other selectors)
Code:
 h2 { font-size: 150%}
Adjust percentage to suite. Affects ALL h2 tags
theducks is offline   Reply With Quote
Advert
Old 01-01-2011, 01:04 PM   #6
HopelessManu
Junior Member
HopelessManu began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jan 2011
Device: none
I see... Correct me if I'm wrong: I could make my TOC with sigil, then go back to the CSS and change the size.
Would it be difficult to open ONLY the TOC with Sigil and changing it manually?
HopelessManu is offline   Reply With Quote
Old 01-01-2011, 01:47 PM   #7
huebi
Zealot
huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!huebi , Klaatu Barada Niktu!
 
Posts: 121
Karma: 5070
Join Date: Dec 2010
Device: none
No, the TOC is derived from the <hx> elements.
huebi is offline   Reply With Quote
Old 01-01-2011, 04:11 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by HopelessManu View Post
I see... Correct me if I'm wrong: I could make my TOC with sigil, then go back to the CSS and change the size.
Would it be difficult to open ONLY the TOC with Sigil and changing it manually?
Huebi has it.
You can modify the CSS at any time, it does not change the document other than appeaence.
Bigger,Smaller, Bold, Underline can all be (and should be if it affects more than 1 page. Now you change in one place) done via the CSS.
No, I am not saying that you MUST, just that it is a neat and elegant solution.
theducks is offline   Reply With Quote
Old 01-02-2011, 12:35 PM   #9
DaleDe
Grand Sorcerer
DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.DaleDe ought to be getting tired of karma fortunes by now.
 
DaleDe's Avatar
 
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
Well, CSS can change only the appearance but that includes making the text invisible.
DaleDe is offline   Reply With Quote
Old 01-02-2011, 02:03 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,809
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by DaleDe View Post
... includes making the text invisible.
Nasty
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre ePub TOC and Sigil salasnet Calibre 3 09-26-2010 05:34 PM
Sigil Toc editor Enesco Sigil 16 09-23-2010 06:41 AM
Multilevel TOC MovieBird ePub 2 05-02-2010 10:37 PM
sigil and toc bobcdy Sigil 5 10-17-2009 04:29 PM
TOC in Sigil KindleKid Sigil 8 08-19-2009 04:30 PM


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


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