Page 1 of 1

Patterns from "Find and Redact Text"

Posted: Thu Nov 07, 2019 8:13 am
by siSINka
In 8.334 (PDF-XChange Editor Plus) is there a new function (Document - Redaction - Find and Redact). Redact patterns are stored in *json files here: c:\Program Files\Common Files\Tracker Software\Common\RedactPatterns\

I would create Czech pattern locale. English file I copied as cs_CZ.json and translated into Czech.
But… some formats (regional settings) in the Czech Republic are differnet (telephone numbers, ID, dates) and values in *json are inconceivable for me.

Example:
"((((((\\(\\d{2}\\)\\s?)|((\\b\\s?)\\d{2}\\s?(\\(0\\)\\s?)?)|(\\b\\s?))(0?\\d{2,5}(\\s|\\-)))|(\\(0?\\d{2,5}\\)\\s?)))?((\\d{5,8})|(\\d{3,4}\\s\\d{4})))(\\b)"

Is there any guide, how to code own format, how to understand those symbols? Thanks very much!

---------
I know this query doesn't match the section name, PDF-XChange Translators. If this is a problem, move it elsewhere, thanks.

Re: Patterns from "Find and Redact Text"

Posted: Thu Nov 07, 2019 8:06 pm
by Daniel - PDF-XChange
Hello siSINka,

These options are highly complex as they contain a large number of possible variations, and most locales come natively suppoted, so there is no need to "translate" this file in particular. If you wish to translate the find and redact dialog itself, it is a part of the "sanitize" plugin, and can be modified in that module of the Translation tool.

Kind regards,

Re: Patterns from "Find and Redact Text"

Posted: Tue Dec 17, 2024 6:02 pm
by David.P
siSINka wrote: Thu Nov 07, 2019 8:13 am Redact patterns are stored in *json files here: c:\Program Files\Common Files\Tracker Software\Common\RedactPatterns\
Hello all, I'm trying to learn more about these redact patterns, but it seems they have been moved somewhere else, possibly even into files with different extensions.

Can someone point me in the direction where I can find the redact patterns?

Re: Patterns from "Find and Redact Text"

Posted: Tue Dec 17, 2024 11:22 pm
by Daniel - PDF-XChange
Hello, David.P

They seem to still be in the same location as before, If you are using a portable version of the software, they would instead be inside the portable directory, but otherwise, should be right there as before. I just installed a fresh update this morning, and surely enough I have the same folder, modified at the installation time today so I can definitely confirm this is still the default location:

C:\Program Files\Common Files\Tracker Software\Common\RedactPatterns

If this folder is not present, and you are not running a portable version of the software currently, than you may want to uninstall, restart the device, and then reinstall, as there could have been a permissions issue which prevented the folder from being created.

Kind regards,