![]() |
#1 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
[Plugin] RemoveHTMLTags
Converts epub HTML to several different formats including plain text. 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, Linux or OSX *** Tested on Windows 7, 8 & 10 only *** Current Version: "0.1.3" Installation * Select Manage Plugins from the Plugins menu. In the dialog box, select either the Bundled Python or External Python(Python 3.8+ should be installed on your computer to run this plugin externally). * Click Add Plugin and select RemoveHTMLTags_vXXX.zip. This will load and install the plugin into Sigil, which you can then run by selecting Plugins > Edit > RemoveHTMLTags Description This plugin converts epub html giving three different text outputs. When this plugin is run:
Preferences The editable JSON prefs for this plugin – showing default values -- is shown below: Code:
{ "convert_to_plain_text": true, "save_plain_text_to_file": true, "save_file_path": "C:\\Users\\BILL\\Desktop\\textfile.txt", "remove_unused_files": false } When this flag is set to “true”, all epub HTML tags in between the <body></body> tags will be removed leaving plain text only. If this flag is set to “false”, all body text will be formatted in basic HTML, using unstyled <p> tags only. The default setting for this flag is “true”. save_plain_text_to_file This flag allows the plugin user to save or not save a text only version of their epub HTML to a single external file containing just plain text with no HTML. The default setting for this flag is “true”. save_file_path Allows the user to edit and change the path or change the saved file name. The default file name is “textfile.txt”, which will be saved to your Desktop folder by default. remove_unused_files When this is set to “true” and the plugin is run, all files will be automatically removed from the Styles, Images and Fonts directories in Sigil’s Book Browser. If this flag is set to “false” then those files will not be removed. The default setting is “false”. Plugin Run Just load an epub into Sigil and run the plugin as described above, after which you will be able to edit or disable certain settings to your own liking in the JSON prefs file. And after you run this plugin it would also be advisable to run Tools > Restructure Epub to Sigil Norm in order to avoid any hidden structural problems. Changes: Spoiler:
Last edited by slowsmile; 02-14-2023 at 07:10 PM. |
![]() |
![]() |
![]() |
#2 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
The above plugin is named RemoveHTMLTags and not RemoveXHTMLTag. My bad and unfortunately you can't change the name of the plugin in the release doc once its uploaded.
Last edited by slowsmile; 02-06-2023 at 03:58 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,335
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can change the thread title and the first post title to match the actual contents of the plugin zip file itself, if that's what you're talking about. Just let me know.
|
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,434
Karma: 5702578
Join Date: Nov 2009
Device: many
|
Added to the Sigil Plugins Index as RemoveHTMLTags
|
![]() |
![]() |
![]() |
#5 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@DiapDealer...If you could change the thread title to match the plugin name I would be very grateful. I would hate that such a mismatch might actually cause any confusion. With thanks.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Please be aware that I've just discovered a problem with this plugin on test. The version notifier(aka the version updater) isn't working properly. Still working to fix this.
|
![]() |
![]() |
![]() |
#7 |
Witchman
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
Update(v0.1.1)
Fixed the notify version update problem. Last edited by slowsmile; 02-06-2023 at 10:53 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] LOI-Generator - edit] plugin to generate a List of Illustrations | KevinH | Plugins | 1 | 01-19-2023 04:31 PM |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 08:07 PM |
[Plugin] QuickPrefsEdit - Edit plugin prefs json files. | slowsmile | Plugins | 3 | 07-25-2018 08:14 PM |
Goodread Perception Expander plugin not shown on plugin list (kobo h2o) | www | KOReader | 4 | 09-28-2017 10:34 AM |