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

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 06-17-2017, 04:54 AM   #136
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,956
Karma: 12058512
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Cyberseeker View Post
Can the validation results be saved, or sent to a printer?
Unfortunately, you can't print the contents of the Validation Results window. You might want to use pagina EPUB-Checker instead, which allows you to save the epubcheck log.
BTW, if you click an error message in the Validation Results window, Sigil will move the cursor to the line that epubcheck has reported.
Doitsu is offline   Reply With Quote
Advert
Old 06-17-2017, 09:49 AM   #137
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,624
Karma: 780906
Join Date: Nov 2009
Device: many
With changes it should be possible for Sigil validation plugin types to build and generate a log if this is an important feature. Although line and error info without viewing the file itself simultaneously is harder to use in my opinion.
KevinH is offline   Reply With Quote
Old 06-17-2017, 11:06 AM   #138
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,956
Karma: 12058512
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
With changes it should be possible for Sigil validation plugin types to build and generate a log if this is an important feature.
Thanks for your kind offer, but, IMHO, it'd better if you used your limited time to make Sigil even more epub3-compliant. For example, there's still a minor problem with the epub3 cover metadata context menu item that I reported some time ago.
(I could easily add clipboard support for Windows machines via tkinter.)

@Cyberseeker: It'd be relatively easy to automatically have the plugin copy the original epubcheck report to the system clipboard.
I could also have it write it to the Desktop. However, I'd be an optional feature, which would need to be enabled via the plugin preference file.
Let me know which one you'd prefer and I'll add it in future version.
Doitsu is offline   Reply With Quote
Old 06-17-2017, 01:58 PM   #139
Cyberseeker
Connoisseur
Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.Cyberseeker ought to be getting tired of karma fortunes by now.
 
Posts: 60
Karma: 602194
Join Date: Apr 2017
Device: Ipad
Quote:
Originally Posted by Doitsu
@Cyberseeker: It'd be relatively easy to automatically have the plugin copy the original epubcheck report to the system clipboard.
I could also have it write it to the Desktop. However, I'd be an optional feature, which would need to be enabled via the plugin preference file.
Let me know which one you'd prefer and I'll add it in future version.
Clipboard would be fine, and I would drop it into 'Word' and have a look at it on paper. As it is now, is fine for anyone familiar with html, but a lot of authors would need to go through it with a ballpoint pen, or take it to a friend and say, "whats this mean?"

Speaking of epubcheck report "questions", I have a few. Would you prefer that I opened a separate thread, or should I ask them here?

Last edited by Cyberseeker; 06-17-2017 at 02:05 PM.
Cyberseeker is offline   Reply With Quote
Old 06-17-2017, 03:20 PM   #140
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 50,412
Karma: 43720217
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5
Quote:
Originally Posted by Cyberseeker View Post
Speaking of epubcheck report "questions", I have a few. Would you prefer that I opened a separate thread, or should I ask them here?
They would be best in the ePub forum.
JSWolf is offline   Reply With Quote
Old 06-17-2017, 03:36 PM   #141
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,624
Karma: 780906
Join Date: Nov 2009
Device: many
I will have to dig back through my pm from you. I did not think it was an actual bug that needed fixing but I am willing to take another look at it.

Kevin
Quote:
Originally Posted by Doitsu View Post
Thanks for your kind offer, but, IMHO, it'd better if you used your limited time to make Sigil even more epub3-compliant. For example, there's still a minor problem with the epub3 cover metadata context menu item that I reported some time ago.
(I could easily add clipboard support for Windows machines via tkinter.)

@Cyberseeker: It'd be relatively easy to automatically have the plugin copy the original epubcheck report to the system clipboard.
I could also have it write it to the Desktop. However, I'd be an optional feature, which would need to be enabled via the plugin preference file.
Let me know which one you'd prefer and I'll add it in future version.
KevinH is offline   Reply With Quote
Old 06-17-2017, 08:06 PM   #142
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,303
Karma: 7810051
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Doitsu View Post
@Cyberseeker: It'd be relatively easy to automatically have the plugin copy the original epubcheck report to the system clipboard.
If it's 'automatic' it will overwrite what's currently in the clipboard, which could irritate users.

When task switching... between editing a document in Sigil, a text chat session, and watching a video... I often copy a fragment from the document (transcript of the video) into the clipboard in readiness for my next chat message.

Perhaps the Validation Results window could permit use of Ctrl/A, Ctrl/C. Or put a Copy to clipboard button in the Window Title bar (Qt permitting of course). Or at least put an option in preferences to NOT autocopy validation results.

FWIW - I've sometimes wished for a way to copy what the Language Tool PI puts in the Validation Window.

BR

Last edited by BetterRed; 06-17-2017 at 09:31 PM.
BetterRed is offline   Reply With Quote
Old 06-18-2017, 01:37 AM   #143
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,956
Karma: 12058512
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by BetterRed View Post
If it's 'automatic' it will overwrite what's currently in the clipboard, which could irritate users.
That was my thought too. That's why I'd make it an opt-in feature via the EpubCheck.json plugin preference file.
BTW, you can already copy and paste a single message from the Validation Results windows using CTRL+C/V.

