Can the opt file be conditionalized?

Having trouble installing Oxygen XML WebHelp? Got a bug to report? Post it all here.
mmgHinchey
Posts: 4
Joined: Fri Feb 04, 2022 6:09 pm

Can the opt file be conditionalized?

Post by mmgHinchey »

Our webhelp is published in multiple languages, some of which require a unique font family. Including unused font families in every build has caused our webhelp output file size to become unmanageable. I would like to conditionalize which font family is included in the build. Our custom opt file seems to be the logical place for that. Is there any way to use the xml:lang or perhaps a parameter to either select a opt file, or conditionalize the <fileset> or <include> tags within the opt file?
Thank you.
ionela
Posts: 402
Joined: Mon Dec 05, 2011 6:08 pm

Re: Can the opt file be conditionalized?

Post by ionela »

Hi,

Unfortunately, in the current WebHelp implementation there isn't this possibility (to load only specific resources in the opt file based on a condition).
A possible workaround would be to have different opt files for each language you might need. The newly created opt files can be stored in the same directory (you can have a collection of publishing templates and resources located in the same folder).

I hope this helps.

Regards,
Ionela
Ionela Istodor
oXygen XML Editor and Author Support
mmgHinchey
Posts: 4
Joined: Fri Feb 04, 2022 6:09 pm

Re: Can the opt file be conditionalized?

Post by mmgHinchey »

Thank you for the suggestion. How can I indicate which .opt files are called?
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: Can the opt file be conditionalized?

Post by alin »

Hello,

If you are running the WebHelp Responsive transformation from the command line see this article: https://www.oxygenxml.com/doc/versions/ ... cript.html

Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply