~ubuntu-branches/ubuntu/vivid/tidy/vivid

« back to all changes in this revision

Viewing changes to src/localize.c

  • Committer: Bazaar Package Importer
  • Author(s): Jason Thomas
  • Date: 2005-10-20 10:26:07 UTC
  • mfrom: (0.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051020102607-ezcx81ght15xsjuj
Tags: 20051018-1
* New upstream release
  (closes: #333444)
* debian/tidy.install: added debian/tidy.conf /etc/tidy/
  (closes: #308883)
* debian/control: changed libtidy0 to libtidy-0.99-0
* updated manpage
  (closes: #224427)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
  CVS Info :
11
11
 
12
12
    $Author: arnaud02 $ 
13
 
    $Date: 2005/04/12 12:43:56 $ 
14
 
    $Revision: 1.133 $ 
 
13
    $Date: 2005/10/18 11:30:30 $ 
 
14
    $Revision: 1.144 $ 
15
15
 
16
16
*/
17
17
 
30
30
*/
31
31
#define ATRC_ACCESS_URL  "http://www.aprompt.ca/Tidy/accessibilitychecks.html"
32
32
 
33
 
static const char release_date[] = "12 April 2005";
 
33
static const char release_date[] = "1 September 2005";
34
34
 
35
35
ctmbstr ReleaseDate(void)
36
36
{
310
310
*/
311
311
 
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 };
343
353
 
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 "
 
363
   "the XML standard. "
 
364
   , TidyXmlDeclLinks
351
365
  },
352
366
  {TidyXmlSpace,
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 /> "
392
 
   "<br /> "
393
 
   "For example: <br /> "
394
 
   "<br /> "
395
 
   "doctype: \"-//ACME//DTD HTML 3.14159//EN\"<br /> "
396
 
   "<br /> "
397
 
   "<br /> "
 
405
   "public identifier (FPI).<br />"
 
406
   "<br />"
 
407
   "For example: <br />"
 
408
   "doctype: \"-//ACME//DTD HTML 3.14159//EN\"<br />"
 
409
   "<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>. "
402
414
  },
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 &lt;BR&gt; elements as "
406
 
   "HTML4 precludes empty paragraphs. "
 
416
   "This option specifies if Tidy should discard empty paragraphs. "
407
417
  },
408
418
  {TidyDropFontTags,
409
419
   "This option specifies if Tidy should discard &lt;FONT&gt; 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
   "&lt;TABLE&gt;, &lt;UL&gt;, &lt;OL&gt; and &lt;DL&gt;. "
 
510
   ,TidyBlockTagsLinks
500
511
  },
501
512
  {TidyEmptyTags,
502
513
   "This option specifies new empty inline tags. This option takes a space "
511
522
   "space or comma separated list of tag names. Unless you declare new tags, "
512
523
   "Tidy will refuse to generate a tidied file if the input includes "
513
524
   "previously unknown tags. "
 
525
   ,TidyInlineTagsLinks
514
526
  },
515
527
  { TidyPreTags,
516
528
    "This option specifies "
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 &lt;SCRIPT&gt;). "
 
534
    ,TidyPreTagsLinks
522
535
  },
523
536
  {TidyNumEntities,
524
537
   "This option specifies if Tidy should output entities other than the "
525
538
   "built-in HTML entities (&amp;amp;, &amp;lt;, &amp;gt; and &amp;quot;) in "
526
539
   "the numeric rather than the named entity form. "
 
540
    ,TidyNumEntitiesLinks
527
541
  },
528
542
  {TidyHtmlOut,
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\". "
593
608
  },
594
609
  {TidyAccessibilityCheckLevel,
595
610
   "This option specifies what level of accessibility checking, if any, "
746
761
   ,TidyErrFileLinks
747
762
  },
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>\". "
751
766
  },
752
767
  {TidyForceOutput,
753
768
   "This option specifies if Tidy should produce output even if errors are "