Page 1 of 1

Setting math font in 'Antenna House Formatter' scenario

Posted: Tue Apr 11, 2017 9:09 pm
by expatriate
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

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

Posted: Wed Apr 12, 2017 12:24 am
by expatriate
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

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

Posted: Wed Apr 12, 2017 10:00 am
by Radu
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

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

Posted: Wed Apr 12, 2017 10:44 am
by expatriate
Thanks yet again, Radu! Fixed.