Patterns from "Find and Redact Text"

For translators, questions, tips and suggestions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Dimitar - PDF-XChange, Vasyl - PDF-XChange, Chris - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
User avatar
siSINka
User
Posts: 42
Joined: Sun Apr 07, 2019 11:55 am

Patterns from "Find and Redact Text"

Post 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.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10910
Joined: Wed Jan 03, 2018 6:52 pm

Re: Patterns from "Find and Redact Text"

Post 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,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
David.P
User
Posts: 1637
Joined: Thu Feb 28, 2008 8:16 pm

Re: Patterns from "Find and Redact Text"

Post 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?
David.P
PDF-XChange Pro
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10910
Joined: Wed Jan 03, 2018 6:52 pm

Re: Patterns from "Find and Redact Text"

Post 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,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply