VirtualBox

Changeset 99160 in vbox for trunk/doc


Ignore:
Timestamp:
Mar 24, 2023 12:27:52 AM (21 months ago)
Author:
vboxsync
Message:

manual: More work on the refentry to dita converter - sbr trouble and paragraph hack between syntaxdiagrams. bugref:10302

Location:
trunk/doc/manual
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/Makefile.kmk

    r99158 r99160  
    733733                "/i:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/UserManual.ditamap" \
    734734                "/transtype:pdf" \
    735                 "/filter:$$(VBOX_PATH_MANUAL_SRC)/$(1)/dita/htmlhelp.ditaval" \
     735                "/filter:$$(VBOX_PATH_MANUAL_SRC)/$(1)/dita/ohc.ditaval" \
    736736                "/outdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)" \
    737737                "/tempdir:$$(VBOX_PATH_MANUAL_OUTBASE)/$(1)/dita/temp_pdf", \
  • trunk/doc/manual/docbook-refentry-to-manual-dita.xsl

    r99159 r99160  
    250250    <xsl:apply-templates />
    251251  </xsl:element>
     252
     253  <!-- HACK ALERT! Add an empty paragraph to keep syntax diagrams apart in the
     254       PDF output, otherwise the commands becomes hard to tell apart. -->
     255  <xsl:if test="position() &lt; last()">
     256    <xsl:element name="p">
     257      <xsl:attribute name="platform">ohc</xsl:attribute> <!-- 'och', so it gets filtered out from the html(help) docs. -->
     258      <xsl:attribute name="rev">pdf space hack</xsl:attribute>
     259      <xsl:text> </xsl:text>
     260    </xsl:element>
     261  </xsl:if>
    252262</xsl:template>
    253263
     
    260270    <xsl:for-each select="sbr">
    261271      <xsl:variable name="idxSbr" select="position()"/>
    262       <xsl:element name="groupcomp">
    263         <xsl:attribute name="rev">sbr/<xsl:value-of select="position()"/></xsl:attribute>
     272      <!-- TODO: sbr cannot be translated, it seems. Whether we wrap things in
     273           synblk, groupcomp or groupseq elements, the result is always the same:
     274              - HTML: ignored.
     275              - PDF: condensed arguments w/o spaces between  -->
     276      <!-- <xsl:element name="synblk">
     277        <xsl:attribute name="rev">sbr/<xsl:value-of select="position()"/></xsl:attribute> -->
    264278
    265279        <xsl:if test="$idxSbr = 1">
     
    270284                                                                 =     count(../sbr[$idxSbr - 1]/following-sibling::node())]"/>
    271285        </xsl:if>
     286      <!-- </xsl:element> -->
     287      <!-- Ensure some space between these.-->
     288      <xsl:text>
     289 </xsl:text>
    272290        <xsl:if test="$idxSbr = last()">
    273           <xsl:apply-templates select="following-sibling::node()"/>
     291          <!-- <xsl:element name="synblk">
     292            <xsl:attribute name="rev">sbr/<xsl:value-of select="position()"/></xsl:attribute> -->
     293            <xsl:apply-templates select="following-sibling::node()"/>
     294          <!-- </xsl:element> -->
    274295        </xsl:if>
    275       </xsl:element>
    276296    </xsl:for-each>
    277297  </xsl:element>
     298
     299  <!-- HACK ALERT! Add an empty paragraph to keep syntax diagrams apart in the
     300       PDF output, otherwise the commands becomes hard to tell apart. -->
     301  <xsl:if test="position() &lt; last()">
     302    <xsl:element name="p">
     303      <xsl:attribute name="platform">ohc</xsl:attribute> <!-- 'och', so it gets filtered out from the html(help) docs. -->
     304      <xsl:attribute name="rev">pdf space hack</xsl:attribute>
     305      <xsl:text> </xsl:text>
     306    </xsl:element>
     307  </xsl:if>
    278308</xsl:template>
    279309
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette