NetBSD/gnu/dist/texinfo/makeinfo/xml.h
wiz ccaa2ac97b Import of texinfo-4.7, as prepared by texinfo2netbsd.
Changes since 4.6:

4.7 (9 April 2004)
* Language:
  . new commands @float, @caption, @shortcaption, @listoffloats for
    initial implementation of floating material (figures, tables, etc).
    Ironically, they do not yet actually float anywhere.
  . new commands @docbook, @ifdocbook, @ifnotdocbook for conditional Docbook.
  . new commands @ordf{} and @ordm{} for Spanish feminine/masculine ordinals.
  . new commands @deftypecv[x] for class variables in typed OO languages.
  . new command @registeredsymbol for the r-in-a-circle symbol.
  . new command @headitem to make a heading row in @multitable.
  . new command @LaTeX{} for the LaTeX logo.
  . new command @comma{} to avoid comma-parsing problems.
  . @url is now a synonym for @uref; new command @indicateurl has the
    old meaning of just displaying a url as text.
  . @quotation now accepts an optional argument for labelling the text
      as a `Note', `Tip', etc.
  . @defun (et al.) heading lines can now be continued with a lone @.
  . @acronym accepts an optional argument for the meaning of the acronym.
* makeinfo:
  . New environment variable TEXINFO_OUTPUT_FORMAT determines the output
    format at runtime, if no options are specified.
  . New option --plaintext, equivalent to --no-headers with Info output.
  . All outputs:
    - sections are numbered by default.
  . Info output:
    - punctuation is inserted after @pxref and @ref, if needed to make
      cross-references valid.
    - line numbers included in index menus, so Info readers can go to
      the exact line of an entry, not just a node.  Also in plaintext output.
    - ^@^H[index^@^H] cookie included in index menus, so Info readers
      can handle the ] etc. commands better.
  . HTML output:
    - new algorithm for cross-references to other manuals, for maximum
      portability and stability.
    - include node name in <title> with split output.
    - @multicolumn fractions become percentages.
    - entities used for bullets, quotes, dashes, and others.
    - index entries are links to the exact locations.
    - <h4> and <h5> used for @sub and @subsubsections again.
    - accented dotless i supported.
  . XML output: many new tags and structure to preserve more source features.
  . Docbook output:
    - upgraded DTD to Docbook XML 4.2, no longer using Docbook SGML.
    - improved translation in general, for instance:
    - line annotations and marked quotations.
* texi2dvi:
  . if available, use etex (pdfetex if --pdf) by default.
  . if the input file includes thumbpdf.sty (for LaTeX), then run thumbpdf.
  . more output if --debug.
* texinfo.tex:
  . @defun names are now printed in typewriter (instead of bold), and
    within the arguments, @var text is printed in slanted typewriter.
  . @tex code is executed inside a TeX group, so that any changes must
    be prefixed with \global (or the equivalent) to be effective.  (This
    change was actually made years ago, but never made it into the NEWS.)
* info:
  . new option --where (aka --location, -w) to report where an Info file
    would be found, instead of reading it.
  . by default, output ANSI terminal escape sequences as-is; new option
    --no-raw-escapes overrides this.
  . use the newly-generated index line numbers.
