![]() |
#31 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,237
Karma: 23446430
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
FYI, You can simply use a double ampersand.
|
![]() |
![]() |
![]() |
#32 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,790
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
@Terisa
Try this version of the tools and see if it's to your liking.
The zip file is much larger because I'm creating it with no compression. Otherwise, the overall size of the uncompressed files actually got smaller from v0.3.0. Let me know. If nothing got broken, I'll update the first post with 0.3.1 sometime. EDIT: first post updated with the test version that used to be here. Attachment removed from this post. Last edited by DiapDealer; 04-24-2015 at 02:27 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,318
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Thank you very much @DiapDealer, it's exactly what I wanted. And the section tag will come in handy because I've already found some books with it.
Last edited by Terisa de morgan; 04-21-2015 at 09:47 AM. Reason: Typo |
![]() |
![]() |
![]() |
#34 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,790
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Good to know!
Let me know if anything wonky happens. If I don't hear anything (and nothing turns up from my testing) I'll update the first post. I've found the section tag comes in handy when downgrading commercial EPUB3s to EPUB2 (when there's no particular advantage for them being EPUB3). |
![]() |
![]() |
![]() |
#35 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,318
Karma: 12117215
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,790
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Version 0.3.1 of the plugin released (see first post in thread).
Changes:
|
![]() |
![]() |
![]() |
#37 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Another (small) request
Small request to please consider
For something like this ... Code:
<p class="ct">ONE<br/><br/><i>Story Begins</i><br/> Monday</p> Action Type = Modify Tag Name = p Attribute = class Value= ct Change Tag to: H1, or H2, etc. ... to end with ... Code:
<h1>ONE<br/><br/><i>Story Begins</i><br/> Monday</h1> I could probably come up with a RE, but your PI is so much easier to use Thanks for considering |
![]() |
![]() |
![]() |
#38 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,790
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Non-nestable tags are fairly trivial to modify with normal search and replace tools. My main goal was to provide something for those areas where regex couldn't be trusted--the tags that got me in trouble when replacing/changing/deleting.
I'll keep it in mind, but I'm not really interested in creating something where any tag can be changed to any other tag. That would likely get me back in trouble again. ![]() Find: <p class="ct">(.*?)</p> Replace: <h2>\1</h2> Last edited by DiapDealer; 04-24-2015 at 08:47 PM. |
![]() |
![]() |
![]() |
#39 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
NP -- I ending up using a RE to move along.
It just seemed to fit nicely into the PI's structure BTW -- is "•Added ability to bypass diff generation (all tools)" an option? If so, where is it stored? Thanks again for a very useful PI |
![]() |
![]() |
![]() |
#40 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27,790
Karma: 198099188
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
The plugin always creates a checkpoint, so even if you skip viewing the diffs, you can still revert the changes. |
|
![]() |
![]() |
![]() |
#41 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81
Karma: 86158
Join Date: Jan 2011
Location: Maryland
Device: NST, Kindle Fire, iPad2
|
You can do this now, albeit one at a time. Just place your cursor somewhere in the middle of the paragraph and press CMD/CTR+1 (the "Change Paragraph to Heading" tool in the Tools for HTML Editors toolbar at the top of the main editor window).
|
![]() |
![]() |
![]() |
#42 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,085
Karma: 412718
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
@loximuthal -- thanks, but the book I was trying to clean/fix/correct/make my way had 50+ of those and I just wanted a simple TOC from Headings
I ended up using a RE; it was just that it was specific to the special class, etc that was used |
![]() |
![]() |
![]() |
#43 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
|
Hi DiapDealer,
Your plugin is great, except that it is changing in just the current file, not all of the files. What am I doing wrong? Keith |
![]() |
![]() |
![]() |
#44 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
If you've added the plugin to your Toolbar you should see a small down-arrow to the right of the icon. 'Edit current file only' is an option in there - uncheck it.
|
![]() |
![]() |
![]() |
#45 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
Karma: 13776
Join Date: Jan 2007
Location: semi-north Ontario, Canada (N 45.41 W -79.67)
Device: iPad Air 5, Samsung Galaxy S20 FE
|
Thanks Jackie. That certainly does the trick.
Keith |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 07:16 AM |
Diaps Editing Toolbag.zip Index Error | phossler | Editor | 2 | 10-01-2014 08:05 PM |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |
japi - a text editor capable of editing ePub directly | hekkel | ePub | 5 | 02-20-2009 08:46 AM |