View Single Post
Old 04-16-2018, 01:18 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Maui View Post
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 View Post
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
    • Section0001.xhtml
  • Article_Name_2_-_Full_Author.xhtml
    • Section0002.xhtml
  • [...]
  • Article_Name_20_-_Full_Author.xhtml
    • Section0020.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.)

Last edited by Tex2002ans; 04-16-2018 at 01:27 PM.
Tex2002ans is offline   Reply With Quote