MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Plugins (https://www.mobileread.com/forums/forumdisplay.php?f=268)
-   -   [Plugin] CheckInternalLinks (https://www.mobileread.com/forums/showthread.php?t=331788)

slowsmile 07-24-2020 04:18 AM

[Plugin] CheckInternalLinks
 
1 Attachment(s)
Checks and validates all internal links in epub2 or epub 3 files.

Requirements
Plugin Type: Edit
MIT Licence(OSI)
Minimum Sigil requirement: v0.9.3 or higher
Python Requirements: Python 3.4+ (Bundled or External)
OS Requirements: Windows, OSX or Linux
*** Tested on Windows 10, OSX and Linux ***
Current Version: "0.1.0"

Installation
* Select Manage Plugins from the Plugins menu. In the dialog box, select either the Bundled Python or the External Python(Python 3.4+ should be installed on your computer to run this plugin externally).

* Click Add Plugin and select CheckInternalLinks_vXXX.zip. This will load and install the plugin into Sigil, which you can then select and run using Plugins > Validation > CheckInternalLinks.

Description
This epub2/epub3 validation plugin will check all internal links -- including toc links -- in the epub. It validates link file names and link destination ids(and flags any empty links) for links within xhtml files and also validates links in the toc.ncx and nav.xhtml(epub3 only). Any link errors will automatically be reported in Sigil's Validation panel.

For epub 3, this plugin will happily check all links -- including links in the page-list nav and toc.ncx -- for any epub 3 files created using KevinH's Epub3-itizer plugin. In other words, this plugin doesn't check or validate links in landmark nav sections.

Changes:

Spoiler:

v0.1.0-- Initial release.


DiapDealer 07-25-2020 11:45 AM

Added to the plugin index. Thanks for your contribution!

morty92222 04-05-2021 10:46 AM

Does this still work? I tried installing and I get "not a valid sigil plugin."

DiapDealer 04-05-2021 11:23 AM

No clue if it the plugin still works or not, but that error message usually means you've renamed the zip file (or a download helper did), when you shouldn't have.

JSWolf 04-05-2021 11:53 AM

I would say the plugin does not work and needs to be updated to work with the current Sigil. The plugin work with 0.9.3 and Sigil has undergone major changes since then.

KevinH 04-05-2021 12:40 PM

That error message comes as DiapDealer said, either by renaming or somehow unzipping the plugin, or if its xml file restricts it to only working for python2.7, or to work only for selected platforms not yours.

This plugin may require changes to work post Sigil-1.0 but that would not cause this particular error message.



Quote:

Originally Posted by JSWolf (Post 4109557)
I would say the plugin does not work and needs to be updated to work with the current Sigil. The plugin work with 0.9.3 and Sigil has undergone major changes since then.


DiapDealer 04-05-2021 12:51 PM

Quote:

Originally Posted by JSWolf (Post 4109557)
I would say the plugin does not work and needs to be updated to work with the current Sigil. The plugin work with 0.9.3 and Sigil has undergone major changes since then.

It says 0.9.3 is the minimum version of Sigil needed. Just like many of my own plugins do.

It may not work for all I know, but the minimum Sigil version given and the error message being received are certainly not enough evidence to determine that.

KevinH 04-05-2021 01:53 PM

Took a look at it. It appears to work but only for limited set of relative links from xhtml to xhtml, ncx to xhtml, and nav to xhtml. It also may also have issues with id being reused in multiple xhtml files. But that said, for most typical epub layouts it should work just fine even post Sigil-1.0.

It supports all platforms and python3 as well.

slowsmile 04-05-2021 11:25 PM

I've just downloaded, installed and tested this plugin on my Windows laptop using Sigil(v1.4.3) and there were no problems. As many have already said, you should install the downloaded plugin zip file as is, do not extract or rename the zip file before you install it.

morty92222 04-09-2021 11:49 PM

I got it to run but this is the error messages I get.

Status: failed

Traceback (most recent call last):
File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 141, in launch
target_script = __import__(script_module)
File "/Users/omar/Library/Application Support/sigil-ebook/sigil/plugins/CheckInternalLinks/plugin.py", line 36, in <module>
import tkinter as tk
File "tkinter/__init__.py", line 36, in <module>
ImportError: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so
Reason: image not found
Error: dlopen(/Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so, 2): Library not loaded: /Library/Frameworks/Tcl.framework/Versions/8.6/Tcl
Referenced from: /Applications/Sigil.app/Contents/Frameworks/Python.framework/Versions/3.8/lib/python3.8/lib-dynload/_tkinter.cpython-38-darwin.so
Reason: image not found

KevinH 04-10-2021 12:05 AM

That means you have not installed ActiveState's ActiveTCL package when you installed Sigil. It is required for tk based Sigil plugins to work.

See this part of every Sigil Release Announcement:

Quote:

Mac users should still download and install ActiveState's ActiveTcl Community Edition to utilize plugins that use Tk/Tcl GUIs. More here.
and the link goes to

https://github.com/Sigil-Ebook/Sigil...Mac-OS-X-Notes


All times are GMT -4. The time now is 07:56 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.