| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="../../." default="INSTALL" name="pth2d.INSTALL">
- <!--<include file="build.pth2d.PRODUCT.xml" optional="true" />-->
- <property location="${pth2d.install}/install_example.file" name="pth2d.INSTALL.install_example" />
- <condition property="pth2d.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
- <not>
- <available file="${pth2d.repository}/install_example.file" />
- </not>
- </condition>
-
-
-
-
-
- <!-- <property name="pth2d.saxon.sh" location="${pth2d.basedir}/install/saxon.sh"/>
- <property name="pth2d.saxon" location="${p5build.opt__local}/saxon"/>-->
-
- <condition property="pth2d.saxon.if.exists">
- <available file="${pth2d.saxon}"/>
- </condition>
-
- <target unless="pth2d.saxon.if.exists" name="saxon" >
- <copy file="${pth2d.saxon.sh}" tofile="${pth2d.saxon}"/>
- <chmod perm="0755" file="${pth2d.saxon}" failonerror="no"/>
- </target>
-
- <target name="python3_select" >
- <exec executable="sudo port install python3_select"></exec>
- </target>
-
- <target name="html2dita">
- <mkdir dir="${html2dita.git}"/>
- <exec executable="git" dir="${html2dita.git}">
- <arg line="clone ${html2dita.git.url}" />
- </exec>
- <exec executable="ant">
- <arg line="-f ${html2dita.build.xml} init"/>
- </exec>
- <!--<mkdir dir="${html2dita.git}/ext-plugins/h2d/temp"/>-->
- </target>
-
- <target name="org.dita.normalize">
- <description>
- The org.dita.normalize plugin extends the DITA Open Toolkit with a dita transformation type that generates normalized topics and maps from DITA input.
-
- The normalized output includes the results of the DITA Open Toolkit pre-processing operations, which resolve map references, keys, content references, code references and push metadata back and forth between maps and topics.
-
- In comparison to the source DITA files, the normalized DITA files are modified in the following ways:
-
- References from one DITA map to another are resolved
- Map-based links, such as those generated by map hierarchy and relationship tables, are added to the topics.
- Link text is resolved.
- Map attributes that cascade are made explicit on child elements.
- Map metadata such as index entries and copyrights are pushed into topics.
- Topic metadata such as navigation titles, link text and short descriptions are pulled from topics into the map.
- XML comments are removed.
- pplications
-
- Normalized output may be useful in situations where post-processing of DITA content is required, but the downstream systems are limited in their ability to resolve DITA references.
-
- Installation
-
- Run the plug-in installation command:
-
- dita -install https://github.com/dita-ot/org.dita.normalize/archive/1.0.zip
- Generating normalized DITA output
-
- Run the dita command and set the value of the output -format option to dita:
-
- dita-ot-dir/bin/dita -input input-file -format dita
- where:
-
- dita-ot-dir is the DITA-OT installation directory. input-file is the DITA map or DITA file that you want to process.
-
- </description>
- <!-- https://github.com/dita-ot/org.dita.normalize.git -->
- </target>
-
- <target name="mod_python">
- <exec executable="port">
- <arg line="install mod_python"/>
- </exec>
- </target>
-
-
- <target name="html-xml-utils">
- <exec executable="port">
- <arg line="install html-xml-utils"/>
- </exec>
- </target>
-
- <target name="sgml-common">
- <exec executable="port">
- <arg line="port install sgml-common"/>
- </exec>
- </target>
-
- <target name="python.easy_installpip">
- <exec command="easy_install">
- <arg line="pip"/>
- </exec>
- <description>
- pip install update
- pip install jarn.mkrelease
- pip install pyip
- sudo easy_install lmxl
- python setup.py install
- https://github.com/lxml/lxml.git
- python setup.py build
- sudo cp xmldirector/dita/converters/h2d/h2d.xsl /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/xmldirector.dita-0.1.0-py2.7.egg/xmldirector/dita/converters/h2d/h2d.xsl
-
- </description>
- </target>
-
-
- <target name="tidy.if.exists">
- <condition property="tidy.if.exists">
- <available file="${tidy}"/>
- </condition>
- </target>
-
- <target name="tidy" unless="tidy.if.exists" depends="tidy.if.exists">
-
- </target>
-
- <target depends="saxon" name="INSTALL" >
-
- </target>
-
-
- </project>
|