02-28-2018, 03:23 PM | #16 | ||
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
Quote:
It depends on how it's the xhtml code, and how you like to change it. Quote:
Regards. |
||
03-02-2018, 08:21 AM | #17 |
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
HTMLgen v0.0.8
Here's a small update for HTMLgen.
Changes in v0.0.8:
Regards |
Advert | |
|
03-02-2018, 01:38 PM | #18 |
Guru
Posts: 757
Karma: 2296998
Join Date: Jan 2017
Location: Poland
Device: Various
|
Icon proposition.
|
03-09-2018, 12:03 PM | #19 |
Member
Posts: 16
Karma: 1422
Join Date: Mar 2016
Device: none
|
I sent in PM the italian translation
|
03-10-2018, 09:03 AM | #20 |
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
@BeckyEbook: Thank you! I've added it.
It can be seen under windows and linux with python 3.4. Now I wish there was an option to change the default icon of the addon's buttons in Sigil. Maybe in Sigil v1.0? Grazie mille! ================= Well, here it is: HTMLgen v0.0.9 Changes in v0.0.9:
*Note: It seems that LibreOffice ignores the id inside some tags, like div, aside, ... ( <div id="...">, <aside id="..."> ...) so I added a small replacement to fix some of those cases. Regards. |
Advert | |
|
03-10-2018, 12:04 PM | #21 |
Sigil Developer
Posts: 8,076
Karma: 5450184
Join Date: Nov 2009
Device: many
|
Support for plugin supplied quick launch icons is in Sigil master now and will be in the next release.
|
03-29-2018, 02:45 PM | #22 |
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
Small update to v0.1.0:
Regards |
04-17-2018, 11:01 PM | #23 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Hi
About images. When I am using your plugin with an ePub containing several images, they are placed in a folder "files" near the html file. I think it would save time for the user if your plugin could leave some kind of place holder in the html file (ideally with the name of the image), to pinpoint where an image should be placed. |
04-20-2018, 10:38 AM | #24 | |
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
Quote:
Not sure if you mean to add something like name="filename" in the img tag (used in LO in its image list navigator), or maybe the alt="...". Or something else. The external files (images, fonts, css...) are always in the same "*_files" folder, that has the same name of the "*.html" file. ...or maybe you want to change the folder name? Regards |
|
04-20-2018, 09:06 PM | #25 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Sorry for expressing myself in a confuse way.
After using the plugin, all the images that were in the ePub are to be found in the "Files" folder. Say, you have twenty of them and you have them by their name (Boat.png) or number (img2.png). When you wish to insert them back in the new html file, you'll need some benedictine patience to find where is their expected right place. For this, you'll have to look back in the ePub for each image. It's a tedious process. If your nice plugin inserted (or left) in the text of the html a basic place holder with the name of the image ("here img2.png"), this task would be much easier. Last edited by roger64; 04-20-2018 at 09:17 PM. |
04-20-2018, 10:20 PM | #26 | ||
Grand Sorcerer
Posts: 27,867
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Sorry roger, I don't know what you're trying to say/ask either.
Quote:
@PeTrDu: I get a syntax error immediately when trying to run v0.1.0 of the plugin on Linux. Code:
SyntaxError: name 'didFailCopy' is used prior to global declaration Error: name 'didFailCopy' is used prior to global declaration (plugin.py, line 312) From the Python documentation: Quote:
Is no else experiencing this? Last edited by DiapDealer; 04-20-2018 at 10:24 PM. |
||
04-20-2018, 11:55 PM | #27 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
My bad. Sorry about that.
I did it properly again: I saved the ePub as an html file, opened LO with my usual model, inserted the html file, and, indeed the images were here, in their right place. Thinking about it, my mistake which made the images disappear comes probably because I was not careful enough and did not check that the odt file had been saved in a distinct directory. OTOH, I never saw the Diap Dealer error message on Linux... Not everything is bad. Last edited by roger64; 04-20-2018 at 11:58 PM. |
04-21-2018, 03:23 AM | #28 | |
Grand Sorcerer
Posts: 5,635
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
@DiapDealer: Maybe there are some global declaration changes in Python 3.6.x? Last edited by Doitsu; 04-21-2018 at 05:29 AM. |
|
04-21-2018, 04:30 AM | #29 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I managed to reproduce the mistake about images.
Explanation After importing the html file produced by the plugin, images were correctly displayed in the odt file. However they were linked to the external "Files" folder. When I exported to ePub3 using writer2xhtml 1.6 (ODTImport), it broke the external links and the images did not appear in the ePub. The screenshot below shows the external links in LO (Edit > Links to external files). Four images are linked to my odt file. All you need to do before exporting to ePub is to "disconnect" (destroy) all these external links and save. Only then you will be able to export to ePub with these images. I hope this may help somebody in the same situation. Last edited by roger64; 04-21-2018 at 04:43 AM. |
04-21-2018, 06:33 AM | #30 | ||
Member
Posts: 11
Karma: 511654
Join Date: Feb 2018
Device: none
|
@roger64: Thank you for the explanation!!
@DiapDealer: Nice catch! Somehow that error didn't show up in some version of Sigil/Python/OS, so I didn't see it. Thank you! Quote:
@Doitsu: Thank you for testing it! It was a mistake I did. Change in v0.1.1:
Regards. |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Conversion Output] KePub Output Plugin | jgoguen | Plugins | 566 | 08-07-2024 09:12 AM |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 435 | 01-19-2023 09:46 PM |
[Plugin] KePub Output | djazz | Plugins | 35 | 12-22-2019 07:42 PM |
Plugin debug output | DiapDealer | Development | 4 | 12-04-2016 09:12 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |