Web Author autocorrection patch

NicoAMP
Posts: 22

Web Author autocorrection patch

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/20.1.0/ug-webauthor/topics/customizing-options.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: 198

Re: Web Author autocorrection patch

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: 22

Re: Web Author autocorrection patch

Mon Dec 03, 2018 6:46 pm

Thanks a lot.

It works now :D

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest