~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

TidyLib
tidy/src/clean.h

Version: ~ [ 1.0 ] ~

  1 #ifndef __CLEAN_H__
  2 #define __CLEAN_H__
  3 
  4 /* clean.h -- clean up misuse of presentation markup
  5 
  6   (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
  7   See tidy.h for the copyright notice.
  8 
  9   CVS Info:
 10     $Author: arnaud02 $ 
 11     $Date: 2005/02/21 17:20:19 $ 
 12     $Revision: 1.11 $ 
 13 
 14 */
 15 
 16 void RenameElem( Node* node, TidyTagId tid );
 17 
 18 void FixNodeLinks(Node *node);
 19 
 20 Node* CleanNode( TidyDocImpl* doc, Node* node );
 21 
 22 void FreeStyles( TidyDocImpl* doc );
 23 
 24 /* Add class="foo" to node
 25 */
 26 void AddClass( TidyDocImpl* doc, Node* node, ctmbstr classname );
 27 
 28 void CleanDocument( TidyDocImpl* doc );
 29 
 30 /* simplifies <b><b> ... </b> ...</b> etc. */
 31 void NestedEmphasis( TidyDocImpl* doc, Node* node );
 32 
 33 /* replace i by em and b by strong */
 34 void EmFromI( TidyDocImpl* doc, Node* node );
 35 
 36 /*
 37  Some people use dir or ul without an li
 38  to indent the content. The pattern to
 39  look for is a list with a single implicit
 40  li. This is recursively replaced by an
 41  implicit blockquote.
 42 */
 43 void List2BQ( TidyDocImpl* doc, Node* node );
 44 
 45 /*
 46  Replace implicit blockquote by div with an indent
 47  taking care to reduce nested blockquotes to a single
 48  div with the indent set to match the nesting depth
 49 */
 50 void BQ2Div( TidyDocImpl* doc, Node* node );
 51 
 52 
 53 Node *FindEnclosingCell( TidyDocImpl* doc, Node* node );
 54 
 55 void DropSections( TidyDocImpl* doc, Node* node );
 56 
 57 /* used to hunt for hidden preformatted sections */
 58 Bool NoMargins(Node *node);
 59 
 60 /* does element have a single space as its content? */
 61 Bool IsSingleSpace(Lexer *lexer, Node *node);
 62 
 63 
 64 /*
 65  This is a major clean up to strip out all the extra stuff you get
 66  when you save as web page from Word 2000. It doesn't yet know what
 67  to do with VML tags, but these will appear as errors unless you
 68  declare them as new tags, such as o:p which needs to be declared
 69  as inline.
 70 */
 71 void CleanWord2000( TidyDocImpl* doc, Node *node);
 72 
 73 Bool IsWord2000( TidyDocImpl* doc );
 74 
 75 /* where appropriate move object elements from head to body */
 76 void BumpObject( TidyDocImpl* doc, Node *html );
 77 
 78 /* This is disabled due to http://tidy.sf.net/bug/681116 */
 79 #if 0
 80 void FixBrakes( TidyDocImpl* pDoc, Node *pParent );
 81 #endif
 82 
 83 void VerifyHTTPEquiv( TidyDocImpl* pDoc, Node *pParent );
 84 
 85 void DropComments(TidyDocImpl* doc, Node* node);
 86 void DropFontElements(TidyDocImpl* doc, Node* node, Node **pnode);
 87 void WbrToSpace(TidyDocImpl* doc, Node* node);
 88 void DowngradeTypography(TidyDocImpl* doc, Node* node);
 89 void ReplacePreformattedSpaces(TidyDocImpl* doc, Node* node);
 90 void NormalizeSpaces(Lexer *lexer, Node *node);
 91 void ConvertCDATANodes(TidyDocImpl* doc, Node* node);
 92 
 93 void FixAnchors(TidyDocImpl* doc, Node *node, Bool wantName, Bool wantId);
 94 void FixXhtmlNamespace(TidyDocImpl* doc, Bool wantXmlns);
 95 void FixLanguageInformation(TidyDocImpl* doc, Node* node, Bool wantXmlLang, Bool wantLang);
 96 
 97 
 98 #endif /* __CLEAN_H__ */
 99 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.