Setting math font in 'Antenna House Formatter' scenario

<oXygen/> general issues.
expatriate
Posts: 39

Setting math font in 'Antenna House Formatter' scenario

Tue Apr 11, 2017 9:09 pm

To help me draw SVG diagrams containing math content using a sans-serif font, my stylesheet makes some character substitutions in MathFlow's MML then wraps the MML in a small FO file and sends it to Antenna House Formatter. The stylesheet is applied using oXygen's "Antenna House Formatter" scenario.

It works, but I cannot select the DejaVu Sans font I need. With fanatical persistence AHF uses STIX fonts, no matter where in the stylesheet I nail fontfamily attributes to the contrary.

The scenario seems not to look for an AHF settings file, as a normal AHF call would (?). Can I find the transformation script and hack it to do so? I'm not sure where to look.

Thanks
Pat
expatriate
Posts: 39

Re: Setting math font in 'Antenna House Formatter' scenario

Wed Apr 12, 2017 12:24 am

Just a follow-up to confirm that if I copy oXygen's call to AHF from the log, insert a parameter "-i [path-to-AHF-settings_file]" and run that from the command line, it works fine. But how can I tell the transformation scenario to do that? I see nowhere to enter that parameter…
Pat
Radu
Posts: 5514

Re: Setting math font in 'Antenna House Formatter' scenario

Wed Apr 12, 2017 10:00 am

Hi Pat,

Right now Oxygen detects Antenna House is installed based on environmental variables but you do not have control over the command line it creates.
In the Oxygen Preferences->"XML / XSLT-FO-XQuery / FO Processors" page you have the option to manually add the Antenna House FO processor (there is a Browse button there). After you add it, it will appear in the FO processors list and you can edit the processor and change its command line.
Then duplicate and edit the trasformation scenario you were using and in the "FO Processors" tab select manually the Antenna House processor you have configured manually.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
expatriate
Posts: 39

Re: Setting math font in 'Antenna House Formatter' scenario

Wed Apr 12, 2017 10:44 am

Thanks yet again, Radu! Fixed.

Return to “Other Issues”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests