Execute batches of saved Find/Change queries

<oXygen/> general issues.
Roland_Dreger
Posts: 1

Execute batches of saved Find/Change queries

Wed Apr 26, 2017 7:40 pm

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

Re: Execute batches of saved Find/Change queries

Sun Feb 04, 2018 7:47 pm

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: 5445

Re: Execute batches of saved Find/Change queries

Tue Feb 06, 2018 11:07 am

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/19.1/ug-editor/topics/refactoring-xml-documents-x-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

Re: Execute batches of saved Find/Change queries

Mon Mar 19, 2018 2:23 am

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: 5445

Re: Execute batches of saved Find/Change queries

Tue Mar 20, 2018 2:27 pm

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

Return to “Other Issues”

Who is online

Users browsing this forum: No registered users and 2 guests