Register Guidelines E-Books Today's Posts Search

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,662
Karma: 23468403
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,038
Karma: 11227259
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,662
Karma: 23468403
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, 94 views)
File Type: zip writer2xhtml_1.7.1_unofficial_patch2.zip (313.2 KB, 132 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,613
Karma: 3000161
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:	46
Size:	46.6 KB
ID:	212674   Click image for larger version

Name:	échec.png
Views:	54
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: 8,330
Karma: 5568878
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,613
Karma: 3000161
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,613
Karma: 3000161
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:	52
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
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 506 02-14-2025 10:52 PM
[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:09 AM.


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