06-24-2024, 08:14 PM | #61 |
Sigil Developer
Posts: 7,800
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Just a caveat, you can have more than one file with the exact same filename and extension as long as they are in different folders (have different paths). This tool would as it is here would not handle that case well.
|
06-25-2024, 10:20 AM | #62 |
Guru
Posts: 707
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Small detail: the identifier relating to the cover image is not updated.
Code:
<meta name="cover" content="THIS" /> |
06-25-2024, 11:39 AM | #63 |
Sigil Developer
Posts: 7,800
Karma: 5446592
Join Date: Nov 2009
Device: many
|
It was for my content.opf test case included within that zip. Of course any existing meta cover id must point correctly to a file in the manifest on input to this program otherwise it will remain untouched.
Please zip up the opf you tested with and post it for me in case there is a logic bug I missed. Last edited by KevinH; 06-25-2024 at 11:51 AM. |
06-25-2024, 11:54 AM | #64 |
Guru
Posts: 707
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
|
Cancel alert. For the most part, everything was OK, but I ended up with an e-book with the wrong cover ID (cover.jpeg instead of cover.jpg), causing that wrong ID to not be changed. That is, all is well, it's just that before running the script you'd better be sure that the identifiers in the OPF file are correct.
I need to add an extra condition for myself when validating files. |
06-25-2024, 12:07 PM | #65 |
Sigil Developer
Posts: 7,800
Karma: 5446592
Join Date: Nov 2009
Device: many
|
Good to know, thanks!
|
06-25-2024, 12:40 PM | #66 |
Sigil Developer
Posts: 7,800
Karma: 5446592
Join Date: Nov 2009
Device: many
|
FWIW, using the file extension helps prevent name collisions but I really hate seeing the "." as part of an identifier. I think it would be better to split off the extension and then add it back to the end of the filename prepended with an underscore and not a period.
So Cover.jpg as an id would become Cover_jpg If we remove the extension information completely, then many more name collisions happen as Cover.jpg may be used in Cover.xhtml and other similar things. What do people think? Kevin |
Today, 03:59 AM | #67 | ||
Enthusiast
Posts: 31
Karma: 10
Join Date: Jun 2011
Location: Lima, Peru
Device: Kindle 10Gen / Kobo Aura HD / Nook STR
|
Thank you very much for your great work!
I know there is a newer version, but I wanted to say a special thanks here for taking care of these two suggestions: Quote:
And to ask you: until 2.1.0, the environment variable SIGIL_USES_DARK_MODE allowed to override the system mode. But apparently this change has disabled it: Quote:
Is there any way to set Sigil to always use Light/Dark Mode, regardless of the system mode, as before? (BTW: Windows 10-11, both x64) Thanks in advance! |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil-1.3.0 Released | DiapDealer | Sigil | 8 | 09-15-2020 08:03 AM |
Sigil-0.9.10 Released | DiapDealer | Sigil | 149 | 11-19-2018 10:20 PM |
Sigil-0.8.900 released for testing - Wait for Sigil-0.8.901 | KevinH | Sigil | 106 | 10-04-2015 10:41 AM |
Sigil 0.8.2 Released | user_none | Sigil | 12 | 12-22-2014 06:02 PM |
Sigil 0.7.0 Released | user_none | Sigil | 75 | 03-03-2013 12:41 PM |