|
|
#226 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 62230
Join Date: Jul 2015
Device: Sony
|
@thosp: Thank you for letting me know about this bug. This has been fixed and the updated plugin has been put in the first post of this thread.
|
|
|
|
|
|
#227 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Dec 2014
Device: laptop & tablet
|
Incorrect Character Change
Greetings,
I ran the plugin against a file containing, "Texta / Textb" and it changed it to, "Texta I Textb". That is incorrect, isn't it? |
|
|
|
|
|
#228 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 62230
Join Date: Jul 2015
Device: Sony
|
Quote:
The plugin assumes that a "/" separated by two spaces should be the letter "I" as this was one of the frequent errors in ePub files that were converted from pdf files. It will not change a "/" if it is not surrounded by spaces. So although the plugin is amending "Texta / Textb" incorrectly, it is making the change that it was programmed to do. If I amend the code to ignore " / " then it will not detect any " / "s that should be an "I". It is not possible to amend the plugin so that it can work out whether a " / " should be changed to "I" or not . On balance, I will leave the plugin to change " / " to "I" as "I" in the pdf is commonly converted to "/" in the ePub.
|
|
|
|
|
|
|
#229 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,929
Karma: 4217884
Join Date: Nov 2009
Device: many
|
One idea is to do what Doitsu does in many of his plugins which is to use the plugins Prefs to store user-editable preferences so that the user can enable that change or not.
|
|
|
|
|
|
#230 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 186
Karma: 62230
Join Date: Jul 2015
Device: Sony
|
Quote:
Code:
if cDetermineQuotes.OpenQ == "‘":
CorrectText("Corrected apostrophes in wrong direction", r'[ ]?‘(ad|ave|bout|eard|em|er|cause|cept|im|is|old|ome|ow|specially|Taint|til|tis|twas)(\W?)', r' ’\1\2')
else:
CorrectText("Corrected apostrophes in wrong direction", r'[ ]?‘(?i)(\d\d|ad[n]{0,1}|app[yines]{0,5}|appen[eds]{0,2}|ard[er]{0,2}|arf|alf|ang|as|at|av[ein]{0,3}|bout|bye|cause|cept[ing]{0,3}|copter[s]{0,1}|cos|cross|cuz|couse|e[emr]{0,1}|ell|elp[edling]{0,5}|ere[abouts]{0,5}|eard|f|fraid|fore|id|igh[er]{0,2}|ighness|im|is|isself|gainst|kay|less|mongst| n|nd|neath|nough|nother|nuff|o[o]{0,1}|ood|ome|ow|op[eding]{0,3}|oney|orse[flesh]{0,5}|ouse[ds]{0,1}|pon|puter[edrs]{0,2}|round|scuse[ds]{0,1}|spect[sed]{0,2}|scaped|sides|tween|special[ly]{0,2}|stead|t|taint|til|tis|twas|twere|twould|twil l|ud|un|urt|vise)(\W?)', r' ’\1\2')
|
|
|
|
|
|
|
#231 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 300
Karma: 77002
Join Date: Sep 2011
Device: none
|
I understand such would require a fair amount of work. As I believe I suggested something like such before, someday yes, yes I say yes.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tidying Up My Kindle | selectortone | Calibre | 2 | 07-17-2013 11:35 AM |
| developping a Plugin for Presentation files | abdlink | Plugins | 4 | 04-15-2013 12:27 PM |
| Plugin to fix fb2 files | oviksna | Plugins | 3 | 01-28-2013 09:53 AM |
| Tidying Up My Library | JayLaFunk | Library Management | 2 | 09-20-2011 10:12 AM |
| Calibre 0.7.50 can't see plugin files | mb_webguy | Calibre | 5 | 04-29-2011 04:41 AM |