01-22-2016, 06:34 PM | #31 |
Grand Sorcerer
Posts: 27,595
Karma: 193191846
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, 09:04 PM | #32 |
Grand Sorcerer
Posts: 27,595
Karma: 193191846
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 09:40 PM. |
Advert | |
|
01-23-2016, 10:43 AM | #33 |
Grand Sorcerer
Posts: 27,595
Karma: 193191846
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, 10: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, 01:31 AM | #35 |
null operator (he/him)
Posts: 20,653
Karma: 26966376
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, 12: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 01:02 PM. |
03-17-2016, 03:50 PM | #37 | |
null operator (he/him)
Posts: 20,653
Karma: 26966376
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 03:56 PM. |
|
03-17-2016, 11:51 PM | #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 01:18 AM. |
03-18-2016, 01: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 01:30 AM. |
03-18-2016, 08:24 AM | #40 |
Grand Sorcerer
Posts: 27,595
Karma: 193191846
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, 09:20 AM | #41 | ||
Grand Sorcerer
Posts: 5,604
Karma: 23165369
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, 11:41 AM | #42 | |
Addict
Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
03-18-2016, 11:55 AM | #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, 12: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 01:02 PM. |
03-18-2016, 01: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 |
epubcheck plugin for Sigil | Doitsu | Plugins | 510 | 05-29-2024 04:18 AM |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 435 | 01-19-2023 09:46 PM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 10:11 AM |
icarus Sigil plugin | AlPe | Plugins | 26 | 12-05-2017 10:03 AM |
smoothRemove_v010 plugin for Sigil | kbanelas | Plugins | 15 | 01-27-2017 05:51 PM |