![]() |
#31 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,648
Karma: 205022288
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
|
![]() |
![]() |
![]() |
#32 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,648
Karma: 205022288
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 | |
|
![]() |
#33 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,648
Karma: 205022288
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) |
![]() |
![]() |
![]() |
#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? |
![]() |
![]() |
![]() |
#35 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,779
Karma: 30237628
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 | |
|
![]() |
#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. |
![]() |
![]() |
![]() |
#37 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,779
Karma: 30237628
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. |
|
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#40 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,648
Karma: 205022288
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.
![]() |
![]() |
![]() |
![]() |
#41 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
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. |
||
![]() |
![]() |
![]() |
#42 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 368
Karma: 1000000
Join Date: Mar 2016
Device: none
|
Quote:
|
|
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#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. |
![]() |
![]() |
![]() |
#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.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] ePub3-itizer - epub3 output plugin for Sigil | KevinH | Plugins | 457 | 05-28-2025 06:14 PM |
epubcheck plugin for Sigil | Doitsu | Plugins | 539 | 04-19-2025 08:45 AM |
[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 |