[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
7.23.1.2 Usage
- Function: call-with-file-and-dir filename proc
Call the one-argument procedure proc with an input port that reads from filename. During the dynamic extent of proc’s execution, the current directory will be
(dirname filename)
. This is useful for parsing documents that can include files by relative path name.
- Function: texi-command-depth command max-depth
Given the texinfo command command, return its nesting level, or
#f
if it nests too deep for max-depth.Examples:
(texi-command-depth 'chapter 4) ⇒ 1 (texi-command-depth 'top 4) ⇒ 0 (texi-command-depth 'subsection 4) ⇒ 3 (texi-command-depth 'appendixsubsec 4) ⇒ 3 (texi-command-depth 'subsection 2) ⇒ #f
- Function: texi-fragment->stexi string-or-port
Parse the texinfo commands in string-or-port, and return the resultant stexi tree. The head of the tree will be the special command,
*fragment*
.
- Function: texi->stexi port
Read a full texinfo document from port and return the parsed stexi tree. The parsing will start at the
@settitle
and end at@bye
or EOF.
- Function: stexi->sxml tree
Transform the stexi tree tree into sxml. This involves replacing the
%
element that keeps the texinfo arguments with an element for each argument.FIXME: right now it just changes % to
texinfo-arguments
– that doesn’t hang with the idea of making a dtd at some point
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 20, 2013 using texi2html 5.0.