Quote:
Originally Posted by BetterRed View Post
FWIW - I've sometimes wished for a way to copy what the Language Tool PI puts in the Validation Window.
That plugin could also easily be modified to save the log file to the desktop, if enough users are interested in it.
Doitsu is offline   Reply With Quote
Old 06-18-2017, 02:10 AM   #144
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 9,303
Karma: 7810051
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Doitsu View Post
That was my thought too. That's why I'd make it an opt-in feature via the EpubCheck.json plugin preference file.
I read it as, if one did not opt-in for Save to Desktop, then it the errors would autocopy to clipboard
Quote:
Originally Posted by Doitsu View Post
BTW, you can already copy and paste a single message from the Validation Results windows using CTRL+C/V.
You can do a Ctrl+A and highlight the entire list, but a Ctrl+C will only grab the last line. If CtrL+C could grab the entire selection we'd have a universal solution for the Validation Window.

BR
BetterRed is offline   Reply With Quote
Old 06-22-2017, 07:27 AM   #145
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,956
Karma: 12058512
Join Date: Dec 2010
Device: Kindle PW2
I attached a new version with clipboard support to the first post.

To enable this feature:
  1. Presss WIN+R.
  2. Copy and paste %LOCALAPPDATA%\sigil-ebook\sigil\plugins_prefs\EpubCheck and hit Return. (If you have a macOS or Linux machine, you'll need to select Edit > Preferences > Open Preferences Location.)
  3. Open EpubCheck.json with a text editor and change the following line
    from:
    Code:
      "clipboard_copy": false,
    to:
    Code:
      "clipboard_copy": true,
  4. Save EpubCheck.json.

Note that this feature might not work with some macOS and Linux versions.
Doitsu is offline   Reply With Quote
Old 09-12-2017, 01:09 AM   #146
llis
cleaner
llis began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2017
Device: epub
Just an FYI for ppl trying to get this running on a Mac (maybe elsewhere): I got a Java error message telling me I needed to install a JDK to run commandline. A quick google took me to the link. I installed the latest and the plugin works swimmingly! Thanks!
llis is offline   Reply With Quote
Old 09-15-2017, 11:59 AM   #147
Leonatus
Fanatic
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 521
Karma: 4783101
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
The report of the plugin shows the message as can be seen on the screenshot. I'd like to know
1. what is wrong there, and
2. Can I change the content without interferring to the TOC, and ending up in a mess?

I have another request that is more a Regex problem:
In another book, the plugin shows problems that all concern the content of span-tags. They are, as far as I can see, the only spans in the whole book, but they are all defective. I would like to remove them all, including their content, but the content differs from case to case. Such as:
<span>some text</span>, and <span>some different text</span>. Which suitable regex could I use?
Any help much appreciated!
Attached Thumbnails
Click image for larger version

Name:	15-09-17.jpg
Views:	31
Size:	848.1 KB
ID:	159051  
Leonatus is offline   Reply With Quote
Old 09-15-2017, 01:35 PM   #148
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,956
Karma: 12058512
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
The report of the plugin shows the message as can be seen on the screenshot.
This message is usually being displayed if NCX ids don't start with a letter.

For example:

Code:
<navPoint id="7a10b9f2" playOrder="1">
If that's the case with your book, simply search in toc.ncx for:

Code:
<navPoint id="
and replace it with:

Code:
<navPoint id="ID
Quote:
Originally Posted by Leonatus View Post
In another book, the plugin shows problems that all concern the content of span-tags. [...] I would like to remove them all, including their content, but the content differs from case to case.
I'm not very good at regular expressions, but the following expression should remove all span tags:

Code:
<span[^>]*>.*?</span>

Last edited by Doitsu; 09-15-2017 at 01:37 PM.
Doitsu is offline   Reply With Quote
Old 09-16-2017, 09:03 AM   #149
Leonatus
Fanatic
Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.Leonatus ought to be getting tired of karma fortunes by now.
 
Leonatus's Avatar
 
Posts: 521
Karma: 4783101
Join Date: Mar 2013
Location: Berlin, Germany
Device: Kobo Touch
Thank you, Doitsu! The Regex helped, whereas, at opening the book once more and running epubcheck, the navpoint id issue didn't appear any more. Indeed, the tags began with letters, anyhow.
I will backup your hints, nevertheless. Thanks once more!
Leonatus is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 151 09-27-2017 06:05 PM
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 72 09-25-2017 01:50 PM
Sigil Plugin Index Thasaidon Plugins 0 10-04-2014 08:41 AM
FC and Sigil 0.5.3 ePUBcheck failure Hitch Sigil 32 04-17-2012 03:56 AM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 10:53 PM


All times are GMT -4. The time now is 01:48 PM.


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