Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 10-26-2015, 07:05 AM   #106
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
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)
http://www.regular-expressions.info/
eschwartz is offline  
Old 10-26-2015, 08:17 AM   #107
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by Notjohn View Post
Would you point me to that simple guide? Gosh knows, I need one!
MR members Pablo and Manichean, both wrote tutorials quite a while back (early 201x's).


Manichean's was the first and the one that got thru my thick skull
theducks is online now  
Old 10-26-2015, 08:45 AM   #108
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,596
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
DiapDealer is offline  
Old 10-26-2015, 11:17 AM   #109
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
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'
No problem with the message, but after that Sigil doesn't close, the process must be killed.

PS Sigil 8.6 has no problem nor epubcheck 4.
Arios is offline  
Old 10-26-2015, 12:51 PM   #110
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,596
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by Arios View Post
Sorry, but I found an error in Sigil 0.8.901.0 (win 7, HP 64 b).
No need to apologize, by the way. Even if it HAD been a heretofore unmentioned bug.
DiapDealer is offline  
Old 10-26-2015, 01:46 PM   #111
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,799
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:
Originally Posted by Arios View Post
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'
No problem with the message, but after that Sigil doesn't close, the process must be killed.

PS Sigil 8.6 has no problem nor epubcheck 4.

Last edited by KevinH; 10-26-2015 at 01:52 PM.
KevinH is online now  
Old 10-26-2015, 06:53 PM   #112
Arios
A curiosus lector!
Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.Arios ought to be getting tired of karma fortunes by now.
 
Arios's Avatar
 
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 ) because I think as a writer for whom a spelling mistake is horrible and not as a programmer for whom a dead bug mean an app more lively... something like that
Arios is offline  
Old 10-27-2015, 01:08 PM   #113
sinclair
Junior Member
sinclair began at the beginning.
 
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 into — Unfortunately it's also doing the same to single double quotes and basically every html escape I have in my html file.
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
sinclair is offline  
Old 10-27-2015, 01:25 PM   #114
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,799
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:
Originally Posted by sinclair View Post
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 into &amp;amp;mdash; Unfortunately it's also doing the same to single double quotes and basically every html escape I have in my html file.
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
KevinH is online now  
Old 10-27-2015, 01:40 PM   #115
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,596
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 &mdash; to &amp;mdash; in Code View. Just like a typing an html tag (like <h2>) in Book view will result in &lth;2;&gt; 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:
Originally Posted by sinclair View Post
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;) into &amp;amp;mdash; Unfortunately it's also doing the same to single double quotes and basically every html escape I have in my html file.
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
DiapDealer is offline  
Old 10-28-2015, 03:26 PM   #116
sinclair
Junior Member
sinclair began at the beginning.
 
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
sinclair is offline  
Old 10-28-2015, 03:36 PM   #117
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,799
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:
Originally Posted by sinclair View Post
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
KevinH is online now  
Old 11-01-2015, 09:49 AM   #118
jugaor
Enthusiast
jugaor began at the beginning.
 
jugaor's Avatar
 
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>
becames
Code:
<p><u>Prueba</u><i>de</i><b>texto</b><span class="nosep">junto</span></p>
It reads: Pruebadetextojunto.
(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.)
jugaor is offline  
Old 11-01-2015, 11:36 AM   #119
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,596
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by jugaor View Post
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)
No. Google Gumbo-Parser is not the equivalent of HTML Tidy. In fact, Google Gumbo-Parser is the option you want to select if you want Sigil to make the very least changes to your code possible. Pretty-Print is the more intrusive option.

Quote:
Originally Posted by jugaor View Post
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.
I'm afraid this isn't very likely to happen. If you wish to run two different versions of Sigil on the same machine, I would recommend using something like Portable Apps' version of Sigil for the older version.

Quote:
Originally Posted by jugaor View Post
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>
becames
Code:
<p><u>Prueba</u><i>de</i><b>texto</b><span class="nosep">junto</span></p>
It reads: Pruebadetextojunto.
(Besides the use of deprecated < u > tags )
I can confirm what you're experiencing here. The problem is really exacerbated when the only "text" outside of inline tags (inside a block-level tag) is whitespace. Recommendation for now is to exclusively use the Pretty Print Gumbo clean source setting. At least until we move Pretty Print to a plugin (or at least a feature separate from the clean source settings) where it belongs.

Last edited by DiapDealer; 11-01-2015 at 11:51 AM.
DiapDealer is offline  
Old 11-01-2015, 12:46 PM   #120
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,799
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
KevinH is online now  
Closed Thread


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:13 AM.


MobileRead.com is a privately owned, operated and funded community.