31
31
#define ATRC_ACCESS_URL "http://www.aprompt.ca/Tidy/accessibilitychecks.html"
33
static const char release_date[] = "12 April 2005";
33
static const char release_date[] = "1 September 2005";
35
35
ctmbstr ReleaseDate(void)
312
312
/* Cross references */
313
static const TidyOptionId TidyXmlDeclLinks[] =
314
{ TidyCharEncoding, TidyOutCharEncoding, TidyUnknownOption };
313
315
static const TidyOptionId TidyJoinClassesLinks[] =
314
316
{ TidyJoinStyles, TidyDuplicateAttrs, TidyUnknownOption };
315
317
static const TidyOptionId TidyJoinStylesLinks[] =
334
336
{ TidyOutFile, TidyUnknownOption };
335
337
static const TidyOptionId TidyOutFileLinks[] =
336
338
{ TidyErrFile, TidyUnknownOption };
339
static const TidyOptionId TidyBlockTagsLinks[] =
340
{ TidyEmptyTags, TidyInlineTags, TidyPreTags, TidyUnknownOption };
337
341
static const TidyOptionId TidyEmptyTagsLinks[] =
338
{ TidyBlockTags, TidyInlineTags, TidyUnknownOption };
342
{ TidyBlockTags, TidyInlineTags, TidyPreTags, TidyUnknownOption };
343
static const TidyOptionId TidyInlineTagsLinks[] =
344
{ TidyBlockTags, TidyEmptyTags, TidyPreTags, TidyUnknownOption };
345
static const TidyOptionId TidyPreTagsLinks[] =
346
{ TidyBlockTags, TidyEmptyTags, TidyInlineTags, TidyUnknownOption };
339
347
static const TidyOptionId TidyMergeDivsLinks[] =
340
348
{ TidyMakeClean, TidyUnknownOption };
341
349
static const TidyOptionId TidyAsciiCharsLinks[] =
342
350
{ TidyMakeClean, TidyUnknownOption };
351
static const TidyOptionId TidyNumEntitiesLinks[] =
352
{ TidyDoctype, TidyUnknownOption };
344
354
/* Documentation of options */
345
355
static const TidyOptionDoc option_docs[] =
348
358
"This option specifies if Tidy should add the XML declaration when "
349
359
"outputting XML or XHTML. Note that if the input already includes an "
350
360
"<?xml ... ?> declaration then this option will be ignored. "
361
"If the encoding for the output is different from \"ascii\", one of the "
362
"utf encodings or \"raw\", the declaration is always added as required by "
353
367
"This option specifies if Tidy should add xml:space=\"preserve\" to "
388
402
"contents of the document. If set to \"strict\", Tidy will set the DOCTYPE "
389
403
"to the strict DTD. If set to \"loose\", the DOCTYPE is set to the loose "
390
404
"(transitional) DTD. Alternatively, you can supply a string for the formal "
391
"public identifier (FPI).<br /> "
393
"For example: <br /> "
395
"doctype: \"-//ACME//DTD HTML 3.14159//EN\"<br /> "
405
"public identifier (FPI).<br />"
407
"For example: <br />"
408
"doctype: \"-//ACME//DTD HTML 3.14159//EN\"<br />"
398
410
"If you specify the FPI for an XHTML document, Tidy will set the "
399
411
"system identifier to the empty string. Tidy leaves the DOCTYPE for "
400
412
"generic XML documents unchanged. <code>--doctype omit</code> implies "
401
413
"<code>--numeric-entities yes</code>. "
403
415
{TidyDropEmptyParas,
404
"This option specifies if Tidy should discard empty paragraphs. If set "
405
"to no, empty paragraphs are replaced by a pair of <BR> elements as "
406
"HTML4 precludes empty paragraphs. "
416
"This option specifies if Tidy should discard empty paragraphs. "
408
418
{TidyDropFontTags,
409
419
"This option specifies if Tidy should discard <FONT> and "
497
507
"refuse to generate a tidied file if the input includes previously unknown "
498
508
"tags. Note you can't change the content model for elements such as "
499
509
"<TABLE>, <UL>, <OL> and <DL>. "
502
513
"This option specifies new empty inline tags. This option takes a space "
519
531
"of tag names. Unless you declare new tags, Tidy will refuse to generate "
520
532
"a tidied file if the input includes previously unknown tags. Note you "
521
533
"can not as yet add new CDATA elements (similar to <SCRIPT>). "
523
536
{TidyNumEntities,
524
537
"This option specifies if Tidy should output entities other than the "
525
538
"built-in HTML entities (&amp;, &lt;, &gt; and &quot;) in "
526
539
"the numeric rather than the named entity form. "
540
,TidyNumEntitiesLinks
529
543
"This option specifies if Tidy should generate pretty printed output, "
590
604
"This option specifies if Tidy should go to great pains to strip out all "
591
605
"the surplus stuff Microsoft Word 2000 inserts when you save Word "
592
606
"documents as \"Web pages\". Doesn't handle embedded images or VML. "
607
"You should consider using Word's \"Save As: Web Page, Filtered\". "
594
609
{TidyAccessibilityCheckLevel,
595
610
"This option specifies what level of accessibility checking, if any, "
746
761
,TidyErrFileLinks
748
763
{TidyFixBackslash,
749
"This option specifies if Tidy should replace backslash characters \"\\\" "
750
"in URLs by forward slashes \"/\". "
764
"This option specifies if Tidy should replace backslash characters "
765
"\"<code>\\</code>\" in URLs by forward slashes \"<code>/</code>\". "
752
767
{TidyForceOutput,
753
768
"This option specifies if Tidy should produce output even if errors are "