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 05-25-2024, 12:21 PM   #61
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leonatus View Post
I have been using the plugin very frequently without issue. But this time, I receive this error message: [...]
Unfortunately, I wasn't able to reproduce this problem on my Windows 11 machine. The file selection dialog didn't have problems with spaces or umlauts in the path or the file name. Maybe the file path contained some invisible control characters.

Last edited by Doitsu; 05-25-2024 at 12:24 PM.
Doitsu is offline   Reply With Quote
Old 05-26-2024, 06:36 AM   #62
Leonatus
Wizard
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: 1,113
Karma: 11719487
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
As well as in the folder, there had been a "ú" in the name of the file itself ("Júlia"). When the plugin didn't work for the first time, I changed the name of both ("Julia"), suspecting that this letter might have caused the problem. But the issue continued. So, I tried to choose a totally different name and save it to a different location. That solved the problem.
Leonatus is offline   Reply With Quote
Old 06-01-2024, 02:37 PM   #63
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philja View Post
On reading the latest "user-manual-Writer2xhtml17.odt" with special reference to anything mentioning lists, I saw the option "list_formatting" with three possible values - ignore_all, convert_labels, convert_all. This is at odds with line 20 in the config.xml supplied with the plugin 0.4.1 which quotes "value=css1"
In writer2xhtml 1.7.x, list_formatting has 4 possible values:

convert_all (default) old value hard_labels
convert_label_styles old value css1
convert_labels old value css1_hack
ignore_all

I found a sample config.xml file on the writer2xhtml Github page:
https://github.com/writer2latex/writ...cleanxhtml.xml

and slightly updated it for epub3 output and removed all redundant entries where the value matched the default value.
If you change the value in the following line from:
Code:
  <option name="list_formatting" value="ignore_all" />		<!-- default: convert_all -->
to
Code:
  <option name="list_formatting" value="convert_label_styles" />		<!-- default: convert_all -->
You should get the same results as in older versions.

I also found out by chance that writer2xhtml 1.7.x supports page numbers in epub3 files. Unfortunately, it'll add a masterpage attribute to page break definitions, which EPUBCheck doesn't like.

I commented out one source code line to change this behavior and created a new experimental build that is attached to this post.

If you generate epub2 books, you'll need to change the following config.xml entry from:

to:
Code:
  <option name="original_page_numbers" value="true" />		<!-- default: false -->
to:
Code:
<option name="original_page_numbers" value="false" />		<!-- default: false -->
If you're not interested in generating page numbers in epub3 books, you can ignore this build.
Attached Files
File Type: xml config.xml (4.0 KB, 695 views)
File Type: zip writer2xhtml_1.7.1_unofficial_patch2.zip (313.2 KB, 304 views)
Doitsu is offline   Reply With Quote
Old 12-25-2024, 09:42 PM   #64
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,626
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Failure to launch plugin

Today,when trying to create a new ePub, ODT Import failed to launch.
OS:Archlinux.
java version "1.8.0_431"
Java(TM) SE Runtime Environment (build 1.8.0_431-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.431-b10, mixed mode)


I have the latest version of Sigil (2.3.1.). Please find below the relevant error message.
Attached Thumbnails
Click image for larger version

Name:	version.png
Views:	223
Size:	46.6 KB
ID:	212674   Click image for larger version

Name:	échec.png
Views:	230
Size:	69.9 KB
ID:	212675  

Last edited by roger64; 12-25-2024 at 09:56 PM.
roger64 is offline   Reply With Quote
Old 12-25-2024, 10:27 PM   #65
KevinH
Sigil Developer
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: 9,410
Karma: 6733754
Join Date: Nov 2009
Device: many
Your Arch Python is too new. It has dropped support for the imghdr.py module. This was a really stupid decision by the maintainers of python as the module is small but heavily used and should not have been dropped in any point release no matter if deprecated or not earlier.

Luckily, you can extract the pure python imghdr.py file from the previous version of python and add it to the plugin zip archive and all should work.

You can grab it from here:

https://github.com/python/cpython/bl.../Lib/imghdr.py

Since python breaking plugins is not in the best interest for any platform I may add it to the Sigil python plugin standard library if its license is at all compatible.

Last edited by KevinH; 12-25-2024 at 10:47 PM.
KevinH is offline   Reply With Quote
Old 12-25-2024, 11:00 PM   #66
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,626
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Thanks for your informed reply. I'll try it and report asap.
roger64 is offline   Reply With Quote
Old 12-25-2024, 11:20 PM   #67
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,626
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
ODT Import is now working as usual.

I added imghdr.py precisely here (see below)

For info, my python version is 3.13.1-1 and has been -massively- updated on the 22nd of December 2024.

Thanks again!
Attached Thumbnails
Click image for larger version

Name:	imghdr.png
Views:	248
Size:	72.6 KB
ID:	212676  

Last edited by roger64; 12-26-2024 at 12:07 AM. Reason: python version
roger64 is offline   Reply With Quote
Old 08-11-2025, 06:03 PM   #68
Sean Fenian
Junior Member
Sean Fenian began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2025
Device: n/a
Doitsu,
THANK YOU THANK YOU THANK YOU for Writer2xhtml. I've spent uncounted hours over the past eighteen months trying to develop a better EPUB3 publishing workflow after trying to post-fix EPUBs exported directly from LibreOffice and seeing first-hand what a godawful flaming dumpster fire libepubgen spews out.

