Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
fichiers:xml:convertir_du_html_en_latex2 [2018/06/03 15:29] – joseph.wright | 5_fichiers:xml:convertir_du_html_en_latex2 [2023/03/05 20:52] (Version actuelle) – Remise en forme de la page. Ajout de liens. jejust | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | --- | + | ====== |
- | title: | + | |
- | category: misc | + | |
- | permalink: / | + | |
- | redirect_from: | + | |
- | --- | + | |
SGML is a very important system for document storage and interchange, | SGML is a very important system for document storage and interchange, | ||
but it has no formatting features; its companion ISO standard | but it has no formatting features; its companion ISO standard | ||
- | DSSSL | + | DSSSL (see [[http:// |
- | (see <http:// | + | |
transformations and formatting, | transformations and formatting, | ||
- | but this has not yet been widely implemented. Some SGML authoring | + | but this has not yet been widely implemented. Some SGML authoring systems |
- | systems (e.g., SoftQuad | + | (//e.g.// [[wp> |
- | abilities, | + | and there are high-end specialist SGML typesetting systems (//e.g.// [[https:// |
- | there are high-end specialist SGML typesetting systems (e.g., Miles33' | + | '' |
- | `Genera`). However, the majority of SGML users probably transform | + | |
the source to an existing typesetting system when they want to print. | the source to an existing typesetting system when they want to print. | ||
- | TeX is a good candidate for this. There are three approaches to writing a | + | TeX is a good candidate for this. |
- | translator: | + | There are three approaches to writing a translator: |
+ | - Write a free-standing translator in the traditional way, with tools like '' | ||
+ | - Use a specialist language designed for SGML transformations; | ||
+ | - Build a translator on top of an existing SGML parser. | ||
+ | * David Megginson' | ||
+ | * Joachim Schrod and Christine Detig' | ||
+ | Both of these allow the user to write " | ||
- | 1. Write a free-standing translator in the traditional way, with | + | If these packages don't meet your needs for an average SGML typesetting job, |
- | tools like `yacc` and `lex`; this is hard, in | + | you need the big commercial stuff. |
- | practice, because of the complexity of SGML. | + | |
- | 2. Use a specialist language designed for SGML transformations; | + | |
- | best known are probably `Omnimark` and `Balise`. | + | |
- | They are expensive, but powerful, incorporating SGML query and | + | |
- | transformation abilities as well as simple translation. | + | |
- | 3. Build a translator on top of an existing SGML parser. | + | |
- | the best-known (and free!) parser is James Clark' | + | |
- | `nsgmls`, and this produces a much simpler output format, | + | |
- | called ESIS, which can be parsed quite straightforwardly (one also | + | |
- | has the benefit of an SGML parse against the DTD). Two | + | |
- | good public domain packages use this method: | + | |
- | 1. David Megginson' | + | |
- | | + | |
- | written in `Perl` 5. | + | |
- | 2. Joachim Schrod and Christine Detig' | + | |
- | [`STIL`](ftp:// | + | |
- | | + | |
- | + | ||
- | + | ||
- | Both of these allow the user to write " | + | |
- | element, with plenty of access to attributes, entities, and | + | |
- | information about the context within the document tree. | + | |
- | + | ||
- | + | ||
- | | + | |
- | | + | |
Since HTML is simply an example of SGML, we do not need a specific | Since HTML is simply an example of SGML, we do not need a specific | ||
- | system for HTML. However, Nathan Torkington developed | + | system for HTML. However, Nathan Torkington developed |
- | `html2latex` from the HTML parser in NCSA's | + | from the HTML parser in NCSA's Xmosaic package. |
- | Xmosaic package. | + | |
The program takes an HTML file and generates a LaTeX file from it. | The program takes an HTML file and generates a LaTeX file from it. | ||
The conversion code is subject to NCSA restrictions, | The conversion code is subject to NCSA restrictions, | ||
source is available on CTAN. | source is available on CTAN. | ||
- | Michel Goossens and Janne Saarela published a very useful summary of | + | Michel Goossens and Janne Saarela published a [[https:// |
- | SGML, and of public domain tools for writing and manipulating it, in | + | and of public domain tools for writing and manipulating it, in [[https:// |
- | TUGboat 16(2). | + | |
+ | ----- | ||
+ | |||
+ | //Source:// [[faquk> | ||
+ | |||
+ | {{htmlmetatags> | ||
+ | metatag-og: | ||
+ | metatag-og: | ||
+ | }} | ||