![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,575
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've not tested it, but I also think that you wouldn't be able to properly add any existing image files named like that to Sigil on any platform--including Linux. Sigil wouldn't know how to manifest it properly. I'm guessing it would end up manifested as text/plain and show up in Misc rather than Images.
You'd have to rename *.jpg files to your *.09_jpg preference only after they've been successfully added and manifested as image/jpeg in the opf. |
![]() |
![]() |
![]() |
#17 | |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Mar 2024
Device: none
|
Quote:
I liked your suggestion earlier about using a slightly different regex though, so I'll use that for the future. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,575
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I figured they were probably part of an existing epub. I was just pointing out that when adding external files to a Sigil epub, the file extension is the only (I think) thing that tells Sigil what the media type should be in the manifest.
|
![]() |
![]() |
![]() |
#19 |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Mar 2024
Device: none
|
Yes sure. Sometimes I'm spoiled as a linux user
![]() |
![]() |
![]() |
![]() |
#20 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,769
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Linux can and does support file extensions. The only way extensions can really be dropped is to use a program internally to check the initial bytes for some "magic" byte patterns but this is generally not portable. Hiding file extensions is a good way to be tricked into running something you should not. Combining file extensions that match with "magic byte sequences" is the best for portability and security.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Connoisseur
![]() Posts: 62
Karma: 10
Join Date: Mar 2024
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
pdf regex question - regex that wraps to a new line | flyash | Conversion | 1 | 09-05-2021 09:00 AM |
Class Rename Issue | Paulie_D | Editor | 2 | 03-29-2021 12:09 PM |
Predefined regex for Regex-function | sherman | Editor | 3 | 01-19-2020 05:32 AM |
regex - issue with spaces? | cybmole | Editor | 43 | 12-31-2013 12:49 PM |
regex Issue when Importing | river | Calibre | 3 | 06-16-2009 11:03 AM |