view release on metacpan or search on metacpan
lib/HTML/Valid.pod view on Meta::CPAN
If set to C<< strict >>, Tidy will set the DOCTYPE to the HTML4 or XHTML1 strict DTD.
If set to C<< loose >>, the DOCTYPE is set to the HTML4 or XHTML1 loose (transitional) DTD.
Alternatively, you can supply a string for the formal public identifier (FPI).
For example:
C<< doctype: "-//ACME//DTD HTML 3.14159//EN" >>
If you specify the FPI for an XHTML document, Tidy will set the system identifier to an empty string. For an HTML document, Tidy adds a system identifier only if one was already present in order to preserve the processing mode of some browsers. Tidy ...
This option does not offer a validation of document conformance.
=item drop-empty-elements
$htv->set_option ('drop-empty-elements', <value>);
Type: true or false
Default: true
lib/HTML/Valid.pod view on Meta::CPAN
=item lower-literals
$htv->set_option ('lower-literals', <value>);
Type: true or false
Default: true
This option specifies if Tidy should convert the value of an attribute that takes a list of predefined values to lower case.
This is required for XHTML documents.
=item markup
$htv->set_option ('markup', <value>);
Type: true or false
Default: true
This option specifies if Tidy should generate a pretty printed version of the markup. Note that Tidy won't generate a pretty printed version if it finds significant errors (see C<< force-output >>).
lib/HTML/Valid.pod view on Meta::CPAN
This option specifies if Tidy should keep the first or last attribute, if an attribute is repeated, e.g. has two C<< align >> attributes.
=item replace-color
$htv->set_option ('replace-color', <value>);
Type: true or false
Default: false
This option specifies if Tidy should replace numeric values in color attributes with HTML/XHTML color names where defined, e.g. replace C<< #ffffff >> with C<< white >>.
=item show-body-only
$htv->set_option ('show-body-only', <value>);
Type: integer
Default: 0
This option specifies if Tidy should print only the contents of the body tag as an HTML fragment.
lib/HTML/Valid/Tagset.pm view on Meta::CPAN
VERS_FRAMESET => (16|128|1024),
VERS_XHTML11 => (2048),
VERS_BASIC => (4096),
VERS_HTML5 => (131072|262144),
VERS_HTML40 => ((4|32|256)|(8|64|512)|(16|128|1024)),
VERS_IFRAME => ((8|64|512)|(16|128|1024)),
VERS_LOOSE => ((1)|(2)|((8|64|512)|(16|128|1024))),
VERS_EVENTS => (((4|32|256)|(8|64|512)|(16|128|1024))|(2048)),
VERS_FROM32 => ((2)|((4|32|256)|(8|64|512)|(16|128|1024))),
VERS_FROM40 => (((4|32|256)|(8|64|512)|(16|128|1024))|(2048)|(4096)),
VERS_XHTML => (256|512|1024|2048|4096|262144),
VERS_ALL => ((1)|(2)|(((4|32|256)|(8|64|512)|(16|128|1024))|(2048)|(4096))|262144|131072),
VERS_PROPRIETARY => (16384|32768|8192),
};
my $taginfo = HTML::Valid::tag_information ();
our @allTags = sort keys %$taginfo;
our %emptyElement;
our %optionalEndTag;
tidy-html5.c view on Meta::CPAN
"Mit dem Wert <var>loose</var> wird der DOCTYPE HTML4 oder "
"XHTML1 loose (transitional) DTD eingestellt. "
"<br/>"
"Alternatif können Sie eine Zeichenkette für den Formal Public Identifier (FPI) "
"angeben."
"<br/>"
"Zum Beispiel: "
"<br/>"
"<code>doctype: \"-//ACME//DTD HTML 3.14159//EN\"</code>"
"<br/>"
"Wenn Sie den FPI für ein XHTML Dokument angeben, erzeugt Tidy eine "
"leere Zeichenkette für den System Identifyer. In HTML-Dokumenten "
"fügt Tidy einen System Identifier nur dann ein, wenn er schon vorher "
"vorhanden war, im Hinblick auf die Verarbeitungsmodi einiger Browser. "
"Tidy lässt den DOCTYPE generischer XML-Dokumente unangetastet."
"<br/>"
"Die Option bedingt keinerlei Ãberprüfung der Dokumentkonformität. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
tidy-html5.c view on Meta::CPAN
be translated. */
TidyFixComments, 0,
"Diese Option bestimmt, ob Tidy unerwartete Bindestriche durch "
"<code>=</code> Zeichen ersetzen soll, wenn Bindestriche aufeinanderfolgen. "
"<br/>"
"Der Standard ist <var>auto</var>, was für HTML5 Dokumente das gleiche wie "
"<var>no</var> bedeutet, für alle anderen aber <var>yes</var>. "
"<br/>"
"Die SGML Kommentarsyntax wurde für HTML aufgegeben, alle Versionen von HTML "
"erlauben aufeinanderfolgende Bindestriche, auch wenn das nicht für XML "
"und XHTML gilt. Wenn Sie ältere Browser unterstützen wollen, die SGML "
"Syntax verlangen, sollten Sie hier den Wert <var>yes</var> setzen."
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
tidy-html5.c view on Meta::CPAN
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
TidyReplaceColor, 0,
"Mit dieser Option können Sie Tidy auffordern, numerische Werte in "
"Farb-Attributen durch HTML/XHTML Farbnamen zu ersetzen, so weit "
"sie definiert sind. Zum Beispiel würde <code>#ffffff</code> zu "
"<code>white</code>. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
tidy-html5.c view on Meta::CPAN
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
/* option-name: output-xhtml */
TidyXhtmlOut, 0,
"Diese Option legt fest, ob Tidy die formatierte Ausgabe als XHTML schreiben "
"soll. "
"<br/>"
"Damit setzt Tidy den zu XHTML passenden DOCTYPE und Namensraum und wird "
"eine korrigierte Ausgabe liefern, unabhängig von anderen Eingaben. "
"<br/>"
"In XHTML können Entities benannt oder nummerisch sein, unabhängig von der "
"Einstellung von <code>numeric-entities</code>. "
"<br/>"
"Die GroÃ- und Kleinschreibung von Tags und Attributen im Eingangsdokument "
"wird beibehalten, unabhängig von den Werten anderer Optionen. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
/* option-name: add-xml-decl */
TidyXmlDecl, 0,
"Diese Option bestimmt, ob Tidy eine XML-Deklaration einfügen soll, "
"wenn XML oder XHTML ausgegeben wird. "
"<br/>"
"Beachten Sie, dass die Option ignoriert wird, wenn in der Eingabe bereits eine "
"solche Deklaration <code><?xml ... ?></code> enthalten ist. "
"<br/>"
"Sollte die Zeichenkodierung für die Ausgabe eine andere sein als "
"<var>ascii</var>, keine aus der <var>utf*</var> Familie und auch nicht "
"<var>raw</var>, wird die Deklaration ohnehin immer eingefügt, wie vom "
"XML Standard gefordert. "
},
{/* Important notes for translators:
tidy-html5.c view on Meta::CPAN
/********************************************
** Report Output
** @remark enum source TidyStrings
** @rename enum generator FOREACH_REPORT_MSG
********************************************/
{ ADDED_MISSING_CHARSET, 0, "Fehlendes <meta charset=...> wurde in %s hinzugefügt" },
{ ANCHOR_NOT_UNIQUE, 0, "%s Verweisanker \"%s\" ist bereits definiert" },
{ ANCHOR_DUPLICATED, 0, "impliziter %s Anker \"%s\" von Tidy dupliziert." },
{ APOS_UNDEFINED, 0, "benannte Entität ' nur in XML/XHTML definiert" },
{ ATTR_VALUE_NOT_LCASE, 0, "%s Attributwert \"%s\" muss für XHTML klein geschrieben sein" },
{ ATTRIBUTE_IS_NOT_ALLOWED, 0, "%s Attribut \"is\" nicht in autonomen, benutzerdefnierten Tags erlaubt." },
{ ATTRIBUTE_VALUE_REPLACED, 0, "%s Attribut \"%s\", falscher Wert \"%s\" ersetzt" },
{ BACKSLASH_IN_URI, 0, "%s URI Referenz enthält Backslash. Eingabefehler?" },
{ BAD_ATTRIBUTE_VALUE_REPLACED, 0, "%s Attribut \"%s\" hatte den ungültigen Wert \"%s\" und wurde ersetzt" },
{ BAD_ATTRIBUTE_VALUE, 0, "%s Attribut \"%s\" hat den ungültigen Wert \"%s\"" },
{ BAD_CDATA_CONTENT, 0, "'<' + '/' + Zeichen hier nicht erlaubt" },
{ BAD_SUMMARY_HTML5, 0, "Das summary Attribute im Element %s ist in HTML5 obsolet" },
{ BAD_SURROGATE_LEAD, 0, "Vorderes (niederes) Surrogat-Paar U+%04X, ohne vordere (obere) Entität, durch U+FFFD ersetzt." },
{ BAD_SURROGATE_PAIR, 0, "Unzulässiges Surrogat-Paar U+%04X:U+%04X wurde durch U+FFFD ersetzt." },
{ BAD_SURROGATE_TAIL, 0, "Vorangestelltes (oberes) Surrogat-Paar U+%04X, ohne anschlieÃennde (niedere) Entität, durch U+FFFD ersetzt." },
tidy-html5.c view on Meta::CPAN
{ TC_LABEL_FILE, 0, "Datei" },
{ TC_LABEL_LANG, 0, "Sprache" },
{ TC_LABEL_LEVL, 0, "Niveau" },
{ TC_LABEL_OPT, 0, "Option" },
{ TC_MAIN_ERROR_LOAD_CONFIG, 0, "Problem beim laden der Konfigurationsdatei \"%s\", Fehler = %d" },
{ TC_OPT_ACCESS, 0,
"Führe zusätzliche Prüfungen der Barrierefreiheit durch (<Niveau> = 0, 1, 2, 3). 0 wird "
"angenommen, wenn <Niveau> fehlt."
},
{ TC_OPT_ASCII, 0, "verwende ISO-8859-1 für Eingaben, US-ASCII für Ausgaben" },
{ TC_OPT_ASHTML, 0, "erzwinge Umwandlung von XHTML in wohlgeformtes HTML" },
{ TC_OPT_ASXML, 0, "konvertiere HTML zu wohlgeformtem XHTML" },
{ TC_OPT_BARE, 0, "entferne typografische Anführungsstriche, Geviertstriche, etc." },
{ TC_OPT_BIG5, 0, "verwende Big5 für Ein- und Ausgaben" },
{ TC_OPT_CLEAN, 0, "ersetze FONT, NOBR und CENTER Tags durch CSS" },
{ TC_OPT_CONFIG, 0, "setze Konfigurationseinstellungen aus der genannten <Datei>" },
{ TC_OPT_ERRORS, 0, "nur Fehler und Warnungen anzeigen" },
{ TC_OPT_FILE, 0, "schreibe Fehler und Warnungen in die genannte <Datei>" },
{ TC_OPT_GDOC, 0, "erzeuge saubere Version des aus Google Docs exportierten HTML" },
{ TC_OPT_HELP, 0, "liste Kommandozeilenoptionen" },
{ TC_OPT_HELPCFG, 0, "alle Konfigurationseinstellungen auflisten" },
tidy-html5.c view on Meta::CPAN
"If set to <var>loose</var>, the DOCTYPE is set to the HTML4 or XHTML1 "
"loose (transitional) DTD."
"<br/>"
"Alternatively, you can supply a string for the formal public identifier "
"(FPI)."
"<br/>"
"For example: "
"<br/>"
"<code>doctype: \"-//ACME//DTD HTML 3.14159//EN\"</code>"
"<br/>"
"If you specify the FPI for an XHTML document, Tidy will set the "
"system identifier to an empty string. For an HTML document, Tidy adds a "
"system identifier only if one was already present in order to preserve "
"the processing mode of some browsers. Tidy leaves the DOCTYPE for "
"generic XML documents unchanged. "
"<br/>"
"This option does not offer a validation of document conformance. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
tidy-html5.c view on Meta::CPAN
be translated. */
TidyFixComments, 0,
"This option specifies if Tidy should replace unexpected hyphens with "
"<code>=</code> characters when it comes across adjacent hyphens. "
"<br/>"
"The default is <var>auto</var> will which will act as <var>no</var> "
"for HTML5 document types, and <var>yes</var> for all other document "
"types. "
"<br/>"
"HTML has abandoned SGML comment syntax, and allows adjacent hyphens "
"for all versions of HTML, although XML and XHTML do not. If you plan "
"to support older browsers that require SGML comment syntax, then "
"consider setting this value to <var>yes</var>."
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
tidy-html5.c view on Meta::CPAN
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
TidyLowerLiterals, 0,
"This option specifies if Tidy should convert the value of an attribute "
"that takes a list of predefined values to lower case. "
"<br/>"
"This is required for XHTML documents. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
TidyMakeBare, 0,
tidy-html5.c view on Meta::CPAN
be translated. */
TidyOutputBOM, 0,
"This option specifies if Tidy should write a Unicode Byte Order Mark "
"character (BOM; also known as Zero Width No-Break Space; has value of "
"U+FEFF) to the beginning of the output, and only applies to UTF-8 and "
"UTF-16 output encodings. "
"<br/>"
"If set to <var>auto</var> this option causes Tidy to write a BOM to "
"the output only if a BOM was present at the beginning of the input. "
"<br/>"
"A BOM is always written for XML/XHTML output using UTF-16 output "
"encodings. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
tidy-html5.c view on Meta::CPAN
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
TidyReplaceColor, 0,
"This option specifies if Tidy should replace numeric values in color "
"attributes with HTML/XHTML color names where defined, e.g. replace "
"<code>#ffffff</code> with <code>white</code>. "
},
{/* Important notes for translators:
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
<br/>.
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
- Option values should be enclosed in <var></var>.
- It's very important that <br/> be self-closing!
- The strings "Tidy" and "HTML Tidy" are the program name and must not
be translated. */
tidy-html5.c view on Meta::CPAN
{ TC_LABEL_FILE, 0, "file" },
{ TC_LABEL_LANG, 0, "lang" },
{ TC_LABEL_LEVL, 0, "level" },
{ TC_LABEL_OPT, 0, "option" },
{ TC_MAIN_ERROR_LOAD_CONFIG, 0, "Loading config file \"%s\" problems, err = %d" },
{ TC_OPT_ACCESS, 0,
"do additional accessibility checks (<level> = 0, 1, 2, 3). 0 is "
"assumed if <level> is missing."
},
{ TC_OPT_ASCII, 0, "use ISO-8859-1 for input, US-ASCII for output" },
{ TC_OPT_ASHTML, 0, "force XHTML to well formed HTML" },
{ TC_OPT_ASXML, 0, "convert HTML to well formed XHTML" },
{ TC_OPT_BARE, 0, "strip out smart quotes and em dashes, etc." },
{ TC_OPT_BIG5, 0, "use Big5 for both input and output" },
{ TC_OPT_CLEAN, 0, "replace FONT, NOBR and CENTER tags with CSS" },
{ TC_OPT_CONFIG, 0, "set configuration options from the specified <file>" },
{ TC_OPT_ERRORS, 0, "show only errors and warnings" },
{ TC_OPT_FILE, 0, "write errors and warnings to the specified <file>" },
{ TC_OPT_GDOC, 0, "produce clean version of html exported by Google Docs" },
{ TC_OPT_HELP, 0, "list the command line options" },
{ TC_OPT_HELPCFG, 0, "list all configuration options" },
tidy-html5.c view on Meta::CPAN
"This option can be used to modify the behaviour of <code>clean</code> when "
"set to <code>yes</code>."
"<br/>"
"This option specifies if Tidy should merge nested <code><span></code> "
"such as <code><span><span>...</span></span></code>. "
"<br/>"
"The algorithm is identical to the one used by <code>merge-divs</code>. "
},
{ TidyReplaceColor, 0,
"This option specifies if Tidy should replace numeric values in colour "
"attributes with HTML/XHTML colour names where defined, e.g. replace "
"<code>#ffffff</code> with <code>white</code>. "
},
{ TidyUseCustomTags, 0,
"This option enables the use of tags for autonomous custom elements, "
"e.g. <flag-icon> with Tidy. Custom tags are disabled if this "
"value is <var>no</var>. Other settings - <var>blocklevel</var>, "
"<var>empty</var>, <var>inline</var>, and <var>pre</var> will treat "
"<em>all</em> detected custom tags accordingly. "
"<br/>"
"The use of <code>new-blocklevel-tags</code>, "
tidy-html5.c view on Meta::CPAN
{ TidyDecorateInferredUL, 0,
"Cette option précise si Tidy doit décorer le code déduit des éléments <code><ul></code> avec "
"du balisage CSS pour éviter un décalage d'indentation vers la droite. "
},
{ TidyDoctype, 0,
"Cette option spécifie la déclaration DOCTYPE générée par Tidy. <br/> Si <var>omit</var>, la sortie "
"ne contiendra pas de déclaration DOCTYPE. Notez que cela implique aussi que <code>numeric-entities</"
"code> soit réglé sur <var>yes</var>. <br/> Si <code>html5</code>, la déclaration DOCTYPE est réglée "
"sur <code><! DOCTYPE html></code>. <br/> Si <var>auto</var> (par défaut), Tidy tentera de "
"déduire la déclaration DOCTYPE à partir du contenu du document. <br/> Si elle est définie "
"<var>strict</var>, Tidy utilisera la déclaration DOCTYPE HTML4 ou XHTML 1 DTD strict. <br/> Si "
"<var>loose</var>, la déclaration DOCTYPE est réglée sur HTML4 ou XHTML1 loose (transitional) DTD. "
"<br/> En alternative, vous pouvez fournir une chaîne pour l'identificateur public formel (FPI).<br/"
"> Par exemple: <br/> <code>doctype: \"- // ACME // DTD HTML. 3,14159 //EN\"</code> <br/> Si vous "
"spécifiez le FPI pour un document XHTML, Tidy établira l'identifiant système à une chaîne vide. "
"Pour un document HTML, Tidy ajoute un identifiant système seulement s'il était déjà présent, dans "
"le but de préserver le mode de rendu de certains navigateurs. Tidy ne tient pas compte de la "
"déclaration DOCTYPE pour les documents XML génériques inchangés. <br/> Cette option ne permet pas "
"une validation de la conformité du document."
},
{ TidyDropEmptyElems, 0, "Cette option précise si Tidy doit rejeter les éléments vides." },
tidy-html5.c view on Meta::CPAN
},
{ TidyOutFile, 0,
"Cette option précise le fichier de sortie que Tidy utilise pour la structure de balises. En "
"principe la structure est écrite vers <code>stdout</code>. "
},
{ TidyOutputBOM, 0,
"Cette option précise si Tidy doit écrire un caractère indicateur d'ordre des octets (Unicode Byte "
"Order Mark ou BOM; connu aussi sous Zero Width No-Break Space; a la valeur de U+FEFF) au début de "
"la sortie, ce qui ne s'applique qu'aux sorties encodées en UTF-8 et UTF-16. <br/>Si l'option vaut "
"<var>auto</var>, Tidy écrira un BOM vers la sortie seulement si un BOM était présent au début de "
"l'entrée. <br/>Un BOM est toujours écrit pour la sortie XML/XHTML des sorties encodées en UTF-16. "
},
{ TidyPPrintTabs, 0,
"Cette option précise si tidy doit indenter avec des tabulations plutôt que des espaces, en "
"supposant que <code>indent</code> vaut <var>yes</var>. <br/>Définir cette option à <var>yes</var> "
"indente avec des tabulations plutôt que des espaces, valeur par défaut. <br />Utilisez l'option "
"<code>indent-spaces</code> pour redéfinir le nombre de tabulations en sortie par niveau "
"d'indentation. Notez que lorsque <code>indent-with-tabs</code> est activé, la valeur par défaut de "
"<code>indent-spaces</code> est réinitialisée à <var>1</var>. <br/>Notez que <code>tab-size</code> "
"contrôle la conversion des tabulations d'entrée en des espaces de sortie. Définissez-la à zéro pour "
"conserver les tabulations en entrée."
tidy-html5.c view on Meta::CPAN
"</code> comme préféré par certains environnements d'édition. <br/>Le caractère apostrophe <code>'</"
"code> est écrit <code>&#39;</code> car de nombreux navigateurs webs ne supportent pas encore "
"l'écriture <code>&apos;</code>. "
},
{ TidyQuoteNbsp, 0,
"Cette option précise si Tidy doit afficher les espaces insécables en tant qu'entités, plutôt qu'en "
"utilisant la valeur de caractère unicode 160 (décimale). "
},
{ TidyReplaceColor, 0,
"Cette option précise si Tidy doit remplacer les valeurs numériques dans les attributs de couleur "
"par les noms de couleurs HTML/XHTML lorsque définies, par exemple en remplaçant <code>#ffffff</"
"code> par <code>white</code>. "
},
{ TidyShowErrors, 0,
"Cette option précise le nombre utilisé par Tidy pour déterminer si les erreurs suivantes doivent "
"être montrées. Si la valeur est <var>0</var>, aucune erreur n'est affichée. "
},
{ TidyShowInfo, 0, "Cette option précise si Tidy doit afficher les messages de niveau info-level." },
{ TidyShowMarkup, 0,
"Cette option précise si Tidy doit générer un affichage embelli de la structure de balises. Notez "
"que Tidy ne générera pas un affichage embelli s'il trouve des erreurs significatives (voir "
tidy-html5.c view on Meta::CPAN
{ TC_LABEL_FILE, 0, "fichier" },
{ TC_LABEL_LANG, 0, "langue" },
{ TC_LABEL_LEVL, 0, "niveau" },
{ TC_LABEL_OPT, 0, "option" },
{ TC_MAIN_ERROR_LOAD_CONFIG, 0, "Le chargement du fichier de configuration \"%s\" a échoué, err = %d" },
{ TC_OPT_ACCESS, 0,
"faire des vérifications d'accessibilité supplémentaires (<niveau> = 0, 1, 2, 3). implicitement 0 si "
"<niveau> est manquant."
},
{ TC_OPT_ASCII, 0, "utilise ISO-8859-1 pour l'entrée, US-ASCII pour la sortie" },
{ TC_OPT_ASHTML, 0, "force le XHTML en HTML bien structuré" },
{ TC_OPT_ASXML, 0, "converti le HTML en XHTML bien structuré" },
{ TC_OPT_BARE, 0, "enlève les guillemets à double chevron et les tirets longs." },
{ TC_OPT_BIG5, 0, "utilise Big5 pour l'entrée et la sortie" },
{ TC_OPT_CLEAN, 0, "remplace les balises FONT, NOBR et CENTER par du CSS" },
{ TC_OPT_CONFIG, 0, "détermine les options de configuration à partir du <fichier> spécifié " },
{ TC_OPT_ERRORS, 0, "affiche seulement les erreurs et avertissements" },
{ TC_OPT_FILE, 0, "écrit les erreurs et avertissements vers le <fichier> précisé " },
{ TC_OPT_GDOC, 0, "produit une version nettoyée du html exporté par Google Docs" },
{ TC_OPT_HELP, 0, "liste toutes les options de ligne de commande" },
{ TC_OPT_HELPCFG, 0, "liste toutes les options de configuration" },
{ TC_OPT_HELPOPT, 0, "Affiche une description de l'<option>" },
tidy-html5.c view on Meta::CPAN
"Essa opção especifica o arquivo de saÃda que o Tidy usa para marcação. "
"Normalmente, a marcação é escrita para <code>stdout</code>. "
},
{ TidyOutputBOM, 0,
"Esta opção especifica se o Tidy deve escrever um caractere Unicode de marca "
"de ordem de byte (BOM, também conhecido como Zero Width No Break Break, tem "
"valor de U+FEFF) no inÃcio da saÃda, e aplica-se apenas a codificações de "
"saÃda UTF-8 e UTF-16. <br/>Se configurado para <var>auto</var>, esta opção "
"faz com que Tidy escreva um BOM para a saÃda somente se um BOM estiver "
"presente no inÃcio da entrada. <br/>Um BOM está sempre escrita para saÃda "
"XML/XHTML usando codificações de saÃda UTF-16. "
},
{ TidyPPrintTabs, 0,
"Esta opção especifica se o Tidy deve aplicar recuo com tabulações em vez de "
"espaços, presumindo que <code>indent</code> seja <var>yes</var>. <br/>Defina-"
"o para <var>yes</var> para recuar usando tabulações em vez dos espaços "
"padrão. <br/>Use a opção <code>indent-spaces</code> para controlar o número "
"de saÃdas de tabulação por nÃvel de recuo. Note que quando <code>indent-with-"
"tabs</code> está habilitado, o valor padrão de <code>indent-spaces</code> é "
"reiniciado para <var>1</var>. <br/>Note que <code>tab-size</code> controla a "
"conversão de tabulações de entrada em espaços. Coloque-o em zero para reter "
tidy-html5.c view on Meta::CPAN
"<br/>O caractere do apóstrofe <code>'</code> é escrito como "
"<code>&#39;</code> porque muitos navegadores web ainda não oferecem "
"suporte a <code>&apos;</code>. "
},
{ TidyQuoteNbsp, 0,
"Esta opção especifica se o Tidy deve produzir caracteres de espaço rÃgido "
"como entidades, em vez de como o caractere Unicode de valor 160 (decimal). "
},
{ TidyReplaceColor, 0,
"Esta opção especifica se o Tidy deve substituir os valores numéricos nos atributos de cor com "
"nomes de cor HTML/XHTML onde definido, p.ex. substituir <code>#ffffff</code> com <code>white</"
"code>. "
},
{ TidyShowErrors, 0,
"Esta opção especifica o número que o Tidy usa para determinar se outros "
"erros devem ser exibidos. Se configurado para <var>0</var>, nenhum erro será "
"mostrado. "
},
{ TidyShowInfo, 0,
"Esta opção especifica se o Tidy deve exibir mensagens de nÃvel "
"informacional. "
tidy-html5.c view on Meta::CPAN
{ TidyWriteBack, 0,
"Esta opção especifica se o Tidy deve escrever novamente a marcação arrumada "
"para o mesmo arquivo que lê. <br/> à aconselhável manter cópias de arquivos "
"importantes antes de ordená-los, como em ocasiões raras, o resultado pode "
"não ser o que você espera. "
},
{ TidyXhtmlOut, 0,
"Esta opção especifica se o Tidy deve gerar uma impressão amigável, "
"escrevendo como HTML extensÃvel. <br/>Esta opção faz com que o Tidy "
"configure o DOCTYPE e o espaço de nomes padrão conforme apropriado para "
"XHTML e use o valor corrigido no resultado, independentemente de outras "
"fontes. <br/> Para XHTML, as entidades podem ser escritas como entidades "
"nomeadas ou numéricas de acordo com a configuração de <code>numeric-"
"entities</code>. <br/>A maiusculização original de tags e atributos será "
"preservada, independentemente de outras opções. "
},
{ TidyXmlDecl, 0,
"Esta opção especifica se o Tidy deve adicionar a declaração XML ao enviar "
"XML ou XHTML. <br/>Note que, se a entrada já incluir uma declaração "
"<code><?xml ... ?></code>, esta opção será ignorada. <br/>Se a "
"codificação para a saÃda for diferente de <var>ascii</var>, uma das "
tidy-html5.c view on Meta::CPAN
{ TC_LABEL_FILE, 0, "arquivo" },
{ TC_LABEL_LANG, 0, "idioma" },
{ TC_LABEL_LEVL, 0, "nÃvel" },
{ TC_LABEL_OPT, 0, "opção" },
{ TC_MAIN_ERROR_LOAD_CONFIG, 0, "Falha ao carregar o arquivo de config \"%s\", err = %d" },
{ TC_OPT_ACCESS, 0,
" faz verificações adicionais de acessibilidade (<nÃvel> = 0, 1, 2, 3). 0 é "
"presumido se <nÃvel> estiver faltando."
},
{ TC_OPT_ASCII, 0, "usa ISO-8859-1 para entrada, US-ASCII para saÃda" },
{ TC_OPT_ASHTML, 0, "força XHTML para HTML bem formatado" },
{ TC_OPT_ASXML, 0, "converte HTML para XHTML bem formatado" },
{ TC_OPT_BARE, 0, "retira aspas inteligentes, travessões etc." },
{ TC_OPT_BIG5, 0, "usa Big5 para tanto entrada quanto saÃda" },
{ TC_OPT_CLEAN, 0, "substitui tags FONT, NOBR e CENTER com CSS" },
{ TC_OPT_CONFIG, 0, "define opções de configuração a partir do <arquivo> especificado" },
{ TC_OPT_ERRORS, 0, "mostra apenas erros e avisos" },
{ TC_OPT_FILE, 0, "escreve erros e avisos para o <arquivo> especificado" },
{ TC_OPT_GDOC, 0, "produz versão limpa do html exportado pelo Google Docs" },
{ TC_OPT_HELP, 0, "lista as opções de linha de comando" },
{ TC_OPT_HELPCFG, 0, "lista todas as opções de configuração" },
{ TC_OPT_HELPOPT, 0, " mostra uma descrição da <opção>" },
tidy-html5.c view on Meta::CPAN
** it as HTML 2.0 Similarly for HTML 3.2 and the 3 flavors of HTML 4.0.
** If there are proprietary tags and attributes then describe it as
** HTML Proprietary. If it includes the xml-lang or xmlns attributes
** but is otherwise HTML 2.0, 3.2 or 4.0 then describe it as one of the
** flavors of Voyager (strict, loose or frameset).
*/
/* unknown */
#define xxxx 0u
/* W3C defined HTML/XHTML family document types */
#define HT20 1u
#define HT32 2u
#define H40S 4u
#define H40T 8u
#define H40F 16u
#define H41S 32u
#define H41T 64u
#define H41F 128u
#define X10S 256u
#define X10T 512u
tidy-html5.c view on Meta::CPAN
/* HTML5 */
#define VERS_HTML5 (HT50|XH50)
/* meta symbols */
#define VERS_HTML40 (VERS_HTML40_STRICT|VERS_HTML40_LOOSE|VERS_FRAMESET)
#define VERS_IFRAME (VERS_HTML40_LOOSE|VERS_FRAMESET)
#define VERS_LOOSE (VERS_HTML20|VERS_HTML32|VERS_IFRAME)
#define VERS_EVENTS (VERS_HTML40|VERS_XHTML11)
#define VERS_FROM32 (VERS_HTML32|VERS_HTML40|HT50)
#define VERS_FROM40 (VERS_HTML40|VERS_XHTML11|VERS_BASIC|VERS_HTML5)
#define VERS_XHTML (X10S|X10T|X10F|XH11|XB10|XH50)
/* strict */
#define VERS_STRICT (VERS_HTML5|VERS_HTML40_STRICT)
/* all W3C defined document types */
#define VERS_ALL (VERS_HTML20|VERS_HTML32|VERS_FROM40|XH50|HT50)
/* all proprietary types */
#define VERS_PROPRIETARY (VERS_NETSCAPE|VERS_MICROSOFT|VERS_SUN)
tidy-html5.c view on Meta::CPAN
}
}
}
}
/**********************************************************
* CheckLink
*
* 'REL' attribute within the LINK element must not contain
* 'stylesheet'. HTML/XHTML document is unreadable when
* style sheets are applied. -- CPR huh?
**********************************************************/
static void CheckLink( TidyDocImpl* doc, Node* node )
{
Bool HasRel = no;
Bool HasType = no;
if (Level1_Enabled( doc ))
{
tidy-html5.c view on Meta::CPAN
if (HasRel && HasType)
TY_(ReportAccessError)( doc, node, STYLESHEETS_REQUIRE_TESTING_LINK );
}
}
/*******************************************************
* CheckStyle
*
* Document must not contain STYLE element. HTML/XHTML
* document is unreadable when style sheets are applied.
*******************************************************/
static void CheckStyle( TidyDocImpl* doc, Node* node )
{
if (Level1_Enabled( doc ))
{
TY_(ReportAccessError)( doc, node, STYLESHEETS_REQUIRE_TESTING_STYLE_ELEMENT );
}
}
tidy-html5.c view on Meta::CPAN
if (Level2_Enabled( doc ))
{
TY_(ReportAccessError)( doc, node, METADATA_MISSING );
}
}
/*****************************************************
* CheckDocType
*
* Checks that every HTML/XHTML document contains a
* '!DOCTYPE' before the root node. ie. <HTML>
*****************************************************/
static void CheckDocType( TidyDocImpl* doc )
{
if (Level2_Enabled( doc ))
{
Node* DTnode = TY_(FindDocType)(doc);
/* If the doctype has been added by tidy, DTnode->end will be 0. */
tidy-html5.c view on Meta::CPAN
if (node->content)
TY_(ConvertCDATANodes)(doc, node->content);
node = next;
}
}
/*
FixLanguageInformation ensures that the document contains (only)
the attributes for language information desired by the output
document type. For example, for XHTML 1.0 documents both
'xml:lang' and 'lang' are desired, for XHTML 1.1 only 'xml:lang'
is desired and for HTML 4.01 only 'lang' is desired.
*/
void TY_(FixLanguageInformation)(TidyDocImpl* doc, Node* node, Bool wantXmlLang, Bool wantLang)
{
Node* next;
while (node)
{
next = node->next;
tidy-html5.c view on Meta::CPAN
if ( cfg(doc, TidyWrapLen) == 0 )
TY_(SetOptionInt)( doc, TidyWrapLen, 0x7FFFFFFF );
/* Word 2000 needs o:p to be declared as inline */
if ( cfgBool(doc, TidyWord2000) )
{
doc->config.defined_tags |= tagtype_inline;
TY_(DefineTag)( doc, tagtype_inline, "o:p" );
}
/* #480701 disable XHTML output flag if both output-xhtml and xml input are set */
if ( cfgBool(doc, TidyXmlTags) )
TY_(SetOptionBool)( doc, TidyXhtmlOut, no );
/* XHTML is written in lower case */
if ( cfgBool(doc, TidyXhtmlOut) )
{
TY_(SetOptionBool)( doc, TidyXmlOut, yes );
TY_(SetOptionBool)( doc, TidyUpperCaseTags, no );
TY_(SetOptionInt)( doc, TidyUpperCaseAttrs, no );
/* TY_(SetOptionBool)( doc, TidyXmlPIs, yes ); */
}
/* if XML in, then XML out */
if ( cfgBool(doc, TidyXmlTags) )
tidy-html5.c view on Meta::CPAN
{ 2, HT20, 200, no, "HTML 2.0", "-//W3C//DTD HTML 2.0//EN", NULL, },
{ 1, HT32, 320, no, "HTML 3.2", "-//W3C//DTD HTML 3.2//EN", NULL, },
{ 1, HT32, 320, no, "HTML 3.2", "-//W3C//DTD HTML 3.2 Final//EN", NULL, },
{ 1, HT32, 320, no, "HTML 3.2", "-//W3C//DTD HTML 3.2 Draft//EN", NULL, },
{ 6, H40S, 400, no, "HTML 4.0 Strict", "-//W3C//DTD HTML 4.0//EN", "http://www.w3.org/TR/REC-html40/strict.dtd" },
{ 8, H40T, 400, no, "HTML 4.0 Transitional", "-//W3C//DTD HTML 4.0 Transitional//EN", "http://www.w3.org/TR/REC-html40/loose.dtd" },
{ 7, H40F, 400, no, "HTML 4.0 Frameset", "-//W3C//DTD HTML 4.0 Frameset//EN", "http://www.w3.org/TR/REC-html40/frameset.dtd" },
{ 3, H41S, 401, no, "HTML 4.01 Strict", "-//W3C//DTD HTML 4.01//EN", "http://www.w3.org/TR/html4/strict.dtd" },
{ 5, H41T, 401, no, "HTML 4.01 Transitional", "-//W3C//DTD HTML 4.01 Transitional//EN", "http://www.w3.org/TR/html4/loose.dtd" },
{ 4, H41F, 401, no, "HTML 4.01 Frameset", "-//W3C//DTD HTML 4.01 Frameset//EN", "http://www.w3.org/TR/html4/frameset.dtd" },
{ 9, X10S, 100, yes, "XHTML 1.0 Strict", "-//W3C//DTD XHTML 1.0 Strict//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" },
{ 11, X10T, 100, yes, "XHTML 1.0 Transitional", "-//W3C//DTD XHTML 1.0 Transitional//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" },
{ 10, X10F, 100, yes, "XHTML 1.0 Frameset", "-//W3C//DTD XHTML 1.0 Frameset//EN", "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd" },
{ 12, XH11, 110, yes, "XHTML 1.1", "-//W3C//DTD XHTML 1.1//EN", "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" },
{ 13, XB10, 100, yes, "XHTML Basic 1.0", "-//W3C//DTD XHTML Basic 1.0//EN", "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd" },
{ 20, HT50, 500, no, "HTML5", NULL, NULL },
{ 21, XH50, 500, yes, "XHTML5", NULL, NULL },
/* final entry */
{ 0, 0, 0, no, NULL, NULL, NULL }
};
/*
* Issue #643 - Since VERS_FROM40 was extended to include VERS_HTML5
tidy-html5.c view on Meta::CPAN
if (xhtml && dtver == VERS_UNKNOWN) return XH50;
if (dtver == VERS_UNKNOWN) return HT50;
/* Issue #167 - if NOT XHTML, and doctype is default VERS_HTML5, then return HT50 */
if (!xhtml && (dtver == VERS_HTML5)) return HT50;
/* Issue #377 - If xhtml and (doctype == html5) and constrained vers contains XH50 return that,
and really if tidy defaults to 'html5', then maybe 'auto' should also apply! */
if (xhtml && html5 && ((vers & VERS_HTML5) == XH50)) return XH50;
for (i = 0; W3C_Doctypes[i].name; ++i)
{
if ((xhtml && !(VERS_XHTML & W3C_Doctypes[i].vers)) ||
(html4 && !(VERS_HMTL40PX & W3C_Doctypes[i].vers)))
continue;
if (vers & W3C_Doctypes[i].vers &&
(W3C_Doctypes[i].score < score || !score))
{
score = W3C_Doctypes[i].score;
j = i;
}
}
tidy-html5.c view on Meta::CPAN
}
/* otherwise put it back */
TY_(UngetChar)( c, doc->docIn );
break;
}
/* make sure entity is NULL terminated */
lexer->lexbuf[lexer->lexsize] = '\0';
/* Should contrain version to XML/XHTML if '
** is encountered. But this is not possible with
** Tidy's content model bit mask.
*/
if ( TY_(tmbstrcmp)(lexer->lexbuf+start, "&apos") == 0
&& !cfgBool(doc, TidyXmlOut)
&& !lexer->isvoyager
&& !cfgBool(doc, TidyXhtmlOut)
&& !(TY_(HTMLVersion)(doc) == HT50) ) /* Issue #239 - no warning if in HTML5++ mode */
TY_(ReportEntityError)( doc, APOS_UNDEFINED, lexer->lexbuf+start, 39 );
tidy-html5.c view on Meta::CPAN
\*/
if (doctype->element && (TY_(tmbstrcasecmp)(doctype->element,"html") == 0))
{
return VERS_HTML5; /* TODO: do we need to check MORE? */
}
/* TODO: Consider warning, error message */
return VERS_UNKNOWN;
}
vers = GetVersFromFPI(fpi->value);
if (VERS_XHTML & vers)
{
TY_(SetOptionBool)(doc, TidyXmlOut, yes);
TY_(SetOptionBool)(doc, TidyXhtmlOut, yes);
doc->lexer->isvoyager = yes;
}
/* todo: add a warning if case does not match? */
TidyDocFree(doc, fpi->value);
fpi->value = TY_(tmbstrdup)(doc->allocator, GetFPIFromVers(vers));
tidy-html5.c view on Meta::CPAN
return W3C_Doctypes[i].vers_out;
return VERS_UNKNOWN;
}
Bool TY_(WarnMissingSIInEmittedDocType)( TidyDocImpl* doc )
{
Bool isXhtml = doc->lexer->isvoyager;
Node* doctype;
/* Do not warn in XHTML mode */
if ( isXhtml )
return no;
/* Do not warn if emitted doctype is proprietary */
if ( TY_(HTMLVersionNameFromCode)(doc->lexer->versionEmitted, isXhtml ) == NULL )
return no;
/* Do not warn if no SI is possible */
if ( GetSIFromVers(doc->lexer->versionEmitted) == NULL )
return no;
tidy-html5.c view on Meta::CPAN
switch(dtmode)
{
case TidyDoctypeHtml5:
/* HTML5 */
TY_(RepairAttrValue)(doc, doctype, pub, NULL);
TY_(RepairAttrValue)(doc, doctype, sys, NULL);
lexer->versionEmitted = XH50;
break;
case TidyDoctypeStrict:
/* XHTML 1.0 Strict */
TY_(RepairAttrValue)(doc, doctype, pub, GetFPIFromVers(X10S));
TY_(RepairAttrValue)(doc, doctype, sys, GetSIFromVers(X10S));
lexer->versionEmitted = X10S;
break;
case TidyDoctypeLoose:
/* XHTML 1.0 Transitional */
TY_(RepairAttrValue)(doc, doctype, pub, GetFPIFromVers(X10T));
TY_(RepairAttrValue)(doc, doctype, sys, GetSIFromVers(X10T));
lexer->versionEmitted = X10T;
break;
case TidyDoctypeUser:
/* user defined document type declaration */
TY_(RepairAttrValue)(doc, doctype, pub, cfgStr(doc, TidyDoctype));
TY_(RepairAttrValue)(doc, doctype, sys, "");
break;
case TidyDoctypeAuto:
tidy-html5.c view on Meta::CPAN
/* Issue #167 - found doctype, and doctype is default VERS_HTML5, set VERS_HTML5 and return yes */
if (doctype && (dtmode == TidyDoctypeAuto) &&
(lexer->doctype == VERS_HTML5) )
{
/* The version emitted cannot be a composite value! */
lexer->versionEmitted = HT50;
return yes;
}
if (dtmode == TidyDoctypeAuto &&
lexer->versions & lexer->doctype &&
!(VERS_XHTML & lexer->doctype && !lexer->isvoyager)
&& TY_(FindDocType)(doc))
{
lexer->versionEmitted = lexer->doctype;
return yes;
}
if (dtmode == TidyDoctypeOmit)
{
if (doctype)
TY_(DiscardElement)( doc, doctype );
tidy-html5.c view on Meta::CPAN
continue;
}
/*
if it doesn't belong in the head then
treat as implicit end of head and deal
with as part of the body
*/
if (!(node->tag->model & CM_HEAD))
{
/* #545067 Implicit closing of head broken - warn only for XHTML input */
if ( lexer->isvoyager )
TY_(Report)(doc, head, node, TAG_NOT_ALLOWED_IN );
TY_(UngetToken)( doc );
break;
}
if (TY_(nodeIsElement)(node))
{
if ( nodeIsTITLE(node) )
{
tidy-html5.c view on Meta::CPAN
/* I/O Functions
**
** Initial version supports only whole-file operations.
** Do not expose Tidy StreamIn or Out data structures - yet.
*/
/* Parse/load Functions
**
** HTML/XHTML version determined from input.
*/
int TIDY_CALL tidyParseFile( TidyDoc tdoc, ctmbstr filnam )
{
TidyDocImpl* doc = tidyDocToImpl( tdoc );
return tidyDocParseFile( doc, filnam );
}
int TIDY_CALL tidyParseStdin( TidyDoc tdoc )
{
TidyDocImpl* doc = tidyDocToImpl( tdoc );
return tidyDocParseStdin( doc );
tidy-html5.c view on Meta::CPAN
if (AttrHasValue(fpi))
{
if (doc->givenDoctype)
TidyDocFree(doc, doc->givenDoctype);
doc->givenDoctype = TY_(tmbstrdup)(doc->allocator,fpi->value);
}
}
if ( doc->root.content )
{
/* If we had XHTML input but want HTML output */
if ( htmlOut && doc->lexer->isvoyager )
{
Node* node = TY_(FindDocType)(doc);
/* Remove reference, but do not free */
if (node)
TY_(RemoveNode)(node);
}
if (xhtmlOut && !htmlOut)
{
tidy-html5.h view on Meta::CPAN
TidyEncloseBodyText, /**< If yes text at body is wrapped in P's */
TidyErrFile, /**< File name to write errors to */
TidyEscapeCdata, /**< Replace <![CDATA[]]> sections with escaped text */
TidyEscapeScripts, /**< Escape items that look like closing tags in script tags */
TidyFixBackslash, /**< Fix URLs by replacing \ with / */
TidyFixComments, /**< Fix comments with adjacent hyphens */
TidyFixUri, /**< Applies URI encoding if necessary */
TidyForceOutput, /**< Output document even if errors were found */
TidyGDocClean, /**< Clean up HTML exported from Google Docs */
TidyHideComments, /**< Hides all (real) comments in output */
TidyHtmlOut, /**< Output plain HTML, even for XHTML input.*/
TidyInCharEncoding, /**< Input character encoding (if different) */
TidyIndentAttributes, /**< Newline+indent before each attribute */
TidyIndentCdata, /**< Indent <!CDATA[ ... ]]> section */
TidyIndentContent, /**< Indent content of appropriate tags */
TidyIndentSpaces, /**< Indentation n spaces/tabs */
TidyInlineTags, /**< Declared inline tags */
TidyJoinClasses, /**< Join multiple class attributes */
TidyJoinStyles, /**< Join multiple style attributes */
TidyKeepFileTimes, /**< If yes last modied time is preserved */
TidyKeepTabs, /**< If yes keep input source tabs */
tidy-html5.h view on Meta::CPAN
/** Gets the version of HTML that was output, as an integer, times 100. For
** example, HTML5 will return 500; HTML4.0.1 will return 401.
** @param tdoc An instance of a TidyDoc to query.
** @result Returns the HTML version number (x100).
*/
TIDY_EXPORT int TIDY_CALL tidyDetectedHtmlVersion( TidyDoc tdoc );
/** Indicates whether the output document is or isn't XHTML.
** @param tdoc An instance of a TidyDoc to query.
** @result Returns `yes` if the document is an XHTML type.
*/
TIDY_EXPORT Bool TIDY_CALL tidyDetectedXhtml( TidyDoc tdoc );
/** Indicates whether or not the input document was XML. If TidyXml tags is
** true, or there was an XML declaration in the input document, then this
** function will return yes.
** @param tdoc An instance of a TidyDoc to query.
** @result Returns `yes` if the input document was XML.
*/
TIDY_EXPORT Bool TIDY_CALL tidyDetectedGenericXml( TidyDoc tdoc );
tidy-html5.h view on Meta::CPAN
TidyPPProgress callback
);
/** @} */
/** @} end IO group */
/* MARK: - Document Parse */
/***************************************************************************//**
** @defgroup Parse Document Parse
**
** Functions for parsing markup from a given input source, as well as string
** and filename functions for added convenience. HTML/XHTML version determined
** from input.
**
** @{
******************************************************************************/
/** Parse markup in named file.
** @result Returns the highest of `2` indicating that errors were present in
** the document, `1` indicating warnings, and `0` in the case of
** everything being okay.
*/