On 01/07/2014 06:00 PM, Mike Dodds wrote:

Is there a way to run the ditac  command line utility from the xmlmind 
installation and so use the custom_fo.xsl I've created in XML Mind and embed 
the Calibri font I specified in XMLMind

Yes.




I've installed ditac separately and also fop, but I had to change the custom_fo.xsl to 
<xsl:import href="ditac-xsl:fo/fo.xsl"/>

This change is indeed required if you prefer to use ditac.



and the calibri font is not embedded in the pdf, and is not used as a result.

That's normal. You just need to point FOP to the FOP configuration file automatically created by XMLmind XML Editor.

This FOP configuration file is found in:

XXE_user_preferences_dir\fop\fop.conf

where XXE_user_preferences_dir is:

    * $HOME/.xxe5/ on Linux.
    * $HOME/Library/Application Support/XMLmind/XMLEditor5/ on the Mac.
    * %APPDATA%\XMLmind\XMLEditor5\ on Windows XP, Vista, 7 and 8.

Example: C:\Documents and Settings\john\Application Data\XMLmind\XMLEditor5\ on Windows XP. C:\Users\john\AppData\Roaming\XMLmind\XMLEditor5\ on Windows Vista, 7 and 8.

(If you cannot see the "Application Data" directory using Microsoft Windows File Manager, turn on Tools>Folder Options>View>File and Folders>Show hidden files and folders.)




Pointing FOP to the FOP configuration file automatically created by XMLmind XML Editor is done as follows:

Normally ditac requires you to specify the FOP command-line you want to use by the means of the ``high-level'' "-fop" command-line option.

Instead of using the -fop command-line option, please use the lower-level "-foconverter" command-line option as follows:

-foconverter FOP pdf "FOP_install_dir\fop.bat" -c "XXE_user_preferences_dir\fop\fop.conf" -q -r -fo "%I" -pdf "%O"




References:

* http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-fop

* http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-foconverter

* http://xmlgraphics.apache.org/fop/1.1/running.html#standalone-start





If I use ditac, does that mean I can't use XMLMInd to do the XSL customisation?


No, you can use XMLmind XML Editor to do the XSL customization. (Here I suppose that you are talking about the XMLmind XSL Customizer companion application included in XMLmind XML Editor. See http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html)

But after you are done, you'll have to change by hand:

<xsl:import href="xxe-config:dita/xsl/fo/fo.xsl"/>

to:

<xsl:import href="ditac-xsl:fo/fo.xsl"/>

which is somewhat tedious.




****************************************************************

If you want to avoid all these troubles, why not use convertdoc?

Convertdoc is a command-line tool just like ditac, but unlike ditac, it's basically XMLmind XML Editor without a GUI!

Therefore there is nothing whatsoever to change in your setup if you prefer to convert your DITA documents using a command-line tool rather than using a GUI.

More information in:

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html

****************************************************************





--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to