01-22-2016, 07:34 PM | #31 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Updated to v0.3.1 in the first post.
Changes are mostly cosmetic, but they include: - update to make use of Sigil's upcoming autostart/autoclose feature for plugins - files selected in Book Browser are pre-selected in plugin widget - add update check for plugin
|
01-22-2016, 10:04 PM | #32 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Well so much for that update!
Reverting back to v0.3.0 until I work out a module dependency issue. Sorry for any confusion. Last edited by DiapDealer; 01-22-2016 at 10:40 PM. |
Advert | |
|
01-23-2016, 11:43 AM | #33 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
New version 0.3.2 in the the first post.
(replaces faulty v0.3.1) |
03-16-2016, 11:58 PM | #34 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
This is a great plugin. Works wonderfully.
I have only discovered, so far, one instance where it doesn't work, in map coordinates, which I expected and went back to correct to a prime, eg: 51° 28′ 38″ N I was wondering whether it might not be a good idea to compile a list of instances like this where this plugin needs to be cleaned up after, so one can make an effort to find such things. Any others to add to the list? |
03-17-2016, 02:31 AM | #35 |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
IIRC imperial inch and foot should be designated by double and single prime respectively, although they're most often represented as straight single and double quote, or increasingly 'in' and 'ft'.
|
Advert | |
|
03-17-2016, 01:56 PM | #36 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
It occurs to me that one can 'clean up' before running this plugin. If I change to a prime in a coordinate first, then the prime will be left untouched when I run the plugin. Similarly for any other candidates for the single and double prime symbol, such as Imperial feet and inches.
Useful compendium of prime uses: https://en.wikipedia.org/wiki/Prime_(symbol) Last edited by bookman156; 03-17-2016 at 02:02 PM. |
03-17-2016, 04:50 PM | #37 | |
null operator (he/him)
Posts: 21,006
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
psst: your Wikip link is 'broken' should be - Prime (symbol) BR Last edited by BetterRed; 03-17-2016 at 04:56 PM. |
|
03-18-2016, 12:51 AM | #38 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
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.
Presumably something could be written that recognises that it is numbers on either side of the hyphen and not letters as in a hyphenated word? Last edited by bookman156; 03-18-2016 at 02:18 AM. |
03-18-2016, 02:18 AM | #39 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
This would also be useful to change from hyphen to en dash in page rages: pp 94-96.
http://www.thepunctuationguide.com/en-dash.html That would be such a useful ability to have in the book I'm editing now. Currently I'm planning to replace them manually, hundreds of the damn things, so if anyone has any idea of how to do it easier I'd love to hear. (Although I'll probably just be satisfied with the hyphen until I can work out a way not to have to do it manually.) Last edited by bookman156; 03-18-2016 at 02:30 AM. |
03-18-2016, 09:24 AM | #40 |
Grand Sorcerer
Posts: 28,042
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I've bent and twisted the SmartyPants algorithm was far as I'm willing to. Every new addition seems to come at the cost of breaking something else at this point.
|
03-18-2016, 10:20 AM | #41 | ||
Grand Sorcerer
Posts: 5,640
Karma: 23191067
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Quote:
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. |
||
03-18-2016, 12:41 PM | #42 | |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
03-18-2016, 12:55 PM | #43 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
I guess I could do any number range, page numbers and dates and whatever else, with:
Find: (\d+)-(\d+) Replace: \1–\2 Then I'd only have to find things like BC years. |
03-18-2016, 01:34 PM | #44 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Works a treat!
And I don't have to find BC years either because they would be in the form: 722-481BC Although 2BC-AD5 would require some effort. Last edited by bookman156; 03-18-2016 at 02:02 PM. |
03-18-2016, 02:27 PM | #45 |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Yes, best not to fix what isn't broken, and, luckily, no need to anyway now I've discovered the joy of regex.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 456 | 10-27-2024 07:00 AM |
epubcheck plugin for Sigil | Doitsu | Plugins | 533 | 10-24-2024 04:32 PM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 11:11 AM |
icarus Sigil plugin | AlPe | Plugins | 26 | 12-05-2017 11:03 AM |
smoothRemove_v010 plugin for Sigil | kbanelas | Plugins | 15 | 01-27-2017 06:51 PM |