Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b1729a2165
Fetching contributors…

Cannot retrieve contributors at this time

file 212 lines (158 sloc) 7.346 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
This is, produced by makeinfo version 3.12s from

File:, Node: Top, Next: introduction, Prev: (dir), Up: (dir)


   This manual documents version 0.1 of html2texi and was last updated
on 7 September 1999.

* Menu:

* introduction::
* miscellaneous matters::

File:, Node: introduction, Next: miscellaneous matters, Prev: Top, Up: Top


   html2texi is intended to make the process of converting HTML
documents into texinfo easier than it might otherwise be.

   Since it is intended that html2texi will be used to convert
existing--and therefore functional or correct--HTML documents,
html2texi makes no effort to validate or otherwise check the syntax of
the HTML input.

   Because traditional HTML and texinfo differ substantially in their
intentions, it is assumed that once a file has been processed by
html2texi, the processed output will still need to be edited by hand.
In particular, you may want to pay attention to any unrecognized HTML
input because currently unrecognized tags are silently discarded from
the output.

* Menu:

* Converting Documents::
* Invoking html2texi::
* Expectations::

File:, Node: Converting Documents, Next: Invoking html2texi, Prev: introduction, Up: introduction

Converting Documents

   This chapter describes how to use html2texi to convert html
documents and what to expect when you do.

* Menu:

* Invoking html2texi::

File:, Node: Invoking html2texi, Next: Expectations, Prev: Converting Documents, Up: introduction

Invoking html2texi

   To use `html2texi' to convert an html file into texinfo, issue the

     `html2texi file.html'

   You may include additional filenames on the command line and
`html2texi' will convert each of the named files in turn. The pseudo
filename `-' may be used to signify that the standard input should be
converted. If no file arguments are given on the command line then the
standard input is read. If standard input is read, then the result of
processing that particular html is written to standard output.

File:, Node: Expectations, Prev: Invoking html2texi, Up: introduction


   Here is a list of some matters you might want to consider when using

   * html2texi will work best with documents that conform to the strict
     HTML 4.0 specification.

   * `META' elements are output literally between `@html...@end html'

   * Most attributes are discarded from HTML elements.

   * html2texi tends to output excessive numbers of newlines. This may
     introduce paragraph breaks where none are intended.

   * Unrecognized tags are silently discarded although text between a
     `<foo>' tag and its matching `</foo>' tag is kept since not all
     HTML tags are required to have closing tags.

   * all `a' tags with their `href' attribute render the reference as
     an `@uref'.

File:, Node: miscellaneous matters, Prev: introduction, Up: Top

Miscellaneous Matters

   This chapter presents information on a few miscellaneous matters.

* Menu:

* extending::
* distribution::
* permissions::

File:, Node: extending, Next: distribution, Prev: miscellaneous matters, Up: miscellaneous matters


   The bulk of the work done by `html2texi' occurs in a lexical
scanner. If you want to change or enhance the scanner, you will need
flex to rebuild the scanner after you have modified it unless you
rewrite the scanner so that it does not depend on the non-standard
features that flex provides.

   To add the processing of an additional element to html2texi, add the
following rules:

`<TAG>element_name action'
     `element_name' is the name of the element being scanned and
     `action' should generate any relevant texinfo markup for the
     beginning of this element. If it is sufficient to generate texinfo
     markup at the beginning and at the end of this element, then
     action should not change the start condition. There is a separate
     rule which will consume any unscanned `name=value' attribute pairs
     in the HTML input. If the text contained in the element needs
     special markup different from ordinary texinfo markup, or you wish
     to use the name=value attribute pairs to alter the texinfo markup,
     then you should place a call to `yy_push_state()' in `action'. You
     will probably find it easiest to push into a new exclusive start
     condition. This implies that you will have to be sure to handle all
     expected input and that you should be sure that the new start
     condition will call `yy_pop_state()' a sufficient number of times
     to pop through the `<TAG>' state that led into reading the tag for
     which you are adding rules. If you do push into a new state, give
     the new state a name which is an upper case version of the start
     tag for the elment.

     item <END_TAG>element_name action

     If `element_name' has an optional or required end tag, then you
     should add a rule of this form. `element_name' is the name of the
     element being scanned and `action' should generate any relevant
     texinfo markup for the end of this element. Occasionally it is
     necessary to have `action' do other work. There is a separate rule
     which handles the scanning of the final `>' of the tag.

File:, Node: distribution, Next: permissions, Prev: extending, Up: miscellaneous matters


   The html2texi package has a homepage on the world wide web at
`'. That page
will contain information on how to obtain the package itself. You can
contact the author of the package by sending mail to W. L. Estes

File:, Node: permissions, Prev: distribution, Up: miscellaneous matters


   html2texi is free software. It is distributed under the terms of the
GNU General Public License. You should have received a copy of this
license in the `COPYING' when you obtained the html2texi distribution.

   Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.

   Permission is granted to copy and distribute modified versions of
this manual under the conditions for verbatim copying, provided also
that the sections *Note permissions::, and *Note distribution::, are
included exactly as in the original, and provided that the entire
resulting derived work is distributed under the terms of a permission
notice identical to this one.

   Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
translation approved by the author or copyright holder.

Tag Table:
Node: Top81
Node: introduction332
Node: Converting Documents1226
Node: Invoking html2texi1528
Node: Expectations2203
Node: miscellaneous matters3053
Node: extending3310
Node: distribution5532
Node: permissions5962

End Tag Table
Something went wrong with that request. Please try again.