Writer2xhtml gets me closer, in one step, to a publication-ready ebook than anything else I have yet tried. You WILL be getting an acknowledgment in my next published book.
Sean Fenian is offline   Reply With Quote
Old 08-12-2025, 02:40 AM   #69
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Sean Fenian View Post
Doitsu,
THANK YOU THANK YOU THANK YOU for Writer2xhtml.
I'm glad that you like the plugin, but I'm not the author of Writer2xhtml!
You should thank the developer, Henrik Just, instead. He deserves all the credit.

(The plugin is only a very simple wrapper.)

The author also has a Github page.

Last edited by Doitsu; 08-12-2025 at 02:53 AM.
Doitsu is offline   Reply With Quote
Old 02-21-2026, 09:16 AM   #70
Leilu
Enthusiast
Leilu began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Feb 2023
Device: Kindle Oasis 3 / Kobo Libra 2
Hi,

Code:
Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch
    self.exitcode = target_script.run(container)
                    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "C:\Users\leilu\AppData\Local\sigil-ebook\sigil\plugins\ODTImportQt\plugin.py", line 107, in run
    sync_prefs_with_plugin_folder(plugin_folder, prefs_folder)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leilu\AppData\Local\sigil-ebook\sigil\plugins\ODTImportQt\plugin.py", line 35, in sync_prefs_with_plugin_folder
    for name in os.listdir(pref_dir):
                ~~~~~~~~~~^^^^^^^^^^
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\leilu\\AppData\\Local\\sigil-ebook\\sigil\\plugins_prefs\\ODTImportQt'
Error: [WinError 3] The system cannot find the path specified: 'C:\\Users\\leilu\\AppData\\Local\\sigil-ebook\\sigil\\plugins_prefs\\ODTImportQt'
Non QT works fine.

Where to add the
Code:
"output_format": "epub3",
line? Thank you
Leilu is offline   Reply With Quote
Old 02-21-2026, 09:51 AM   #71
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
I must have introduced a new bug in the latest version. Will release an updated version tonight or tomorrow.

Quote:
Where to add the [...] line?
In ODTImportQt.json
Doitsu is offline   Reply With Quote
Old 02-21-2026, 10:12 AM   #72
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leilu View Post
[CODE]Status: failed [...]
I attached a new version to the first post.

Quote:
Originally Posted by Leilu View Post
Where to add the
Code:
"output_format": "epub3",
line?
If you create a blank epub3 book in Sigil before running the plugin for the first time, it should automatically add this preference to ODTImportQt.json.
Doitsu is offline   Reply With Quote
Old 02-21-2026, 02:20 PM   #73
Leilu
Enthusiast
Leilu began at the beginning.
 
Posts: 33
Karma: 10
Join Date: Feb 2023
Device: Kindle Oasis 3 / Kobo Libra 2
Nice. Thank you.

*

My ODT file is quite messy because it was exported from ABBYY FineReader OCR. For example, I have about a dozen different character styles that are actually identical only for italicized text. When imported into Sigil, they appear as <span class="CharStyle78">some italic text</span> in some places and <span class="CharStyle32">some other italic text</span> in others.

I want to avoid importing these character styles this way and rely solely on paragraph styles, except for italics and bold, which should appear in Sigil as <em> and <strong> tags (similar to how Pandoc handles conversions). I would prefer to stick with the ODTImport plugin because, as mentioned in another thread, I need to preserve the physical book's page references.
Leilu is offline   Reply With Quote
Old 02-21-2026, 04:45 PM   #74
Doitsu
Grand Sorcerer
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: 5,798
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Leilu View Post
I want to avoid importing these character styles this way and rely solely on paragraph styles, except for italics and bold, which should appear in Sigil as <em> and <strong>[...]
If ABBY Fine Reader assigned the same character styles throughout the book, you might be able to map them to tags in the config.xml file in the plugin folder.

For numerical character styles such as CharStyle78, adding the following line to config.xml should theoretically output them as <em>..</em> tags.

Code:
<xhtml-style-map css="(none)" element="em" family="text" name="CharStyle78" />
If they're character overrides the following line might work:

Code:
<xhtml-style-map css="(none)" element="em" family="attribute" name="CharStyle78" />
For more information, see the official writer2xhtml user guide.

If there are simply too many of these numerical styles, you could also replace them in bulk in Sigil with Saved Search groups or DiapDealer's excellent TagMechanic Plugin

BTW, you might find my Incremental IDs Plugin useful for manipulating page number placeholders. You could now insert generic placeholder <span class="page"></span> tags and add sequential ids later.

Last edited by Doitsu; 02-21-2026 at 04:54 PM.
Doitsu is offline   Reply With Quote
Old 02-27-2026, 03:40 PM   #75
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 330
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
I've just installed v0.5.2 to replace v0.5.0 and took care to make sure my customised config.xml and epub.css files were in the plugins preferences directory.

I thought I understood from your red print notice in the first post that the updated plugin would copy the customised files from preferences into the plugins directory.

Quote:
If you've previously used this plugin and customized config.xml and/or epub.css make sure to create a backup of the plugin folder and also copy these files to the plugin preferences folder. (The latest version of the plugin will always copy these files from the plugin preferences folder to the plugin folder.)
Neither on linux nor windows has the 0.5.2 plugin copied the preferences versions to the plugin folder.

Edit: my mistake

I just ran a trial import, and the plugin copied the files as promised. I hadn't understood that the copy would occur on first use rather than on installation.

Last edited by philja; 02-27-2026 at 04:05 PM.
philja 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
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 529 01-28-2026 11:32 AM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 27 01-16-2023 02:25 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM


All times are GMT -4. The time now is 06:05 PM.


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