|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
|
Configuring the HTML TOC?
I may have missed something, but is there anywhere in Sigil, where you can confgure the HTML table of contents (a template or such somewhere, maybe?) I wish to configure the standard Title-line (which obviously won't be "Table of Contents" in danish :0) - but also the css in the beta's new css-file. Regards, Kim |
|
|
|
|
|
#2 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,754
Karma: 2485852
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
Enthusiast
|
|
|
|
#3 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
|
Quote:
Regards, Kim |
|
|
|
|
|
|
#4 | |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,754
Karma: 2485852
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
Quote:
) , and it works just like I requested Tis means, I can simply copy a saved SCG-TOC.CSS into new work
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
|
#5 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,262
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Just edit the sgc-toc.css to what you want it to be, right-click on it, then save it to a template folder somewhere. For your next book, just add the file to your book, and run Create HTML TOC - the sgc-toc.css file will not be overwritten.
__________________
See the Sigil User Guide and its tutorials for details about Sigil. |
|
|
|
|
|
#6 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
|
Quote:
- so I would want to influence the css made by Sigil when generated - just to save a few clicks ...)And this doesn't cater for the "Table of Contents" text at top of the file. |
|
|
|
|
|
|
#7 |
|
Staff to 4 Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,754
Karma: 2485852
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2,Black Astak PEz, K4NT(now Wifes)
|
IMHO that is a BUG (If you set the books Language in the Metadata, prior to generating the TOC)
__________________
Using: Ubuntu(32 bit):Oneric,Precise and XPpro SP3, W7HP(64)- - Libre Office w/Writer2EPUB
|
|
|
|
|
|
#8 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
|
The books language is set to Danish (imported with the original HTML file metadata). But I do prefer to run Sigil in english (I also curse the moron, who decided that Excels functions is translated to the local languages - but that's another story ...) - maybe that's why? Anyhow, it would be nice to configure the phrase used.
|
|
|
|
|
|
#9 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,262
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
The "Table of Contents" text at the top wasn't translatable. It is now (for the release after beta2). But it would need to be translated by someone and made available in some future version. Having a setting for it is a bit much so I think you'll just have to edit it to say what you want each time - you can create a Clip for it - or a Saved Search that replaces that exact text/code.
But having the css file use a default sounded interesting, so I've added a few lines to check for an sgc-toc.css in your preferences directory, and if you don't have an sgc-toc.css file in your book already and this file exists in your preferences directory it will add it. Same for sgc-index.css. We'll see if it makes it to release.
__________________
See the Sigil User Guide and its tutorials for details about Sigil. Last edited by meme; 02-11-2013 at 03:27 PM. |
|
|
|
|
|
#10 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 54
Karma: 1110
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: Sony PRS-T1, iPad
|
Hm, it could fetch the phrase from the .ini file. I've used that approach for a lot of VBA-macros. Just a thought.
|
|
|
|
|
|
#11 |
|
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,262
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
I'd rather not require/encourage editing the .ini file manually. All settings should be done by the gui, though that ideal may not always be the case. We'll see what other things might be similar to see if it warrants pursuing.
__________________
See the Sigil User Guide and its tutorials for details about Sigil. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Mobi | 2 | 05-01-2012 08:14 AM |
| HTML input plugin stripping text within toc tags in child html file | nimblebooks | Conversion | 3 | 02-21-2012 03:24 PM |
| NCX From Html TOC | Unno | Mobi | 20 | 09-16-2011 09:31 AM |
| Need help with html>epub ToC | Cthulhu Inc | Conversion | 2 | 03-26-2011 04:18 PM |
| HTML Book + non HTML TOC to epub | aarcane | Calibre | 4 | 03-02-2010 02:58 AM |