Quote:
Originally Posted by Maui
Can this be consolidated in one of the next versions of Sigil? I like the naming (2) much much more.
|
I agree.
Quote:
Originally Posted by KevinH
Why does this matter when typically after a split the user normally renumbers/renames things anyway?
|
For consistency.
Both have the same functionality: Splitting a file... but they result in different filenames.
A real-life usecase:
I typically work on HTML articles pulled from websites. Let's say it's:
- Article_Name_1_-_Full_Author.xhtml
- Article_Name_2_-_Full_Author.xhtml
- [...]
- Article_Name_20_-_Full_Author.xhtml
Split at Cursor
I may go through split large articles into two (or book-sized HTMLs into chapters). If I used Split At Cursor, I would get this:
- Article_Name_1_-_Full_Author.xhtml
- Article_Name_2_-_Full_Author.xhtml
- [...]
- Article_Name_20_-_Full_Author.xhtml
I see a few disadvantages of the Section#### method:
1. If I use Reports, these Section#### filenames are not helpful.
2. If I drag/drop articles into different positions, it is hard to know which Section#### belong to which articles.
3. I still have to manually rename each Section#### to be helpful to humans.
Split at Markers
If I used Split at Markers (which is the method I almost always do):
- Article_Name_1_-_Full_Author.xhtml
- Article_Name_1_-_Full_Author_0001.xhtml
- Article_Name_2_-_Full_Author.xhtml
- Article_Name_2_-_Full_Author_0001.xhtml
- [...]
- Article_Name_20_-_Full_Author.xhtml
- Article_Name_20_-_Full_Author_0001.xhtml
These filenames are still meaningful, and using Reports is still helpful.
If you dragged/dropped files around, you can still tell which split piece belongs to which file.
A Mix
Section#### files rename on a per-book level, while the other renames on a per-file level.
Now, the inconsistencies come when you mix both methods AND you do them in different orders:
- Article_Name_1_-_Full_Author.xhtml
- Article_Name_1_-_Full_Author_0001.xhtml
- Article_Name_1_-_Full_Author_0002.xhtml
- Section0020.xhtml
- Section0020_0001.xhtml
- Section0020_0002.xhtml
- Article_Name_2_-_Full_Author.xhtml
- Article_Name_2_-_Full_Author_0001.xhtml
- Section0001.xhtml
- [...]
- Article_Name_20_-_Full_Author.xhtml
- Article_Name_20_-_Full_Author_0001.xhtml
- Section0002.xhtml
- Section0002_0001.xhtml
- Section0005.xhtml
Depending on WHEN/HOW you do the splits, the filenames can become a hideous mixed nest. (You do a mass S/R to add markers after every <h1> in the book, F6. Then you individually go through and manually split any oddities, Ctrl+Enter. Then you notice a different pattern+S/R and do another F6.)