Setting math font in 'Antenna House Formatter' scenario

Oxygen general issues.
expatriate
Posts: 39
Joined: Wed Dec 31, 2008 12:42 am

Setting math font in 'Antenna House Formatter' scenario

Post 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
expatriate
Posts: 39
Joined: Wed Dec 31, 2008 12:42 am

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

Post 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
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
expatriate
Posts: 39
Joined: Wed Dec 31, 2008 12:42 am

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

Post by expatriate »

Thanks yet again, Radu! Fixed.
Post Reply