![]() |
#1 |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 621
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Configuring the HTML TOC?
Hi -
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 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 | |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 621
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
Regards, Kim |
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() Tis means, I can simply copy a saved SCG-TOC.CSS into new work ![]() |
|
![]() |
![]() |
![]() |
#5 |
Sigil developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,274
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.
|
![]() |
![]() |
![]() |
#6 | |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 621
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
Quote:
![]() And this doesn't cater for the "Table of Contents" text at top of the file. |
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
IMHO that is a BUG (If you set the books Language in the Metadata, prior to generating the TOC)
|
![]() |
![]() |
![]() |
#8 |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 621
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
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,274
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. Last edited by meme; 02-11-2013 at 03:27 PM. |
![]() |
![]() |
![]() |
#10 |
Imperfect Perfectionist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 621
Karma: 863576
Join Date: Dec 2011
Location: Ølstykke, Denmark
Device: none
|
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,274
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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindler previewer not recognizing toc.ncx file, my html toc, or the start point... | petercrowell | Kindle Formats | 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 | Kindle Formats | 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 |