06-19-2012, 02:49 AM | #106 | |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Quote:
There are a few ways around this:
|
|
06-19-2012, 03:03 AM | #107 | |
A tree.
Posts: 25
Karma: 445628
Join Date: Jun 2012
Location: The Library
Device: iPad
|
Quote:
Last edited by mesquite; 06-19-2012 at 03:06 AM. |
|
06-19-2012, 03:07 AM | #108 |
Grand Sorcerer
Posts: 5,604
Karma: 23165369
Join Date: Dec 2010
Device: Kindle PW2
|
Since inline TOCs are only needed for Kindle books, why not follow Amazon's recommendation and use divs?
Their publishing guideline recommends the following: Code:
<style> div.chapter { margin-left: 1em} div.subchapter { margin-left: 2em} </style> <div>Section 1</div> <div class="chapter">Chapter 1</div> <div class="chapter">Chapter 2</div> <div class="chapter">Chapter 3</div> <div class="subchapter">Subchapter 1</div> <div class="subchapter">Subchapter 2</div> <div class="chapter">Chapter 4</div> <div class="subchapter">Subchapter 1</div> <div>Section 2</div> |
06-19-2012, 03:12 AM | #109 |
Sigil developer
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
If I remove the list items, then using divs looks like a good suggestion. I've just gotten into the habit of using p tags, but technically these aren't paragraphs Probably should update them in the user guide for a few of pages.
Inline TOCs are not only needed for Kindles. They are also useful if you want a TOC in your book, or want one that looks slightly different (more/less items) than the regular TOC (and some devices don't indent their regular TOC). |
06-19-2012, 03:18 AM | #110 |
A tree.
Posts: 25
Karma: 445628
Join Date: Jun 2012
Location: The Library
Device: iPad
|
This is putting me in over my head if I do the div, do I create a style sheet in the conversion option in Calibre? I like where the update with Sigil is going with the inline and was thrilled to see it available just got the nasty shock of the numbered ToC after the conversion.
|
06-19-2012, 03:25 AM | #111 | |
Zealot
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
|
Quote:
From src/Sigil/BookManipulation/CleanSource.cpp, Tidy in Sigil is configured to preserve entities: Code:
tidyOptSetBool( tidy_document, TidyPreserveEntities, yes ); Code:
preserve-entities Type: Boolean Default: no Example: y/n, yes/no, t/f, true/false, 1/0 This option specifies if Tidy should preserve the well-formed entitites as found in the input. |
|
06-19-2012, 04:32 AM | #112 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
A simple workaround is to just change <ol></ol> to <ul></ul>.
You do get a middot in MOBI, but, well, you can also have easily inset multi-level section lists, which is nice. Not complete, I know, but it's simple and it gets rid of the numbers. Aloha, |
06-19-2012, 06:03 AM | #113 |
Resident Curmudgeon
Posts: 74,537
Karma: 129670952
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I think the idea of letting Calibre convert toc.ncx to an inline ToC is the best and most simple of ways to get a ToC in a Mobi file.
|
06-19-2012, 06:37 AM | #114 | |||
Grand Sorcerer
Posts: 27,595
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I'm not sure which method the devs use to produce the distributed Windows Binaries, but it doesn't seem to provide the entity substitution either. That's why I was confused about the claim that certain characters were being converted to entities since version 4. I'm just not seeing that happen on Windows with 0.5.3 or the latest beta (stock binary or built from source). *shrugs* Quote:
Quote:
Last edited by DiapDealer; 06-19-2012 at 07:29 AM. |
|||
06-19-2012, 08:38 AM | #115 |
Well trained by Cats
Posts: 29,944
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
06-19-2012, 07:51 PM | #116 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
I've changed ol to ul. ul actually makes more sense because the numbers might not match with actual chapter numbers. As for building on Windows. I use the Microsoft SDK. MinGW might work but I've never used it. At some point in the future I plan on moving to MinGW. Once that happens Microsofts compiler will no longer be supported. Entities, I have no idea why the replacement is not working on Windows. As Windows is a minority platform for developers this might me some time until it gets fixed or looked at. If it even does get fixed. In later versions the plan is to remove as much automatic magic as possible and move it into user callable plugins. @crutledge can you send me (john@niw.cx) an example file that crashes Sigil. I'll look into it. Beta 2 (0.5.902) should be ready later today or tomorrow. Hopefully. |
|
06-19-2012, 08:45 PM | #117 | |
Sigil & calibre developer
Posts: 2,487
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Also, if you're not using the latest checkout do so. I don't think you are because you posted yesterday and git has been broken for the past few days. |
|
06-19-2012, 08:51 PM | #118 | ||
Grand Sorcerer
Posts: 27,595
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
|
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
0.4.903 (0.5 beta) Avaliable | user_none | Sigil | 77 | 01-03-2012 09:24 PM |
0.4.902 (0.5 beta) Avaliable | user_none | Sigil | 65 | 12-18-2011 11:58 AM |
No Avaliable format ? ? ? | Janette55 | Library Management | 5 | 04-16-2011 04:09 PM |
901 | reymund | PocketBook | 3 | 12-16-2010 07:09 PM |