View Single Post
Old 06-08-2019, 12:04 AM   #14
AlanHK
Guru
AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.AlanHK ought to be getting tired of karma fortunes by now.
 
AlanHK's Avatar
 
Posts: 681
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
Quote:
Originally Posted by stumped View Post
i think I could have regexed the number from each image file name into header text but it was the need to subtract 4 that stumped me. do tell, if I missed a trick there.l
As I said: select all the chapter head images in the file list and rename as "Chapter_1" and they will be named in sequence from that. You might use "Chapter_01" to make them sort correctly after renaming if more than 9 chapters.

Then the regex from filename to text is trivial.
AlanHK is offline   Reply With Quote