Web Author autocorrection patch
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 98
- Joined: Tue Mar 06, 2018 2:07 pm
- Contact:
Web Author autocorrection patch
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:
In options.xml I copied:
Is it correct?
Thanks.
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>
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>
Thanks.
Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
AmeXio
nicolas.delobel at amexiogroup.com
-
- Posts: 517
- 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
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
-
- Posts: 98
- Joined: Tue Mar 06, 2018 2:07 pm
- Contact:
Re: Web Author autocorrection patch
Thanks a lot.
It works now
It works now

Nicolas Delobel
AmeXio
nicolas.delobel at amexiogroup.com
AmeXio
nicolas.delobel at amexiogroup.com
-
- 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 to "real" path value. Is there any way to do that with a variable value, e.g. 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
as I understand it, we need to set the
Code: Select all
oxygen.data.dir
Code: Select all
${install.path}
Thank you
Jean-Baptiste
-
- Posts: 517
- 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
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
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service