View Single Post
Old 05-20-2017, 09:27 AM   #3
samirahmed007
Junior Member
samirahmed007 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2017
Device: kindle
Quote:
Originally Posted by khadafi View Post
Hello everyone !

I just want to share this plugin "edit" that Just find the XHTML source where the ID is from and replace the link by it's real path.

Eg :
Let's suppose that there is a <p id="myid001">Text</p> in Chapter003.xhtml. So the script find it and convert all link that point to it like this :
Code:
<a href="#myid001">Text</a>
to
Code:
<a href="../Text/Chapter003.xhtml#myid001">
You just must specify an tag id so the script can find the right XHTML file to link it.

EDIT : The plugin assumes that all fragment ids are unique, however, if multiple files contain the same id they'll all be changed to the last file that the id was used in.

You can use the AddIDs by Doitsu to generate ID on your document if there is no ID in.

Requirements :
- Python 3.4
- BeautifulSoup 4
- Sigil 0.8.7

Version : 1.0a

Thanks !

NB : Sorry, my english is poor And it's my first post.

not work plugin

Status: failed

Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 134, in launch
target_script = __import__(script_module)
File "C:\Users\com106\AppData\Local\sigil-ebook\sigil\plugins\reLink\plugin.py", line 4, in <module>
from bs4 import BeautifulSoup
ImportError: No module named 'bs4'
Error: No module named 'bs4'


Please suggest
samirahmed007 is offline   Reply With Quote