06-13-2012, 12:12 AM | #1 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Is it possible to turn off all automation in Sigil?
Hi
I just tried Sigil for the first time to create an epub. I'm using v0.5.3. I have previously generated several epubs by hand, and know exactly how I want my epubs formatted. I have turned off Tidy and the check for well-formed errors. But every time I do a global search and replace, Sigil insists that I must have an ID for all my headings; I do not want them, but when I remove them Sigil generates new ones for me. I also do not like to have blank lines between paragraphs, but Sigil automatically inserts them, much to my despair. I would like to use Sigil to generate .opf and .toc files for me, and validate the epub, plus switching between book-view and code-view, i.e. doing what sigil is best at, but I do not want anything to temper with my html-code. Is it possible to turn off all the automatic formatting, so that I can be the judge of how the code shall be written? |
06-13-2012, 12:28 AM | #2 | |
Well trained by Cats
Posts: 29,800
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:
Obviously you want a simple Text editor so you can do everything yourself. Sigil's inserted 'id' hurt only your sense of what is correct. Some people make books with multipl chapters per segment. a ID is mandatory in that case. Sigil just applies the KISS principle and always assigns an ID to all headers. Any can now be used as an anchor. Your gripe would be justified if Sigil 'broke' perfectly valid constructs like Tidy was known to mangle. |
|
Advert | |
|
06-13-2012, 12:37 AM | #3 |
Evangelist
Posts: 416
Karma: 1045911
Join Date: Sep 2011
Location: Cape Town, South Africa
Device: Kindle 3
|
I don't think that worrying about id's is worth it, I can understand the problems with Tidy being annoying and pretty printing everything. This however is fixed in the next version.
So yeah, in short : Either give a valid reason for why you hate hearder id's (which make ToC's work quite simply) or remove them after using Sigil.... or just accept them and move on. |
06-13-2012, 12:46 AM | #4 |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Actually I want more than a simple text editor. I have until now used Notepad++, and are very happy with it since I can do whatever I want and know that nothing tries to "fix" code that I have written and are content about.
But Sigil have some nice features that notepad++ does not have: -auto generation of .ncx- and .opf-files -Options for symantics, so I do not need to search the internet every time I try to make the two mentioned files -Automatic splitting of files -Validation by pressing a button -Cross-platform(!) -Spell-check with configurable wordlists that can be copied to the next location when you re-install your OS -And more options very suited for generation of epubs. Unfortunately, it is also useless because it destroys my code, even when I have turned off everything I can turn off -Any meta-tags in the header is deleted automatically (this is very annoying and a major headache) -Blank line between paragraphs are added against my wish -id's are added where I do not want any (I want to keep my code readable and searchable without needing to worry about id's in tags) and some other minor pains in the you-know-what |
06-13-2012, 02:11 AM | #5 |
Sigil developer
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
|
Header IDs are automatically added when you Generate a TOC, or when you Save. I'm not sure why its generating IDs when saving, but we'll look into that. Its possible someone once found that some readers had a problem if there were no IDs? But as mentioned they shouldn't cause any issue.
The meta tags are not deleted automatically. Can you give a step by step example of how to demonstrate this? You have to wait for the next version in order to be able to stop Sigil's from using HTML Tidy to Pretty Print your code. |
Advert | |
|
06-13-2012, 03:04 AM | #6 | |
Zealot
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
|
Quote:
FWIW, when you do a "Replace All" in "All HTML files" any well-formed errors are auto fixed without asking you regardless of the state of "check for well-formed errors" option. Last edited by Ahmad Samir; 06-13-2012 at 03:08 AM. |
|
06-13-2012, 03:55 AM | #7 | ||
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Quote:
Quote:
Step1: Have an ordinary epub. Add line Code:
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8"/> Search and replace for something Step2: The meta line is gone. This happens when tidy is turned off (see image) and when the red sign for well-formed-errors is on or off, it does not matter I'm looking forward to it. I like to be in control of my computer, not the opposite way around. Sigil is superb because of the features I stated in post number 4, but I don't like too much automation interfering with my code |
||
06-13-2012, 04:05 AM | #8 | |
Guru
Posts: 932
Karma: 15752887
Join Date: Mar 2011
Location: Norway
Device: Ipad, kindle paperwhite
|
Quote:
But I really do not understand why automatic error-correction is done after each search and replace? When you choose to do something in code view, the programmers of Sigil must assume that the user knows what he/she is doing and allow the user to shoot oneself in the foot if he/she whishes to do so? I'm sure there are scenarios where you could want to do a search and replace in two stages, and auto-correct errors after the second stage, but not after the first |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre automation sans command-line | Headcase_Fargone | Library Management | 2 | 03-17-2012 09:58 PM |
How do you turn Sigil OFF? | allowingtoo | Sigil | 5 | 08-15-2011 09:18 PM |
Fetching News Schedule + exporting them to iTunes automation | pweasel | Calibre | 8 | 06-17-2011 12:14 AM |