Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-02-2017, 05:03 PM   #16
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 221
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by KevinH View Post
Preview handles that visual confirmation quite well.
OMG, I've been using Sigil for years and I never noticed the F10 preview before (similar to Dreamweaver's Split View). Ha, ha -- I'm such a dork! I've been so used to switching back and forth between Book View and Code View that I never looked for anything else. Ya learn something new every day.

BTW, I tried it out. But now I have a new question:
In the lower right-hand corner an error displays. (See SS.) It appears to be somehow related to my browser? The file is otherwise fine (ie., passes validation). What might it be? I haven't figured out how to get Sigil to tell me where the error is. And the error disappears when I hide/unhide the console. It then reappears if I close down Preview and reopen it. Another mystery.
Attached Thumbnails
Click image for larger version

Name:	Sigil TypeError.jpg
Views:	43
Size:	637.8 KB
ID:	155399  
eggheadbooks1 is offline   Reply With Quote
Advert
Old 03-02-2017, 05:36 PM   #17
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: 17,272
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
That's just the html Inspector widget. Some people have a use for it, but I don't. If you don't need to inspect the various html element in that way, just grab the divide between the Preview Window and the Inspector widget and squeeze the Inspector down to nothing.

I have no idea what that particular error is, but it has nothing to do with epub, IMO.
DiapDealer is offline   Reply With Quote
Old 03-02-2017, 06:27 PM   #18
KevinH
Wizard
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: 2,588
Karma: 772404
Join Date: Nov 2009
Device: many
That indicates that some javascript is trying to access $.browser.msie but that has been removed from jQuery. I will try to track down if that is something in the Sigil code or something in QtWebkit.

It can be safely ignored unless you are using your own javascript in a epub3 ebook.
KevinH is offline   Reply With Quote
Old 03-02-2017, 07:09 PM   #19
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 221
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Thanks. That's a relief.

BTW, with regard to my initial post, is there a way to specify the bullet type in CSS? I got
Code:
.circle
{list-style-type:circle;}
.disc
{list-style-type:disc;}
to work but I cannot find a way to get lowercase or uppercase letters. In older (X)HTML it would have been type="A" or type="a" but list-style-type:A (or a) is not working.

I found another HTML site that recommends list-style-type:upper-latin and list-style-type:lower-latin, but those don't work either. When I google "XHTML list types", I don't get anything beyond the basics.
eggheadbooks1 is offline   Reply With Quote
Old 03-02-2017, 07:12 PM   #20
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,517
Karma: 11627112
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
list-style-type:upper-latin or list-style-type:upper-alpha

found at W3schools: https://www.w3schools.com/csSref/pr_list-style-type.asp

edit:
Works great...make sure it's all lower case. Of course, you can put this in a class instead of an in-line style.

As in:
Code:
<ol style="list-style-type:upper-latin">
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
</ol>

or

.upperlatin {list-style-type:upper-latin}

<ol class="upperlatin">
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
<li>asdsad</li>
</ol>

Last edited by Turtle91; 03-02-2017 at 08:29 PM.
Turtle91 is offline   Reply With Quote
Advert
Old 03-02-2017, 07:59 PM   #21
KevinH
Wizard
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: 2,588
Karma: 772404
Join Date: Nov 2009
Device: many
Our copy of the jquery plugin wrapSelection.js uses the now deprecated $.browser.msie interface which in our case (webkit) is always false anyway.

I will edit that javascript to remove the unneeded code for old ie explorer. That should make your error go away.

KevinH


Quote:
Originally Posted by KevinH View Post
That indicates that some javascript is trying to access $.browser.msie but that has been removed from jQuery. I will try to track down if that is something in the Sigil code or something in QtWebkit.

It can be safely ignored unless you are using your own javascript in a epub3 ebook.
KevinH is offline   Reply With Quote
Old 03-02-2017, 11:40 PM   #22
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 221
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Hi Turtle--

I tried the second one, but Sigil, ADE, Kindle -- none of them recognize
Code:
{list-style-type:lower-latin}
Also does not recognize upper-latin. I'm stymied. Maybe they all think upper-latin is like Old English.
eggheadbooks1 is offline   Reply With Quote
Old 03-03-2017, 03:00 AM   #23
Doitsu
Wizard
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 3,924
Karma: 11088364
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by eggheadbooks1 View Post
I tried the second one, but Sigil, ADE, Kindle -- none of them recognize
The following code works at least in ADE 1.7-4.5 and Sigil. Maybe there's a typo in your code.

Code:
<ol style="list-style-type: lower-alpha;">
  <li>Veni</li>
  <li>Vidi</li>
  <li>Vici</li>
</ol>

<ol style="list-style-type: lower-latin;">
  <li>Cogito</li>
  <li>Ergo</li>
  <li>Sum</li>
</ol>
(The inline styles are only for testing purposes.)
Attached Thumbnails
Click image for larger version

