Web Author autocorrection patch

NicoAMP
Posts: 26
Joined: Tue Mar 06, 2018 2:07 pm

Web Author autocorrection patch

Post by NicoAMP » Tue Nov 27, 2018 5:31 pm

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.

cristi_talau
Posts: 204
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web Author autocorrection patch

Post by cristi_talau » Wed Nov 28, 2018 3:53 pm

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

NicoAMP
Posts: 26
Joined: Tue Mar 06, 2018 2:07 pm

Re: Web Author autocorrection patch

Post by NicoAMP » Mon Dec 03, 2018 6:46 pm

Thanks a lot.

It works now :D

jbvalentin
Posts: 4
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: Web Author autocorrection patch

Post by jbvalentin » Fri May 17, 2019 4:22 pm

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

cristi_talau
Posts: 204
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web Author autocorrection patch

Post by cristi_talau » Mon May 20, 2019 11:12 am

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

Post Reply