View Single Post
Old 03-18-2016, 09:20 AM   #41
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,739
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by bookman156 View Post
What would be a handy addition to this plugin would be the ability to replace a hyphen in date ranges with an en dash, as in for example: 1921-1985.
Quote:
Originally Posted by bookman156 View Post
This would also be useful to change from hyphen to en dash in page rages: pp 94-96.
@bookman156: Since Sigil supports regular expressions, you could fix both issues with a simple regex search:

4-digit date ranges:

Find:(\d{4})-(\d{4})
Replace:\1–\2

Page numbers:

Find:pp (\d+)-(\d+)
Replace:pp \1–\2

There's also a Sigil regex thread.
Doitsu is offline   Reply With Quote