VirtualBox

Changeset 99116 in vbox for trunk/doc


Ignore:
Timestamp:
Mar 22, 2023 1:20:35 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156481
Message:

manual: Compacted the C and latex syntax diagrams a tiny bit, adding a special role=compact to arg/group to selectively make nested groups tighter too. Fixed controlvm natpf syntax.

Location:
trunk/doc/manual
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/common-formatcfg.xsl

    r98103 r99116  
    9292<xsl:variable name="arg.rep.def.str"></xsl:variable>
    9393<xsl:variable name="arg.or.sep"> | </xsl:variable>
     94<xsl:variable name="arg.or.sep.compact">|</xsl:variable>
    9495<xsl:variable name="cmdsynopsis.hanging.indent">4pi</xsl:variable>
    9596
  • trunk/doc/manual/docbook-refentry-to-C-help.xsl

    r98103 r99116  
    265265    <!-- separator char if we're not the first child -->
    266266    <xsl:if test="position() > 1">
     267      <!--<xsl:value-of select="concat('*',name(),'=', position(),'#')"/>-->
    267268      <xsl:choose>
     269        <xsl:when test="parent::group and ancestor::*[@role='compact']"><xsl:value-of select="$arg.or.sep.compact"/></xsl:when>
    268270        <xsl:when test="parent::group"><xsl:value-of select="$arg.or.sep"/></xsl:when>
    269         <xsl:when test="ancestor-or-self::*/@sepchar"><xsl:value-of select="ancestor-or-self::*/@sepchar"/></xsl:when>
     271        <xsl:when test="parent::arg"></xsl:when>
     272        <xsl:when test="ancestor::*/@sepchar"><xsl:value-of select="ancestor::*/@sepchar"/></xsl:when>
    270273        <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
    271274      </xsl:choose>
     
    301304        <xsl:when test="@choice = 'req'">               <xsl:value-of select="$arg.choice.req.close.str"/></xsl:when>
    302305      </xsl:choose>
    303       <!-- Add a space padding if we're the last element in a repeating arg or group -->
    304       <xsl:if test="(parent::arg or parent::group) and not(following-sibiling)">
    305         <xsl:text> </xsl:text>
    306       </xsl:if>
    307306    </xsl:if>
    308307  </xsl:template>
  • trunk/doc/manual/docbook2latex.xsl

    r98103 r99116  
    9797  <!-- command synopsis -->
    9898  <xsl:variable name="arg.rep.repeat.str.tex">\ldots{}</xsl:variable>
     99  <xsl:variable name="arg.or.sep.compact.tex">|</xsl:variable>
    99100  <xsl:variable name="arg.or.sep.tex"> |~</xsl:variable>
    100101
     
    968969    <xsl:if test="position() > 1">
    969970      <xsl:choose>
     971        <xsl:when test="parent::group and ancestor::*[@role='compact']"><xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.or.sep.compact.tex"/><xsl:text>}</xsl:text></xsl:when>
    970972        <xsl:when test="parent::group"><xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.or.sep.tex"/><xsl:text>}</xsl:text></xsl:when>
    971         <xsl:when test="ancestor-or-self::*/@sepchar"><xsl:value-of select="ancestor-or-self::*/@sepchar"/></xsl:when>
     973        <xsl:when test="parent::arg"></xsl:when>
     974        <xsl:when test="ancestor::*/@sepchar"><xsl:value-of select="ancestor::*/@sepchar"/></xsl:when>
    972975        <xsl:otherwise><xsl:text> </xsl:text></xsl:otherwise>
    973976      </xsl:choose>
     
    10041007      <xsl:when test="@choice = 'req'">               <xsl:text>\textrm{</xsl:text><xsl:value-of select="$arg.choice.req.close.str"/><xsl:text>}</xsl:text></xsl:when>
    10051008    </xsl:choose>
    1006 
    1007     <!-- add space padding if we're the last element in a nested arg -->
    1008     <xsl:if test="parent::arg and not(following-sibling)">
    1009       <xsl:text> </xsl:text>
    1010     </xsl:if>
    10111009  </xsl:template>
    10121010
  • trunk/doc/manual/en_US/man_VBoxManage-controlvm.xml

    r98103 r99116  
    248248      </group>
    249249      <arg choice="plain">natpf<replaceable>N</replaceable></arg>
    250       <group choice="req">
    251         <arg choice="plain">[<replaceable>rulename</replaceable>]<arg choice="plain">,tcp</arg></arg>
    252         <arg choice="plain">udp,<arg><replaceable>host-IP</replaceable></arg>,<arg choice="plain"><replaceable>hostport</replaceable>,</arg><arg><replaceable>guest-IP</replaceable></arg>,<arg choice="plain"><replaceable>guestport</replaceable></arg></arg>
    253       </group>
     250
     251      <arg choice="req" role="compact"><arg><replaceable>rulename</replaceable></arg>,<group choice="req"><arg choice="plain">tcp</arg><arg choice="plain">udp</arg></group>,<arg><replaceable>host-IP</replaceable></arg>,<arg choice="plain"><replaceable>hostport</replaceable></arg>,<arg><replaceable>guest-IP</replaceable></arg>,<arg choice="plain"><replaceable>guestport</replaceable></arg></arg>
    254252    </cmdsynopsis>
    255253
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