| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
C. How little texi2html texinfo differs from GNU texinfo
For features documented in the texinfo manual, the texinfo interpretation
by texi2html shouldn't differ from the interpretation of
makeinfo or texi2dvi. However for constructs with
unspecified behaviour texi2html often doesn't lead to the
same result than makeinfo or texi2dvi. makeinfo
and texi2dvi are also inconsistent in most of these cases (or
broken). You are urged not to use these features unless absolutely necessary.
This information is only here to help understand why texi2html
differ from other texinfo interpreters, it may be inacurate and the
texi2html behaviour may change in the future and was different
in the past.
- @-commands with text on the line
In the texinfo manual it is specified that block @-commands should appear on a line without text and the closing
@endshould also be on a line by himself. Withtexi2htmlit is possible to add text before and after the command, so the following is right:something @example the example @end example after the example
makeinfoandtexi2dvimay also accept text before the command and text after the@endcommand, sometimes ignoring it after the@end.This is a feature you should especially not rely on.
- special @-commands handling
The special @-commands are commands like
@pagesizes,@sp,@evenheading,@raisesections,@defindexand a lot more. In many casesmakeinfoandtexi2dvidon't parse those commands the same way too.texi2htmlmay also show some differences in parsing of the arguments of these commands, in case there are wrong arguments, and also ignore differently things following those commands. How user defined macros, set and values are expanded in those commands may also be different. Part of the specification of how these commands are handled is configureable (see section Customizing other commands, and unknown commands), but not what happens during the beginning of the parsing for some of those commands.- features different between
makeinfoandtexi2dvi When
makeinfoortexi2dviuse a feature which is reserved for one or the other translator,texi2htmluses that feature. So for example@definfoenclosewhich is ignored bytexi2dviis taken into account and@kbdinputstylewhich is ignored bymakeinfois taken into account.- user defined macros and values
In this area
makeinfoandtexi2dvialso differ a lot. The reference implementation is themakeinfoimplementation astexi2dviis easily broken when macros are not used simply.-
@rmacroand@macrobehave exactly the same. In fact this goes against a documented behaviour, however if a user don't want a recursive macro he can simply avoid reusing the macro in the definition. If somebody report that the feature is usefull we could try to implement it. - It is possible to escape the end of a macro definition with
\@end macro
with the ‘\’ being removed after the first expansion. Otherwise it is not possible to produce a
\@end macroin a macro. -
@unmacrois interpreted during the macro argument expansion. Don't know whatmakeinfoexactly do. - Some
@valuemay be expanded later than the others, those that are in special commands, like@node.
-
-
@,in@node Like
texi2dvibut unlikemakeinfo@,don't break@nodearguments like a regular ‘,’.- Things before first node or preamble
Things before the first node or before the preamble may not be exactly interpreted or discarded as
makeinfoortexi2dvido.- encodings
texi2htmlknows more encodings, in fact all encodingsperlknows about.- commands in
@ifsetand@ifclear texi2htmldoesn't need a proper nesting of internal@ifsetor@ifclearif they are in ignored or raw regions (like@htmlor@verbatim). For example the following is accepted bytexi2htmland not bymakeinfo:@ifset notset @ignore @ifset @end ignore @end ifset
In
@ifsetand@ifcleartexi2html also accepts a lot more of invalid constructs. For example the following is accepted bytexi2htmlbut not bymakeinfo:@set flag @ifset flag @itemize @item my item @end ifset text @ifset flag @end itemize @end ifset
| [ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Derek Price on June, 5 2007 using texi2html 1.78.
![[ Valid XHTML 1.0! ]](/branding/w3c-valid-xhtml10-44x16.png)
![[ Valid CSS! ]](/branding/w3c-valid-css-44x16.png)
