![]() |
#1 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Ideas for New or Updated Plugins
Hi All,
I am personally interested in new ideas people might have for new Sigil plugins. I am also interested in identifying useful but "abandoned" Sigil plugins that need help to work with current Sigil (assuming they have an opensource license that allows for changes and redistribution). For example, things like moving to PySide6 from PyQt5 or from tk, epub3 support, bugs fixed, etc. So please let me know what you think. I can not promise to create or update these but will consider any ideas seriously when I have free time. Thanks, KevinH |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,762
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
It would be great a plugin to translate an epub from one language to another (for example, from english to spanish or whatever). Calibre has a great plugin to do this task but it would be fantastic to have it also in Sigil.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Quote:
Translation using web-based or AI translations tools are still pretty poor in my testing (ie English to German and back for round-trip testing), forcing a full proof read and much restructuring of text anyway. In documents with more technical terms, the output was actually laughable. Have the engines improved that much in the last 6 months? |
|
![]() |
![]() |
![]() |
#4 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,762
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Last edited by RbnJrg; 02-12-2025 at 02:46 PM. |
|
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I tried translating several tech manuals and the results were uniformly humorous.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,762
Karma: 8700631
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
|
![]() |
![]() |
![]() |
#7 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
It was with the calibre plugin. I tried a couple of novels and they weren't too bad. The tech manuals were laden with industry jargon and the translations were more than slightly amusing. One manual was for a Cisco device and comparing the machine translated manual to the French language version downloaded from Cisco made it obvious that quite a bit of jargon was either not translated or was horribly mistranslated.
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Hi,
I have two ideas for plugins that would be useful to add to my automate list that I use to "clean" epubs. 1. Rename all the text file extensions to .xhtml. Of course, duplicate filenames would be an issue. I've seen more a few epubs that have a contents file named toc.html along with a Nav file named toc.xml. 2. A sort plugin for css files. Thank you for your consideration. |
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
But if you sort css entries in a css file you can and will change its meaning as order matters in css. Also the order that link refers to them matters.
As for changing file extensions and mime types, that sounds like a job for an input plugin. What generates txt extensions when it is an xhtml file? I have never seen that. You do know you can use Sigil's BookBrowser to mass rename file extensions. |
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
For those interested in the RegexFunctionReplace plugin it has now been updated to work with newer Sigil:
see this post: https://www.mobileread.com/forums/sh...5&postcount=23 |
![]() |
![]() |
![]() |
#11 | |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
The second point was actually asking what tools are you using that generates an xhtml file with the file extension of .txt?
I have never seen that or come across it before. In the Opf manifest do these files have the proper application/xhtml+xml media type? If these are just pure text files and not .xhtml files, you can use Sigil's text importer to do a simple conversion. |
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
I'm sorry if I wasn't clear about how I would use this function. I just want to regularize text filenames to account for .xml, .html, .htm and .xhtml file extensions.
I called them text files because the default location for xhtml files in a Sigil-normed epub is relative to ../Text/. I figure if Sigil puts a file in that section it is fair game to change the extension to .xhtml. I think there was a post from Diap a while back in which he said, if I recall correctly, that the thing he does when first editing an epub is to rename files to .xhtml to reflect that they are in actuality, xhtml files. |
![]() |
![]() |
![]() |
#14 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,759
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Yes and that can be done in one easy step using Sigil's BookBrowser. Select all and right click on rename. When it asks for a pattern, just replace what is there with .xhtml
All selected files would be properly renamed to have the .xhtml extension. Then of course behind the scenes all of the links and references to the old names all throughout the epub are properly updated using concurrent threads. It is this last step that makes this more than a bit of a pain to handle in a plugin. The actual renaming of the files is trivial. It is what comes next (ie finding and performing all the reference updates) that is hard. Simply duplicating all that fast C++ and C code in python is just not worth it IMHO. |
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Yes, that's the way I do it now. My goal is to automate the task. I see your point about the underlying adjustments. Maybe this could be easily implemented by an Automate List tool?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updated Plugins Not Installing? | enuddleyarbl | Plugins | 10 | 04-04-2023 06:22 PM |
Updated Plugins | Rellwood | Plugins | 4 | 12-09-2020 05:18 PM |
Systemwide installation of plugins / Discovery of installed plugins via pkg_resources | t-8ch | Development | 8 | 11-14-2020 09:25 AM |
[FREE]Innovative Ideas to Ignite Your Mind: Business Ideas to Start Entrepreneurship | amazon author | Self-Promotions by Authors and Publishers | 0 | 04-01-2015 04:09 AM |
Recommendation - Maintain updated list of depreciated plugins | azteech | Plugins | 7 | 07-23-2012 07:04 PM |