View Single Post
Old 12-16-2016, 10:57 PM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Marco77 View Post
Edit: oops, misread the question.
The fastest way would be to use a regular expression to insert anchors.
In order to use regular expressions he'd first need to be able to identify the line before the page break. If verydeepwater has access to a pdf copy with page numbers, he could convert it to a text file, use grep (or a GUI tool with grep support) to search for page breaks, pipe the results into a text file, reformat the output so that it can imported as a Saved Search in Sigil or Calibre Editor and then automatically insert the page number targets.

He could also define a generic Sigil Clip/Calibre Snippet that points to page 1, assign it a keyboard shortcut, manually insert it after each page break and use a Calibre function or my Incremental IDs Sigil plugin to add consecutive ids.
Doitsu is offline   Reply With Quote