08-13-2014, 12:15 PM | #46 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
v0.3.0 even more better
Can you make the settings persistent between uses so the user does not have to re-select the same options for subsequent re-runs? |
08-13-2014, 12:53 PM | #47 |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I could, I suppose, if it would really be considered helpful. I just figured it would be pretty rare that the exact same settings as the previous run would save much in the way of time preparing for a new run. You've either deleted or modified what you looked for last time, right?
Are you talking persisting everything? Including search/replacement strings? Or just mainly the action-type, element-type, attribute name (and maybe the regex check box)? Part of the problem is all the dynamic stuff that changes depending on what's chosen in other boxes. It's much easier to control all that when the dialog is launched from the same point each time. It wouldn't be impossible by any means though. EDIT: I neglected to think about the situation where someone might want to use the exact same criteria, but then apply that criteria one file-at-a-time for safety/testing purposes. That would certainly come in handy. It's just that I'm more of an "I've-got-backups-and-checkpoints-set-so-let's-let-'er-rip" kind of guy. Last edited by DiapDealer; 08-13-2014 at 01:51 PM. |
08-13-2014, 02:01 PM | #48 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
No biggie either way
So far the most use seems to be removing dead <span>s after replacing a lot of class = "txt1", etc with nothing It's nice to use your PI to remove the dead <span> tags and then work with a slightly cleaner version to attack the next group of unneeded css. I was think to just 'remember' the previous action, and any from/to values Just a thought So far, it works great and is a real time saver |
08-14-2014, 05:52 AM | #49 |
Grand Sorcerer
Posts: 6,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
@DiapDealer, thank you very much for the plugin and the updates, it works great.
|
08-14-2014, 08:13 AM | #50 |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You're welcome. Glad you find it useful.
|
08-14-2014, 09:45 AM | #51 | |
Dead account. Bye
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
BTW. As expected, buggy exception files work fine. BTW2. I haven't said it yet but it's obvious, really really useful tool, which saves a lot of Regex time and further polishes the Smarten punctuation tool... |
|
08-14-2014, 11:17 AM | #52 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@DiapDealer -- REALLY liking the PI the more I use it
Question / Suggestion -- How about a feature to remove 'dead' ID's? I.E. an ID that is not linked from either the CSS or in the text? A lot of epubs that I clean/reformat have ID's on darn near everthing. An overly enthusistic RegEx would delete the few that are actually used, so now if I want to clean up, I have to do it almost one at a time Question / Suggestion -- How about a feature to remove 'dead' <a>'s? I.E. an <a> that links to a nonexistant ID? [Check Book] flags them and I can fix the ones that need to be fixed, but I haven't found an easy way to just delete to one that I didn't fix because I didn't need them Last edited by phossler; 08-14-2014 at 11:19 AM. |
08-14-2014, 11:34 AM | #53 |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Definitely something I will consider for future versions, but it will take some different logic and additional parsing routines. My current parser is pretty "dumb": it deletes/modifies tags as it encounters them. One time through the file and done. IDs/links would need to checked against other files (often all or many) to determine whether or not they were being used. In the case of ids, if would be checking all (x)HTMl, all css, as well as the opf/ncx files for each ID encountered to determine if it was unused or not.
|
08-16-2014, 09:32 AM | #54 |
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
PI works great
Downloaded a RTF, converted to epub and opened in editor Had to do a lot of onesie-twosie conversion since I couldn't be sure if there were significant (i.e. anything I cared about) formatting differences and Calibre conversion can be a little over enthusiastic about creating many different classes, even for 'normal' text in the same paragraph I don't start with a RTF or DOC/DOTX very often, but I'm going to experiment with options just in case. Toxaris has a Word macro that I want to investigate further also to see if it will give me a better starting point Still without a doubt the PI was a huge time saver Most of the stuff I reformat is for personal use on my kindle, so I tend to go with minimal formatting and maximum readability. Spoiler:
Last edited by phossler; 08-16-2014 at 09:38 AM. |
08-16-2014, 10:36 AM | #55 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
|
08-16-2014, 10:50 AM | #56 |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
And that Word add-in works very well, I might add.
|
08-16-2014, 10:54 AM | #57 | |||
Wizard
Posts: 1,071
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@Toxaris --
Quote:
However, I was going by a link I had saved (which is still in your Sig BTW) Quote:
https://www.mobileread.com/forums/sho...d.php?t=142530 Quote:
Should I use the addin instead?? Edit -- Yep, Add-in is MUCH nicer, but does it still do the cleaning? Last edited by phossler; 08-16-2014 at 01:01 PM. |
|||
08-16-2014, 03:10 PM | #58 | |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Quote:
The HTML macro was the core for the HTML conversion in the add-in. However, about a year ago (I think...) I completely rewrote that part, making it a whole lot faster. The result is still perfectly clean and it works much better. As some here can testify, there are some gems in the add-in. My personal favorite is the 'check dialogue' that actually check if the opening quotes also have a closing quote and vice versa. It takes apostrophes into account and the different quotes used in different countries. You can actually select the system used in your country/book via the settings. I quite regularly find missing quotes that are also missing in the original print. Well, back to the topic at hand! |
|
08-20-2014, 01:53 PM | #59 | |
Guru
Posts: 668
Karma: 929286
Join Date: Apr 2014
Device: PW-3, iPad, Android phone
|
Quote:
Can I suggest you update the initial post with the latest version? |
|
08-20-2014, 02:00 PM | #60 |
Grand Sorcerer
Posts: 27,551
Karma: 193191846
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |
Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 02:24 AM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |