/src/tidy-html5/src/language_en.h
Line | Count | Source |
1 | | #ifndef language_en_h |
2 | | #define language_en_h |
3 | | /* |
4 | | * language_en.h |
5 | | * Localization support for HTML Tidy. |
6 | | * |
7 | | * This file consists of the strings for Tidy's base language and is a |
8 | | * required localization for Tidy to compile and work. Unlike the other |
9 | | * localization files this file is NOT machine-generated. |
10 | | * |
11 | | * This file also serves as the master template for generating additional |
12 | | * language localizations. As such do not edit PO files for this language; |
13 | | * modify this file directly. |
14 | | * |
15 | | * (c) 2015-2017 HTACG |
16 | | * See tidy.h and access.h for the copyright notice. |
17 | | * |
18 | | * Created by Jim Derry on 11/28/15. |
19 | | */ |
20 | | |
21 | | #ifdef _MSC_VER |
22 | | #pragma execution_character_set("utf-8") |
23 | | #endif |
24 | | |
25 | | |
26 | | /** |
27 | | * This language-specific function returns the correct pluralForm |
28 | | * to use given n items, and is used as a member of each language |
29 | | * definition. |
30 | | */ |
31 | 290M | static uint whichPluralForm_en(uint n) { |
32 | | /* Plural-Forms: nplurals=2; */ |
33 | 290M | return n != 1; |
34 | 290M | } |
35 | | |
36 | | |
37 | | /** |
38 | | * This structure specifies all of the strings needed by Tidy for a |
39 | | * single language. Static definition in a header file makes it |
40 | | * easy to include and exclude languages without tinkering with |
41 | | * the build system. |
42 | | * |
43 | | * This file serves as the master template for generating `gettext` |
44 | | * PO and POT files using our `potool.rb` script. Certain comments |
45 | | * entered below will be included in the PO/POT files as developer |
46 | | * comments. To enable this, use only standard C-style comments that |
47 | | * begin immediately after the opening brace without whitespace. |
48 | | */ |
49 | | |
50 | | static languageDefinition language_en = { whichPluralForm_en, { |
51 | | /*************************************** |
52 | | ** This MUST be present and first. |
53 | | ** Specify the code for this language. |
54 | | ***************************************/ |
55 | | {/* Specify the ll or ll_cc language code here. */ |
56 | | TIDY_LANGUAGE, 0, "en" |
57 | | }, |
58 | | |
59 | | /********************************************************************* |
60 | | ** Options Documentation |
61 | | ** As of 2016-January these descriptions are used uniquely by the |
62 | | ** console application but are made available for LibTidy users as |
63 | | ** well. Because we generate documentation from these descriptions |
64 | | ** it's important to use ONLY the following tags: |
65 | | ** <code>, <em>, <strong>, <br/>, <p> |
66 | | ** Note that the xslt processor requires <br/> to be self closing! |
67 | | ** @remark enum source is TidyOptionId |
68 | | *********************************************************************/ |
69 | | {/* Important notes for translators: |
70 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
71 | | <br/>. |
72 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
73 | | - Option values should be enclosed in <var></var>. |
74 | | - It's very important that <br/> be self-closing! |
75 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
76 | | be translated. */ |
77 | | TidyAccessibilityCheckLevel, 0, |
78 | | "This option specifies what level of accessibility checking, if any, " |
79 | | "that Tidy should perform. " |
80 | | "<br/>" |
81 | | "Level <var>0 (Tidy Classic)</var> performs no additional accessibility checking. " |
82 | | "<br/>" |
83 | | "Level <var>1 (Priority 1 Checks)</var> performs the Priority Level 1 checks." |
84 | | "<br/>" |
85 | | "Level <var>2 (Priority 2 Checks)</var> performs the Priority Level 1 and 2 checks." |
86 | | "<br/>" |
87 | | "Level <var>3 (Priority 3 Checks)</var> performs the Priority Level 1, 2, and 3 checks." |
88 | | "<br/>" |
89 | | "For more information on Tidy's accessibility checking, including the specific " |
90 | | "checks that are made for each Priority Level, please visit " |
91 | | "<a href=\"https://www.html-tidy.org/accessibility/\"> Tidy's Accessibility Page</a>. " |
92 | | }, |
93 | | {/* Important notes for translators: |
94 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
95 | | <br/>. |
96 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
97 | | - Option values should be enclosed in <var></var>. |
98 | | - It's very important that <br/> be self-closing! |
99 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
100 | | be translated. */ |
101 | | TidyAltText, 0, |
102 | | "This option specifies the default <code>alt=</code> text Tidy uses for " |
103 | | "<code><img></code> attributes when the <code>alt=</code> attribute " |
104 | | "is missing. " |
105 | | "<br/>" |
106 | | "Use with care, as it is your responsibility to make your documents accessible " |
107 | | "to people who cannot see the images. " |
108 | | }, |
109 | | {/* Important notes for translators: |
110 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
111 | | <br/>. |
112 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
113 | | - Option values should be enclosed in <var></var>. |
114 | | - It's very important that <br/> be self-closing! |
115 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
116 | | be translated. */ |
117 | | TidyAnchorAsName, 0, |
118 | | "This option controls the deletion or addition of the <code>name</code> " |
119 | | "attribute in elements where it can serve as anchor. " |
120 | | "<br/>" |
121 | | "If set to <var>yes</var> a <code>name</code> attribute, if not already " |
122 | | "existing, is added along an existing <code>id</code> attribute if the DTD " |
123 | | "allows it. " |
124 | | "<br/>" |
125 | | "If set to <var>no</var> any existing name attribute is removed if an " |
126 | | "<code>id</code> attribute exists or has been added. " |
127 | | }, |
128 | | {/* Important notes for translators: |
129 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
130 | | <br/>. |
131 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
132 | | - Option values should be enclosed in <var></var>. |
133 | | - It's very important that <br/> be self-closing! |
134 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
135 | | be translated. */ |
136 | | TidyAsciiChars, 0, |
137 | | "Can be used to modify behavior of the <code>clean</code> option when set " |
138 | | "to <var>yes</var>. " |
139 | | "<br/>" |
140 | | "If set to <var>yes</var> when using <code>clean</code>, " |
141 | | "<code>&emdash;</code>, <code>&rdquo;</code>, and other named " |
142 | | "character entities are downgraded to their closest ASCII equivalents. " |
143 | | }, |
144 | | {/* Important notes for translators: |
145 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
146 | | <br/>. |
147 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
148 | | - Option values should be enclosed in <var></var>. |
149 | | - It's very important that <br/> be self-closing! |
150 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
151 | | be translated. */ |
152 | | TidyBlockTags, 0, |
153 | | "This option specifies new block-level tags. This option takes a space or " |
154 | | "comma separated list of tag names. " |
155 | | "<br/>" |
156 | | "Unless you declare new tags, Tidy will refuse to generate a tidied file if " |
157 | | "the input includes previously unknown tags. " |
158 | | "<br/>" |
159 | | "Note you can't change the content model for elements such as " |
160 | | "<code><table></code>, <code><ul></code>, " |
161 | | "<code><ol></code> and <code><dl></code>. " |
162 | | "<br/>" |
163 | | "This option is ignored in XML mode. " |
164 | | }, |
165 | | {/* Important notes for translators: |
166 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
167 | | <br/>. |
168 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
169 | | - Option values should be enclosed in <var></var>. |
170 | | - It's very important that <br/> be self-closing! |
171 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
172 | | be translated. */ |
173 | | TidyBodyOnly, 0, |
174 | | "This option specifies if Tidy should print only the contents of the " |
175 | | "body tag as an HTML fragment. " |
176 | | "<br/>" |
177 | | "If set to <var>auto</var>, this is performed only if the body tag has " |
178 | | "been inferred. " |
179 | | "<br/>" |
180 | | "Useful for incorporating existing whole pages as a portion of another " |
181 | | "page. " |
182 | | "<br/>" |
183 | | "This option has no effect if XML output is requested. " |
184 | | }, |
185 | | {/* Important notes for translators: |
186 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
187 | | <br/>. |
188 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
189 | | - Option values should be enclosed in <var></var>. |
190 | | - It's very important that <br/> be self-closing! |
191 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
192 | | be translated. */ |
193 | | TidyBreakBeforeBR, 0, |
194 | | "This option specifies if Tidy should output a line break before each " |
195 | | "<code><br></code> element. " |
196 | | }, |
197 | | {/* Important notes for translators: |
198 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
199 | | <br/>. |
200 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
201 | | - Option values should be enclosed in <var></var>. |
202 | | - It's very important that <br/> be self-closing! |
203 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
204 | | be translated. */ |
205 | | TidyCharEncoding, 0, |
206 | | "This option specifies the character encoding Tidy uses for input, and " |
207 | | "when set, automatically chooses an appropriate character encoding to " |
208 | | "be used for output. The output encoding Tidy chooses may be different " |
209 | | "from the input encoding. " |
210 | | "<br/>" |
211 | | "For <var>ascii</var>, <var>latin0</var>, <var>ibm858</var>, " |
212 | | "<var>mac</var>, and <var>win1252</var> input encodings, the " |
213 | | "<code>output-encoding</code> option will automatically be set to " |
214 | | "<var>ascii</var>. You can set <code>output-encoding</code> manually " |
215 | | "to override this. " |
216 | | "<br/>" |
217 | | "For other input encodings, the <code>output-encoding</code> option " |
218 | | "will automatically be set to the the same value. " |
219 | | "<br/>" |
220 | | "Regardless of the preset value, you can set " |
221 | | "<code>output-encoding</code> manually to override this. " |
222 | | "<br/>" |
223 | | "Tidy is not an encoding converter. Although the Latin and UTF " |
224 | | "encodings can be mixed freely, it is not possible to convert Asian " |
225 | | "encodings to Latin encodings with Tidy. " |
226 | | }, |
227 | | {/* Important notes for translators: |
228 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
229 | | <br/>. |
230 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
231 | | - Option values should be enclosed in <var></var>. |
232 | | - It's very important that <br/> be self-closing! |
233 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
234 | | be translated. */ |
235 | | TidyCoerceEndTags, 0, |
236 | | "This option specifies if Tidy should coerce a start tag into an end tag " |
237 | | "in cases where it looks like an end tag was probably intended; " |
238 | | "for example, given " |
239 | | "<br/>" |
240 | | "<code><span>foo <b>bar<b> baz</span></code> " |
241 | | "<br/>" |
242 | | "Tidy will output " |
243 | | "<br/>" |
244 | | "<code><span>foo <b>bar</b> baz</span></code> " |
245 | | }, |
246 | | {/* Important notes for translators: |
247 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
248 | | <br/>. |
249 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
250 | | - Option values should be enclosed in <var></var>. |
251 | | - It's very important that <br/> be self-closing! |
252 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
253 | | be translated. */ |
254 | | TidyCSSPrefix, 0, |
255 | | "This option specifies the prefix that Tidy uses for styles rules. " |
256 | | "<br/>" |
257 | | "By default, <var>c</var> will be used. " |
258 | | }, |
259 | | {/* Important notes for translators: |
260 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
261 | | <br/>. |
262 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
263 | | - Option values should be enclosed in <var></var>. |
264 | | - It's very important that <br/> be self-closing! |
265 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
266 | | be translated. */ |
267 | | TidyDecorateInferredUL, 0, |
268 | | "This option specifies if Tidy should decorate inferred " |
269 | | "<code><ul></code> elements with some CSS markup to avoid indentation " |
270 | | "to the right. " |
271 | | }, |
272 | | {/* Important notes for translators: |
273 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
274 | | <br/>. |
275 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
276 | | - Option values should be enclosed in <var></var>. |
277 | | - It's very important that <br/> be self-closing! |
278 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
279 | | be translated. */ |
280 | | TidyDoctype, 0, |
281 | | "This option specifies the DOCTYPE declaration generated by Tidy. " |
282 | | "<br/>" |
283 | | "If set to <var>omit</var> the output won't contain a DOCTYPE " |
284 | | "declaration. Note this this also implies <code>numeric-entities</code> is " |
285 | | "set to <var>yes</var>." |
286 | | "<br/>" |
287 | | "If set to <var>html5</var> the DOCTYPE is set to " |
288 | | "<code><!DOCTYPE html></code>." |
289 | | "<br/>" |
290 | | "If set to <var>auto</var> (the default) Tidy will use an educated guess " |
291 | | "based upon the contents of the document. Note that selecting this option " |
292 | | "will <em>not</em> change the current document's DOCTYPE on output. " |
293 | | "<br/>" |
294 | | "If set to <var>strict</var>, Tidy will set the DOCTYPE to the HTML4 or " |
295 | | "XHTML1 strict DTD." |
296 | | "<br/>" |
297 | | "If set to <var>loose</var>, the DOCTYPE is set to the HTML4 or XHTML1 " |
298 | | "loose (transitional) DTD." |
299 | | "<br/>" |
300 | | "Alternatively, you can supply a string for the formal public identifier " |
301 | | "(FPI)." |
302 | | "<br/>" |
303 | | "For example: " |
304 | | "<br/>" |
305 | | "<code>doctype: \"-//ACME//DTD HTML 3.14159//EN\"</code>" |
306 | | "<br/>" |
307 | | "If you specify the FPI for an XHTML document, Tidy will set the " |
308 | | "system identifier to an empty string. For an HTML document, Tidy adds a " |
309 | | "system identifier only if one was already present in order to preserve " |
310 | | "the processing mode of some browsers. Tidy leaves the DOCTYPE for " |
311 | | "generic XML documents unchanged. " |
312 | | "<br/>" |
313 | | "This option does not offer a validation of document conformance. " |
314 | | }, |
315 | | {/* Important notes for translators: |
316 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
317 | | <br/>. |
318 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
319 | | - Option values should be enclosed in <var></var>. |
320 | | - It's very important that <br/> be self-closing! |
321 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
322 | | be translated. */ |
323 | | TidyDropEmptyElems, 0, |
324 | | "This option specifies if Tidy should discard empty elements. " |
325 | | }, |
326 | | {/* Important notes for translators: |
327 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
328 | | <br/>. |
329 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
330 | | - Option values should be enclosed in <var></var>. |
331 | | - It's very important that <br/> be self-closing! |
332 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
333 | | be translated. */ |
334 | | TidyDropEmptyParas, 0, |
335 | | "This option specifies if Tidy should discard empty paragraphs. " |
336 | | }, |
337 | | {/* Important notes for translators: |
338 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
339 | | <br/>. |
340 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
341 | | - Option values should be enclosed in <var></var>. |
342 | | - It's very important that <br/> be self-closing! |
343 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
344 | | be translated. */ |
345 | | TidyDropPropAttrs, 0, |
346 | | "This option specifies if Tidy should strip out proprietary attributes, " |
347 | | "such as Microsoft data binding attributes. Additionally attributes " |
348 | | "that aren't permitted in the output version of HTML will be dropped " |
349 | | "if used with <code>strict-tags-attributes</code>. " |
350 | | }, |
351 | | {/* Important notes for translators: |
352 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
353 | | <br/>. |
354 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
355 | | - Option values should be enclosed in <var></var>. |
356 | | - It's very important that <br/> be self-closing! |
357 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
358 | | be translated. */ |
359 | | TidyDuplicateAttrs, 0, |
360 | | "This option specifies if Tidy should keep the first or last attribute, if " |
361 | | "an attribute is repeated, e.g. has two <code>align</code> attributes. " |
362 | | }, |
363 | | {/* Important notes for translators: |
364 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
365 | | <br/>. |
366 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
367 | | - Option values should be enclosed in <var></var>. |
368 | | - It's very important that <br/> be self-closing! |
369 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
370 | | be translated. */ |
371 | | TidyEmacs, 0, |
372 | | "This option specifies that Tidy should change the format for reporting " |
373 | | "errors and warnings to a format that is more easily parsed by GNU Emacs " |
374 | | "or some other program. It changes them from the default " |
375 | | "<br/>" |
376 | | " line <line number> column <column number> - (Error|Warning): <message> " |
377 | | "<br/>" |
378 | | "to a form which includes the input filename: " |
379 | | "<br/>" |
380 | | " <filename>:<line number>:<column number>: (Error|Warning): <message> " |
381 | | }, |
382 | | {/* Important notes for translators: |
383 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
384 | | <br/>. |
385 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
386 | | - Option values should be enclosed in <var></var>. |
387 | | - It's very important that <br/> be self-closing! |
388 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
389 | | be translated. */ |
390 | | TidyEmptyTags, 0, |
391 | | "This option specifies new empty inline tags. This option takes a space " |
392 | | "or comma separated list of tag names. " |
393 | | "<br/>" |
394 | | "Unless you declare new tags, Tidy will refuse to generate a tidied file if " |
395 | | "the input includes previously unknown tags. " |
396 | | "<br/>" |
397 | | "Remember to also declare empty tags as either inline or blocklevel. " |
398 | | "<br/>" |
399 | | "This option is ignored in XML mode. " |
400 | | }, |
401 | | {/* Important notes for translators: |
402 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
403 | | <br/>. |
404 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
405 | | - Option values should be enclosed in <var></var>. |
406 | | - It's very important that <br/> be self-closing! |
407 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
408 | | be translated. */ |
409 | | TidyEncloseBlockText, 0, |
410 | | "This option specifies if Tidy should insert a <code><p></code> " |
411 | | "element to enclose any text it finds in any element that allows mixed " |
412 | | "content for HTML transitional but not HTML strict. " |
413 | | }, |
414 | | {/* Important notes for translators: |
415 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
416 | | <br/>. |
417 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
418 | | - Option values should be enclosed in <var></var>. |
419 | | - It's very important that <br/> be self-closing! |
420 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
421 | | be translated. */ |
422 | | TidyEncloseBodyText, 0, |
423 | | "This option specifies if Tidy should enclose any text it finds in the " |
424 | | "body element within a <code><p></code> element." |
425 | | "<br/>" |
426 | | "This is useful when you want to take existing HTML and use it with a " |
427 | | "style sheet. " |
428 | | }, |
429 | | {/* Important notes for translators: |
430 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
431 | | <br/>. |
432 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
433 | | - Option values should be enclosed in <var></var>. |
434 | | - It's very important that <br/> be self-closing! |
435 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
436 | | be translated. */ |
437 | | TidyErrFile, 0, |
438 | | "This option specifies the error file Tidy uses for errors and warnings. " |
439 | | "Normally errors and warnings are output to <code>stderr</code>. " |
440 | | }, |
441 | | {/* Important notes for translators: |
442 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
443 | | <br/>. |
444 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
445 | | - Option values should be enclosed in <var></var>. |
446 | | - It's very important that <br/> be self-closing! |
447 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
448 | | be translated. */ |
449 | | TidyEscapeCdata, 0, |
450 | | "This option specifies if Tidy should convert " |
451 | | "<code><![CDATA[]]></code> sections to normal text. " |
452 | | }, |
453 | | {/* Important notes for translators: |
454 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
455 | | <br/>. |
456 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
457 | | - Option values should be enclosed in <var></var>. |
458 | | - It's very important that <br/> be self-closing! |
459 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
460 | | be translated. */ |
461 | | TidyEscapeScripts, 0, |
462 | | "This option causes items that look like closing tags, like " |
463 | | "<code></g</code> to be escaped to <code><\\/g</code>. Set " |
464 | | "this option to <var>no</var> if you do not want this." |
465 | | }, |
466 | | {/* Important notes for translators: |
467 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
468 | | <br/>. |
469 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
470 | | - Option values should be enclosed in <var></var>. |
471 | | - It's very important that <br/> be self-closing! |
472 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
473 | | be translated. */ |
474 | | TidyFixBackslash, 0, |
475 | | "This option specifies if Tidy should replace backslash characters " |
476 | | "<code>\\</code> in URLs with forward slashes <code>/</code>. " |
477 | | }, |
478 | | {/* Important notes for translators: |
479 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
480 | | <br/>. |
481 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
482 | | - Option values should be enclosed in <var></var>. |
483 | | - It's very important that <br/> be self-closing! |
484 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
485 | | be translated. */ |
486 | | TidyFixComments, 0, |
487 | | "This option specifies if Tidy should replace unexpected hyphens with " |
488 | | "<code>=</code> characters when it comes across adjacent hyphens. " |
489 | | "<br/>" |
490 | | "The default is <var>auto</var> will which will act as <var>no</var> " |
491 | | "for HTML5 document types, and <var>yes</var> for all other document " |
492 | | "types. " |
493 | | "<br/>" |
494 | | "HTML has abandoned SGML comment syntax, and allows adjacent hyphens " |
495 | | "for all versions of HTML, although XML and XHTML do not. If you plan " |
496 | | "to support older browsers that require SGML comment syntax, then " |
497 | | "consider setting this value to <var>yes</var>." |
498 | | }, |
499 | | {/* Important notes for translators: |
500 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
501 | | <br/>. |
502 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
503 | | - Option values should be enclosed in <var></var>. |
504 | | - It's very important that <br/> be self-closing! |
505 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
506 | | be translated. */ |
507 | | TidyFixUri, 0, |
508 | | "This option specifies if Tidy should check attribute values that carry " |
509 | | "URIs for illegal characters and if such are found, escape them as HTML4 " |
510 | | "recommends. " |
511 | | }, |
512 | | {/* Important notes for translators: |
513 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
514 | | <br/>. |
515 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
516 | | - Option values should be enclosed in <var></var>. |
517 | | - It's very important that <br/> be self-closing! |
518 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
519 | | be translated. */ |
520 | | TidyForceOutput, 0, |
521 | | "This option specifies if Tidy should produce output even if errors are " |
522 | | "encountered. " |
523 | | "<br/>" |
524 | | "Use this option with care; if Tidy reports an error, this " |
525 | | "means Tidy was not able to (or is not sure how to) fix the error, so the " |
526 | | "resulting output may not reflect your intention. " |
527 | | }, |
528 | | {/* Important notes for translators: |
529 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
530 | | <br/>. |
531 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
532 | | - Option values should be enclosed in <var></var>. |
533 | | - It's very important that <br/> be self-closing! |
534 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
535 | | be translated. */ |
536 | | TidyGDocClean, 0, |
537 | | "This option specifies if Tidy should enable specific behavior for " |
538 | | "cleaning up HTML exported from Google Docs. " |
539 | | }, |
540 | | {/* Important notes for translators: |
541 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
542 | | <br/>. |
543 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
544 | | - Option values should be enclosed in <var></var>. |
545 | | - It's very important that <br/> be self-closing! |
546 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
547 | | be translated. */ |
548 | | TidyHideComments, 0, |
549 | | "This option specifies if Tidy should not print out comments. " |
550 | | }, |
551 | | {/* Important notes for translators: |
552 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
553 | | <br/>. |
554 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
555 | | - Option values should be enclosed in <var></var>. |
556 | | - It's very important that <br/> be self-closing! |
557 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
558 | | be translated. */ |
559 | | TidyHtmlOut, 0, |
560 | | "This option specifies if Tidy should generate pretty printed output, " |
561 | | "writing it as HTML. " |
562 | | }, |
563 | | {/* Important notes for translators: |
564 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
565 | | <br/>. |
566 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
567 | | - Option values should be enclosed in <var></var>. |
568 | | - It's very important that <br/> be self-closing! |
569 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
570 | | be translated. */ |
571 | | TidyInCharEncoding, 0, |
572 | | "This option specifies the character encoding Tidy uses for input. " |
573 | | "Tidy makes certain assumptions about some of the input encodings. " |
574 | | "<br/>" |
575 | | "For <var>ascii</var>, Tidy will accept Latin-1 (ISO-8859-1) character " |
576 | | "values and convert them to entities as necessary. " |
577 | | "<br/>" |
578 | | "For <var>raw</var>, Tidy will make no assumptions about the character " |
579 | | "values and will pass them unchanged to output. " |
580 | | "<br/>" |
581 | | "For <var>mac</var> and <var>win1252</var>, vendor specific characters " |
582 | | "values will be accepted and converted to entities as necessary. " |
583 | | "<br/>" |
584 | | "Asian encodings such as <var>iso2022</var> will be handled " |
585 | | "appropriately assuming the corresponding <code>output-encoding</code> " |
586 | | "is also specified. " |
587 | | "<br/>" |
588 | | "Tidy is not an encoding converter. Although the Latin and UTF " |
589 | | "encodings can be mixed freely, it is not possible to convert Asian " |
590 | | "encodings to Latin encodings with Tidy. " |
591 | | }, |
592 | | {/* Important notes for translators: |
593 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
594 | | <br/>. |
595 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
596 | | - Option values should be enclosed in <var></var>. |
597 | | - It's very important that <br/> be self-closing! |
598 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
599 | | be translated. */ |
600 | | TidyIndentAttributes, 0, |
601 | | "This option specifies if Tidy should begin each attribute on a new line. " |
602 | | }, |
603 | | {/* Important notes for translators: |
604 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
605 | | <br/>. |
606 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
607 | | - Option values should be enclosed in <var></var>. |
608 | | - It's very important that <br/> be self-closing! |
609 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
610 | | be translated. */ |
611 | | TidyIndentCdata, 0, |
612 | | "This option specifies if Tidy should indent " |
613 | | "<code><![CDATA[]]></code> sections. " |
614 | | }, |
615 | | {/* Important notes for translators: |
616 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
617 | | <br/>. |
618 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
619 | | - Option values should be enclosed in <var></var>. |
620 | | - It's very important that <br/> be self-closing! |
621 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
622 | | be translated. */ |
623 | | TidyIndentContent, 0, |
624 | | "This option specifies if Tidy should indent block-level tags. " |
625 | | "<br/>" |
626 | | "If set to <var>auto</var> Tidy will decide whether or not to indent the " |
627 | | "content of tags such as <code><title></code>, " |
628 | | "<code><h1></code>-<code><h6></code>, <code><li></code>, " |
629 | | "<code><td></code>, or <code><p></code> " |
630 | | "based on the content including a block-level element. " |
631 | | "<br/>" |
632 | | "Setting <code>indent</code> to <var>yes</var> can expose layout bugs in " |
633 | | "some browsers. " |
634 | | "<br/>" |
635 | | "Use the option <code>indent-spaces</code> to control the number of spaces " |
636 | | "or tabs output per level of indent, and <code>indent-with-tabs</code> to " |
637 | | "specify whether spaces or tabs are used. " |
638 | | }, |
639 | | {/* Important notes for translators: |
640 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
641 | | <br/>. |
642 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
643 | | - Option values should be enclosed in <var></var>. |
644 | | - It's very important that <br/> be self-closing! |
645 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
646 | | be translated. */ |
647 | | TidyIndentSpaces, 0, |
648 | | "This option specifies the number of spaces or tabs that Tidy uses to " |
649 | | "indent content when <code>indent</code> is enabled. " |
650 | | "<br/>" |
651 | | "Note that the default value for this option is dependent upon the value of " |
652 | | "<code>indent-with-tabs</code> (see also). " |
653 | | }, |
654 | | {/* Important notes for translators: |
655 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
656 | | <br/>. |
657 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
658 | | - Option values should be enclosed in <var></var>. |
659 | | - It's very important that <br/> be self-closing! |
660 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
661 | | be translated. */ |
662 | | TidyInlineTags, 0, |
663 | | "This option specifies new non-empty inline tags. This option takes a " |
664 | | "space or comma separated list of tag names. " |
665 | | "<br/>" |
666 | | "Unless you declare new tags, Tidy will refuse to generate a tidied file if " |
667 | | "the input includes previously unknown tags. " |
668 | | "<br/>" |
669 | | "This option is ignored in XML mode. " |
670 | | }, |
671 | | {/* Important notes for translators: |
672 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
673 | | <br/>. |
674 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
675 | | - Option values should be enclosed in <var></var>. |
676 | | - It's very important that <br/> be self-closing! |
677 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
678 | | be translated. */ |
679 | | TidyJoinClasses, 0, |
680 | | "This option specifies if Tidy should combine class names to generate " |
681 | | "a single, new class name if multiple class assignments are detected on " |
682 | | "an element. " |
683 | | }, |
684 | | {/* Important notes for translators: |
685 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
686 | | <br/>. |
687 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
688 | | - Option values should be enclosed in <var></var>. |
689 | | - It's very important that <br/> be self-closing! |
690 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
691 | | be translated. */ |
692 | | TidyJoinStyles, 0, |
693 | | "This option specifies if Tidy should combine styles to generate a single, " |
694 | | "new style if multiple style values are detected on an element. " |
695 | | }, |
696 | | {/* Important notes for translators: |
697 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
698 | | <br/>. |
699 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
700 | | - Option values should be enclosed in <var></var>. |
701 | | - It's very important that <br/> be self-closing! |
702 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
703 | | be translated. */ |
704 | | TidyKeepFileTimes, 0, |
705 | | "This option specifies if Tidy should keep the original modification time " |
706 | | "of files that Tidy modifies in place. " |
707 | | "<br/>" |
708 | | "Setting the option to <var>yes</var> allows you to tidy files without " |
709 | | "changing the file modification date, which may be useful with certain " |
710 | | "tools that use the modification date for things such as automatic server " |
711 | | "deployment." |
712 | | "<br/>" |
713 | | "Note this feature is not supported on some platforms. " |
714 | | }, |
715 | | {/* Important notes for translators: |
716 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
717 | | <br/>. |
718 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
719 | | - Option values should be enclosed in <var></var>. |
720 | | - It's very important that <br/> be self-closing! |
721 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
722 | | be translated. */ |
723 | | TidyKeepTabs, 0, |
724 | | "With the default <var>no</var> Tidy will replace all source tabs with spaces, " |
725 | | "controlled by the option <code>tab-size</code>, and the current line offset. " |
726 | | "Of course, except in the special blocks/elements enumerated below, this will later " |
727 | | "be reduced to just one space. " |
728 | | "<br/>" |
729 | | "If set <var>yes</var> this option specifies Tidy should keep certain tabs " |
730 | | "found in the source, but only " |
731 | | "in preformatted blocks like <code><pre></code>, and other CDATA elements like " |
732 | | "<code><script></code>, <code><style></code>, and other pseudo elements like " |
733 | | "<code><?php ... ?></code>. As always, all other tabs, or sequences of tabs, in " |
734 | | "the source will continue to be replaced with a space. " |
735 | | }, |
736 | | {/* Important notes for translators: |
737 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
738 | | <br/>. |
739 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
740 | | - Option values should be enclosed in <var></var>. |
741 | | - It's very important that <br/> be self-closing! |
742 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
743 | | be translated. */ |
744 | | TidyLiteralAttribs, 0, |
745 | | "This option specifies how Tidy deals with whitespace characters within " |
746 | | "attribute values. " |
747 | | "<br/>" |
748 | | "If the value is <var>no</var> Tidy normalizes attribute values by " |
749 | | "replacing any newline or tab with a single space, and further by replacing " |
750 | | "any contiguous whitespace with a single space. " |
751 | | "<br/>" |
752 | | "To force Tidy to preserve the original, literal values of all attributes " |
753 | | "and ensure that whitespace within attribute values is passed " |
754 | | "through unchanged, set this option to <var>yes</var>. " |
755 | | }, |
756 | | {/* Important notes for translators: |
757 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
758 | | <br/>. |
759 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
760 | | - Option values should be enclosed in <var></var>. |
761 | | - It's very important that <br/> be self-closing! |
762 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
763 | | be translated. */ |
764 | | TidyLogicalEmphasis, 0, |
765 | | "This option specifies if Tidy should replace any occurrence of " |
766 | | "<code><i></code> with <code><em></code> and any occurrence of " |
767 | | "<code><b></code> with <code><strong></code>. Any attributes " |
768 | | "are preserved unchanged. " |
769 | | "<br/>" |
770 | | "This option can be set independently of the <code>clean</code> option. " |
771 | | }, |
772 | | {/* Important notes for translators: |
773 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
774 | | <br/>. |
775 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
776 | | - Option values should be enclosed in <var></var>. |
777 | | - It's very important that <br/> be self-closing! |
778 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
779 | | be translated. */ |
780 | | TidyLowerLiterals, 0, |
781 | | "This option specifies if Tidy should convert the value of an attribute " |
782 | | "that takes a list of predefined values to lower case. " |
783 | | "<br/>" |
784 | | "This is required for XHTML documents. " |
785 | | }, |
786 | | {/* Important notes for translators: |
787 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
788 | | <br/>. |
789 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
790 | | - Option values should be enclosed in <var></var>. |
791 | | - It's very important that <br/> be self-closing! |
792 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
793 | | be translated. */ |
794 | | TidyMakeBare, 0, |
795 | | "This option specifies if Tidy should replace smart quotes and em dashes with " |
796 | | "ASCII, and output spaces rather than non-breaking " |
797 | | "spaces, where they exist in the input. " |
798 | | }, |
799 | | {/* Important notes for translators: |
800 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
801 | | <br/>. |
802 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
803 | | - Option values should be enclosed in <var></var>. |
804 | | - It's very important that <br/> be self-closing! |
805 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
806 | | be translated. */ |
807 | | TidyMakeClean, 0, |
808 | | "This option specifies if Tidy should perform cleaning of some legacy " |
809 | | "presentational tags (currently <code><i></code>, " |
810 | | "<code><b></code>, <code><center></code> when enclosed " |
811 | | "within appropriate inline tags, and <code><font></code>). If " |
812 | | "set to <var>yes</var>, then the legacy tags will be replaced with CSS " |
813 | | "<code><style></code> tags and structural markup as appropriate. " |
814 | | }, |
815 | | {/* Important notes for translators: |
816 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
817 | | <br/>. |
818 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
819 | | - Option values should be enclosed in <var></var>. |
820 | | - It's very important that <br/> be self-closing! |
821 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
822 | | be translated. */ |
823 | | TidyMark, 0, |
824 | | "This option specifies if Tidy should add a <code>meta</code> element to " |
825 | | "the document head to indicate that the document has been tidied. " |
826 | | "<br/>" |
827 | | "Tidy won't add a meta element if one is already present. " |
828 | | }, |
829 | | {/* Important notes for translators: |
830 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
831 | | <br/>. |
832 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
833 | | - Option values should be enclosed in <var></var>. |
834 | | - It's very important that <br/> be self-closing! |
835 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
836 | | be translated. */ |
837 | | TidyMergeDivs, 0, |
838 | | "This option can be used to modify the behavior of <code>clean</code> when " |
839 | | "set to <var>yes</var>." |
840 | | "<br/>" |
841 | | "This option specifies if Tidy should merge nested <code><div></code> " |
842 | | "such as <code><div><div>...</div></div></code>. " |
843 | | "<br/>" |
844 | | "If set to <var>auto</var> the attributes of the inner " |
845 | | "<code><div></code> are moved to the outer one. Nested " |
846 | | "<code><div></code> with <code>id</code> attributes are <em>not</em> " |
847 | | "merged. " |
848 | | "<br/>" |
849 | | "If set to <var>yes</var> the attributes of the inner " |
850 | | "<code><div></code> are discarded with the exception of " |
851 | | "<code>class</code> and <code>style</code>. " |
852 | | }, |
853 | | {/* Important notes for translators: |
854 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
855 | | <br/>. |
856 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
857 | | - Option values should be enclosed in <var></var>. |
858 | | - It's very important that <br/> be self-closing! |
859 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
860 | | be translated. */ |
861 | | TidyMergeEmphasis, 0, |
862 | | "This option specifies if Tidy should merge nested <code><b></code> " |
863 | | "and <code><i></code> elements; for example, for the case " |
864 | | "<br/>" |
865 | | "<code><b class=\"rtop-2\">foo <b class=\"r2-2\">bar</b> baz</b></code>, " |
866 | | "<br/>" |
867 | | "Tidy will output <code><b class=\"rtop-2\">foo bar baz</b></code>. " |
868 | | }, |
869 | | {/* Important notes for translators: |
870 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
871 | | <br/>. |
872 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
873 | | - Option values should be enclosed in <var></var>. |
874 | | - It's very important that <br/> be self-closing! |
875 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
876 | | be translated. */ |
877 | | TidyMergeSpans, 0, |
878 | | "This option can be used to modify the behavior of <code>clean</code> when " |
879 | | "set to <var>yes</var>." |
880 | | "<br/>" |
881 | | "This option specifies if Tidy should merge nested <code><span></code> " |
882 | | "such as <code><span><span>...</span></span></code>. " |
883 | | "<br/>" |
884 | | "The algorithm is identical to the one used by <code>merge-divs</code>. " |
885 | | }, |
886 | | {/* Important notes for translators: |
887 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
888 | | <br/>. |
889 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
890 | | - Option values should be enclosed in <var></var>. |
891 | | - It's very important that <br/> be self-closing! |
892 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
893 | | be translated. */ |
894 | | TidyNCR, 0, |
895 | | "This option specifies if Tidy should allow numeric character references. " |
896 | | }, |
897 | | {/* Important notes for translators: |
898 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
899 | | <br/>. |
900 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
901 | | - Option values should be enclosed in <var></var>. |
902 | | - It's very important that <br/> be self-closing! |
903 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
904 | | be translated. */ |
905 | | TidyNewline, 0, |
906 | | "The default is appropriate to the current platform. " |
907 | | "<br/>" |
908 | | "Generally <var>CRLF</var> on PC-DOS, Windows and OS/2; <var>CR</var> " |
909 | | "on Classic Mac OS; and <var>LF</var> everywhere else (Linux, macOS, " |
910 | | "and Unix). " |
911 | | }, |
912 | | {/* Important notes for translators: |
913 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
914 | | <br/>. |
915 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
916 | | - Option values should be enclosed in <var></var>. |
917 | | - It's very important that <br/> be self-closing! |
918 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
919 | | be translated. */ |
920 | | TidyNumEntities, 0, |
921 | | "This option specifies if Tidy should output entities other than the " |
922 | | "built-in HTML entities (<code>&amp;</code>, <code>&lt;</code>, " |
923 | | "<code>&gt;</code>, and <code>&quot;</code>) in the numeric rather " |
924 | | "than the named entity form. " |
925 | | "<br/>" |
926 | | "Only entities compatible with the DOCTYPE declaration generated are used. " |
927 | | "<br/>" |
928 | | "Entities that can be represented in the output encoding are translated " |
929 | | "correspondingly. " |
930 | | }, |
931 | | {/* Important notes for translators: |
932 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
933 | | <br/>. |
934 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
935 | | - Option values should be enclosed in <var></var>. |
936 | | - It's very important that <br/> be self-closing! |
937 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
938 | | be translated. */ |
939 | | TidyOmitOptionalTags, 0, |
940 | | "This option specifies if Tidy should omit optional start tags and end tags " |
941 | | "when generating output. " |
942 | | "<br/>" |
943 | | "Setting this option causes all tags for the <code><html></code>, " |
944 | | "<code><head></code>, and <code><body></code> elements to be " |
945 | | "omitted from output, as well as such end tags as <code></p></code>, " |
946 | | "<code></li></code>, <code></dt></code>, " |
947 | | "<code></dd></code>, <code></option></code>, " |
948 | | "<code></tr></code>, <code></td></code>, and " |
949 | | "<code></th></code>. " |
950 | | "<br/>" |
951 | | "This option is ignored for XML output. " |
952 | | }, |
953 | | {/* Important notes for translators: |
954 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
955 | | <br/>. |
956 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
957 | | - Option values should be enclosed in <var></var>. |
958 | | - It's very important that <br/> be self-closing! |
959 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
960 | | be translated. */ |
961 | | TidyOutCharEncoding, 0, |
962 | | "This option specifies the character encoding Tidy uses for " |
963 | | "output. Some of the output encodings affect whether or not " |
964 | | "some characters are translated to entities, although in all " |
965 | | "cases, some entities will be written according to other Tidy " |
966 | | "configuration options. " |
967 | | "<br/>" |
968 | | "For <var>ascii</var>, <var>mac</var>, and <var>win1252</var> " |
969 | | "output encodings, entities will be used for all characters " |
970 | | "with values over 127. " |
971 | | "<br/>" |
972 | | "For <var>raw</var> output, Tidy will write values above 127 " |
973 | | "without translating them to entities. " |
974 | | "<br/>" |
975 | | "Output using <var>latin1</var> will cause Tidy to write " |
976 | | "character values higher than 255 as entities. " |
977 | | "<br/>" |
978 | | "The UTF family such as <var>utf8</var> will write output " |
979 | | "in the respective UTF encoding. " |
980 | | "<br/>" |
981 | | "Asian output encodings such as <var>iso2022</var> will write " |
982 | | "output in the specified encoding, assuming a corresponding " |
983 | | "<code>input-encoding</code> was specified. " |
984 | | "<br/>" |
985 | | "Tidy is not an encoding converter. Although the Latin and UTF " |
986 | | "encodings can be mixed freely, it is not possible to convert Asian " |
987 | | "encodings to Latin encodings with Tidy. " |
988 | | }, |
989 | | {/* Important notes for translators: |
990 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
991 | | <br/>. |
992 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
993 | | - Option values should be enclosed in <var></var>. |
994 | | - It's very important that <br/> be self-closing! |
995 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
996 | | be translated. */ |
997 | | TidyOutFile, 0, |
998 | | "This option specifies the output file Tidy uses for markup. Normally " |
999 | | "markup is written to <code>stdout</code>. " |
1000 | | }, |
1001 | | {/* Important notes for translators: |
1002 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1003 | | <br/>. |
1004 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1005 | | - Option values should be enclosed in <var></var>. |
1006 | | - It's very important that <br/> be self-closing! |
1007 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1008 | | be translated. */ |
1009 | | TidyOutputBOM, 0, |
1010 | | "This option specifies if Tidy should write a Unicode Byte Order Mark " |
1011 | | "character (BOM; also known as Zero Width No-Break Space; has value of " |
1012 | | "U+FEFF) to the beginning of the output, and only applies to UTF-8 and " |
1013 | | "UTF-16 output encodings. " |
1014 | | "<br/>" |
1015 | | "If set to <var>auto</var> this option causes Tidy to write a BOM to " |
1016 | | "the output only if a BOM was present at the beginning of the input. " |
1017 | | "<br/>" |
1018 | | "A BOM is always written for XML/XHTML output using UTF-16 output " |
1019 | | "encodings. " |
1020 | | }, |
1021 | | {/* Important notes for translators: |
1022 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1023 | | <br/>. |
1024 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1025 | | - Option values should be enclosed in <var></var>. |
1026 | | - It's very important that <br/> be self-closing! |
1027 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1028 | | be translated. */ |
1029 | | TidyPPrintTabs, 0, |
1030 | | "This option specifies if Tidy should indent with tabs instead of spaces, " |
1031 | | "assuming <code>indent</code> is <var>yes</var>. " |
1032 | | "<br/>" |
1033 | | "Set it to <var>yes</var> to indent using tabs instead of the default " |
1034 | | "spaces. " |
1035 | | "<br/>" |
1036 | | "Use the option <code>indent-spaces</code> to control the number of tabs " |
1037 | | "output per level of indent. Note that when <code>indent-with-tabs</code> " |
1038 | | "is enabled the default value of <code>indent-spaces</code> is reset to " |
1039 | | "<var>1</var>. " |
1040 | | "<br/>" |
1041 | | "Note <code>tab-size</code> controls converting input tabs to spaces. Set " |
1042 | | "it to zero to retain input tabs. " |
1043 | | }, |
1044 | | {/* Important notes for translators: |
1045 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1046 | | <br/>. |
1047 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1048 | | - Option values should be enclosed in <var></var>. |
1049 | | - It's very important that <br/> be self-closing! |
1050 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1051 | | be translated. */ |
1052 | | TidyPreserveEntities, 0, |
1053 | | "This option specifies if Tidy should preserve well-formed entities " |
1054 | | "as found in the input. " |
1055 | | }, |
1056 | | {/* Important notes for translators: |
1057 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1058 | | <br/>. |
1059 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1060 | | - Option values should be enclosed in <var></var>. |
1061 | | - It's very important that <br/> be self-closing! |
1062 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1063 | | be translated. */ |
1064 | | TidyPreTags, 0, |
1065 | | "This option specifies new tags that are to be processed in exactly the " |
1066 | | "same way as HTML's <code><pre></code> element. This option takes a " |
1067 | | "space or comma separated list of tag names. " |
1068 | | "<br/>" |
1069 | | "Unless you declare new tags, Tidy will refuse to generate a tidied file if " |
1070 | | "the input includes previously unknown tags. " |
1071 | | "<br/>" |
1072 | | "Note you cannot as yet add new CDATA elements. " |
1073 | | "<br/>" |
1074 | | "This option is ignored in XML mode. " |
1075 | | }, |
1076 | | {/* Important notes for translators: |
1077 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1078 | | <br/>. |
1079 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1080 | | - Option values should be enclosed in <var></var>. |
1081 | | - It's very important that <br/> be self-closing! |
1082 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1083 | | be translated. */ |
1084 | | TidyPriorityAttributes, 0, |
1085 | | "This option allows prioritizing the writing of attributes in tidied " |
1086 | | "documents, allowing them to written before the other attributes of an " |
1087 | | "element. For example, you might specify that <strong>id</strong> and " |
1088 | | "<strong>name</strong> are written before every other attribute. " |
1089 | | "<br/>" |
1090 | | "This option takes a space or comma separated list of attribute names. " |
1091 | | }, |
1092 | | {/* Important notes for translators: |
1093 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1094 | | <br/>. |
1095 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1096 | | - Option values should be enclosed in <var></var>. |
1097 | | - It's very important that <br/> be self-closing! |
1098 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1099 | | be translated. */ |
1100 | | TidyPunctWrap, 0, |
1101 | | "This option specifies if Tidy should line wrap after some Unicode or " |
1102 | | "Chinese punctuation characters. " |
1103 | | }, |
1104 | | {/* Important notes for translators: |
1105 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1106 | | <br/>. |
1107 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1108 | | - Option values should be enclosed in <var></var>. |
1109 | | - It's very important that <br/> be self-closing! |
1110 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1111 | | be translated. */ |
1112 | | TidyQuiet, 0, |
1113 | | "When enabled, this option limits Tidy's non-document output to report " |
1114 | | "only document warnings and errors. " |
1115 | | }, |
1116 | | {/* Important notes for translators: |
1117 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1118 | | <br/>. |
1119 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1120 | | - Option values should be enclosed in <var></var>. |
1121 | | - It's very important that <br/> be self-closing! |
1122 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1123 | | be translated. */ |
1124 | | TidyQuoteAmpersand, 0, |
1125 | | "This option specifies if Tidy should output unadorned <code>&</code> " |
1126 | | "characters as <code>&amp;</code>, in legacy doctypes only. " |
1127 | | }, |
1128 | | {/* Important notes for translators: |
1129 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1130 | | <br/>. |
1131 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1132 | | - Option values should be enclosed in <var></var>. |
1133 | | - It's very important that <br/> be self-closing! |
1134 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1135 | | be translated. */ |
1136 | | TidyQuoteMarks, 0, |
1137 | | "This option specifies if Tidy should output <code>"</code> characters " |
1138 | | "as <code>&quot;</code> as is preferred by some editing environments. " |
1139 | | "<br/>" |
1140 | | "The apostrophe character <code>'</code> is written out as " |
1141 | | "<code>&#39;</code> since many web browsers don't yet support " |
1142 | | "<code>&apos;</code>. " |
1143 | | }, |
1144 | | {/* Important notes for translators: |
1145 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1146 | | <br/>. |
1147 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1148 | | - Option values should be enclosed in <var></var>. |
1149 | | - It's very important that <br/> be self-closing! |
1150 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1151 | | be translated. */ |
1152 | | TidyQuoteNbsp, 0, |
1153 | | "This option specifies if Tidy should output non-breaking space characters " |
1154 | | "as entities, rather than as the Unicode character value 160 (decimal). " |
1155 | | }, |
1156 | | {/* Important notes for translators: |
1157 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1158 | | <br/>. |
1159 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1160 | | - Option values should be enclosed in <var></var>. |
1161 | | - It's very important that <br/> be self-closing! |
1162 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1163 | | be translated. */ |
1164 | | TidyReplaceColor, 0, |
1165 | | "This option specifies if Tidy should replace numeric values in color " |
1166 | | "attributes with HTML/XHTML color names where defined, e.g. replace " |
1167 | | "<code>#ffffff</code> with <code>white</code>. " |
1168 | | }, |
1169 | | {/* Important notes for translators: |
1170 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1171 | | <br/>. |
1172 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1173 | | - Option values should be enclosed in <var></var>. |
1174 | | - It's very important that <br/> be self-closing! |
1175 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1176 | | be translated. */ |
1177 | | TidyShowErrors, 0, |
1178 | | "This option specifies the number Tidy uses to determine if further errors " |
1179 | | "should be shown. If set to <var>0</var>, then no errors are shown. " |
1180 | | }, |
1181 | | {/* Important notes for translators: |
1182 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1183 | | <br/>. |
1184 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1185 | | - Option values should be enclosed in <var></var>. |
1186 | | - It's very important that <br/> be self-closing! |
1187 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1188 | | be translated. */ |
1189 | | TidyShowFilename, 0, |
1190 | | "This option specifies if Tidy should show the filename in messages. eg: " |
1191 | | "<br/>" |
1192 | | " tidy -q -e --show-filename yes index.html<br/>" |
1193 | | " index.html: line 43 column 3 - Warning: replacing invalid UTF-8 bytes (char. code U+00A9) " |
1194 | | }, |
1195 | | |
1196 | | {/* Important notes for translators: |
1197 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1198 | | <br/>. |
1199 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1200 | | - Option values should be enclosed in <var></var>. |
1201 | | - It's very important that <br/> be self-closing! |
1202 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1203 | | be translated. */ |
1204 | | TidyShowInfo, 0, |
1205 | | "This option specifies if Tidy should display info-level messages. " |
1206 | | }, |
1207 | | {/* Important notes for translators: |
1208 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1209 | | <br/>. |
1210 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1211 | | - Option values should be enclosed in <var></var>. |
1212 | | - It's very important that <br/> be self-closing! |
1213 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1214 | | be translated. */ |
1215 | | TidyShowMarkup, 0, |
1216 | | "This option specifies if Tidy should generate a pretty printed version " |
1217 | | "of the markup. Note that Tidy won't generate a pretty printed version if " |
1218 | | "it finds significant errors (see <code>force-output</code>). " |
1219 | | }, |
1220 | | {/* Important notes for translators: |
1221 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1222 | | <br/>. |
1223 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1224 | | - Option values should be enclosed in <var></var>. |
1225 | | - It's very important that <br/> be self-closing! |
1226 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1227 | | be translated. */ |
1228 | | TidyShowWarnings, 0, |
1229 | | "This option specifies if Tidy should suppress warnings. This can be " |
1230 | | "useful when a few errors are hidden in a flurry of warnings. " |
1231 | | }, |
1232 | | {/* Important notes for translators: |
1233 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1234 | | <br/>. |
1235 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1236 | | - Option values should be enclosed in <var></var>. |
1237 | | - It's very important that <br/> be self-closing! |
1238 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1239 | | be translated. */ |
1240 | | TidySkipNested, 0, |
1241 | | "This option specifies that Tidy should skip nested tags when parsing " |
1242 | | "script and style data. " |
1243 | | }, |
1244 | | {/* Important notes for translators: |
1245 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1246 | | <br/>. |
1247 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1248 | | - Option values should be enclosed in <var></var>. |
1249 | | - It's very important that <br/> be self-closing! |
1250 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1251 | | be translated. */ |
1252 | | TidySortAttributes, 0, |
1253 | | "This option specifies that Tidy should sort attributes within an element " |
1254 | | "using the specified sort algorithm. If set to <var>alpha</var>, the " |
1255 | | "algorithm is an ascending alphabetic sort. " |
1256 | | "<br/>" |
1257 | | "When used while sorting with <code>priority-attributes</code>, any " |
1258 | | "attribute sorting will take place after the priority attributes have " |
1259 | | "been output. " |
1260 | | }, |
1261 | | {/* Important notes for translators: |
1262 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1263 | | <br/>. |
1264 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1265 | | - Option values should be enclosed in <var></var>. |
1266 | | - It's very important that <br/> be self-closing! |
1267 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1268 | | be translated. */ |
1269 | | TidyMuteReports, 0, |
1270 | | "Use this option to prevent Tidy from displaying certain types of " |
1271 | | "report output, for example, for conditions that you wish to ignore. " |
1272 | | "<br/>" |
1273 | | "This option takes a list of one or more keys indicating the message " |
1274 | | "type to mute. You can discover these message keys by using the " |
1275 | | "<code>mute-id</code> configuration option and examining Tidy's " |
1276 | | "output. " |
1277 | | }, |
1278 | | {/* Important notes for translators: |
1279 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1280 | | <br/>. |
1281 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1282 | | - Option values should be enclosed in <var></var>. |
1283 | | - It's very important that <br/> be self-closing! |
1284 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1285 | | be translated. */ |
1286 | | TidyMuteShow, 0, |
1287 | | "This option indicates whether or not Tidy should display message ID's " |
1288 | | "with each of its error reports. This could be useful if you wanted to " |
1289 | | "use the <code>mute</code> configuration option in order to filter " |
1290 | | "out certain report messages. " |
1291 | | }, |
1292 | | {/* Important notes for translators: |
1293 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1294 | | <br/>. |
1295 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1296 | | - Option values should be enclosed in <var></var>. |
1297 | | - It's very important that <br/> be self-closing! |
1298 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1299 | | be translated. */ |
1300 | | TidyStrictTagsAttr, 0, |
1301 | | "This options ensures that tags and attributes are applicable for the " |
1302 | | "version of HTML that Tidy outputs. When set to <var>yes</var> and the " |
1303 | | "output document type is a strict doctype, then Tidy will report " |
1304 | | "errors. If the output document type is a loose or transitional " |
1305 | | "doctype, then Tidy will report warnings. " |
1306 | | "<br/>" |
1307 | | "Additionally if <code>drop-proprietary-attributes</code> is enabled, " |
1308 | | "then not applicable attributes will be dropped, too. " |
1309 | | "<br/>" |
1310 | | "When set to <var>no</var>, these checks are not performed. " |
1311 | | }, |
1312 | | {/* Important notes for translators: |
1313 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1314 | | <br/>. |
1315 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1316 | | - Option values should be enclosed in <var></var>. |
1317 | | - It's very important that <br/> be self-closing! |
1318 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1319 | | be translated. */ |
1320 | | TidyTabSize, 0, |
1321 | | "This option specifies the number of columns that Tidy uses between " |
1322 | | "successive tab stops. It is used to map tabs to spaces when reading the " |
1323 | | "input. " |
1324 | | }, |
1325 | | {/* Important notes for translators: |
1326 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1327 | | <br/>. |
1328 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1329 | | - Option values should be enclosed in <var></var>. |
1330 | | - It's very important that <br/> be self-closing! |
1331 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1332 | | be translated. */ |
1333 | | TidyUpperCaseAttrs, 0, |
1334 | | "This option specifies if Tidy should output attribute names in upper " |
1335 | | "case. " |
1336 | | "<br/>" |
1337 | | "When set to <var>no</var>, attribute names will be written in lower " |
1338 | | "case. Specifying <var>yes</var> will output attribute names in upper " |
1339 | | "case, and <var>preserve</var> can used to leave attribute names " |
1340 | | "untouched. " |
1341 | | "<br/>" |
1342 | | "When using XML input, the original case is always preserved. " |
1343 | | }, |
1344 | | {/* Important notes for translators: |
1345 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1346 | | <br/>. |
1347 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1348 | | - Option values should be enclosed in <var></var>. |
1349 | | - It's very important that <br/> be self-closing! |
1350 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1351 | | be translated. */ |
1352 | | TidyUpperCaseTags, 0, |
1353 | | "This option specifies if Tidy should output tag names in upper case. " |
1354 | | "<br/>" |
1355 | | "The default is <var>no</var> which results in lower case tag names, " |
1356 | | "except for XML input where the original case is preserved. " |
1357 | | }, |
1358 | | {/* Important notes for translators: |
1359 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1360 | | <br/>. |
1361 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1362 | | - Option values should be enclosed in <var></var>. |
1363 | | - It's very important that <br/> be self-closing! |
1364 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1365 | | be translated. */ |
1366 | | TidyUseCustomTags, 0, |
1367 | | "This option enables the use of tags for autonomous custom elements, " |
1368 | | "e.g. <code><flag-icon></code> with Tidy. Custom tags are " |
1369 | | "disabled if this value is <var>no</var>. Other settings - " |
1370 | | "<var>blocklevel</var>, <var>empty</var>, <var>inline</var>, and " |
1371 | | "<var>pre</var> will treat <em>all</em> detected custom tags " |
1372 | | "accordingly. " |
1373 | | "<br/>" |
1374 | | "The use of <code>new-blocklevel-tags</code>, " |
1375 | | "<code>new-empty-tags</code>, <code>new-inline-tags</code>, or " |
1376 | | "<code>new-pre-tags</code> will override the treatment of custom tags " |
1377 | | "by this configuration option. This may be useful if you have " |
1378 | | "different types of custom tags." |
1379 | | "<br/>" |
1380 | | "When enabled these tags are determined during the processing of your " |
1381 | | "document using opening tags; matching closing tags will be recognized " |
1382 | | "accordingly, and unknown closing tags will be discarded. " |
1383 | | }, |
1384 | | {/* Important notes for translators: |
1385 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1386 | | <br/>. |
1387 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1388 | | - Option values should be enclosed in <var></var>. |
1389 | | - It's very important that <br/> be self-closing! |
1390 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1391 | | be translated. */ |
1392 | | TidyVertSpace, 0, |
1393 | | "This option specifies if Tidy should add some extra empty lines for " |
1394 | | "readability. " |
1395 | | "<br/>" |
1396 | | "The default is <var>no</var>. " |
1397 | | "<br/>" |
1398 | | "If set to <var>auto</var> Tidy will eliminate nearly all newline " |
1399 | | "characters." |
1400 | | }, |
1401 | | {/* Important notes for translators: |
1402 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1403 | | <br/>. |
1404 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1405 | | - Option values should be enclosed in <var></var>. |
1406 | | - It's very important that <br/> be self-closing! |
1407 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1408 | | be translated. */ |
1409 | | TidyWarnPropAttrs, 0, |
1410 | | "This option specifies if Tidy should warn on proprietary attributes." |
1411 | | }, |
1412 | | {/* Important notes for translators: |
1413 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1414 | | <br/>. |
1415 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1416 | | - Option values should be enclosed in <var></var>. |
1417 | | - It's very important that <br/> be self-closing! |
1418 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1419 | | be translated. */ |
1420 | | TidyWord2000, 0, |
1421 | | "This option specifies if Tidy should go to great pains to strip out " |
1422 | | "all the surplus stuff Microsoft Word 2000 inserts when you save Word " |
1423 | | "documents as \"Web pages\". It doesn't handle embedded images or VML. " |
1424 | | "<br/>" |
1425 | | "You should consider saving using Word's <strong>Save As...</strong>, " |
1426 | | "and choosing <strong>Web Page, Filtered</strong>. " |
1427 | | }, |
1428 | | {/* Important notes for translators: |
1429 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1430 | | <br/>. |
1431 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1432 | | - Option values should be enclosed in <var></var>. |
1433 | | - It's very important that <br/> be self-closing! |
1434 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1435 | | be translated. */ |
1436 | | TidyWrapAsp, 0, |
1437 | | "This option specifies if Tidy should line wrap text contained within ASP " |
1438 | | "pseudo elements, which look like: <code><% ... %></code>. " |
1439 | | }, |
1440 | | {/* Important notes for translators: |
1441 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1442 | | <br/>. |
1443 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1444 | | - Option values should be enclosed in <var></var>. |
1445 | | - It's very important that <br/> be self-closing! |
1446 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1447 | | be translated. */ |
1448 | | TidyWrapAttVals, 0, |
1449 | | "This option specifies if Tidy should line-wrap attribute values, meaning " |
1450 | | "that if the value of an attribute causes a line to exceed the width " |
1451 | | "specified by <code>wrap</code>, Tidy will add one or more line breaks to " |
1452 | | "the value, causing it to be wrapped into multiple lines. " |
1453 | | "<br/>" |
1454 | | "Note that this option can be set independently of " |
1455 | | "<code>wrap-script-literals</code>. " |
1456 | | "By default Tidy replaces any newline or tab with a single space and " |
1457 | | "replaces any sequences of whitespace with a single space. " |
1458 | | "<br/>" |
1459 | | "To force Tidy to preserve the original, literal values of all attributes, " |
1460 | | "and ensure that whitespace characters within attribute values are passed " |
1461 | | "through unchanged, set <code>literal-attributes</code> to " |
1462 | | "<var>yes</var>. " |
1463 | | }, |
1464 | | {/* Important notes for translators: |
1465 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1466 | | <br/>. |
1467 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1468 | | - Option values should be enclosed in <var></var>. |
1469 | | - It's very important that <br/> be self-closing! |
1470 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1471 | | be translated. */ |
1472 | | TidyWrapJste, 0, |
1473 | | "This option specifies if Tidy should line wrap text contained within " |
1474 | | "JSTE pseudo elements, which look like: <code><# ... #></code>. " |
1475 | | }, |
1476 | | {/* Important notes for translators: |
1477 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1478 | | <br/>. |
1479 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1480 | | - Option values should be enclosed in <var></var>. |
1481 | | - It's very important that <br/> be self-closing! |
1482 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1483 | | be translated. */ |
1484 | | TidyWrapLen, 0, |
1485 | | "This option specifies the right margin Tidy uses for line wrapping. " |
1486 | | "<br/>" |
1487 | | "Tidy tries to wrap lines so that they do not exceed this length. " |
1488 | | "<br/>" |
1489 | | "Set <code>wrap</code> to <var>0</var> (zero) if you want to disable " |
1490 | | "line wrapping. " |
1491 | | }, |
1492 | | {/* Important notes for translators: |
1493 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1494 | | <br/>. |
1495 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1496 | | - Option values should be enclosed in <var></var>. |
1497 | | - It's very important that <br/> be self-closing! |
1498 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1499 | | be translated. */ |
1500 | | TidyWrapPhp, 0, |
1501 | | "This option specifies if Tidy should add a new line after a PHP " |
1502 | | "pseudo elements, which look like: <code><?php ... ?></code>. " |
1503 | | }, |
1504 | | {/* Important notes for translators: |
1505 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1506 | | <br/>. |
1507 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1508 | | - Option values should be enclosed in <var></var>. |
1509 | | - It's very important that <br/> be self-closing! |
1510 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1511 | | be translated. */ |
1512 | | TidyWrapScriptlets, 0, |
1513 | | "This option specifies if Tidy should line wrap string literals assigned " |
1514 | | "to element event handler attributes, such as element.onmouseover()." |
1515 | | }, |
1516 | | {/* Important notes for translators: |
1517 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1518 | | <br/>. |
1519 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1520 | | - Option values should be enclosed in <var></var>. |
1521 | | - It's very important that <br/> be self-closing! |
1522 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1523 | | be translated. */ |
1524 | | TidyWrapSection, 0, |
1525 | | "This option specifies if Tidy should line wrap text contained within " |
1526 | | "<code><![ ... ]></code> section tags. " |
1527 | | }, |
1528 | | {/* Important notes for translators: |
1529 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1530 | | <br/>. |
1531 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1532 | | - Option values should be enclosed in <var></var>. |
1533 | | - It's very important that <br/> be self-closing! |
1534 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1535 | | be translated. */ |
1536 | | TidyWriteBack, 0, |
1537 | | "This option specifies if Tidy should write back the tidied markup to the " |
1538 | | "same file it read from. " |
1539 | | "<br/>" |
1540 | | "You are advised to keep copies of important files before tidying them, as " |
1541 | | "on rare occasions the result may not be what you expect. " |
1542 | | }, |
1543 | | {/* Important notes for translators: |
1544 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1545 | | <br/>. |
1546 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1547 | | - Option values should be enclosed in <var></var>. |
1548 | | - It's very important that <br/> be self-closing! |
1549 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1550 | | be translated. */ |
1551 | | TidyXhtmlOut, 0, |
1552 | | "This option specifies if Tidy should generate pretty printed output, " |
1553 | | "writing it as extensible HTML. " |
1554 | | "<br/>" |
1555 | | "This option causes Tidy to set the DOCTYPE and default namespace as " |
1556 | | "appropriate to XHTML, and will use the corrected value in output " |
1557 | | "regardless of other sources. " |
1558 | | "<br/>" |
1559 | | "For XHTML, entities can be written as named or numeric entities according " |
1560 | | "to the setting of <code>numeric-entities</code>. " |
1561 | | "<br/>" |
1562 | | "The original case of tags and attributes will be preserved, regardless of " |
1563 | | "other options. " |
1564 | | }, |
1565 | | {/* Important notes for translators: |
1566 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1567 | | <br/>. |
1568 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1569 | | - Option values should be enclosed in <var></var>. |
1570 | | - It's very important that <br/> be self-closing! |
1571 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1572 | | be translated. */ |
1573 | | TidyXmlDecl, 0, |
1574 | | "This option specifies if Tidy should add the XML declaration when " |
1575 | | "outputting XML or XHTML. " |
1576 | | "<br/>" |
1577 | | "Note that if the input already includes an <code><?xml ... ?></code> " |
1578 | | "declaration then this option will be ignored. " |
1579 | | "<br/>" |
1580 | | "If the encoding for the output is different from <var>ascii</var>, one " |
1581 | | "of the <var>utf*</var> encodings, or <var>raw</var>, then the " |
1582 | | "declaration is always added as required by the XML standard. " |
1583 | | }, |
1584 | | {/* Important notes for translators: |
1585 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1586 | | <br/>. |
1587 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1588 | | - Option values should be enclosed in <var></var>. |
1589 | | - It's very important that <br/> be self-closing! |
1590 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1591 | | be translated. */ |
1592 | | TidyXmlOut, 0, |
1593 | | "This option specifies if Tidy should pretty print output, writing it as " |
1594 | | "well-formed XML. " |
1595 | | "<br/>" |
1596 | | "Any entities not defined in XML 1.0 will be written as numeric entities to " |
1597 | | "allow them to be parsed by an XML parser. " |
1598 | | "<br/>" |
1599 | | "The original case of tags and attributes will be preserved, regardless of " |
1600 | | "other options. " |
1601 | | }, |
1602 | | {/* Important notes for translators: |
1603 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1604 | | <br/>. |
1605 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1606 | | - Option values should be enclosed in <var></var>. |
1607 | | - It's very important that <br/> be self-closing! |
1608 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1609 | | be translated. */ |
1610 | | TidyXmlPIs, 0, |
1611 | | "This option specifies if Tidy should change the parsing of processing " |
1612 | | "instructions to require <code>?></code> as the terminator rather than " |
1613 | | "<code>></code>. " |
1614 | | "<br/>" |
1615 | | "This option is automatically set if the input is in XML. " |
1616 | | }, |
1617 | | {/* Important notes for translators: |
1618 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1619 | | <br/>. |
1620 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1621 | | - Option values should be enclosed in <var></var>. |
1622 | | - It's very important that <br/> be self-closing! |
1623 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1624 | | be translated. */ |
1625 | | TidyXmlSpace, 0, |
1626 | | "This option specifies if Tidy should add " |
1627 | | "<code>xml:space=\"preserve\"</code> to elements such as " |
1628 | | "<code><pre></code>, <code><style></code> and " |
1629 | | "<code><script></code> when generating XML. " |
1630 | | "<br/>" |
1631 | | "This is needed if the whitespace in such elements is to " |
1632 | | "be parsed appropriately without having access to the DTD. " |
1633 | | }, |
1634 | | {/* Important notes for translators: |
1635 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1636 | | <br/>. |
1637 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1638 | | - Option values should be enclosed in <var></var>. |
1639 | | - It's very important that <br/> be self-closing! |
1640 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1641 | | be translated. */ |
1642 | | TidyXmlTags, 0, |
1643 | | "This option specifies if Tidy should use the XML parser rather than the " |
1644 | | "error correcting HTML parser. " |
1645 | | }, |
1646 | | {/* Important notes for translators: |
1647 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1648 | | <br/>. |
1649 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1650 | | - Option values should be enclosed in <var></var>. |
1651 | | - It's very important that <br/> be self-closing! |
1652 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1653 | | be translated. */ |
1654 | | TidyMetaCharset, 0, |
1655 | | "This option, when enabled, adds a <code><meta></code> element " |
1656 | | "and sets the <code>charset</code> attribute to the encoding of the " |
1657 | | "document. Set this option to <var>yes</var> to enable it. " |
1658 | | }, |
1659 | | {/* Important notes for translators: |
1660 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1661 | | <br/>. |
1662 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1663 | | - Option values should be enclosed in <var></var>. |
1664 | | - It's very important that <br/> be self-closing! |
1665 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1666 | | be translated. */ |
1667 | | TidyShowMetaChange, 0, |
1668 | | "This option enables a message whenever Tidy changes the " |
1669 | | "<code>content</code> attribute of a meta charset declaration to match " |
1670 | | "the encoding of the document. Set this option to <var>yes</var> to " |
1671 | | "enable it. " |
1672 | | }, |
1673 | | {/* Important notes for translators: |
1674 | | - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and |
1675 | | <br/>. |
1676 | | - Entities, tags, attributes, etc., should be enclosed in <code></code>. |
1677 | | - Option values should be enclosed in <var></var>. |
1678 | | - It's very important that <br/> be self-closing! |
1679 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not |
1680 | | be translated. */ |
1681 | | TidyStyleTags, 0, |
1682 | | "This option specifies if Tidy should move all style tags to the " |
1683 | | "head of the document. " |
1684 | | }, |
1685 | | |
1686 | | |
1687 | | /******************************************** |
1688 | | ** Message Severity Level |
1689 | | ** @remark enum source TidyConfigCategory |
1690 | | ********************************************/ |
1691 | | { TidyInfo, 0, "Info: " }, |
1692 | | { TidyWarning, 0, "Warning: " }, |
1693 | | { TidyConfig, 0, "Config: " }, |
1694 | | { TidyAccess, 0, "Access: " }, |
1695 | | { TidyError, 0, "Error: " }, |
1696 | | { TidyBadDocument, 0, "Document: " }, |
1697 | | { TidyFatal, 0, "Panic: " }, |
1698 | | { TidyDialogueSummary, 0, "Summary: " }, |
1699 | | { TidyDialogueInfo, 0, "Information: " }, |
1700 | | { TidyDialogueFootnote, 0, "Footnote: " }, |
1701 | | |
1702 | | |
1703 | | /******************************************** |
1704 | | ** Miscellaneous Strings |
1705 | | ** @remark enum source TidyStrings |
1706 | | ** @remark enum generator FOREACH_MSG_MISC |
1707 | | ********************************************/ |
1708 | | { LINE_COLUMN_STRING, 0, "line %d column %d - " }, |
1709 | | { FN_LINE_COLUMN_STRING, 0, "%s: line %d column %d - " }, |
1710 | | {/* For example, "discarding invalid UTF-16 surrogate pair" */ |
1711 | | STRING_DISCARDING, 0, "discarding" |
1712 | | }, |
1713 | | { STRING_ERROR_COUNT_ERROR, 0, "error" }, |
1714 | | { STRING_ERROR_COUNT_ERROR, 1, "errors" }, |
1715 | | { STRING_ERROR_COUNT_WARNING, 0, "warning" }, |
1716 | | { STRING_ERROR_COUNT_WARNING, 1, "warnings" }, |
1717 | | { STRING_HELLO_ACCESS, 0, "\nAccessibility Checks:\n" }, |
1718 | | {/* This is not a formal name and can be translated. */ |
1719 | | STRING_HTML_PROPRIETARY, 0, "HTML Proprietary" |
1720 | | }, |
1721 | | { STRING_XML_DECLARATION, 0, "XML declaration" }, |
1722 | | { STRING_PLAIN_TEXT, 0, "plain text" }, |
1723 | | {/* For example, "replacing invalid UTF-8 bytes" */ |
1724 | | STRING_REPLACING, 0, "replacing" |
1725 | | }, |
1726 | | {/* For example, "you should avoid using the specified encoding." */ |
1727 | | STRING_SPECIFIED, 0, "specified" |
1728 | | }, |
1729 | | { TIDYCUSTOMNO_STRING, 0, "no" }, |
1730 | | { TIDYCUSTOMBLOCKLEVEL_STRING, 0, "block level" }, |
1731 | | { TIDYCUSTOMEMPTY_STRING, 0, "empty" }, |
1732 | | { TIDYCUSTOMINLINE_STRING, 0, "inline" }, |
1733 | | { TIDYCUSTOMPRE_STRING, 0, "pre" }, |
1734 | | |
1735 | | |
1736 | | /******************************************** |
1737 | | ** Footnote Strings |
1738 | | ** @remark enum source TidyStrings |
1739 | | ** @rename enum generator FOREACH_FOOTNOTE_MSG |
1740 | | ********************************************/ |
1741 | | {/* This console output should be limited to 78 characters per line. */ |
1742 | | TEXT_HTML_T_ALGORITHM, 0, |
1743 | | "\n" |
1744 | | " - First, search left from the cell's position to find row header cells.\n" |
1745 | | " - Then search upwards to find column header cells.\n" |
1746 | | " - The search in a given direction stops when the edge of the table is\n" |
1747 | | " reached or when a data cell is found after a header cell.\n" |
1748 | | " - Row headers are inserted into the list in the order they appear in\n" |
1749 | | " the table. \n" |
1750 | | " - For left-to-right tables, headers are inserted from left to right.\n" |
1751 | | " - Column headers are inserted after row headers, in \n" |
1752 | | " the order they appear in the table, from top to bottom. \n" |
1753 | | " - If a header cell has the headers attribute set, then the headers \n" |
1754 | | " referenced by this attribute are inserted into the list and the \n" |
1755 | | " search stops for the current direction.\n" |
1756 | | " TD cells that set the axis attribute are also treated as header cells.\n" |
1757 | | }, |
1758 | | {/* This console output should be limited to 78 characters per line. |
1759 | | - %s represents a string-encoding name which may be localized in your language. */ |
1760 | | TEXT_VENDOR_CHARS, 0, |
1761 | | "It is unlikely that vendor-specific, system-dependent encodings\n" |
1762 | | "work widely enough on the World Wide Web; you should avoid using the \n" |
1763 | | "%s character encoding, instead you are recommended to\n" |
1764 | | "use named entities, e.g. ™.\n" |
1765 | | }, |
1766 | | {/* This console output should be limited to 78 characters per line. |
1767 | | - %s represents a string-encoding name which may be localized in your language. |
1768 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
1769 | | TEXT_SGML_CHARS, 0, |
1770 | | "Character codes 128 to 159 (U+0080 to U+009F) are not allowed in HTML;\n" |
1771 | | "even if they were, they would likely be unprintable control characters.\n" |
1772 | | "Tidy assumed you wanted to refer to a character with the same byte value in the \n" |
1773 | | "%s encoding and replaced that reference with the Unicode \n" |
1774 | | "equivalent.\n" |
1775 | | }, |
1776 | | {/* This console output should be limited to 78 characters per line. */ |
1777 | | TEXT_INVALID_UTF8, 0, |
1778 | | "Character codes for UTF-8 must be in the range: U+0000 to U+10FFFF.\n" |
1779 | | "The definition of UTF-8 in Annex D of ISO/IEC 10646-1:2000 also\n" |
1780 | | "allows for the use of five- and six-byte sequences to encode\n" |
1781 | | "characters that are outside the range of the Unicode character set;\n" |
1782 | | "those five- and six-byte sequences are illegal for the use of\n" |
1783 | | "UTF-8 as a transformation of Unicode characters. ISO/IEC 10646\n" |
1784 | | "does not allow mapping of unpaired surrogates, nor U+FFFE and U+FFFF\n" |
1785 | | "(but it does allow other noncharacters). For more information please refer to\n" |
1786 | | "https://home.unicode.org/ and https://www.cl.cam.ac.uk/~mgk25/unicode.html\n" |
1787 | | }, |
1788 | | {/* This console output should be limited to 78 characters per line. */ |
1789 | | TEXT_INVALID_UTF16, 0, |
1790 | | "Character codes for UTF-16 must be in the range: U+0000 to U+10FFFF.\n" |
1791 | | "The definition of UTF-16 in Annex C of ISO/IEC 10646-1:2000 does not allow the\n" |
1792 | | "mapping of unpaired surrogates. For more information please refer to\n" |
1793 | | "https://home.unicode.org/ and https://www.cl.cam.ac.uk/~mgk25/unicode.html\n" |
1794 | | }, |
1795 | | {/* This console output should be limited to 78 characters per line. |
1796 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
1797 | | TEXT_INVALID_URI, 0, |
1798 | | "URIs must be properly escaped, they must not contain unescaped\n" |
1799 | | "characters below U+0021 including the space character and not\n" |
1800 | | "above U+007E. Tidy escapes the URI for you as recommended by\n" |
1801 | | "HTML 4.01 section B.2.1 and XML 1.0 section 4.2.2. Some user agents\n" |
1802 | | "use another algorithm to escape such URIs and some server-sided\n" |
1803 | | "scripts depend on that. If you want to depend on that, you must\n" |
1804 | | "escape the URI on your own. For more information please refer to\n" |
1805 | | "https://www.w3.org/International/O-URL-and-ident.html\n" |
1806 | | }, |
1807 | | {/* This console output should be limited to 78 characters per line. */ |
1808 | | TEXT_BAD_FORM, 0, |
1809 | | "You may need to move one or both of the <form> and </form>\n" |
1810 | | "tags. HTML elements should be properly nested and form elements\n" |
1811 | | "are no exception. For instance you should not place the <form>\n" |
1812 | | "in one table cell and the </form> in another. If the <form> is\n" |
1813 | | "placed before a table, the </form> cannot be placed inside the\n" |
1814 | | "table! Note that one form can't be nested inside another!\n" |
1815 | | }, |
1816 | | {/* This console output should be limited to 78 characters per line. */ |
1817 | | TEXT_BAD_MAIN, 0, |
1818 | | "Only one <main> element is allowed in a document.\n" |
1819 | | "Subsequent <main> elements have been discarded, which may\n" |
1820 | | "render the document invalid.\n" |
1821 | | }, |
1822 | | {/* This console output should be limited to 78 characters per line. */ |
1823 | | TEXT_M_SUMMARY, 0, |
1824 | | "The table summary attribute should be used to describe\n" |
1825 | | "the table structure. It is very helpful for people using\n" |
1826 | | "non-visual browsers. The scope and headers attributes for\n" |
1827 | | "table cells are useful for specifying which headers apply\n" |
1828 | | "to each table cell, enabling non-visual browsers to provide\n" |
1829 | | "a meaningful context for each cell.\n" |
1830 | | }, |
1831 | | {/* This console output should be limited to 78 characters per line. */ |
1832 | | TEXT_M_IMAGE_ALT, 0, |
1833 | | "The alt attribute should be used to give a short description\n" |
1834 | | "of an image; longer descriptions should be given with the\n" |
1835 | | "longdesc attribute which takes a URL linked to the description.\n" |
1836 | | "These measures are needed for people using non-graphical browsers.\n" |
1837 | | }, |
1838 | | {/* This console output should be limited to 78 characters per line. */ |
1839 | | TEXT_M_IMAGE_MAP, 0, |
1840 | | "Use client-side image maps in preference to server-side image\n" |
1841 | | "maps as the latter are inaccessible to people using non-\n" |
1842 | | "graphical browsers. In addition, client-side maps are easier\n" |
1843 | | "to set up and provide immediate feedback to users.\n" |
1844 | | }, |
1845 | | {/* This console output should be limited to 78 characters per line. */ |
1846 | | TEXT_M_LINK_ALT, 0, |
1847 | | "For hypertext links defined using a client-side image map, you\n" |
1848 | | "need to use the alt attribute to provide a textual description\n" |
1849 | | "of the link for people using non-graphical browsers.\n" |
1850 | | }, |
1851 | | {/* This console output should be limited to 78 characters per line. */ |
1852 | | TEXT_USING_FRAMES, 0, |
1853 | | "Pages designed using frames present problems for\n" |
1854 | | "people who are either blind or using a browser that\n" |
1855 | | "doesn't support frames. A frames-based page should always\n" |
1856 | | "include an alternative layout inside a NOFRAMES element.\n" |
1857 | | }, |
1858 | | {/* This console output should be limited to 78 characters per line. */ |
1859 | | FOOTNOTE_TRIM_EMPTY_ELEMENT, 0, |
1860 | | "One or more empty elements were present in the source document but\n" |
1861 | | "dropped on output. If these elements are necessary or you don't want\n" |
1862 | | "this behavior, then consider setting the option \"drop-empty-elements\"\n" |
1863 | | "to no.\n" |
1864 | | }, |
1865 | | {/* This console output should be limited to 78 characters per line. |
1866 | | - The URL should not be translated unless you find a matching URL in your language. */ |
1867 | | TEXT_ACCESS_ADVICE1, 0, |
1868 | | "For further advice on how to make your pages accessible\n" |
1869 | | "see https://www.w3.org/WAI/GL." |
1870 | | }, |
1871 | | {/* This console output should be limited to 78 characters per line. |
1872 | | - The URL should not be translated unless you find a matching URL in your language. */ |
1873 | | TEXT_ACCESS_ADVICE2, 0, |
1874 | | "For further advice on how to make your pages accessible\n" |
1875 | | "see https://www.w3.org/WAI/GL and https://www.html-tidy.org/accessibility/." |
1876 | | }, |
1877 | | {/* This console output should be limited to 78 characters per line. */ |
1878 | | TEXT_USING_LAYER, 0, |
1879 | | "The Cascading Style Sheets (CSS) Positioning mechanism\n" |
1880 | | "is recommended in preference to the proprietary <LAYER>\n" |
1881 | | "element due to limited vendor support for LAYER.\n" |
1882 | | }, |
1883 | | {/* This console output should be limited to 78 characters per line. */ |
1884 | | TEXT_USING_SPACER, 0, |
1885 | | "You are recommended to use CSS for controlling white\n" |
1886 | | "space (e.g. for indentation, margins and line spacing).\n" |
1887 | | "The proprietary <SPACER> element has limited vendor support.\n" |
1888 | | }, |
1889 | | {/* This console output should be limited to 78 characters per line. */ |
1890 | | TEXT_USING_FONT, 0, |
1891 | | "You are recommended to use CSS to specify the font and\n" |
1892 | | "properties such as its size and color. This will reduce\n" |
1893 | | "the size of HTML files and make them easier to maintain\n" |
1894 | | "compared with using <FONT> elements.\n" |
1895 | | }, |
1896 | | {/* This console output should be limited to 78 characters per line. */ |
1897 | | TEXT_USING_NOBR, 0, |
1898 | | "You are recommended to use CSS to control line wrapping.\n" |
1899 | | "Use \"white-space: nowrap\" to inhibit wrapping in place\n" |
1900 | | "of inserting <NOBR>...</NOBR> into the markup.\n" |
1901 | | }, |
1902 | | {/* This console output should be limited to 78 characters per line. */ |
1903 | | TEXT_USING_BODY, 0, |
1904 | | "You are recommended to use CSS to specify page and link colors" |
1905 | | }, |
1906 | | |
1907 | | /******************************************** |
1908 | | ** Miscellaneous Dialogue Strings |
1909 | | ** @remark enum source TidyStrings |
1910 | | ** @rename enum generator FOREACH_DIALOG_MSG |
1911 | | ********************************************/ |
1912 | | { STRING_CONTENT_LOOKS, 0, "Document content looks like %s" }, |
1913 | | { STRING_DOCTYPE_GIVEN, 0, "Doctype given is \"%s\"" }, |
1914 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
1915 | | STRING_ERROR_COUNT, 0, "Tidy found %u %s and %u %s!\n" |
1916 | | }, |
1917 | | {/* This console output should be limited to 78 characters per line. |
1918 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
1919 | | STRING_NEEDS_INTERVENTION, 0, |
1920 | | "This document has errors that must be fixed before\n" |
1921 | | "using HTML Tidy to generate a tidied up version.\n" |
1922 | | }, |
1923 | | { STRING_NO_ERRORS, 0, "No warnings or errors were found.\n" }, |
1924 | | { STRING_NO_SYSID, 0, "No system identifier in emitted doctype" }, |
1925 | | { STRING_NOT_ALL_SHOWN, 0, "Tidy found %u %s and %u %s! Not all warnings/errors were shown.\n" }, |
1926 | | {/* This console output should be limited to 78 characters per line. |
1927 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
1928 | | TEXT_GENERAL_INFO, 0, |
1929 | | "About HTML Tidy: https://github.com/htacg/tidy-html5\n" |
1930 | | "Bug reports and comments: https://github.com/htacg/tidy-html5/issues\n" |
1931 | | "Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/\n" |
1932 | | "Latest HTML specification: https://html.spec.whatwg.org/multipage/\n" |
1933 | | "Validate your HTML documents: https://validator.w3.org/nu/\n" |
1934 | | "Lobby your company to join the W3C: https://www.w3.org/Consortium\n" |
1935 | | }, |
1936 | | {/* This console output should be limited to 78 characters per line. |
1937 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
1938 | | - Don't terminate the last line with a newline. */ |
1939 | | TEXT_GENERAL_INFO_PLEA, 0, |
1940 | | "Do you speak a language other than English, or a different variant of \n" |
1941 | | "English? Consider helping us to localize HTML Tidy. For details please see \n" |
1942 | | "https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md" |
1943 | | }, |
1944 | | |
1945 | | |
1946 | | /******************************************** |
1947 | | ** Report Output |
1948 | | ** @remark enum source TidyStrings |
1949 | | ** @rename enum generator FOREACH_REPORT_MSG |
1950 | | ********************************************/ |
1951 | | { ADDED_MISSING_CHARSET, 0, "Added appropriate missing <meta charset=...> to %s" }, |
1952 | | { ANCHOR_NOT_UNIQUE, 0, "%s anchor \"%s\" already defined" }, |
1953 | | { ANCHOR_DUPLICATED, 0, "Implicit %s anchor \"%s\" duplicated by Tidy." }, |
1954 | | { APOS_UNDEFINED, 0, "named entity ' only defined in XML/XHTML" }, |
1955 | | { ATTR_VALUE_NOT_LCASE, 0, "%s attribute value \"%s\" must be lower case for XHTML" }, |
1956 | | { ATTRIBUTE_IS_NOT_ALLOWED, 0, "%s attribute \"is\" not allowed for autonomous custom tags." }, |
1957 | | { ATTRIBUTE_VALUE_REPLACED, 0, "%s attribute \"%s\", incorrect value \"%s\" replaced" }, |
1958 | | { BACKSLASH_IN_URI, 0, "%s URI reference contains backslash. Typo?" }, |
1959 | | { BAD_ATTRIBUTE_VALUE_REPLACED, 0, "%s attribute \"%s\" had invalid value \"%s\" and has been replaced" }, |
1960 | | { BAD_ATTRIBUTE_VALUE, 0, "%s attribute \"%s\" has invalid value \"%s\"" }, |
1961 | | { BAD_CDATA_CONTENT, 0, "'<' + '/' + letter not allowed here" }, |
1962 | | { BAD_SUMMARY_HTML5, 0, "The summary attribute on the %s element is obsolete in HTML5" }, |
1963 | | { BAD_SURROGATE_LEAD, 0, "Trailing (Low) surrogate pair U+%04X, with no leading (High) entity, replaced with U+FFFD." }, |
1964 | | { BAD_SURROGATE_PAIR, 0, "Have out-of-range surrogate pair U+%04X:U+%04X, replaced with U+FFFD value." }, |
1965 | | { BAD_SURROGATE_TAIL, 0, "Leading (High) surrogate pair U+%04X, with no trailing (Low) entity, replaced with U+FFFD." }, |
1966 | | { CANT_BE_NESTED, 0, "%s can't be nested" }, |
1967 | | { COERCE_TO_ENDTAG, 0, "<%s> is probably intended as </%s>" }, |
1968 | | { CONTENT_AFTER_BODY, 0, "content occurs after end of body" }, |
1969 | | { CUSTOM_TAG_DETECTED, 0, "detected autonomous custom tag %s; will treat as %s" }, |
1970 | | { DISCARDING_UNEXPECTED, 0, "discarding unexpected %s" }, |
1971 | | { DOCTYPE_AFTER_TAGS, 0, "<!DOCTYPE> isn't allowed after elements" }, |
1972 | | { DUPLICATE_FRAMESET, 0, "repeated FRAMESET element" }, |
1973 | | { ELEMENT_NOT_EMPTY, 0, "%s element not empty or not closed" }, |
1974 | | { ELEMENT_VERS_MISMATCH_ERROR, 0, "%s element not available in %s" }, |
1975 | | { ELEMENT_VERS_MISMATCH_WARN, 0, "%s element not available in %s" }, |
1976 | | { ENCODING_MISMATCH, 0, "specified input encoding (%s) does not match actual input encoding (%s)" }, |
1977 | | { ESCAPED_ILLEGAL_URI, 0, "%s escaping malformed URI reference" }, |
1978 | | { FILE_CANT_OPEN, 0, "Can't open \"%s\"\n" }, |
1979 | | { FILE_CANT_OPEN_CFG, 0, "Can't open configuration file \"%s\"\n" }, |
1980 | | { FILE_NOT_FILE, 0, "\"%s\" is not a file!\n" }, |
1981 | | { FIXED_BACKSLASH, 0, "%s converting backslash in URI to slash" }, |
1982 | | { FOUND_STYLE_IN_BODY, 0, "found <style> tag in <body>! fix-style-tags: yes to move." }, |
1983 | | { ID_NAME_MISMATCH, 0, "%s id and name attribute value mismatch" }, |
1984 | | { ILLEGAL_NESTING, 0, "%s shouldn't be nested" }, |
1985 | | { ILLEGAL_URI_CODEPOINT, 0, "%s illegal characters found in URI" }, |
1986 | | { ILLEGAL_URI_REFERENCE, 0, "%s improperly escaped URI reference" }, |
1987 | | { INSERTING_AUTO_ATTRIBUTE, 0, "%s inserting \"%s\" attribute using value \"%s\"" }, |
1988 | | { INSERTING_TAG, 0, "inserting implicit <%s>" }, |
1989 | | { INVALID_ATTRIBUTE, 0, "%s attribute name \"%s\" (value=\"%s\") is invalid" }, |
1990 | | { INVALID_NCR, 0, "%s invalid numeric character reference %s" }, |
1991 | | { INVALID_SGML_CHARS, 0, "%s invalid character code %s" }, |
1992 | | { INVALID_UTF8, 0, "%s invalid UTF-8 bytes (char. code %s)" }, |
1993 | | { INVALID_UTF16, 0, "%s invalid UTF-16 surrogate pair (char. code %s)" }, |
1994 | | { INVALID_XML_ID, 0, "%s cannot copy name attribute to id" }, |
1995 | | { JOINING_ATTRIBUTE, 0, "%s joining values of repeated attribute \"%s\"" }, |
1996 | | { MALFORMED_COMMENT, 0, "tidy replaced adjacent \"-\" with \"=\"" }, |
1997 | | { MALFORMED_COMMENT_DROPPING, 0, "dropping a possible comment due to a missing hyphen" }, |
1998 | | { MALFORMED_COMMENT_EOS, 0, "the end of the document was reached before the end of the comment" }, |
1999 | | { MALFORMED_COMMENT_WARN, 0, "detected adjacent hyphens within the comment; consider fix-bad-comments" }, |
2000 | | { MALFORMED_DOCTYPE, 0, "discarding malformed <!DOCTYPE>" }, |
2001 | | { MISMATCHED_ATTRIBUTE_ERROR, 0, "%s attribute \"%s\" not allowed for %s" }, |
2002 | | { MISMATCHED_ATTRIBUTE_WARN, 0, "%s attribute \"%s\" not allowed for %s" }, |
2003 | | { MISSING_ATTR_VALUE, 0, "%s attribute \"%s\" lacks value" }, |
2004 | | { MISSING_ATTRIBUTE, 0, "%s lacks \"%s\" attribute" }, |
2005 | | { MISSING_DOCTYPE, 0, "missing <!DOCTYPE> declaration" }, |
2006 | | { MISSING_ENDTAG_BEFORE, 0, "missing </%s> before %s" }, |
2007 | | { MISSING_ENDTAG_FOR, 0, "missing </%s>" }, |
2008 | | { MISSING_ENDTAG_OPTIONAL, 0, "missing optional end tag </%s>" }, |
2009 | | { MISSING_IMAGEMAP, 0, "%s should use client-side image map" }, |
2010 | | { MISSING_QUOTEMARK, 0, "%s attribute with missing trailing quote mark" }, |
2011 | | { MISSING_QUOTEMARK_OPEN, 0, "value for attribute \"%s\" missing quote marks" }, |
2012 | | { MISSING_SEMICOLON_NCR, 0, "numeric character reference \"%s\" doesn't end in ';'" }, |
2013 | | { MISSING_SEMICOLON, 0, "entity \"%s\" doesn't end in ';'" }, |
2014 | | { MISSING_STARTTAG, 0, "missing <%s>" }, |
2015 | | { MISSING_TITLE_ELEMENT, 0, "inserting missing 'title' element" }, |
2016 | | { MOVED_STYLE_TO_HEAD, 0, "moved <style> tag to <head>! fix-style-tags: no to avoid." }, |
2017 | | { NESTED_EMPHASIS, 0, "nested emphasis %s" }, |
2018 | | { NESTED_QUOTATION, 0, "nested q elements, possible typo." }, |
2019 | | { NEWLINE_IN_URI, 0, "%s discarding newline in URI reference" }, |
2020 | | { NOFRAMES_CONTENT, 0, "%s not inside 'noframes' element" }, |
2021 | | { NON_MATCHING_ENDTAG, 0, "replacing unexpected %s with </%s>" }, |
2022 | | { OBSOLETE_ELEMENT, 0, "replacing obsolete element %s with %s" }, |
2023 | | { OPTION_REMOVED, 0, "option \"%s\" no longer exists, and no replacement could be found." }, |
2024 | | { OPTION_REMOVED_APPLIED, 0, "option \"%s\" replaced with \"%s\", which Tidy has set to \"%s\"." }, |
2025 | | { OPTION_REMOVED_UNAPPLIED, 0, "option \"%s\" replaced with \"%s\", but Tidy could not set it for you." }, |
2026 | | { PREVIOUS_LOCATION, 0, "<%s> previously mentioned" }, |
2027 | | { PROPRIETARY_ATTR_VALUE, 0, "%s proprietary attribute value \"%s\"" }, |
2028 | | { PROPRIETARY_ATTRIBUTE, 0, "%s proprietary attribute \"%s\"" }, |
2029 | | { PROPRIETARY_ELEMENT, 0, "%s is not approved by W3C" }, |
2030 | | { REMOVED_HTML5, 0, "%s element removed from HTML5" }, |
2031 | | { REPEATED_ATTRIBUTE, 0, "%s dropping value \"%s\" for repeated attribute \"%s\"" }, |
2032 | | { REPLACING_ELEMENT, 0, "replacing %s with %s" }, |
2033 | | { REPLACING_UNEX_ELEMENT, 0, "replacing unexpected %s with %s" }, |
2034 | | { SPACE_PRECEDING_XMLDECL, 0, "removing whitespace preceding XML Declaration" }, |
2035 | | { STRING_ARGUMENT_BAD, 0, "option \"%s\" given bad argument \"%s\"" }, |
2036 | | { STRING_MISSING_MALFORMED, 0, "missing or malformed argument for option: %s" }, |
2037 | | { STRING_MUTING_TYPE, 0, "messages of type \"%s\" will not be output" }, |
2038 | | { STRING_UNKNOWN_OPTION, 0, "unknown option: %s" }, |
2039 | | { SUSPECTED_MISSING_QUOTE, 0, "suspected missing quote mark for attribute value" }, |
2040 | | { TAG_NOT_ALLOWED_IN, 0, "%s isn't allowed in <%s> elements" }, |
2041 | | { TOO_MANY_ELEMENTS_IN, 0, "too many %s elements in <%s>" }, |
2042 | | { TOO_MANY_ELEMENTS, 0, "too many %s elements" }, |
2043 | | { TRIM_EMPTY_ELEMENT, 0, "trimming empty %s" }, |
2044 | | { UNESCAPED_AMPERSAND, 0, "unescaped & which should be written as &" }, |
2045 | | { UNEXPECTED_END_OF_FILE_ATTR, 0, "%s end of file while parsing attributes" }, |
2046 | | { UNEXPECTED_END_OF_FILE, 0, "unexpected end of file %s" }, |
2047 | | { UNEXPECTED_ENDTAG_ERR, 0, "unexpected </%s>" }, |
2048 | | { UNEXPECTED_ENDTAG_IN, 0, "unexpected </%s> in <%s>" }, |
2049 | | { UNEXPECTED_ENDTAG, 0, "unexpected </%s>" }, |
2050 | | { UNEXPECTED_EQUALSIGN, 0, "%s unexpected '=', expected attribute name" }, |
2051 | | { UNEXPECTED_GT, 0, "%s missing '>' for end of tag" }, |
2052 | | { UNEXPECTED_QUOTEMARK, 0, "%s unexpected or duplicate quote mark" }, |
2053 | | { UNKNOWN_ELEMENT_LOOKS_CUSTOM, 0, "%s is not recognized! Did you mean to enable the custom-tags option?" }, |
2054 | | { UNKNOWN_ELEMENT, 0, "%s is not recognized!" }, |
2055 | | { UNKNOWN_ENTITY, 0, "unescaped & or unknown entity \"%s\"" }, |
2056 | | { USING_BR_INPLACE_OF, 0, "using <br> in place of %s" }, |
2057 | | { VENDOR_SPECIFIC_CHARS, 0, "%s invalid character code %s" }, |
2058 | | { WHITE_IN_URI, 0, "%s discarding whitespace in URI reference" }, |
2059 | | { XML_DECLARATION_DETECTED, 0, "An XML declaration was detected. Did you mean to use input-xml?" }, |
2060 | | { XML_ID_SYNTAX, 0, "%s ID \"%s\" uses XML ID syntax" }, |
2061 | | { BLANK_TITLE_ELEMENT, 0, "blank 'title' element" }, |
2062 | | |
2063 | | |
2064 | | /*************************************** |
2065 | | ** Report Output -- Accessibility |
2066 | | ***************************************/ |
2067 | | { IMG_MISSING_ALT, 0, "[1.1.1.1]: <img> missing 'alt' text." }, |
2068 | | { IMG_ALT_SUSPICIOUS_FILENAME, 0, "[1.1.1.2]: suspicious 'alt' text (filename)." }, |
2069 | | { IMG_ALT_SUSPICIOUS_FILE_SIZE, 0, "[1.1.1.3]: suspicious 'alt' text (file size)." }, |
2070 | | { IMG_ALT_SUSPICIOUS_PLACEHOLDER, 0, "[1.1.1.4]: suspicious 'alt' text (placeholder)." }, |
2071 | | { IMG_ALT_SUSPICIOUS_TOO_LONG, 0, "[1.1.1.10]: suspicious 'alt' text (too long)." }, |
2072 | | { IMG_MISSING_LONGDESC_DLINK, 0, "[1.1.2.1]: <img> missing 'longdesc' and d-link." }, |
2073 | | { IMG_MISSING_DLINK, 0, "[1.1.2.2]: <img> missing d-link." }, |
2074 | | { IMG_MISSING_LONGDESC, 0, "[1.1.2.3]: <img> missing 'longdesc'." }, |
2075 | | { IMG_BUTTON_MISSING_ALT, 0, "[1.1.3.1]: <img> (button) missing 'alt' text." }, |
2076 | | { APPLET_MISSING_ALT, 0, "[1.1.4.1]: <applet> missing alternate content." }, |
2077 | | { OBJECT_MISSING_ALT, 0, "[1.1.5.1]: <object> missing alternate content." }, |
2078 | | { AUDIO_MISSING_TEXT_WAV, 0, "[1.1.6.1]: audio missing text transcript (wav)." }, |
2079 | | { AUDIO_MISSING_TEXT_AU, 0, "[1.1.6.2]: audio missing text transcript (au)." }, |
2080 | | { AUDIO_MISSING_TEXT_AIFF, 0, "[1.1.6.3]: audio missing text transcript (aiff)." }, |
2081 | | { AUDIO_MISSING_TEXT_SND, 0, "[1.1.6.4]: audio missing text transcript (snd)." }, |
2082 | | { AUDIO_MISSING_TEXT_RA, 0, "[1.1.6.5]: audio missing text transcript (ra)." }, |
2083 | | { AUDIO_MISSING_TEXT_RM, 0, "[1.1.6.6]: audio missing text transcript (rm)." }, |
2084 | | { FRAME_MISSING_LONGDESC, 0, "[1.1.8.1]: <frame> may require 'longdesc'." }, |
2085 | | { AREA_MISSING_ALT, 0, "[1.1.9.1]: <area> missing 'alt' text." }, |
2086 | | { SCRIPT_MISSING_NOSCRIPT, 0, "[1.1.10.1]: <script> missing <noscript> section." }, |
2087 | | { ASCII_REQUIRES_DESCRIPTION, 0, "[1.1.12.1]: ascii art requires description." }, |
2088 | | { IMG_MAP_SERVER_REQUIRES_TEXT_LINKS, 0, "[1.2.1.1]: image map (server-side) requires text links." }, |
2089 | | { MULTIMEDIA_REQUIRES_TEXT, 0, "[1.4.1.1]: multimedia requires synchronized text equivalents." }, |
2090 | | { IMG_MAP_CLIENT_MISSING_TEXT_LINKS, 0, "[1.5.1.1]: image map (client-side) missing text links." }, |
2091 | | { INFORMATION_NOT_CONVEYED_IMAGE, 0, "[2.1.1.1]: ensure information not conveyed through color alone (image)." }, |
2092 | | { INFORMATION_NOT_CONVEYED_APPLET, 0, "[2.1.1.2]: ensure information not conveyed through color alone (applet)." }, |
2093 | | { INFORMATION_NOT_CONVEYED_OBJECT, 0, "[2.1.1.3]: ensure information not conveyed through color alone (object)." }, |
2094 | | { INFORMATION_NOT_CONVEYED_SCRIPT, 0, "[2.1.1.4]: ensure information not conveyed through color alone (script)." }, |
2095 | | { INFORMATION_NOT_CONVEYED_INPUT, 0, "[2.1.1.5]: ensure information not conveyed through color alone (input)." }, |
2096 | | { COLOR_CONTRAST_TEXT, 0, "[2.2.1.1]: poor color contrast (text)." }, |
2097 | | { COLOR_CONTRAST_LINK, 0, "[2.2.1.2]: poor color contrast (link)." }, |
2098 | | { COLOR_CONTRAST_ACTIVE_LINK, 0, "[2.2.1.3]: poor color contrast (active link)." }, |
2099 | | { COLOR_CONTRAST_VISITED_LINK, 0, "[2.2.1.4]: poor color contrast (visited link)." }, |
2100 | | { DOCTYPE_MISSING, 0, "[3.2.1.1]: <doctype> missing." }, |
2101 | | { STYLE_SHEET_CONTROL_PRESENTATION, 0, "[3.3.1.1]: use style sheets to control presentation." }, |
2102 | | { HEADERS_IMPROPERLY_NESTED, 0, "[3.5.1.1]: headers improperly nested." }, |
2103 | | { POTENTIAL_HEADER_BOLD, 0, "[3.5.2.1]: potential header (bold)." }, |
2104 | | { POTENTIAL_HEADER_ITALICS, 0, "[3.5.2.2]: potential header (italics)." }, |
2105 | | { POTENTIAL_HEADER_UNDERLINE, 0, "[3.5.2.3]: potential header (underline)." }, |
2106 | | { HEADER_USED_FORMAT_TEXT, 0, "[3.5.3.1]: header used to format text." }, |
2107 | | { LIST_USAGE_INVALID_UL, 0, "[3.6.1.1]: list usage invalid <ul>." }, |
2108 | | { LIST_USAGE_INVALID_OL, 0, "[3.6.1.2]: list usage invalid <ol>." }, |
2109 | | { LIST_USAGE_INVALID_LI, 0, "[3.6.1.4]: list usage invalid <li>." }, |
2110 | | { LANGUAGE_NOT_IDENTIFIED, 0, "[4.3.1.1]: language not identified." }, |
2111 | | { LANGUAGE_INVALID, 0, "[4.3.1.2]: language attribute invalid." }, |
2112 | | { DATA_TABLE_MISSING_HEADERS, 0, "[5.1.2.1]: data <table> missing row/column headers (all)." }, |
2113 | | { DATA_TABLE_MISSING_HEADERS_COLUMN, 0, "[5.1.2.2]: data <table> missing row/column headers (1 col)." }, |
2114 | | { DATA_TABLE_MISSING_HEADERS_ROW, 0, "[5.1.2.3]: data <table> missing row/column headers (1 row)." }, |
2115 | | { DATA_TABLE_REQUIRE_MARKUP_COLUMN_HEADERS, 0, "[5.2.1.1]: data <table> may require markup (column headers)." }, |
2116 | | { DATA_TABLE_REQUIRE_MARKUP_ROW_HEADERS, 0, "[5.2.1.2]: data <table> may require markup (row headers)." }, |
2117 | | { LAYOUT_TABLES_LINEARIZE_PROPERLY, 0, "[5.3.1.1]: verify layout tables linearize properly." }, |
2118 | | { LAYOUT_TABLE_INVALID_MARKUP, 0, "[5.4.1.1]: invalid markup used in layout <table>." }, |
2119 | | { TABLE_MISSING_SUMMARY, 0, "[5.5.1.1]: <table> missing summary." }, |
2120 | | { TABLE_SUMMARY_INVALID_NULL, 0, "[5.5.1.2]: <table> summary invalid (null)." }, |
2121 | | { TABLE_SUMMARY_INVALID_SPACES, 0, "[5.5.1.3]: <table> summary invalid (spaces)." }, |
2122 | | { TABLE_SUMMARY_INVALID_PLACEHOLDER, 0, "[5.5.1.6]: <table> summary invalid (placeholder text)." }, |
2123 | | { TABLE_MISSING_CAPTION, 0, "[5.5.2.1]: <table> missing <caption>." }, |
2124 | | { TABLE_MAY_REQUIRE_HEADER_ABBR, 0, "[5.6.1.1]: <table> may require header abbreviations." }, |
2125 | | { TABLE_MAY_REQUIRE_HEADER_ABBR_NULL, 0, "[5.6.1.2]: <table> header abbreviations invalid (null)." }, |
2126 | | { TABLE_MAY_REQUIRE_HEADER_ABBR_SPACES, 0, "[5.6.1.3]: <table> header abbreviations invalid (spaces)." }, |
2127 | | { STYLESHEETS_REQUIRE_TESTING_LINK, 0, "[6.1.1.1]: style sheets require testing (link)." }, |
2128 | | { STYLESHEETS_REQUIRE_TESTING_STYLE_ELEMENT, 0, "[6.1.1.2]: style sheets require testing (style element)." }, |
2129 | | { STYLESHEETS_REQUIRE_TESTING_STYLE_ATTR, 0, "[6.1.1.3]: style sheets require testing (style attribute)." }, |
2130 | | { FRAME_SRC_INVALID, 0, "[6.2.1.1]: <frame> source invalid." }, |
2131 | | { TEXT_EQUIVALENTS_REQUIRE_UPDATING_APPLET, 0, "[6.2.2.1]: text equivalents require updating (applet)." }, |
2132 | | { TEXT_EQUIVALENTS_REQUIRE_UPDATING_SCRIPT, 0, "[6.2.2.2]: text equivalents require updating (script)." }, |
2133 | | { TEXT_EQUIVALENTS_REQUIRE_UPDATING_OBJECT, 0, "[6.2.2.3]: text equivalents require updating (object)." }, |
2134 | | { PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_SCRIPT, 0, "[6.3.1.1]: programmatic objects require testing (script)." }, |
2135 | | { PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_OBJECT, 0, "[6.3.1.2]: programmatic objects require testing (object)." }, |
2136 | | { PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_EMBED, 0, "[6.3.1.3]: programmatic objects require testing (embed)." }, |
2137 | | { PROGRAMMATIC_OBJECTS_REQUIRE_TESTING_APPLET, 0, "[6.3.1.4]: programmatic objects require testing (applet)." }, |
2138 | | { FRAME_MISSING_NOFRAMES, 0, "[6.5.1.1]: <frameset> missing <noframes> section." }, |
2139 | | { NOFRAMES_INVALID_NO_VALUE, 0, "[6.5.1.2]: <noframes> section invalid (no value)." }, |
2140 | | { NOFRAMES_INVALID_CONTENT, 0, "[6.5.1.3]: <noframes> section invalid (content)." }, |
2141 | | { NOFRAMES_INVALID_LINK, 0, "[6.5.1.4]: <noframes> section invalid (link)." }, |
2142 | | { REMOVE_FLICKER_SCRIPT, 0, "[7.1.1.1]: remove flicker (script)." }, |
2143 | | { REMOVE_FLICKER_OBJECT, 0, "[7.1.1.2]: remove flicker (object)." }, |
2144 | | { REMOVE_FLICKER_EMBED, 0, "[7.1.1.3]: remove flicker (embed)." }, |
2145 | | { REMOVE_FLICKER_APPLET, 0, "[7.1.1.4]: remove flicker (applet)." }, |
2146 | | { REMOVE_FLICKER_ANIMATED_GIF, 0, "[7.1.1.5]: remove flicker (animated gif)." }, |
2147 | | { REMOVE_BLINK_MARQUEE, 0, "[7.2.1.1]: remove blink/marquee." }, |
2148 | | { REMOVE_AUTO_REFRESH, 0, "[7.4.1.1]: remove auto-refresh." }, |
2149 | | { REMOVE_AUTO_REDIRECT, 0, "[7.5.1.1]: remove auto-redirect." }, |
2150 | | { ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_SCRIPT, 0, "[8.1.1.1]: ensure programmatic objects are accessible (script)." }, |
2151 | | { ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_OBJECT, 0, "[8.1.1.2]: ensure programmatic objects are accessible (object)." }, |
2152 | | { ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_APPLET, 0, "[8.1.1.3]: ensure programmatic objects are accessible (applet)." }, |
2153 | | { ENSURE_PROGRAMMATIC_OBJECTS_ACCESSIBLE_EMBED, 0, "[8.1.1.4]: ensure programmatic objects are accessible (embed)." }, |
2154 | | { IMAGE_MAP_SERVER_SIDE_REQUIRES_CONVERSION, 0, "[9.1.1.1]: image map (server-side) requires conversion." }, |
2155 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_DOWN, 0, "[9.3.1.1]: <script> not keyboard accessible (onMouseDown)." }, |
2156 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_UP, 0, "[9.3.1.2]: <script> not keyboard accessible (onMouseUp)." }, |
2157 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_CLICK, 0, "[9.3.1.3]: <script> not keyboard accessible (onClick)." }, |
2158 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_OVER, 0, "[9.3.1.4]: <script> not keyboard accessible (onMouseOver)." }, |
2159 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_OUT, 0, "[9.3.1.5]: <script> not keyboard accessible (onMouseOut)." }, |
2160 | | { SCRIPT_NOT_KEYBOARD_ACCESSIBLE_ON_MOUSE_MOVE, 0, "[9.3.1.6]: <script> not keyboard accessible (onMouseMove)." }, |
2161 | | { NEW_WINDOWS_REQUIRE_WARNING_NEW, 0, "[10.1.1.1]: new windows require warning (_new)." }, |
2162 | | { NEW_WINDOWS_REQUIRE_WARNING_BLANK, 0, "[10.1.1.2]: new windows require warning (_blank)." }, |
2163 | | { REPLACE_DEPRECATED_HTML_APPLET, 0, "[11.2.1.1]: replace deprecated html <applet>." }, |
2164 | | { REPLACE_DEPRECATED_HTML_BASEFONT, 0, "[11.2.1.2]: replace deprecated html <basefont>." }, |
2165 | | { REPLACE_DEPRECATED_HTML_CENTER, 0, "[11.2.1.3]: replace deprecated html <center>." }, |
2166 | | { REPLACE_DEPRECATED_HTML_DIR, 0, "[11.2.1.4]: replace deprecated html <dir>." }, |
2167 | | { REPLACE_DEPRECATED_HTML_FONT, 0, "[11.2.1.5]: replace deprecated html <font>." }, |
2168 | | { REPLACE_DEPRECATED_HTML_ISINDEX, 0, "[11.2.1.6]: replace deprecated html <isindex>." }, |
2169 | | { REPLACE_DEPRECATED_HTML_MENU, 0, "[11.2.1.7]: replace deprecated html <menu>." }, |
2170 | | { REPLACE_DEPRECATED_HTML_S, 0, "[11.2.1.8]: replace deprecated html <s>." }, |
2171 | | { REPLACE_DEPRECATED_HTML_STRIKE, 0, "[11.2.1.9]: replace deprecated html <strike>." }, |
2172 | | { REPLACE_DEPRECATED_HTML_U, 0, "[11.2.1.10]: replace deprecated html <u>." }, |
2173 | | { FRAME_MISSING_TITLE, 0, "[12.1.1.1]: <frame> missing title." }, |
2174 | | { FRAME_TITLE_INVALID_NULL, 0, "[12.1.1.2]: <frame> title invalid (null)." }, |
2175 | | { FRAME_TITLE_INVALID_SPACES, 0, "[12.1.1.3]: <frame> title invalid (spaces)." }, |
2176 | | { ASSOCIATE_LABELS_EXPLICITLY, 0, "[12.4.1.1]: associate labels explicitly with form controls." }, |
2177 | | { ASSOCIATE_LABELS_EXPLICITLY_FOR, 0, "[12.4.1.2]: associate labels explicitly with form controls (for)." }, |
2178 | | { ASSOCIATE_LABELS_EXPLICITLY_ID, 0, "[12.4.1.3]: associate labels explicitly with form controls (id)." }, |
2179 | | { LINK_TEXT_NOT_MEANINGFUL, 0, "[13.1.1.1]: link text not meaningful." }, |
2180 | | { LINK_TEXT_MISSING, 0, "[13.1.1.2]: link text missing." }, |
2181 | | { LINK_TEXT_TOO_LONG, 0, "[13.1.1.3]: link text too long." }, |
2182 | | { LINK_TEXT_NOT_MEANINGFUL_CLICK_HERE, 0, "[13.1.1.4]: link text not meaningful (click here)." }, |
2183 | | { METADATA_MISSING, 0, "[13.2.1.1]: Metadata missing." }, |
2184 | | { METADATA_MISSING_REDIRECT_AUTOREFRESH, 0, "[13.2.1.3]: Metadata missing (redirect/auto-refresh)." }, |
2185 | | { SKIPOVER_ASCII_ART, 0, "[13.10.1.1]: skip over ascii art." }, |
2186 | | |
2187 | | |
2188 | | #if SUPPORT_CONSOLE_APP |
2189 | | /******************************************************** |
2190 | | ** Console Application |
2191 | | ** Although these strings are not used within LibTidy |
2192 | | ** and only for the console application, they are |
2193 | | ** provided as part of LibTidy for convenience to |
2194 | | ** developers. |
2195 | | ********************************************************/ |
2196 | | { TC_LABEL_COL, 0, "column" }, |
2197 | | { TC_LABEL_FILE, 0, "file" }, |
2198 | | { TC_LABEL_LANG, 0, "lang" }, |
2199 | | { TC_LABEL_LEVL, 0, "level" }, |
2200 | | { TC_LABEL_OPT, 0, "option" }, |
2201 | | { TC_MAIN_ERROR_LOAD_CONFIG, 0, "Loading config file \"%s\" problems, err = %d" }, |
2202 | | { TC_OPT_ACCESS, 0, |
2203 | | "do additional accessibility checks (<level> = 0, 1, 2, 3). 0 is " |
2204 | | "assumed if <level> is missing." |
2205 | | }, |
2206 | | { TC_OPT_ASCII, 0, "use ISO-8859-1 for input, US-ASCII for output" }, |
2207 | | { TC_OPT_ASHTML, 0, "force XHTML to well formed HTML" }, |
2208 | | { TC_OPT_ASXML, 0, "convert HTML to well formed XHTML" }, |
2209 | | { TC_OPT_BARE, 0, "strip out smart quotes and em dashes, etc." }, |
2210 | | { TC_OPT_BIG5, 0, "use Big5 for both input and output" }, |
2211 | | { TC_OPT_CLEAN, 0, "replace FONT, NOBR and CENTER tags with CSS" }, |
2212 | | { TC_OPT_CONFIG, 0, "set configuration options from the specified <file>" }, |
2213 | | { TC_OPT_ERRORS, 0, "show only errors and warnings" }, |
2214 | | { TC_OPT_FILE, 0, "write errors and warnings to the specified <file>" }, |
2215 | | { TC_OPT_GDOC, 0, "produce clean version of html exported by Google Docs" }, |
2216 | | { TC_OPT_HELP, 0, "list the command line options" }, |
2217 | | { TC_OPT_HELPCFG, 0, "list all configuration options" }, |
2218 | | { TC_OPT_HELPENV, 0, "show information about the environment and runtime configuration" }, |
2219 | | { TC_OPT_HELPOPT, 0, "show a description of the <option>" }, |
2220 | | { TC_OPT_IBM858, 0, "use IBM-858 (CP850+Euro) for input, US-ASCII for output" }, |
2221 | | { TC_OPT_INDENT, 0, "indent element content" }, |
2222 | | { TC_OPT_ISO2022, 0, "use ISO-2022 for both input and output" }, |
2223 | | |
2224 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2225 | | TC_OPT_LANGUAGE, 0, |
2226 | | "set Tidy's output language to <lang>. Specify '-language help' for more help. " |
2227 | | "Use before output-causing arguments to ensure the language takes effect, e.g.," |
2228 | | "`tidy -lang es -lang help`." |
2229 | | }, |
2230 | | |
2231 | | { TC_OPT_LATIN0, 0, "use ISO-8859-15 for input, US-ASCII for output" }, |
2232 | | { TC_OPT_LATIN1, 0, "use ISO-8859-1 for both input and output" }, |
2233 | | { TC_OPT_MAC, 0, "use MacRoman for input, US-ASCII for output" }, |
2234 | | { TC_OPT_MODIFY, 0, "modify the original input files" }, |
2235 | | { TC_OPT_NUMERIC, 0, "output numeric rather than named entities" }, |
2236 | | { TC_OPT_OMIT, 0, "omit optional start tags and end tags" }, |
2237 | | { TC_OPT_OUTPUT, 0, "write output to the specified <file>" }, |
2238 | | { TC_OPT_QUIET, 0, "suppress nonessential output" }, |
2239 | | { TC_OPT_RAW, 0, "output values above 127 without conversion to entities" }, |
2240 | | { TC_OPT_SHIFTJIS, 0, "use Shift_JIS for both input and output" }, |
2241 | | { TC_OPT_SHOWCFG, 0, "list the current configuration settings" }, |
2242 | | { TC_OPT_EXP_CFG, 0, "list the current configuration settings, suitable for a config file" }, |
2243 | | { TC_OPT_EXP_DEF, 0, "list the default configuration settings, suitable for a config file" }, |
2244 | | { TC_OPT_UPPER, 0, "force tags to upper case" }, |
2245 | | { TC_OPT_UTF16, 0, "use UTF-16 for both input and output" }, |
2246 | | { TC_OPT_UTF16BE, 0, "use UTF-16BE for both input and output" }, |
2247 | | { TC_OPT_UTF16LE, 0, "use UTF-16LE for both input and output" }, |
2248 | | { TC_OPT_UTF8, 0, "use UTF-8 for both input and output" }, |
2249 | | |
2250 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2251 | | TC_OPT_VERSION, 0, "show the version of Tidy" |
2252 | | }, |
2253 | | |
2254 | | { TC_OPT_WIN1252, 0, "use Windows-1252 for input, US-ASCII for output" }, |
2255 | | { TC_OPT_WRAP, 0, |
2256 | | "wrap text at the specified <column>. 0 is assumed if <column> is " |
2257 | | "missing. When this option is omitted, the default of the " |
2258 | | "configuration option 'wrap' applies." |
2259 | | }, |
2260 | | { TC_OPT_XML, 0, "specify the input is well formed XML" }, |
2261 | | { TC_OPT_XMLCFG, 0, "list all configuration options in XML format" }, |
2262 | | { TC_OPT_XMLHELP, 0, "list the command line options in XML format" }, |
2263 | | |
2264 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2265 | | TC_OPT_XMLSTRG, 0, "output all of Tidy's strings in XML format" |
2266 | | }, |
2267 | | |
2268 | | { TC_OPT_XMLERRS, 0, "output error constants and strings in XML format" }, |
2269 | | |
2270 | | { TC_OPT_XMLOPTS, 0, "output option descriptions in XML format" }, |
2271 | | |
2272 | | { TC_STRING_CONF_HEADER, 0, "Configuration File Settings:" }, |
2273 | | |
2274 | | {/* Must be 27 characters or fewer. */ |
2275 | | TC_STRING_CONF_NAME, 0, "Name" |
2276 | | }, |
2277 | | {/* Must be 9 characters or fewer. */ |
2278 | | TC_STRING_CONF_TYPE, 0, "Type" |
2279 | | }, |
2280 | | {/* Must be 40 characters or fewer. */ |
2281 | | TC_STRING_CONF_VALUE, 0, "Current Value" |
2282 | | }, |
2283 | | |
2284 | | { TC_STRING_OPT_NOT_DOCUMENTED, 0, "Warning: option `%s' is not documented." }, |
2285 | | { TC_STRING_OUT_OF_MEMORY, 0, "Out of memory. Bailing out." }, |
2286 | | { TC_STRING_FATAL_ERROR, 0, "Fatal error: impossible value for id='%d'." }, |
2287 | | { TC_STRING_FILE_MANIP, 0, "File manipulation" }, |
2288 | | { TC_STRING_PROCESS_DIRECTIVES, 0, "Processing directives" }, |
2289 | | { TC_STRING_CHAR_ENCODING, 0, "Character encodings" }, |
2290 | | { TC_STRING_LANG_MUST_SPECIFY, 0, "A POSIX or Windows locale must be specified." }, |
2291 | | |
2292 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2293 | | TC_STRING_LANG_NOT_FOUND, 0, "Tidy doesn't have language '%s,' will use '%s' instead." |
2294 | | }, |
2295 | | |
2296 | | { TC_STRING_MISC, 0, "Miscellaneous" }, |
2297 | | { TC_STRING_XML, 0, "XML" }, |
2298 | | { TC_STRING_MUST_SPECIFY, 0, "A Tidy option name must be specified." }, |
2299 | | |
2300 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2301 | | TC_STRING_UNKNOWN_OPTION, 0, "HTML Tidy: unknown option: %c" |
2302 | | }, |
2303 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2304 | | TC_STRING_UNKNOWN_OPTION_B, 0, "HTML Tidy: unknown option." |
2305 | | }, |
2306 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2307 | | TC_STRING_VERS_A, 0, "HTML Tidy for %s version %s" |
2308 | | }, |
2309 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2310 | | TC_STRING_VERS_B, 0, "HTML Tidy version %s" |
2311 | | }, |
2312 | | |
2313 | | {/* This console output should be limited to 78 characters per line. |
2314 | | - First %s represents the name of the executable from the file system, and is mostly like going to be "tidy". |
2315 | | - Second %s represents a version number, typically x.x.xx. |
2316 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2317 | | TC_TXT_HELP_1, 0, |
2318 | | "%s [options...] [file...] [options...] [file...]\n" |
2319 | | "Utility to clean up and pretty print HTML/XHTML/XML.\n" |
2320 | | "\n" |
2321 | | "This is modern HTML Tidy version %s.\n" |
2322 | | "\n" |
2323 | | }, |
2324 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2325 | | - %s represents the platform, for example, "Mac OS X" or "Windows". */ |
2326 | | TC_TXT_HELP_2A, 0, |
2327 | | "Command Line Arguments for HTML Tidy for %s:" |
2328 | | }, |
2329 | | {/* The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2330 | | TC_TXT_HELP_2B, 0, |
2331 | | "Command Line Arguments for HTML Tidy:" |
2332 | | }, |
2333 | | {/* This console output should be limited to 78 characters per line. |
2334 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2335 | | - %s represents either a blank line, or TC_TXT_HELP_3A explaining environment options. */ |
2336 | | TC_TXT_HELP_3, 0, |
2337 | | "\n" |
2338 | | "Tidy Configuration Options\n" |
2339 | | "==========================\n" |
2340 | | " Use Tidy's configuration options as command line arguments in the form\n" |
2341 | | " of \"--some-option <value>\", for example, \"--indent-with-tabs yes\".\n" |
2342 | | "\n" |
2343 | | " You can also specify a file containing configuration options with the \n" |
2344 | | " -config <file> directive, or in one or more files specific to your \n" |
2345 | | " environment (see next section). \n" |
2346 | | "\n" |
2347 | | " For a list of all configuration options, use \"-help-config\" or refer\n" |
2348 | | " to the man page (if your OS has one).\n" |
2349 | | "\n" |
2350 | | "Configuration Files\n" |
2351 | | "===================\n" |
2352 | | " If your environment has an $HTML_TIDY variable set to point to a Tidy \n" |
2353 | | " configuration file, then Tidy will attempt to use it. \n" |
2354 | | "%s" |
2355 | | " Use \"-help-env\" for more information about how you can use the environment. \n" |
2356 | | " to specify Tidy options. \n" |
2357 | | "\n" |
2358 | | "Other\n" |
2359 | | "=====\n" |
2360 | | " Input/Output default to stdin/stdout respectively.\n" |
2361 | | "\n" |
2362 | | " Single letter options apart from -f may be combined\n" |
2363 | | " as in: tidy -f errs.txt -imu foo.html\n" |
2364 | | "\n" |
2365 | | "Information\n" |
2366 | | "===========\n" |
2367 | | " For more information about HTML Tidy, see\n" |
2368 | | " https://www.html-tidy.org/\n" |
2369 | | "\n" |
2370 | | " For more information on HTML, see the following:\n" |
2371 | | "\n" |
2372 | | " HTML Living Standard (the latest HTML specification)\n" |
2373 | | " https://html.spec.whatwg.org/multipage/\n" |
2374 | | "\n" |
2375 | | " File bug reports at https://github.com/htacg/tidy-html5/issues/\n" |
2376 | | " or send questions and comments to public-htacg@w3.org.\n" |
2377 | | "\n" |
2378 | | " Validate your HTML documents using the W3C Nu Markup Validator:\n" |
2379 | | " https://validator.w3.org/nu/\n" |
2380 | | "\n" |
2381 | | }, |
2382 | | {/* This console output should be limited to 78 characters per line. |
2383 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2384 | | - Both parameters %s reflect file paths and names. */ |
2385 | | TC_TXT_HELP_3A, 0, |
2386 | | "\n" |
2387 | | " Additionally, Tidy will automatically attempt to use configuration specified \n" |
2388 | | " in these files, if present: \n" |
2389 | | "\n" |
2390 | | " %s \n" |
2391 | | " %s \n" |
2392 | | "\n" |
2393 | | }, |
2394 | | {/* This console output should be limited to 78 characters per line. |
2395 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2396 | | TC_TXT_HELP_CONFIG, 0, |
2397 | | "\n" |
2398 | | "HTML Tidy Configuration Settings\n" |
2399 | | "\n" |
2400 | | "Within a file, use the form:\n" |
2401 | | "\n" |
2402 | | "wrap: 72\n" |
2403 | | "indent: no\n" |
2404 | | "\n" |
2405 | | "When specified on the command line, use the form:\n" |
2406 | | "\n" |
2407 | | "--wrap 72 --indent no\n" |
2408 | | "\n" |
2409 | | }, |
2410 | | { TC_TXT_HELP_CONFIG_NAME, 0, "Name" }, |
2411 | | { TC_TXT_HELP_CONFIG_TYPE, 0, "Type" }, |
2412 | | { TC_TXT_HELP_CONFIG_ALLW, 0, "Allowable values" }, |
2413 | | {/* This console output should be limited to 78 characters per line. |
2414 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2415 | | - The first %s indicates two more list items, or an empty string. |
2416 | | - The second %s indicates a file name, or a message indicating no file name. */ |
2417 | | TC_TXT_HELP_ENV_1, 0, |
2418 | | "\n" |
2419 | | "Tidy can configure its option values from multiple sources, in the \n" |
2420 | | "order below. Subsequent use of the same option overrides previous \n" |
2421 | | "option settings. \n" |
2422 | | "\n" |
2423 | | " - Tidy's built-in default values. \n" |
2424 | | "%s" /* rc files */ |
2425 | | " - The file specified in the $HTML_TIDY environment variable: \n" |
2426 | | " %s \n" |
2427 | | " - Options in a file specified on the command line. \n" |
2428 | | " - Options set directly on the command line. \n" |
2429 | | }, |
2430 | | {/* This console output should be limited to 78 characters per line. |
2431 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2432 | | TC_TXT_HELP_ENV_1A, 0, |
2433 | | " - The system runtime configuration file: \n" |
2434 | | " %s \n" |
2435 | | " - The user runtime configuration file: \n" |
2436 | | " %s \n" |
2437 | | }, |
2438 | | {/* This console output should be limited to 78 characters per line. |
2439 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2440 | | - This message indicates that a file name is not currently set. */ |
2441 | | TC_TXT_HELP_ENV_1B, 0, |
2442 | | "(not currently set)" |
2443 | | }, |
2444 | | {/* This console output should be limited to 78 characters per line. |
2445 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2446 | | TC_TXT_HELP_ENV_1C, 0, |
2447 | | "\n" |
2448 | | "Note that because $HTML_TIDY is set, the user runtime configuration file \n" |
2449 | | "%s will not be used. \n" |
2450 | | }, |
2451 | | {/* This console output should be limited to 78 characters per line. |
2452 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2453 | | TC_TXT_HELP_LANG_1, 0, |
2454 | | "\n" |
2455 | | "The -language (or -lang) option indicates which language Tidy \n" |
2456 | | "should use to communicate its output. Please note that this is not \n" |
2457 | | "a document translation service, and only affects the messages that \n" |
2458 | | "Tidy communicates to you. \n" |
2459 | | "\n" |
2460 | | "When used from the command line the -language argument must \n" |
2461 | | "be used before any arguments that result in output, otherwise Tidy \n" |
2462 | | "will produce output before it knows which language to use. \n" |
2463 | | "\n" |
2464 | | "In addition to standard POSIX language codes, Tidy is capable of \n" |
2465 | | "understanding legacy Windows language codes. Please note that this \n" |
2466 | | "list indicates codes Tidy understands, and does not indicate that \n" |
2467 | | "the language is currently installed. \n" |
2468 | | "\n" |
2469 | | "The rightmost column indicates how Tidy will understand the \n" |
2470 | | "legacy Windows name.\n" |
2471 | | "\n" |
2472 | | }, |
2473 | | {/* This console output should be limited to 78 characters per line. |
2474 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */ |
2475 | | TC_TXT_HELP_LANG_2, 0, |
2476 | | "\n" |
2477 | | "The following languages are currently installed in Tidy. Please \n" |
2478 | | "note that there's no guarantee that they are complete; only that \n" |
2479 | | "one developer or another started to add the language indicated. \n" |
2480 | | "\n" |
2481 | | "Incomplete localizations will default to \"en\" when necessary. \n" |
2482 | | "Please report instances of incorrect strings to the Tidy team. \n" |
2483 | | "\n" |
2484 | | }, |
2485 | | {/* This console output should be limited to 78 characters per line. |
2486 | | - The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. |
2487 | | - The parameter %s is likely to be two to five characters, e.g., en or en_US. */ |
2488 | | TC_TXT_HELP_LANG_3, 0, |
2489 | | "\n" |
2490 | | "If Tidy is able to determine your locale then Tidy will use the \n" |
2491 | | "locale's language automatically. For example Unix-like systems use a \n" |
2492 | | "$LANG and/or $LC_ALL environment variable. Consult your operating \n" |
2493 | | "system documentation for more information. \n" |
2494 | | "\n" |
2495 | | "Tidy is currently using locale %s. \n" |
2496 | | "\n" |
2497 | | }, |
2498 | | #endif /* SUPPORT_CONSOLE_APP */ |
2499 | | |
2500 | | {/* This MUST be present and last. */ |
2501 | | TIDY_MESSAGE_TYPE_LAST, 0, NULL |
2502 | | } |
2503 | | }}; |
2504 | | |
2505 | | |
2506 | | #endif /* language_en_h */ |