Execute batches of saved Find/Change queries

Oxygen general issues.
Roland_Dreger
Posts: 1
Joined: Wed Apr 26, 2017 7:33 pm

Execute batches of saved Find/Change queries

Post by Roland_Dreger »

Hi everyone,

I am searching for an add-on to manage and execute batches of saved Find/Change queries.
Does anyone know a add-on for Oxygen Editor?

Roland
davelang68
Posts: 2
Joined: Sun Feb 04, 2018 7:39 pm

Re: Execute batches of saved Find/Change queries

Post by davelang68 »

I came here looking for an answer to the same question. Have you had any luck? Is there another way to do this? Anything would be helpful - a pointer to any other program / language included.

Sorry to add on to your thread - if you'd rather not have this here feel free to delete or let me know and I'll delete it.

cheers,
dave
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Execute batches of saved Find/Change queries

Post by Radu »

Hi,

If those changes are intended to modify mostly the XML structure, maybe creating your own XSLT-based XML refactor operations would help:

https://www.oxygenxml.com/doc/versions/ ... tools.html

Otherwise maybe you can give me a small example about your use case, if we do not have such a feature we might be interested in adding one.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
davelang68
Posts: 2
Joined: Sun Feb 04, 2018 7:39 pm

Re: Execute batches of saved Find/Change queries

Post by davelang68 »

Sorry it took me forever to reply to your answer - thanks for the answer though!

Basically, I'm just changing the viewing format of text to make it easier to markup. The original source docs are scanned pages from books that have been OCR'd.

I have a batch of find/replace operations that I do to each file, which may contain up to a hundred scanned pages. I don't control the "workflow" so I can't change the way the pages are presented to me.

Here are some examples of the find/replace ops that I'd like to make into a batch.

---
find \R
replace \u0020

find \u0020\u0020
replace \u0020

find <lb/>\u0020
replace <lb/>
---

it's all just moving text around so that it more closely matches the original scans and is easier to work with

I'm hoping to make a "macro" or "batch" like I can do in Photoshop etc. instead of manually doing the find/replace for each file.

I'm pretty new to Oxygen, apologies if this is an easy fix that I'm overlooking.
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Execute batches of saved Find/Change queries

Post by Radu »

Hi Dave,

Unfortunately we do not have such scripting support for Find/Replace in Files.
Using our XML Refactoring support that I described earlier it's possible to create your custom XSLT stylesheet which is applied on each document and can be used to change its text nodes in various ways but I'm not sure it covers everything that you want.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply