Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 02:09 PM   #1
lgonzalezp
Junior Member
lgonzalezp began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2026
Device: Kobo
Errores en funcionamiento de un plugin en Sigil 2.8.0 y siguientes

Cuando se guarda un archivo después de haberlo modificado con la utilidad writefile(id, txt) de los plugins de Sigil, se modifica el orden de los archivos en el Explorador de archivos y el archivo content.opf se llena de errores.
lgonzalezp is offline   Reply With Quote
Old Yesterday, 02:33 PM   #2
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,828
Karma: 7500000
Join Date: Nov 2009
Device: many
Here is the translated post:

Errors in operation of a plugin in Sigil 2.8.0 and following

When a file is saved after you have modified it with the writefile(id, txt) utility of the Sigil plugins, the order of the files in the File Explorer is modified and the content.opf file is filled with errors.
-- end translation

My answer:

There is no file explorer in Sigil. Did you mean BookBrowser? My tests show no problem with the plugins that record the changes made to the files. It is therefore something specific to your machine or your plugin code. So we need more information.

Please attach your plugin to this thread that generates the problem so that we can recreate it if possible.


And my reply translated:

No hay explorador de archivos en Sigil. ¿Te referías a BookBrowser? Mis pruebas no muestran ningún problema con los complementos que registran los cambios realizados en los archivos. Por lo tanto, es algo específico para su máquina o su código de complemento. Así que necesitamos más información.

Por favor, adjunte su complemento a este hilo que genera el problema para que podamos recrearlo si es posible.
KevinH is online now   Reply With Quote
Old Yesterday, 02:35 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,619
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
You're going to need to provide some more info. I can't reproduce your problem. I've tried several plugins that utilize writefile(ident, html) and the order of files in Book Browser does not change, and nothing in the opf file changes. I've tried using Sigil 2.8.0 and 2.8.1.

Which plugins are you using that are doing this? Perhaps the plugins in questions are not written correctly?

Quote:
Plugin operational errors in Sigil 2.8.0 and later versions

When a file is saved after being modified using the `writefile(id, txt)` utility from Sigil plugins, the file order in the File Explorer changes, and the `content.opf` file becomes riddled with errors.
DiapDealer is online now   Reply With Quote
Old Yesterday, 03:28 PM   #4
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,828
Karma: 7500000
Join Date: Nov 2009
Device: many
I tried my Access Aide plugin and made a bunch of changes to an old epub to add in missing alt tags and it saved and worked with no problems.

It uses that same bk.writefile() interface.

So I can not recreate this either. And I tried with Sigil 2.8.0 and Sigil 2.8.1 and even my own repo build and not one problem.
KevinH is online now   Reply With Quote
Old Yesterday, 04:20 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,619
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I would think the vast majority of edit plugins out there are going to be using bk.writefile().

It sounds to me like something in the plugin the OP is using is making unwise edits to the opf file itself.
DiapDealer is online now   Reply With Quote
Old Yesterday, 04:21 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,308
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lgonzalezp View Post
Cuando se guarda un archivo después de haberlo modificado con la utilidad writefile(id, txt) de los plugins de Sigil, se modifica el orden de los archivos en el Explorador de archivos y el archivo content.opf se llena de errores.
It would be a good idea if you gave the name of one of these plugins that causes the problem.

Last edited by JSWolf; Yesterday at 04:52 PM.
JSWolf is online now   Reply With Quote
Old Yesterday, 04:29 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,619
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
For all we know, it could be a plugin they're currently creating. We just don't have enough to go on yet.
DiapDealer is online now   Reply With Quote
Old Yesterday, 04:53 PM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,308
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DiapDealer View Post
For all we know, it could be a plugin they're currently creating. We just don't have enough to go on yet.
I asked since nobody is able to recreate the problem. It could be a problem with a specific plugin.
JSWolf is online now   Reply With Quote
Old Yesterday, 05:00 PM   #9
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,828
Karma: 7500000
Join Date: Nov 2009
Device: many
I just hope this is not someone who has no idea how to program in python that just let AI loose without any oversight or review!

So yes, the name of the plugin and where they downloaded it from would be a good start.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 173 03-06-2026 12:56 PM
[Plugin] ePub3-itizer - epub3 output plugin for Sigil KevinH Plugins 457 05-28-2025 06:14 PM
[Plugin] FootnoteLinker Sigil plugin Doitsu Plugins 56 09-07-2024 03:31 AM
Unos errores en Sigil. Calandrino Software 4 10-11-2022 11:45 AM
[Plugin] KindleImport Sigil plugin DiapDealer Plugins 187 07-04-2022 10:11 AM


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


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