Page 1 of 1

Web Author autocorrection patch

Posted: Tue Nov 27, 2018 5:31 pm
by NicoAMP
Hi,

I use Oxygen Web Author 20.1.0 and I would like to create an autocorrection patch to remove automatic replacement of (c) by ©.

I followed steps described here in comments but it doesn't work :
https://www.oxygenxml.com/doc/versions/ ... tions.html

I created en_patch.xml file with:

Code: Select all

<replacements>
<deletion match="(c)" substitution="©"/>
</replacements>
In options.xml I copied:

Code: Select all

<entry>
<String>autocorrect.load.user.defined.replacements.fromdefault.folder</String>
<Boolean>false</Boolean>
</entry>
<entry>
<String>autocorrect.user.defined.replacements.custom.folder</String>
<String>[oxygen.data.dir]/frameworks/my_custom_framework/patches/</String>
</entry>
Is it correct?

Thanks.

Re: Web Author autocorrection patch

Posted: Wed Nov 28, 2018 3:53 pm
by cristi_talau
Hello,

You need to replace the [oxygen.data.dir] part with the path to your Oxygen Data Directory [1].
To clarify - in your options.xml file, you need to modify the path set as value for the autocorrect.user.defined.replacements.custom.folder entry.

In case it still does not work, you should check the logs [2] (or send them to us) to see if there was any problem regarding permissions to the file.


In version 20.1.1 of the Web Author, we have added another, slightly easier way of customizing the autocorrect[3].

Best regards,
Cristian

1 - https://www.oxygenxml.com/doc/versions/ ... ther_notes
2 - https://www.oxygenxml.com/doc/versions/ ... uthor-logs
3 - https://www.oxygenxml.com/doc/versions/ ... rrect.html

Re: Web Author autocorrection patch

Posted: Mon Dec 03, 2018 6:46 pm
by NicoAMP
Thanks a lot.

It works now :D

Re: Web Author autocorrection patch

Posted: Fri May 17, 2019 4:22 pm
by jbvalentin
Hi

as I understand it, we need to set the

Code: Select all

oxygen.data.dir
to "real" path value. Is there any way to do that with a variable value, e.g.

Code: Select all

${install.path}
likewise when developing frameworks? it would be easier for us to manage the different installation details when deploying to DEV, INTEG, ... and so on.

Thank you
Jean-Baptiste

Re: Web Author autocorrection patch

Posted: Mon May 20, 2019 11:12 am
by cristi_talau
Hello,

Starting with Web Author 20.1.1 you do not need to set that option that uses "oxygen.data.dir". Instead, you just place the patch file in the "[oxygen.data.dir]/options/autocorrect" folder [1].

To create multiple installation environments you can create multiple "oxygen.data.dir" directories with each configurations. We use Docker internally for this purpose and various environments just start from the same base image and add the configuration files that are different.

Best,
Cristian

[1] https://www.oxygenxml.com/doc/ug-waCust ... rrect.html