Name:	Adobe Digital Editions_1.7.png
Views:	25
Size:	22.6 KB
ID:	155405  
Doitsu is offline   Reply With Quote
Old 03-03-2017, 01:26 PM   #24
eggheadbooks1
Read, don't parrot.
eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.eggheadbooks1 figured out that Keyser Söze was the Kevin Spacey character in less than 20 minutes.
 
Posts: 221
Karma: 110242
Join Date: Apr 2011
Device: Kindle Fire, Kobo Touch, Aldiko for Android
Quote:
Originally Posted by Doitsu View Post
The following code works at least in ADE 1.7-4.5 and Sigil. Maybe there's a typo in your code.
The code was fine. Turns out it was due to synaptic malfunction: when the inline type was rejected I converted to using CSS but forgot to link that particular XHTML file to the stylesheet.

I have my days...
eggheadbooks1 is offline   Reply With Quote
Old 03-03-2017, 02:34 PM   #25
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: 17,272
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by eggheadbooks1 View Post
I converted to using CSS but forgot to link that particular XHTML file to the stylesheet.

I have my days...
Trust me; we've all fought that particular bug from time to time.
DiapDealer is offline   Reply With Quote
Old 03-03-2017, 03:23 PM   #26
KevinH
Wizard
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: 2,588
Karma: 772404
Join Date: Nov 2009
Device: many
Okay, removed the now obsolete use of $.browser.msie in Sigil's version of jquery.wrapSelection.js so it should remove any javascript errors from the Inspector Console window. It does under my tests.

That just leaves how to handle underline and strike. I can easily now force BookView to add spans with in-line styles to prevent Sigil from introducing "strike" when in BookView and using "u".

If we go ahead with those changes, Sigil, even in BookView will at least generate 100% correct code although ugly and ungainly. BookView will then handle thigns differently than CodeView but I am okay with that given that the code BookView generates at times is truly awful.

I would like to get a fix in the tree for use of strike at least (deprecating u and then undeprecating it is just stupid, so I don't really care about use of "u" or not).

DiapDealer, what do you think?
KevinH is offline   Reply With Quote
Old 03-03-2017, 03:33 PM   #27
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: 17,272
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
I would like to get a fix in the tree for use of strike at least (deprecating u and then undeprecating it is just stupid, so I don't really care about use of "u" or not).

DiapDealer, what do you think?
Let me take a peek at how difficult it would be to leave it up to a user preference (enabling document.execCommand("styleWithCSS", "true")). What area of the source am I looking at? BookViewEditor.cpp?

It would seem to be the best of both worlds if a user could ultimately decide for themselves between ugly-but-compliant and clean-(and functional)-but-technically-in-violation-of-specs, no?

Last edited by DiapDealer; 03-03-2017 at 03:38 PM.
DiapDealer is offline   Reply With Quote
Old 03-03-2017, 03:45 PM   #28
KevinH
Wizard
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: 2,588
Karma: 772404
Join Date: Nov 2009
Device: many
Yes just before emiting the page open signal in the following method:

BookViewEditor::CustomSetDocument(const QString &path, const QString &html)

You can add a line:

ExecCommand("styleWithCSS", "true");
KevinH is offline   Reply With Quote
Old 03-03-2017, 03:53 PM   #29
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: 17,272
Karma: 89932658
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Sounds pretty simple (and I see the effect when compiled). Do you think it makes good sense? If so, we just need to decide where to add the setting in the prefs (unless an environment variable makes more sense?).

EDIT: looks like that would affect all the GUI formatting buttons ... making them all styled spans (including italics and bold). I don't use the buttons myself (in Code View or Book View), so it doesn't matter to me.

Last edited by DiapDealer; 03-03-2017 at 04:01 PM.
DiapDealer is offline   Reply With Quote
Old 03-03-2017, 04:02 PM   #30
KevinH
Wizard
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: 2,588
Karma: 772404
Join Date: Nov 2009
Device: many
If we add a setting, should we then also try and honour it in CodeView as well?

Most of CV formatting code is done manually, so we should be able to make it use the span and inline style approach as well for underline, strike, subscript, superscript, etc, etc after checking the setting. A bit more work but it would at least allow the user to control things in both BookView and CodeView.

What do you think, worth the trouble or just hard code the horrible spans for BookView only?
KevinH is offline   Reply With Quote
Reply

Tags
epub2, epub3, epubcheck, fail validation

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Error epub3 soparch ePub 2 12-02-2015 12:38 AM
EPUB3 footnote validation roger64 Workshop 11 06-03-2015 08:56 AM
Epub3 XHTML Validation epub3 Ramesh Arpitha ePub 5 06-30-2014 09:32 PM
Validation errors on epub3 sheet music document maestroc ePub 9 11-05-2013 07:43 PM


All times are GMT -4. The time now is 03:50 PM.


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