![]() |
#106 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
![]() |
![]() |
#107 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,079
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
#108 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We're drifting a bit from the purpose of this thread again. This is not the thread for learning how to use features long present in Sigil. If you don't understand a particular feature of Sigil (that wasn't introduced in 0.8.901) please start a separate thread about it.
New feature requests should also have their own threads. Thanks |
![]() |
![]() |
#109 |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Hi Kevin and Diap,
Sorry, but I found an error in Sigil 0.8.901.0 (win 7, HP 64 b). I was playing with a new crutledge's epub (Shawnee's Warning, The, here: https://www.mobileread.com/forums/sho...d.php?t=266762). By habit I made a SanityCheck which has barked with the following message: Code:
Embedded Python Error Traceback (most recent call last): File "F:/Sigil89/python3lib\sanitycheck.py", line 290, in perform_sanity_check has_error, errlist = p.check() File "F:/Sigil89/python3lib\sanitycheck.py", line 61, in check for text, tp, tname, ttype, tattr in self.parse_iter(): File "F:/Sigil89/python3lib\sanitycheck.py", line 213, in parse_iter tname, ttype, tattr = self.parsetag(tag) File "F:/Sigil89/python3lib\sanitycheck.py", line 97, in parsetag error_msg = 'Tag name not properly delimited: "' + self.s[b:p] + '"' AttributeError: 'SanityCheck' object has no attribute 's' PS Sigil 8.6 has no problem nor epubcheck 4. |
![]() |
![]() |
#110 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
#111 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,797
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi,
Actually that is still an unfixed bug. It just no longer gets hit. The self.s[b:p] should really be s[b:p]. I will fix this now and commit the fix to master. So I am very happy you submitted the bug report! KevinH Quote:
Last edited by KevinH; 10-26-2015 at 01:52 PM. |
|
![]() |
![]() |
#112 |
A curiosus lector!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 463
Karma: 2015140
Join Date: Jun 2012
Device: Sony PRS-T1, Kobo Touch
|
Thanks Kevin,
This is my first bug report without any bugs, I would have been devastated if it had been for nothing... And the incriminating crutledge's epub could now be renamed: Arios's Warning, The PS To Doitsu and DiapDealer: I feel sorry (a little ![]() ![]() |
![]() |
![]() |
#113 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2015
Device: none
|
Hi everyone,
Sorry if this has already been reported elsewhere, but I seem to have found a serious bug that is making Sigil pretty much unusable for producing a clean epub. I'm using version 0.8.901 on Windows 10 and it keeps messing up the html escape characters in my html documents. For example, when I open my html file in Sigil it changes an emdash ( &mdash ![]() If I go into 'Preferences' and then 'Clean Source' and untick both the 'Open' and 'Save' boxes for automatically cleaning the html source, it makes no difference. If I correct the html escape codes and then save and close the epub, when I reopen it, it once again messes up all the html escape characters. Similarly, if I add all the html escape characters to the 'Preserve Entities' box that doesn't seem to make any difference either. Hope this information is helpful. Paul |
![]() |
![]() |
#114 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,797
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi sinclair,
I simply can not recreate this at all. mdash and nbsp seem to be working well and no duplication or anything else. That said, if your html is not well formed ie. missing an opening < or closing > or /> , the gumbo parser will do strange things to try and prevent removal of your data. So please load up a copy of your file and run SanityCheck (the checkmark) on it. Please let me know what it tells you. KevinH Quote:
|
|
![]() |
![]() |
#115 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Entering the entities you wish to preserve in the Preserve Entities prefernces certainly works for quite a few people (myself included). There are some rare entities that it doesn't work for, but emdash is certainly one that works for me and many others.
For the record, the gumbo parser does not speak "entity," so unless the entities are properly entered in the Preserve Entities list first, they will all be converted to their unicode characters equivalents. This is just how Sigil works now. But this is this first I've ever heard of entities being re-"entitied." The only time I've ever seen anything like that is if someone tries to type (or paste) an html entity/tag into Book View. If that's the case, then Sigil is correct in changing — to &mdash; in Code View. Just like a typing an html tag (like <h2>) in Book view will result in <h;2;> in Code View. Can you provide a small sample (non-copyrighted) epub and the documented steps to reproduce what you're seeing? That would be very helpful. Thanks. Quote:
|
|
![]() |
![]() |
#116 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Oct 2015
Device: none
|
Hi KevinH and DiapDealer,
Thanks for your kind advice, which seems to have solved the problem. I added the latest Sanitychecker plugin to Sigil and opened the html file. I manually fixed all the messed up html escape entities using find and replace and then ran Sanitychecker. It then came up with the message 'No problems found!'. Then I went to the Preserve Entities preferences and deleted the entities I had and then re-entered them. After closing the html file without saving it and re-opening it Sigil stopped messing up the Escape entities. Not sure what exactly happened there, but perhaps I had entered one or more of those html entities incorrectly. Anyway, it seems to be working properly now. Many thanks again for your help. Paul |
![]() |
![]() |
#117 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,797
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi sinclair,
Glad to hear it! FYI: SanityCheck is now built in to Sigil-0.8.901 under the Checkmark symbol that used to run FlightCrew. So no need to add the plugin to run SanityCheck any more in recent versions of Sigil. Take care, Kevin Quote:
|
|
![]() |
![]() |
#118 |
Enthusiast
![]() Posts: 31
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
Hi.
Thank you very much for keeping alive the Sigil project! 1. I think I've found a serious problem with Pretty Print Gumbo (0.8.901, Win7-x64): it joins contiguous labels, creating false "long" words. Ex: Code:
<p><u>Prueba</u> <i>de</i> <b>texto</b> <span class="nosep">junto</span></p> Code:
<p><u>Prueba</u><i>de</i><b>texto</b><span class="nosep">junto</span></p> (Besides the use of deprecated < u > tags ![]() BTW, the Google Gumbo-Parser is fine (although I don't want changes to the code --as I understand it is equivalent to the previous HTML Tidy). 2. It's possible maintain two versions of Sigil, with independent Preferences folders? I prefer to keep active the 0.87 Pretty Print Tidy option for the daily work, but launching 0.89 it becomes the now erroneous PPGumbo. Thank you very much! (and sorry for my terrible English.) |
![]() |
![]() |
#119 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,591
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Quote:
Quote:
Last edited by DiapDealer; 11-01-2015 at 11:51 AM. |
|||
![]() |
![]() |
#120 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,797
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Arrggh ... that prettyprint bug will need to be fixed before any Sigil-0.9.0 release.
I'll take a shot at it later this afternoon to see if I can track down where single whitespace inside a p tag is being lost. Thanks for your bug report! KevinH |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook | rosshalde | Sigil | 12 | 11-13-2014 09:34 AM |
Sigil 0.7 Beta (0.6.901) Available | user_none | Sigil | 51 | 02-10-2013 07:50 PM |
Sigil 0.5.901 for Mac | ajay42 | Sigil | 14 | 08-30-2012 09:22 AM |
Sigil 0.2.0 Release Candidates | Valloric | Sigil | 46 | 05-10-2010 09:55 PM |