![]() |
#196 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
In fact, a compendium epub merging plugin might be a useful thing to create.
|
![]() |
![]() |
![]() |
#197 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,652
Karma: 205022288
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
As mentioned, the tooltip always shows the full path. You don't have to expand Book Browser widely. I find with reasonably named files, I can leave the setting to show the full path on all the time (and unreasonably named files don't stay so for long!).
As mentioned elsewhere: there will be no treeview with the actual file structure forthcoming. Sorry. The would defeat the purpose of being able to select multiple files of the same type for processing. Such as mass renaming. |
![]() |
![]() |
![]() |
#198 | |||
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,834
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
I did however get that crash on Quit, which I think is the same crash that we have been chasing off-forum for a while. I will send you the crash report directly. While I would never have asked to have the filename at the top of the Preview window, having it there is a pleasant surprise — something I never knew I wanted until I had it ![]() Quote:
The reason is that now that Sigil respects original structure, I would find it useful to see the book structure in a single glance, then turn full filepaths off to save space. Mousing over each filename is awkward, as is going to Preferences to turn on full filepaths and then going back to turn off. However, this is a minor issue for me and I understand if it's problematic to implement. Just thought I'd weigh in since it's come up. Quote:
XXXXXXXXXXX_titlepage.xhtml XXXXXXXXXXX_copyright.xhtml XXXXXXXXXXX_chapter01.xhtml XXXXXXXXXXX_chapter02.xhtml XXXXXXXXXXX_chapter03.xhtml XXXXXXXXXXX_epilogue.xhtml I know that I can select all the "chapter" files and rename them "chapter01" and it will number them sequentially. But can I delete a phrase that is repeated in all filenames without touching the rest of it? All in all, I'm feeling 0.9.991 is working really well! Thank you Last edited by odamizu; 11-17-2019 at 06:49 PM. |
|||
![]() |
![]() |
![]() |
#199 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,652
Karma: 205022288
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Unfortunately there's not. Not with Sigil features anyway. Sounds like a good idea for a plugin, though!
|
![]() |
![]() |
![]() |
#200 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
If we use plugins for that we will have to recreate all of the UniversalUpdates code in python. That might be a good thing to have for plugins in the long run anyway.
That said, we could easily add an TrimPrefix Rename menu item and a TrimSuffix Rename menu item and that would ask for the prefix or suffix to trim where Prefix would trim from the left (only if filename actually starts with that prefix), and similarly for a suffix that worked on the filename to the left of the extension. We could add them to the BookBrowser context menu or to the MainWindow tools menu. Any interest? Or alternatively we could use some sort of regular expression based matching to extract the desired name piece. Last edited by KevinH; 11-17-2019 at 07:21 PM. |
![]() |
![]() |
![]() |
#201 | |
Wannabe Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 426
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
|
Quote:
Code:
The OPF uses an unrecognized media type "txt/css" for file "stylesheet.css" - A temporary media type of "text/css" has been assigned. You should edit your OPF file to fix this problem. As I previously mentioned, EpubCheck didn't mention anything about the xpgt, but I just accidently ran FlightCrew (its quick launch button is next to EpubCheck's), and it did report something. File: content.opf Line: 114 Offset: 23784 Message: Error OPF bad item media type value : The <item> element's "media-type" attribute has value "application/vnd.adobe-page-map+xml", but the file's media type is "application/vnd.adobe-page-template+xml". near column 101 I'll bring this one up in the EpubCheck thread. |
|
![]() |
![]() |
![]() |
#202 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,652
Karma: 205022288
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
If TrimPrefix or TrimSuffix would be relatively painless (and less work than porting UniversalUpdates to Python) then I say, why not? There's plenty of epubs out there that could benefit from being de-garbaged.
|
![]() |
![]() |
![]() |
#203 | |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Yes that was the load warning for an unrecognized media type txt/css and the file name it applies to and info on where to fix it.
Yes, it does not detect the second error anymore since it is actually a valid mediatype, just not one that matches the file itself. Since the iana.org that registers mediatypes allows vnd. trees, it is is a valid mediatype clearly stated in the OPF manifest, and there just isn't an easy way to detect the mismatch that does not require a new one to many mapping since file extensions may have many valid mediatypes. We only detected a problem before since the bad mediatype was not a perfect match for previously required adobe-page-template+xml but changes this year in the media type registrations structure of the iana.org means Sigil must now accept it as valid. KevinH Quote:
|
|
![]() |
![]() |
![]() |
#204 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Okay, I will take a shot at it tomorrow, at least the prefix one anyway.
|
![]() |
![]() |
![]() |
#205 | |
just an egg
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,834
Karma: 8006102
Join Date: Mar 2015
Device: Kindle, iOS
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#206 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 853
Karma: 3341026
Join Date: Jan 2017
Location: Poland
Device: Various
|
Quote:
Every now and then someone asks a similar question, e.g. here. I would be happy if there was (safe and universal) possibility to rename file in the epub structure by the plugin. Of course, implementing "TrimPrefix" / "TrimSuffix" directly in BookBrowser will be a partial solution, but with weird names it won't help. |
|
![]() |
![]() |
![]() |
#207 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
With really wierd names, can't you just use Sigil to bulk renumber them as it currently can? You can set any base template for renumbering as well.
My long run goal is to create a python code to handle universal updates for moves and renames but until then, some type of bulk name trimming will make it much easier to fixup Gutenberg style file naming conventions style epubs. KevinH |
![]() |
![]() |
![]() |
#208 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Perhaps, instead of a TrimPrefix and TrimSuffix, we instead create a "RE Renamer".
It would put up a dialog that asks for a RegularExpression and a replacement. We could use QString's QRegularExpression to modify each matching filename. It would support replacement subgroups too. Then it could produce a list of before and after filenames side by side and have OK and CANCEL buttons. That would give easy trimming, adding, and even re-arranging of sub capture groups. That should be quite doable. Would this be better, or are regular expressions too hard for most users needs? KevinH |
![]() |
![]() |
![]() |
#209 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 853
Karma: 3341026
Join Date: Jan 2017
Location: Poland
Device: Various
|
|
![]() |
![]() |
![]() |
#210 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,851
Karma: 6120478
Join Date: Nov 2009
Device: many
|
Why 2 windows? I thought one column of "before" names and one column of "after" names just in case the re did something the user did not think would happen.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
5.8.11 Pre=release | knc1 | Kindle Developer's Corner | 21 | 04-17-2018 08:42 PM |
Overdrive - Search for Pre-Release | nynaevelan | General Discussions | 11 | 11-24-2013 02:27 PM |
Where are the pre-release purchase buttons? | Sydney's Mom | General Discussions | 8 | 09-06-2012 10:57 PM |
KF Android 4.0 Pre-Release Version | robertc88 | Kindle Fire | 22 | 01-22-2012 07:24 PM |
PDF Viewer 0.3.0 pre-release | pruss | Android Devices | 62 | 11-22-2011 11:18 AM |