On 11/18/2014 06:57 PM, Douglas W Philips wrote:
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.


Thanks for this info.



-=Doug



On Tue, Nov 18, 2014 at 12:42 PM, Hussein Shafie <[email protected]
<mailto:[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]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to