* Distribution:
  . new script gendocs.sh (not installed), for use by GNU maintainers in
    getting their manuals on the GNU web site.  Documented in
    maintain.texi (http://www.gnu.org/prep/maintain_toc.html).
  . Most code uses ANSI C prototypes, to some extent.
  . New translation: nb.
  . automake 1.8.3, autoconf 2.59, gettext 0.14.1.
2004-07-12 23:26:33 +00:00

161 lines
5.4 KiB
C

/* $NetBSD: xml.h,v 1.1.1.2 2004/07/12 23:26:48 wiz Exp $ */
/* xml.h -- xml output declarations.
Id: xml.h,v 1.13 2004/02/27 03:29:47 dirt Exp
Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Written by Philippe Martin <feloy@free.fr>. */
#ifndef XML_H
#define XML_H
/* Options. */
/* Separate index entries into divisions for each letters. */
extern int xml_index_divisions;
extern int xml_sort_index;
extern int xml_no_indent;
extern int xml_node_open;
extern int xml_no_para;
extern char *xml_node_id;
extern int xml_last_section_output_position;
extern int xml_in_xref_token;
extern int xml_in_bookinfo;
extern int xml_in_book_title;
extern int xml_in_abstract;
/* Non-zero if we are handling an element that can appear between
@item and @itemx, @deffn and @deffnx. */
extern int xml_dont_touch_items_defs;
/* Non-zero if whitespace in the source document should be kept as-is. */
extern int xml_keep_space;
enum xml_element
{
TEXINFO=0, SETFILENAME, TITLEFONT, SETTITLE,
/* Node */
NODE /* 4 */, NODENEXT, NODEPREV, NODEUP,
/* Structuring */
CHAPTER /* 8 */, SECTION, SUBSECTION, SUBSUBSECTION,
TOP /* 12 */, UNNUMBERED, UNNUMBEREDSEC, UNNUMBEREDSUBSEC,
UNNUMBEREDSUBSUBSEC,
APPENDIX /* 17 */, APPENDIXSEC, APPENDIXSUBSEC, APPENDIXSUBSUBSEC,
MAJORHEADING /* 21 */, CHAPHEADING, HEADING, SUBHEADING, SUBSUBHEADING,
/* Titlepage */
TITLEPAGE /* 26 */, AUTHOR, BOOKTITLE, BOOKSUBTITLE,
/* Menu */
MENU /* 30 */, DETAILMENU, MENUENTRY, MENUTITLE, MENUCOMMENT, MENUNODE,
NODENAME,
/* -- */
ACRONYM/* 37 */, ACRONYMWORD, ACRONYMDESC,
TT, CODE, COMMAND_TAG, ENV, FILE_TAG, OPTION, SAMP, KBD, URL, KEY,
VAR, SC, DFN, EMPH, STRONG, CITE, NOTFIXEDWIDTH, I, B, R,
EXDENT,
TITLE,
IFINFO,
SP, CENTER,
DIRCATEGORY,
QUOTATION, EXAMPLE, SMALLEXAMPLE, LISP, SMALLLISP, CARTOUCHE,
COPYING, FORMAT, SMALLFORMAT, DISPLAY, SMALLDISPLAY, VERBATIM,
FOOTNOTE, LINEANNOTATION,
TIP, NOTE, IMPORTANT, WARNING, CAUTION,
ITEMIZE, ITEMFUNCTION, ITEM, ENUMERATE, TABLE, TABLEITEM, TABLETERM,
INDEXTERM,
MATH, DIMENSION,
XREF, XREFNODENAME, XREFINFONAME, XREFPRINTEDDESC, XREFINFOFILE,
XREFPRINTEDNAME,
INFOREF, INFOREFNODENAME, INFOREFREFNAME, INFOREFINFONAME,
UREF, UREFURL, UREFDESC, UREFREPLACEMENT,
EMAIL, EMAILADDRESS, EMAILNAME,
GROUP, FLOAT, FLOATTYPE, FLOATPOS, CAPTION, SHORTCAPTION,
FLOATTABLE, FLOATFIGURE, FLOATEXAMPLE, FLOATCARTOUCHE,
PRINTINDEX, LISTOFFLOATS,
ANCHOR,
IMAGE, INLINEIMAGE, IMAGEALTTEXT,
PRIMARY, SECONDARY, INFORMALFIGURE, MEDIAOBJECT, IMAGEOBJECT,
IMAGEDATA, TEXTOBJECT,
INDEXENTRY, PRIMARYIE, SECONDARYIE, INDEXDIV,
MULTITABLE, TGROUP, COLSPEC, THEAD, TBODY, ENTRY, ROW,
BOOKINFO, ABSTRACT, REPLACEABLE, ENVAR, COMMENT, FUNCTION, LEGALNOTICE,
CONTENTS, SHORTCONTENTS, DOCUMENTLANGUAGE,
SETVALUE, CLEARVALUE,
DEFINITION, DEFINITIONTERM, DEFINITIONITEM,
DEFCATEGORY, DEFFUNCTION, DEFVARIABLE, DEFPARAM, DEFDELIMITER, DEFTYPE,
DEFPARAMTYPE, DEFDATATYPE, DEFCLASS, DEFCLASSVAR, DEFOPERATION,
PARA
};
extern void xml_add_char (int character),
xml_asterisk (void),
xml_insert_element (int elt, int arg),
xml_insert_entity (char *entity_name),
xml_insert_footnote (char *note),
xml_insert_quotation (char *type, int arg),
xml_insert_indexentry (char *entry, char *node),
xml_insert_indexterm (char *indexterm, char *index),
xml_insert_docbook_image (char *name_arg),
xml_synindex (char *from, char *to),
xml_start_para (void),
xml_end_para (void),
xml_begin_document (char *output_filename),
xml_end_document (void),
xml_start_menu_entry (char *tem),
xml_end_menu (void),
xml_end_current_element (void),
xml_open_section (int level, char *name),
xml_close_sections (int level),
xml_begin_node (void),
xml_begin_index (void),
xml_end_index (void),
xml_begin_multitable (int ncolumns, int *column_widths),
xml_end_multitable (void),
xml_end_multitable_row (int first_row),
xml_end_multitable_column (void),
xml_begin_table (int type, char *item_function),
xml_end_table (int type),
xml_begin_item (void),
xml_begin_table_item (void),
xml_continue_table_item (void),
xml_begin_enumerate (char *enum_arg),
xml_end_enumerate (void),
xml_begin_docbook_float (int elt);
extern char *xml_id (char *id);
extern void xml_begin_definition (void),
xml_end_definition (void),
xml_process_defun_args (char **defun_args, int auto_var_p),
xml_begin_def_term (int base_type, const char *category,
char *defined_name, char *type_name, char *type_name2),
xml_end_def_term (void);
extern int xml_current_stack_index (void),
xml_element (char *name);
#if defined (VA_FPRINTF) && __STDC__
void xml_insert_element_with_attribute (int elt, int arg, char *format, ...);
#else
void xml_insert_element_with_attribute ();
#endif
#endif /* XML_H */