We use python scripts to invoke ditac.bat, no problem.
Using Python 2.7 still, but we use the subprocess module.
Because sometimes ditac prints "warnings" that we want to flag as errors,
we use subprocess.Popen("ditac.bat ....") and then use the result object's
.communicate() method to get stdout and stderr to make sure everything ran
clean because the result object's .returncode is not always set to an error
by ditac.bat :-)
Our script does a lot of other things that I can't share, but one of them
is making sure it can find ditac.bat on the PATH so that it can provide a
better error message.

-=Doug



On Tue, Nov 18, 2014 at 12:42 PM, Hussein Shafie <[email protected]>
wrote:

> Mary M. wrote:
>
>> Actually regarding Q1, it doesn’t seem to work at times for even one, and
>> sometimes it does?
>>
>
> This would be strange.
>
>
>
> Mary M. wrote:
>
>>
>> 1.I’m trying to add two glossaries at the end of my pdf. They generate
>> fine, but only the title is correct on the first one, the second doesn’t
>> pick up the navtitle, and simply calls itself “Glossary”. Here is the
>> main map.
>>
>> <backmatter>
>> <booklists>
>> <glossarylistlocktitle="yes"navtitle="Client Glossary">
>> <topicrefproduct="MyClient"href="glossary_client.ditamap"
>> format="ditamap"/>
>> </glossarylist>
>> <glossarylistlocktitle="yes"navtitle="Product Glossary">
>> <topicrefproduct="Myotherclient"href="glossary_product.ditamap"format="
>> ditamap"/>
>> </glossarylist>
>> </booklists>
>> </backmatter>
>>
>
> Please be kind enough to send us a ".zip" file containing a set of sample
> files showing the problem.
>
> Please understand that without this .zip, it takes us too much time
> creating the files allowing to reproduce the problem.
>
>
>
>
>> 2.Is ditac command line utility work for 32 bit and 64 bit modes? It
>> works OK in standalone mode, but I get the following error when I call
>> it from a Python file:
>>
>> [Error 193] %1 is not a valid Win32 application
>>
>>
> ditac is a ".bat" file, not a ".exe" file, invoking java.exe. (A working
> java.exe is expected to be found in your %PATH%, which seems to be the
> case.)
>
> I cannot program in Python, but I'm pretty sure that Python has a way to
> invoke ".bat" files.
>
>
>
> --
> XMLmind DITA Converter Support List
> [email protected]
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.
> xmlmind.com_mailman_listinfo_ditac-2Dsupport&d=AwIF-g&c=
> IGDlg0lD0b-nebmJJ0Kp8A&r=X85irIDVMDqNOx7FUa-Zeah3EYVbBV4mel5FyPECvIk&m=
> CdRH0mMs32CKyCuwzMA5uMS0gpE6Ex_3s-LZaNhYrLI&s=l1N7MipcnXKj9nzv9AtAw-
> L41sX1hgWeUnwWgOUaL0M&e=
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to