oasegips / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Batch Rename of HTML Files and Images #2391

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Many html files and images in real life EPUBs are named inconsistently.

May be the first chapter does not contain a "01" in its name but a "017", may 
be the different chapters have different prefixes or postfixes, etc.

I think a renaming function is useful for many users.

As a default I suggest:

ch01.xhtml
ch02.xhtml
ch03.xhtml

01.jpg/png
02.jpg/png
03.jpg/png

Of course the function should effect only marked files, because editors may 
want to name specific pages individually, like e.g. "preface.xhtml", 
"title.xhtml", "imprint.xhtml" ...

@all developers
Thanks for all your work!
Sigil is a wonderful tool.

Original issue reported on code.google.com by boru...@gmx.de on 5 Sep 2013 at 7:06

GoogleCodeExporter commented 9 years ago
You can already batch rename files in version 0.7.3.

Original comment by daveheil...@gmail.com on 11 Sep 2013 at 4:27

GoogleCodeExporter commented 9 years ago
An example:

01.jpg
03.jpg
04.jpg
05.jpg

I select:
03.jpg
04.jpg
05.jpg

Right click > Rename

Rename Files Starting at: 02.jpg

I get the error message:
Cannot rename files since this would result in duplicate filenames.

Original comment by boru...@gmx.de on 12 Sep 2013 at 10:22

GoogleCodeExporter commented 9 years ago
I found the workaround. The user has to rename first in any pattern, which does 
not create duplicates (e.g. "foo02.jpg"). Than, in a second step, he can rename 
again in the pattern which is his purpose ("02.jpg").

May be you like to think about making this workaround needless?

Original comment by boru...@gmx.de on 12 Sep 2013 at 10:46