Web Author autocorrection patch

Post here questions and problems related to editing and publishing DITA content.
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Web Author autocorrection patch

Post 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.
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web Author autocorrection patch

Post 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
NicoAMP
Posts: 97
Joined: Tue Mar 06, 2018 2:07 pm
Contact:

Re: Web Author autocorrection patch

Post by NicoAMP »

Thanks a lot.

It works now :D
Nicolas Delobel
AmeXio
nicolas.delobel at group.amexio.net
jbvalentin
Posts: 11
Joined: Thu Jul 06, 2017 10:53 am
Location: Nantes, France

Re: Web Author autocorrection patch

Post 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
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Web Author autocorrection patch

Post 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
Post Reply