![]() |
#61 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
#62 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi Toxaris,
Just pushed a fix for this to github master. The next point release will autohandle encoding and decoding of html stored inside Metadata fields by the gui. Thanks for your bug report! Kevin Quote:
|
|
![]() |
Advert | |
|
![]() |
#63 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Very nice!
All of the recent changes work as expected in my testing. |
![]() |
![]() |
#64 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi DiapDealer,
Glad to hear that it all works. I think that just leaves a few minor things to fix this weekend then: 1. fix for prettyprint adding whitespace after a and span tags inside div and not p tags 2. default all new sigil installs to clean wih just gumbo, not prettyprint 3. adjust python hunspell ctypes code to prevent missing libhunspell from impacting all plugins 4. create a testplugins.zip plugin for packagers to test with from testme3 Do you know of anything else that needs fixing? |
![]() |
![]() |
#65 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32
Karma: 2204
Join Date: Jul 2009
Device: none
|
With each heading (e.g. h1) containing <br/>, Sigil-0.9.0 will gererate 2 lines in TOC.
Please check! Thanks. |
![]() |
Advert | |
|
![]() |
#66 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Yes, if you read the thread, this was already talked about. The two lines will still exist, but the the whitespace will be simplified when the TOC and HTML TOC are generated.
Kevin |
![]() |
![]() |
#67 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 203
Karma: 62362
Join Date: Jul 2015
Device: Sony
|
Hi, I think I found another bug in Sigil 0.9.0:
The attached ePub file contains two paragraphs of text. The following steps lead to an error: 1. Switch to bookview. 2. Select all the text. 3. Click the bullet button on the Toolbar. 4. Switch to Codeview. 5. Switch back to BookView. An box appears stating that "The operation you requested cannot be performed because Section0001.xhtml is not a well-formed XML document...." |
![]() |
![]() |
#68 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
#69 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Actually,
The gumbo parser is correct here. Although BV and preview will still show it, gumbo detects the error and reports it. So technically the following is illegal code: Code:
<p>For instance, this fantastic sentence has bullets relating to <ul> <li>wizards, <li>faster-than-light travel, and <li>telepathy, </ul> and is further discussed below.</p> http://www.w3.org/TR/html5/grouping-...#the-p-element "List elements (in particular, ol and ul elements) cannot be children of p elements." In an example in that sections says the correct way to best handle this is to rewrite it as follows: Code:
div>For instance, this fantastic sentence has bullets relating to <ul> <li>wizards, <li>faster-than-light travel, and <li>telepathy, </ul> and is further discussed below.</div> Not sure how to handle this. It is technically not a bug. KevinH Last edited by KevinH; 11-14-2015 at 05:30 PM. Reason: try to make things clearer and more precise to prevent creating confusion |
![]() |
![]() |
#70 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I agree RE editing in Book View. But in all fairness, It's the Bullet button in Book View that seems to be generating invalid code (and that button only works in Book View). Sure, allowing gumbo to do its thing will correct it, but then ... why do we have button in Book View that will generate invalid code in the first place?
|
![]() |
![]() |
#71 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,512
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I'm somewhat confused. Further down in the link you cited is http://www.w3.org/TR/html5/grouping-...the-ul-element
Here it shows Code:
<p>I have lived in the following countries:</p> <ul> <li>Norway <li>Switzerland <li>United Kingdom <li>United States </ul> |
![]() |
![]() |
#72 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Good Point.
All that button does is run a built in QWebpage command called insertUnorderedList and that is the culprit. We can't control it. KevinH Quote:
|
|
![]() |
![]() |
#73 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
#74 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,763
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Hi PeterT,
The first example I gave has the ul tag as a child of the p tag which is illegal. See the missing closing p tag before the start of the ul tag in the example I posted. The reason I used that example is because this is what CalibUser's sequence of steps generates inside of BV when it follow it. It creates a ul child of a p. Quote:
The above is correct. The closing p tag at the end of the first line prevents the ul tag from being the child of a p tag. The only issue with the above is you can not style it easily as a whole single paragraph, which is why the spec calls for using a div instead to allow that (but it is not required). Sorry to be confusing. I should have just used CalibUser's example instead of one borrowed from the spec. To be more specific CalibUser's sequence of events generates the following: Code:
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <p> <ul> <li>Takes advantage of the new facilities in Sigil version 0.9.0.0 so that it is no longer necessary to install external libraries eg Beautiful Soup.<br /></li> <li>Files for processing can be selected in Sigil before the plugin runs; these files are highlighted in the list in the ePubTidy dialog.<br /></li> </ul> </p> </body> </html> Hope this is clearer. KevinH Last edited by KevinH; 11-14-2015 at 05:29 PM. |
|
![]() |
![]() |
#75 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,570
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Out of curiosity, do we know if Sigil's previous well-formed check just ignored this (since the functionality of the button obviously hasn't changed)? |
|
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Sigil Release: Sigil-0.8.901 | KevinH | Sigil | 137 | 11-03-2015 09:42 AM |
Sigil on Nook vs Sigil on Kobo vs Sigil on iBook | rosshalde | Sigil | 12 | 11-13-2014 09:34 AM |
Release : New Tool to Edit ePubs TOC, Edit with Sigil and keep you TOC | Nigol | ePub | 105 | 10-29-2012 11:40 AM |
Sigil 0.2.0 Release Candidates | Valloric | Sigil | 46 | 05-10-2010 09:55 PM |
Lead time for Kindle book release ahead of print release date - experiences? | Buran | Amazon Kindle | 6 | 05-04-2009 02:29 PM |