Page 1 of 1

Can the opt file be conditionalized?

Posted: Tue Aug 01, 2023 4:23 pm
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.

Re: Can the opt file be conditionalized?

Posted: Fri Aug 04, 2023 11:52 am
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

Re: Can the opt file be conditionalized?

Posted: Thu Aug 10, 2023 6:06 pm
by mmgHinchey
Thank you for the suggestion. How can I indicate which .opt files are called?

Re: Can the opt file be conditionalized?

Posted: Fri Aug 11, 2023 9:48 am
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