Merge branch 'clean_deprecations' into next
This commit is contained in:
commit
f3e3e1708b
|
@ -140,9 +140,9 @@ set ( INCDIR include )
|
|||
set ( CFILES
|
||||
${SRCDIR}/access.c ${SRCDIR}/attrs.c ${SRCDIR}/istack.c
|
||||
${SRCDIR}/parser.c ${SRCDIR}/tags.c ${SRCDIR}/entities.c
|
||||
${SRCDIR}/lexer.c ${SRCDIR}/pprint.c ${SRCDIR}/charsets.c ${SRCDIR}/clean.c
|
||||
${SRCDIR}/message.c ${SRCDIR}/config.c ${SRCDIR}/alloc.c
|
||||
${SRCDIR}/attrask.c ${SRCDIR}/attrdict.c ${SRCDIR}/attrget.c
|
||||
${SRCDIR}/lexer.c ${SRCDIR}/pprint.c ${SRCDIR}/charsets.c
|
||||
${SRCDIR}/clean.c ${SRCDIR}/message.c ${SRCDIR}/config.c
|
||||
${SRCDIR}/alloc.c ${SRCDIR}/attrapi.c ${SRCDIR}/attrdict.c
|
||||
${SRCDIR}/buffio.c ${SRCDIR}/fileio.c ${SRCDIR}/streamio.c
|
||||
${SRCDIR}/tagask.c ${SRCDIR}/tmbstr.c ${SRCDIR}/utf8.c
|
||||
${SRCDIR}/tidylib.c ${SRCDIR}/mappedio.c ${SRCDIR}/gdoc.c
|
||||
|
|
|
@ -36,7 +36,7 @@ The `TIDY_EXPORT` call clearly indicates that this function prototype is meant t
|
|||
|
||||
Although this makes things obvious from the documentation perspective, the truth is a little murkier. In some environments one might define `TIDY_EXPORT` and `TIDY_CALL` differently in order to control compiler behavior, especially in environments that have special requirements for dynamic libraries. In general, though, you shouldn't have to worry about this.
|
||||
|
||||
Note that MSVC has issues with macros inserted before pointer operators, and so the preferred use of pointer operators when documenting with macros is this:
|
||||
The preferred use of pointer operators when documenting with macros is this:
|
||||
|
||||
~~~
|
||||
const tidyLocaleMapItem* TIDY_CALL getNextWindowsLanguage( TidyIterator* iter )
|
||||
|
|
|
@ -18,7 +18,7 @@ From reading of the Tidy source, some things are self evident, in no particular
|
|||
- No C++ single line comments using `//`.
|
||||
- The openning `{` is indented on the next newline.
|
||||
- While the maximum code line length varies, generally long `if`, `while`, ... statements are wrapped to newlines.
|
||||
- For compatibility with MSVC, pointer operators in declarations must precede any macro documentation, e.g, `const tidyLocaleMapItem* TIDY_CALL getNextWindowsLanguage( TidyIterator* iter )` instead of `const tidyLocaleMapItem TIDY_CALL *getNextWindowsLanguage( TidyIterator* iter )`.
|
||||
- Pointer operators in declarations must precede any macro documentation, e.g, `const tidyLocaleMapItem* TIDY_CALL getNextWindowsLanguage( TidyIterator* iter )` instead of `const tidyLocaleMapItem TIDY_CALL *getNextWindowsLanguage( TidyIterator* iter )` in case `TIDY_CALL` is defined.
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1936,7 +1936,7 @@ int main( int argc, char** argv )
|
|||
#if (!defined(NDEBUG) && defined(_MSC_VER))
|
||||
SPRTF("Tidying '%s'\n", htmlfil);
|
||||
#endif /* DEBUG outout */
|
||||
if ( tidyOptGetBool(tdoc, TidyEmacs) )
|
||||
if ( tidyOptGetBool(tdoc, TidyEmacs) && !tidyOptGetValue(tdoc, TidyEmacsFile) )
|
||||
tidyOptSetValue( tdoc, TidyEmacsFile, htmlfil );
|
||||
status = tidyParseFile( tdoc, htmlfil );
|
||||
}
|
||||
|
|
234
include/tidy.h
234
include/tidy.h
|
@ -792,12 +792,6 @@ TIDY_EXPORT TidyNode TIDY_CALL tidyGetChild( TidyNode tnod );
|
|||
TIDY_EXPORT TidyNode TIDY_CALL tidyGetNext( TidyNode tnod );
|
||||
TIDY_EXPORT TidyNode TIDY_CALL tidyGetPrev( TidyNode tnod );
|
||||
|
||||
/* Null for non-element nodes and all pure HTML
|
||||
TIDY_EXPORT ctmbstr tidyNodeNsLocal( TidyNode tnod );
|
||||
TIDY_EXPORT ctmbstr tidyNodeNsPrefix( TidyNode tnod );
|
||||
TIDY_EXPORT ctmbstr tidyNodeNsUri( TidyNode tnod );
|
||||
*/
|
||||
|
||||
/* Iterate over attribute values */
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrFirst( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrNext( TidyAttr tattr );
|
||||
|
@ -807,12 +801,6 @@ TIDY_EXPORT ctmbstr TIDY_CALL tidyAttrValue( TidyAttr tattr );
|
|||
|
||||
TIDY_EXPORT void TIDY_CALL tidyAttrDiscard( TidyDoc itdoc, TidyNode tnod, TidyAttr tattr );
|
||||
|
||||
/* Null for pure HTML
|
||||
TIDY_EXPORT ctmbstr tidyAttrNsLocal( TidyAttr tattr );
|
||||
TIDY_EXPORT ctmbstr tidyAttrNsPrefix( TidyAttr tattr );
|
||||
TIDY_EXPORT ctmbstr tidyAttrNsUri( TidyAttr tattr );
|
||||
*/
|
||||
|
||||
/** @} end Tree group */
|
||||
|
||||
|
||||
|
@ -824,7 +812,7 @@ TIDY_EXPORT ctmbstr tidyAttrNsUri( TidyAttr tattr );
|
|||
|
||||
/* Node info */
|
||||
TIDY_EXPORT TidyNodeType TIDY_CALL tidyNodeGetType( TidyNode tnod );
|
||||
TIDY_EXPORT ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod );
|
||||
TIDY_EXPORT ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod );
|
||||
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsText( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsProp( TidyDoc tdoc, TidyNode tnod );
|
||||
|
@ -841,235 +829,21 @@ TIDY_EXPORT TidyTagId TIDY_CALL tidyNodeGetId( TidyNode tnod );
|
|||
TIDY_EXPORT uint TIDY_CALL tidyNodeLine( TidyNode tnod );
|
||||
TIDY_EXPORT uint TIDY_CALL tidyNodeColumn( TidyNode tnod );
|
||||
|
||||
/** @defgroup NodeIsElementName Deprecated node interrogation per TagId
|
||||
**
|
||||
** @deprecated The functions tidyNodeIs{ElementName} are deprecated and
|
||||
** should be replaced by tidyNodeGetId.
|
||||
** @{
|
||||
*/
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHTML( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHEAD( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTITLE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMETA( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBODY( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAMESET( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFRAME( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIFRAME( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOFRAMES( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsHR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH1( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH2( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPRE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLISTING( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsP( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsUL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLI( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDD( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTABLE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCAPTION( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTD( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTH( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCOLGROUP( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsA( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLINK( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsB( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsI( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRONG( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEM( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBIG( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSMALL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsPARAM( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTION( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOPTGROUP( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsIMG( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMAP( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAREA( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOBR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsWBR( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFONT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLAYER( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPACER( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsCENTER( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTYLE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSCRIPT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsNOSCRIPT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsFORM( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsTEXTAREA( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLOCKQUOTE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsAPPLET( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsOBJECT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDIV( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSPAN( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsINPUT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsQ( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsLABEL( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH3( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH4( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH5( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsH6( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsADDRESS( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsXMP( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSELECT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBLINK( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMARQUEE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsEMBED( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsBASEFONT( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsISINDEX( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsS( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsSTRIKE( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsU( TidyNode tnod );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsMENU( TidyNode tnod );
|
||||
|
||||
/* HTML5 */
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyNodeIsDATALIST( TidyNode tnod ); /* bit like OPTIONS */
|
||||
|
||||
|
||||
/** @} End NodeIsElementName group */
|
||||
|
||||
/** @} End NodeAsk group */
|
||||
|
||||
|
||||
/** @defgroup Attribute Attribute Interrogation
|
||||
/** @defgroup Attribute Attribute Interrogation and Retrieval
|
||||
**
|
||||
** Get information about any given attribute.
|
||||
** Get information about attributes, and retrieve them from nodes.
|
||||
** @{
|
||||
*/
|
||||
|
||||
TIDY_EXPORT TidyAttrId TIDY_CALL tidyAttrGetId( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsProp( TidyAttr tattr );
|
||||
|
||||
/** @defgroup AttrIsAttributeName Deprecated attribute interrogation per AttrId
|
||||
**
|
||||
** @deprecated The functions tidyAttrIs{AttributeName} are deprecated and
|
||||
** should be replaced by tidyAttrGetId.
|
||||
** @{
|
||||
*/
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHREF( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSRC( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsID( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsNAME( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSUMMARY( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALT( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLONGDESC( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsUSEMAP( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsISMAP( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANGUAGE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTYPE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVALUE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCONTENT( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTITLE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsXMLNS( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsDATAFLD( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsWIDTH( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHEIGHT( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsFOR( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSELECTED( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCHECKED( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLANG( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTARGET( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsHTTP_EQUIV( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsREL( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEMOVE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEDOWN( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEUP( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnCLICK( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOVER( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnMOUSEOUT( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYDOWN( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYUP( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnKEYPRESS( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnFOCUS( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsOnBLUR( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsBGCOLOR( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsLINK( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsALINK( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsVLINK( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsTEXT( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsSTYLE( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsABBR( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsCOLSPAN( TidyAttr tattr );
|
||||
TIDY_EXPORT Bool TIDY_CALL tidyAttrIsROWSPAN( TidyAttr tattr );
|
||||
|
||||
/** @} End AttrIsAttributeName group */
|
||||
|
||||
/** @} end AttrAsk group */
|
||||
|
||||
|
||||
/** @defgroup AttrGet Attribute Retrieval
|
||||
**
|
||||
** Lookup an attribute from a given node
|
||||
** @{
|
||||
*/
|
||||
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId );
|
||||
|
||||
/** @defgroup AttrGetAttributeName Deprecated attribute retrieval per AttrId
|
||||
**
|
||||
** @deprecated The functions tidyAttrGet{AttributeName} are deprecated and
|
||||
** should be replaced by tidyAttrGetById.
|
||||
** For instance, tidyAttrGetID( TidyNode tnod ) can be replaced by
|
||||
** tidyAttrGetById( TidyNode tnod, TidyAttr_ID ). This avoids a potential
|
||||
** name clash with tidyAttrGetId for case-insensitive languages.
|
||||
** @{
|
||||
*/
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod );
|
||||
TIDY_EXPORT TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod );
|
||||
|
||||
/** @} End AttrGetAttributeName group */
|
||||
|
||||
/** @} end AttrGet group */
|
||||
/** @} end Attribute group */
|
||||
|
||||
|
||||
/** @defgroup MessagesKeys Message Key Management
|
||||
|
|
|
@ -71,9 +71,6 @@ typedef enum
|
|||
TidyDuplicateAttrs, /**< Keep first or last duplicate attribute */
|
||||
TidyAltText, /**< Default text for alt attribute */
|
||||
|
||||
/* obsolete */
|
||||
TidySlideStyle, /**< Style sheet for slides: not used for anything yet */
|
||||
|
||||
TidyErrFile, /**< File name to write errors to */
|
||||
TidyOutFile, /**< File name to write markup to */
|
||||
TidyWriteBack, /**< If true then output tidied markup */
|
||||
|
@ -105,9 +102,6 @@ typedef enum
|
|||
TidyFixComments, /**< Fix comments with adjacent hyphens */
|
||||
TidyBreakBeforeBR, /**< Output newline before <br> or not? */
|
||||
|
||||
/* obsolete */
|
||||
TidyBurstSlides, /**< Create slides on each h2 element */
|
||||
|
||||
TidyNumEntities, /**< Use numeric entities */
|
||||
TidyQuoteMarks, /**< Output " marks as " */
|
||||
TidyQuoteNbsp, /**< Output non-breaking space as entity */
|
||||
|
@ -143,10 +137,8 @@ typedef enum
|
|||
TidyEscapeCdata, /**< Replace <![CDATA[]]> sections with escaped text */
|
||||
|
||||
#if SUPPORT_ASIAN_ENCODINGS
|
||||
TidyLanguage, /**< Language property: not used for anything yet */
|
||||
TidyNCR, /**< Allow numeric character references */
|
||||
#else
|
||||
TidyLanguageNotUsed,
|
||||
TidyNCRNotUsed,
|
||||
#endif
|
||||
#if SUPPORT_UTF16_ENCODINGS
|
||||
|
|
|
@ -569,8 +569,10 @@ typedef const tmbchar* ctmbstr; /* Ditto, but const */
|
|||
|
||||
#if defined(__GNUC__) || defined(__INTEL_COMPILER)
|
||||
# define ARG_UNUSED(x) x __attribute__((unused))
|
||||
# define FUNC_UNUSED __attribute__((unused))
|
||||
#else
|
||||
# define ARG_UNUSED(x) x
|
||||
# define FUNC_UNUSED
|
||||
#endif
|
||||
|
||||
/* HAS_VSNPRINTF triggers the use of "vsnprintf", which is safe related to
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2017-02-17 14:46:38\n"
|
||||
"PO-Revision-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2437,18 +2437,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2667,20 +2655,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2808,7 +2782,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -2860,18 +2837,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3461,12 +3426,12 @@ msgstr ""
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2017-02-17 14:46:38\n"
|
||||
"PO-Revision-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2414,18 +2414,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2644,20 +2632,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2785,7 +2759,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -2837,18 +2814,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3438,12 +3403,12 @@ msgstr ""
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
@ -3457,12 +3422,12 @@ msgid ""
|
|||
"\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"La opción --language (o --lang) indica el lenguaje Tidy debe \n"
|
||||
"La opción -language (o -lang) indica el lenguaje Tidy debe \n"
|
||||
"utilizar para comunicar su salida. Tenga en cuenta que esto no es \n"
|
||||
"un servicio de traducción de documentos, y sólo afecta a los mensajes \n"
|
||||
"que Tidy comunica a usted. \n"
|
||||
"\n"
|
||||
"Cuando se utiliza la línea de comandos el argumento --language debe \n"
|
||||
"Cuando se utiliza la línea de comandos el argumento -language debe \n"
|
||||
"utilizarse antes de cualquier argumento que dan lugar a la producción, \n"
|
||||
"de lo contrario Tidy producirá la salida antes de que se conozca el \n"
|
||||
"idioma a utilizar. \n"
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2017-02-17 14:46:38\n"
|
||||
"PO-Revision-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2409,18 +2409,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2639,20 +2627,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2780,7 +2754,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -2832,18 +2809,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3433,12 +3398,12 @@ msgstr ""
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2017-02-17 14:46:38\n"
|
||||
"PO-Revision-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2594,18 +2594,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2824,20 +2812,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2965,7 +2939,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -3017,18 +2994,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3674,12 +3639,12 @@ msgstr "Les valeurs autorisées"
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
@ -3693,13 +3658,13 @@ msgid ""
|
|||
"\n"
|
||||
msgstr ""
|
||||
"\n"
|
||||
"L'option --language (ou --lang) indique la langue Tidy\n"
|
||||
"L'option -language (ou -lang) indique la langue Tidy\n"
|
||||
"doit utiliser pour communiquer sa sortie. S'il vous plaît noter que ce ne sont pas "
|
||||
"un service de traduction de documents, et affecte uniquement les messages qui Tidy "
|
||||
"communique à vous.\n"
|
||||
"\n"
|
||||
"Lorsqu'il est utilisé à partir de la ligne de commande de l'argument doit \n"
|
||||
"--language être utilisé avant des arguments qui résultent de la production, sinon "
|
||||
"-language être utilisé avant des arguments qui résultent de la production, sinon "
|
||||
"Tidy\n"
|
||||
"va produire une sortie avant qu'il connaît la langue à utiliser.\n"
|
||||
"\n"
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"PO-Revision-Date: 2017-02-17 14:46:38\n"
|
||||
"PO-Revision-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2403,18 +2403,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2633,20 +2621,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2774,7 +2748,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -2826,18 +2803,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3427,12 +3392,12 @@ msgstr ""
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
|
|
@ -5,7 +5,7 @@ msgstr ""
|
|||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: HTML Tidy poconvert.rb\n"
|
||||
"Project-Id-Version: \n"
|
||||
"POT-Creation-Date: 2017-02-17 14:46:38\n"
|
||||
"POT-Creation-Date: 2017-02-18 18:13:23\n"
|
||||
"Last-Translator: jderry\n"
|
||||
"Language-Team: \n"
|
||||
|
||||
|
@ -2405,18 +2405,6 @@ msgid ""
|
|||
"Chinese punctuation characters. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyBurstSlides"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2635,20 +2623,6 @@ msgid ""
|
|||
"<code>char-encoding</code> for more info. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyLanguage"
|
||||
msgid ""
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -2776,7 +2750,10 @@ msgstr ""
|
|||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidyEmacsFile"
|
||||
msgid "Used internally. "
|
||||
msgid ""
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
|
@ -2828,18 +2805,6 @@ msgid ""
|
|||
"of errors and warnings, or the welcome or informational messages. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
#. - Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
#. - Option values should be enclosed in <var></var>.
|
||||
#. - It's very important that <br/> be self-closing!
|
||||
#. - The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
#. be translated.
|
||||
msgctxt "TidySlideStyle"
|
||||
msgid "This option has no function and is deprecated. "
|
||||
msgstr ""
|
||||
|
||||
#. Important notes for translators:
|
||||
#. - Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
#. <br/>.
|
||||
|
@ -3429,12 +3394,12 @@ msgstr ""
|
|||
msgctxt "TC_TXT_HELP_LANG_1"
|
||||
msgid ""
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
|
31
src/attrapi.c
Normal file
31
src/attrapi.c
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* attrget.c -- Additional attribute API
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
See tidy.h for the copyright notice.
|
||||
|
||||
*/
|
||||
|
||||
#include "tidy-int.h"
|
||||
#include "tidy.h"
|
||||
|
||||
TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId )
|
||||
{
|
||||
Node* nimp = tidyNodeToImpl(tnod);
|
||||
return tidyImplToAttr( TY_(AttrGetById)( nimp, attId ) );
|
||||
}
|
||||
|
||||
|
||||
Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr )
|
||||
{
|
||||
return TY_(attrIsEvent)( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* local variables:
|
||||
* mode: c
|
||||
* indent-tabs-mode: nil
|
||||
* c-basic-offset: 4
|
||||
* eval: (c-set-offset 'substatement-open 0)
|
||||
* end:
|
||||
*/
|
204
src/attrask.c
204
src/attrask.c
|
@ -1,204 +0,0 @@
|
|||
/* attrask.c -- Interrogate attribute type
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
See tidy.h for the copyright notice.
|
||||
|
||||
*/
|
||||
|
||||
#include "tidy-int.h"
|
||||
#include "tidy.h"
|
||||
#include "attrs.h"
|
||||
|
||||
Bool TIDY_CALL tidyAttrIsHREF( TidyAttr tattr )
|
||||
{
|
||||
return attrIsHREF( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsSRC( TidyAttr tattr )
|
||||
{
|
||||
return attrIsSRC( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsID( TidyAttr tattr )
|
||||
{
|
||||
return attrIsID( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsNAME( TidyAttr tattr )
|
||||
{
|
||||
return attrIsNAME( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsSUMMARY( TidyAttr tattr )
|
||||
{
|
||||
return attrIsSUMMARY( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsALT( TidyAttr tattr )
|
||||
{
|
||||
return attrIsALT( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsLONGDESC( TidyAttr tattr )
|
||||
{
|
||||
return attrIsLONGDESC( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsUSEMAP( TidyAttr tattr )
|
||||
{
|
||||
return attrIsUSEMAP( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsISMAP( TidyAttr tattr )
|
||||
{
|
||||
return attrIsISMAP( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsLANGUAGE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsLANGUAGE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsTYPE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsTYPE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsVALUE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsVALUE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsCONTENT( TidyAttr tattr )
|
||||
{
|
||||
return attrIsCONTENT( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsTITLE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsTITLE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsXMLNS( TidyAttr tattr )
|
||||
{
|
||||
return attrIsXMLNS( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsDATAFLD( TidyAttr tattr )
|
||||
{
|
||||
return attrIsDATAFLD( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsWIDTH( TidyAttr tattr )
|
||||
{
|
||||
return attrIsWIDTH( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsHEIGHT( TidyAttr tattr )
|
||||
{
|
||||
return attrIsHEIGHT( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsFOR( TidyAttr tattr )
|
||||
{
|
||||
return attrIsFOR( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsSELECTED( TidyAttr tattr )
|
||||
{
|
||||
return attrIsSELECTED( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsCHECKED( TidyAttr tattr )
|
||||
{
|
||||
return attrIsCHECKED( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsLANG( TidyAttr tattr )
|
||||
{
|
||||
return attrIsLANG( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsTARGET( TidyAttr tattr )
|
||||
{
|
||||
return attrIsTARGET( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsHTTP_EQUIV( TidyAttr tattr )
|
||||
{
|
||||
return attrIsHTTP_EQUIV( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsREL( TidyAttr tattr )
|
||||
{
|
||||
return attrIsREL( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsEvent( TidyAttr tattr )
|
||||
{
|
||||
return TY_(attrIsEvent)( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnMOUSEMOVE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnMOUSEMOVE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnMOUSEDOWN( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnMOUSEDOWN( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnMOUSEUP( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnMOUSEUP( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnCLICK( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnCLICK( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnMOUSEOVER( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnMOUSEOVER( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnMOUSEOUT( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnMOUSEOUT( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnKEYDOWN( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnKEYDOWN( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnKEYUP( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnKEYUP( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnKEYPRESS( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnKEYPRESS( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnFOCUS( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnFOCUS( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsOnBLUR( TidyAttr tattr )
|
||||
{
|
||||
return attrIsOnBLUR( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsBGCOLOR( TidyAttr tattr )
|
||||
{
|
||||
return attrIsBGCOLOR( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsLINK( TidyAttr tattr )
|
||||
{
|
||||
return attrIsLINK( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsALINK( TidyAttr tattr )
|
||||
{
|
||||
return attrIsALINK( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsVLINK( TidyAttr tattr )
|
||||
{
|
||||
return attrIsVLINK( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsTEXT( TidyAttr tattr )
|
||||
{
|
||||
return attrIsTEXT( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsSTYLE( TidyAttr tattr )
|
||||
{
|
||||
return attrIsSTYLE( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsABBR( TidyAttr tattr )
|
||||
{
|
||||
return attrIsABBR( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsCOLSPAN( TidyAttr tattr )
|
||||
{
|
||||
return attrIsCOLSPAN( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsROWSPAN( TidyAttr tattr )
|
||||
{
|
||||
return attrIsROWSPAN( tidyAttrToImpl(tattr) );
|
||||
}
|
||||
|
||||
/*
|
||||
* local variables:
|
||||
* mode: c
|
||||
* indent-tabs-mode: nil
|
||||
* c-basic-offset: 4
|
||||
* eval: (c-set-offset 'substatement-open 0)
|
||||
* end:
|
||||
*/
|
208
src/attrget.c
208
src/attrget.c
|
@ -1,208 +0,0 @@
|
|||
/* attrget.c -- Locate attribute value by type
|
||||
|
||||
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
||||
See tidy.h for the copyright notice.
|
||||
|
||||
*/
|
||||
|
||||
#include "tidy-int.h"
|
||||
#include "tags.h"
|
||||
#include "attrs.h"
|
||||
#include "tidy.h"
|
||||
|
||||
TidyAttr TIDY_CALL tidyAttrGetById( TidyNode tnod, TidyAttrId attId )
|
||||
{
|
||||
Node* nimp = tidyNodeToImpl(tnod);
|
||||
return tidyImplToAttr( TY_(AttrGetById)( nimp, attId ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetHREF( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetHREF( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetSRC( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetSRC( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetID( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetID( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetNAME( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetNAME( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetSUMMARY( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetSUMMARY( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetALT( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetALT( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetLONGDESC( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetLONGDESC( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetUSEMAP( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetUSEMAP( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetISMAP( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetISMAP( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetLANGUAGE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetLANGUAGE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetTYPE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetTYPE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetVALUE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetVALUE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetCONTENT( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetCONTENT( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetTITLE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetTITLE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetXMLNS( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetXMLNS( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetDATAFLD( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetDATAFLD( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetWIDTH( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetWIDTH( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetHEIGHT( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetHEIGHT( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetFOR( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetFOR( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetSELECTED( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetSELECTED( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetCHECKED( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetCHECKED( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetLANG( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetLANG( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetTARGET( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetTARGET( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetHTTP_EQUIV( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetHTTP_EQUIV( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetREL( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetREL( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnMOUSEMOVE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnMOUSEMOVE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnMOUSEDOWN( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnMOUSEDOWN( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnMOUSEUP( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnMOUSEUP( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnCLICK( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnCLICK( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOVER( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnMOUSEOVER( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnMOUSEOUT( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnMOUSEOUT( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnKEYDOWN( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnKEYDOWN( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnKEYUP( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnKEYUP( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnKEYPRESS( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnKEYPRESS( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnFOCUS( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnFOCUS( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetOnBLUR( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetOnBLUR( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetBGCOLOR( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetBGCOLOR( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetLINK( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetLINK( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetALINK( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetALINK( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetVLINK( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetVLINK( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
|
||||
TidyAttr TIDY_CALL tidyAttrGetTEXT( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetTEXT( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetSTYLE( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetSTYLE( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetABBR( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetABBR( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetCOLSPAN( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetCOLSPAN( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
TidyAttr TIDY_CALL tidyAttrGetROWSPAN( TidyNode tnod )
|
||||
{
|
||||
return tidyImplToAttr( attrGetROWSPAN( tidyNodeToImpl(tnod) ) );
|
||||
}
|
||||
|
||||
/*
|
||||
* local variables:
|
||||
* mode: c
|
||||
* indent-tabs-mode: nil
|
||||
* c-basic-offset: 4
|
||||
* eval: (c-set-offset 'substatement-open 0)
|
||||
* end:
|
||||
*/
|
19
src/config.c
19
src/config.c
|
@ -226,10 +226,6 @@ static const TidyOptionImpl option_defs[] =
|
|||
{ TidyDoctype, MU, "doctype", ST, 0, ParseDocType, doctypePicks },
|
||||
{ TidyDuplicateAttrs, MU, "repeated-attributes", IN, TidyKeepLast, ParseRepeatAttr, repeatAttrPicks },
|
||||
{ TidyAltText, MU, "alt-text", ST, 0, ParseString, NULL },
|
||||
|
||||
/* obsolete */
|
||||
{ TidySlideStyle, MS, "slide-style", ST, 0, ParseName, NULL },
|
||||
|
||||
{ TidyErrFile, MS, "error-file", ST, 0, ParseString, NULL },
|
||||
{ TidyOutFile, MS, "output-file", ST, 0, ParseString, NULL },
|
||||
{ TidyWriteBack, MS, "write-back", BL, no, ParseBool, boolPicks },
|
||||
|
@ -258,10 +254,6 @@ static const TidyOptionImpl option_defs[] =
|
|||
{ TidyDropEmptyParas, MU, "drop-empty-paras", BL, yes, ParseBool, boolPicks },
|
||||
{ TidyFixComments, MU, "fix-bad-comments", BL, yes, ParseBool, boolPicks },
|
||||
{ TidyBreakBeforeBR, PP, "break-before-br", BL, no, ParseBool, boolPicks },
|
||||
|
||||
/* obsolete */
|
||||
{ TidyBurstSlides, PP, "split", BL, no, ParseBool, boolPicks },
|
||||
|
||||
{ TidyNumEntities, MU, "numeric-entities", BL, no, ParseBool, boolPicks },
|
||||
{ TidyQuoteMarks, MU, "quote-marks", BL, no, ParseBool, boolPicks },
|
||||
{ TidyQuoteNbsp, MU, "quote-nbsp", BL, yes, ParseBool, boolPicks },
|
||||
|
@ -296,7 +288,6 @@ static const TidyOptionImpl option_defs[] =
|
|||
{ TidyJoinStyles, MU, "join-styles", BL, yes, ParseBool, boolPicks },
|
||||
{ TidyEscapeCdata, MU, "escape-cdata", BL, no, ParseBool, boolPicks },
|
||||
#if SUPPORT_ASIAN_ENCODINGS
|
||||
{ TidyLanguage, CE, "language", ST, 0, ParseName, NULL },
|
||||
{ TidyNCR, MU, "ncr", BL, yes, ParseBool, boolPicks },
|
||||
#endif
|
||||
#if SUPPORT_UTF16_ENCODINGS
|
||||
|
@ -627,14 +618,6 @@ ctmbstr TY_(_cfgGetString)( TidyDocImpl* doc, TidyOptionId optId )
|
|||
#endif
|
||||
|
||||
|
||||
#if 0
|
||||
/* for use with Gnu Emacs */
|
||||
void SetEmacsFilename( TidyDocImpl* doc, ctmbstr filename )
|
||||
{
|
||||
SetOptionValue( doc, TidyEmacsFile, filename );
|
||||
}
|
||||
#endif
|
||||
|
||||
static tchar GetC( TidyConfigImpl* config )
|
||||
{
|
||||
if ( config->cfgIn )
|
||||
|
@ -1174,7 +1157,7 @@ Bool ParseAutoBool( TidyDocImpl* doc, const TidyOptionImpl* entry )
|
|||
}
|
||||
|
||||
/* a string excluding whitespace */
|
||||
Bool ParseName( TidyDocImpl* doc, const TidyOptionImpl* option )
|
||||
Bool FUNC_UNUSED ParseName( TidyDocImpl* doc, const TidyOptionImpl* option )
|
||||
{
|
||||
tmbchar buf[ 1024 ] = {0};
|
||||
uint i = 0;
|
||||
|
|
|
@ -119,8 +119,6 @@ int TY_(CharEncodingId)( TidyDocImpl* doc, ctmbstr charenc );
|
|||
ctmbstr TY_(CharEncodingName)( int encoding );
|
||||
ctmbstr TY_(CharEncodingOptName)( int encoding );
|
||||
|
||||
/* void SetEmacsFilename( TidyDocImpl* doc, ctmbstr filename ); */
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
|
||||
|
|
|
@ -1547,17 +1547,6 @@ static languageDefinition language_en = { whichPluralForm_en, {
|
|||
"Chinese punctuation characters. "
|
||||
},
|
||||
#endif
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
<br/>.
|
||||
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
- Option values should be enclosed in <var></var>.
|
||||
- It's very important that <br/> be self-closing!
|
||||
- The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
be translated. */
|
||||
TidyBurstSlides, 0,
|
||||
"This option has no function and is deprecated. "
|
||||
},
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
<br/>.
|
||||
|
@ -1752,20 +1741,6 @@ static languageDefinition language_en = { whichPluralForm_en, {
|
|||
"This option specifies the character encoding Tidy uses for the input. See "
|
||||
"<code>char-encoding</code> for more info. "
|
||||
},
|
||||
#if SUPPORT_ASIAN_ENCODINGS
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
<br/>.
|
||||
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
- Option values should be enclosed in <var></var>.
|
||||
- It's very important that <br/> be self-closing!
|
||||
- The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
be translated. */
|
||||
TidyLanguage, 0,
|
||||
"Currently not used, but this option specifies the language Tidy would use "
|
||||
"if it were properly localized. For example: <var>en</var>. "
|
||||
},
|
||||
#endif
|
||||
#if SUPPORT_UTF16_ENCODINGS
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
|
@ -1881,7 +1856,9 @@ static languageDefinition language_en = { whichPluralForm_en, {
|
|||
- The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
be translated. */
|
||||
TidyEmacsFile, 0,
|
||||
"Used internally. "
|
||||
"When <code>gnu-emacs</code> is <var>yes</var>, then this option value "
|
||||
"specifies the filename to be used in the output report. The HTML Tidy "
|
||||
"command line program will set this automatically. "
|
||||
},
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
|
@ -1926,17 +1903,6 @@ static languageDefinition language_en = { whichPluralForm_en, {
|
|||
"This option specifies if Tidy should output the summary of the numbers "
|
||||
"of errors and warnings, or the welcome or informational messages. "
|
||||
},
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
<br/>.
|
||||
- Entities, tags, attributes, etc., should be enclosed in <code></code>.
|
||||
- Option values should be enclosed in <var></var>.
|
||||
- It's very important that <br/> be self-closing!
|
||||
- The strings "Tidy" and "HTML Tidy" are the program name and must not
|
||||
be translated. */
|
||||
TidySlideStyle, 0,
|
||||
"This option has no function and is deprecated. "
|
||||
},
|
||||
{/* Important notes for translators:
|
||||
- Use only <code></code>, <var></var>, <em></em>, <strong></strong>, and
|
||||
<br/>.
|
||||
|
@ -2297,12 +2263,12 @@ static languageDefinition language_en = { whichPluralForm_en, {
|
|||
- The strings "Tidy" and "HTML Tidy" are the program name and must not be translated. */
|
||||
TC_TXT_HELP_LANG_1, 0,
|
||||
"\n"
|
||||
"The --language (or --lang) option indicates which language Tidy \n"
|
||||
"The -language (or -lang) option indicates which language Tidy \n"
|
||||
"should use to communicate its output. Please note that this is not \n"
|
||||
"a document translation service, and only affects the messages that \n"
|
||||
"Tidy communicates to you. \n"
|
||||
"\n"
|
||||
"When used from the command line the --language argument must \n"
|
||||
"When used from the command line the -language argument must \n"
|
||||
"be used before any arguments that result in output, otherwise Tidy \n"
|
||||
"will produce output before it knows which language to use. \n"
|
||||
"\n"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Orginating PO file metadata:
|
||||
* PO_LAST_TRANSLATOR=jderry
|
||||
* PO_REVISION_DATE=2017-02-17 14:46:38
|
||||
* PO_REVISION_DATE=2017-02-18 18:13:23
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Orginating PO file metadata:
|
||||
* PO_LAST_TRANSLATOR=jderry
|
||||
* PO_REVISION_DATE=2017-02-17 14:46:38
|
||||
* PO_REVISION_DATE=2017-02-18 18:13:23
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
@ -83,12 +83,12 @@ static languageDefinition language_es = { whichPluralForm_es, {
|
|||
#if SUPPORT_CONSOLE_APP
|
||||
{ TC_TXT_HELP_LANG_1, 0,
|
||||
"\n"
|
||||
"La opción --language (o --lang) indica el lenguaje Tidy debe \n"
|
||||
"La opción -language (o -lang) indica el lenguaje Tidy debe \n"
|
||||
"utilizar para comunicar su salida. Tenga en cuenta que esto no es \n"
|
||||
"un servicio de traducción de documentos, y sólo afecta a los mensajes \n"
|
||||
"que Tidy comunica a usted. \n"
|
||||
"\n"
|
||||
"Cuando se utiliza la línea de comandos el argumento --language debe \n"
|
||||
"Cuando se utiliza la línea de comandos el argumento -language debe \n"
|
||||
"utilizarse antes de cualquier argumento que dan lugar a la producción, \n"
|
||||
"de lo contrario Tidy producirá la salida antes de que se conozca el \n"
|
||||
"idioma a utilizar. \n"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Orginating PO file metadata:
|
||||
* PO_LAST_TRANSLATOR=jderry
|
||||
* PO_REVISION_DATE=2017-02-17 14:46:38
|
||||
* PO_REVISION_DATE=2017-02-18 18:13:23
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Orginating PO file metadata:
|
||||
* PO_LAST_TRANSLATOR=jderry
|
||||
* PO_REVISION_DATE=2017-02-17 14:46:38
|
||||
* PO_REVISION_DATE=2017-02-18 18:13:23
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
@ -521,13 +521,13 @@ static languageDefinition language_fr = { whichPluralForm_fr, {
|
|||
{ TC_TXT_HELP_CONFIG_ALLW, 0, "Les valeurs autorisées" },
|
||||
{ TC_TXT_HELP_LANG_1, 0,
|
||||
"\n"
|
||||
"L'option --language (ou --lang) indique la langue Tidy\n"
|
||||
"L'option -language (ou -lang) indique la langue Tidy\n"
|
||||
"doit utiliser pour communiquer sa sortie. S'il vous plaît noter que ce ne sont pas "
|
||||
"un service de traduction de documents, et affecte uniquement les messages qui Tidy "
|
||||
"communique à vous.\n"
|
||||
"\n"
|
||||
"Lorsqu'il est utilisé à partir de la ligne de commande de l'argument doit \n"
|
||||
"--language être utilisé avant des arguments qui résultent de la production, sinon "
|
||||
"-language être utilisé avant des arguments qui résultent de la production, sinon "
|
||||
"Tidy\n"
|
||||
"va produire une sortie avant qu'il connaît la langue à utiliser.\n"
|
||||
"\n"
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* Orginating PO file metadata:
|
||||
* PO_LAST_TRANSLATOR=jderry
|
||||
* PO_REVISION_DATE=2017-02-17 14:46:38
|
||||
* PO_REVISION_DATE=2017-02-18 18:13:23
|
||||
*/
|
||||
|
||||
#ifdef _MSC_VER
|
||||
|
|
22
src/pprint.c
22
src/pprint.c
|
@ -72,28 +72,6 @@ void TY_(PPrintSpaces)(void)
|
|||
#if SUPPORT_ASIAN_ENCODINGS
|
||||
/* #431953 - start RJ Wraplen adjusted for smooth international ride */
|
||||
|
||||
#if 0
|
||||
uint CWrapLen( TidyDocImpl* doc, uint ind )
|
||||
{
|
||||
ctmbstr lang = cfgStr( doc, TidyLanguage );
|
||||
uint wraplen = cfg( doc, TidyWrapLen );
|
||||
|
||||
if ( !TY_(tmbstrcasecmp)(lang, "zh") )
|
||||
/* Chinese characters take two positions on a fixed-width screen */
|
||||
/* It would be more accurate to keep a parallel linelen and wraphere
|
||||
incremented by 2 for Chinese characters and 1 otherwise, but this
|
||||
is way simpler.
|
||||
*/
|
||||
return (ind + (( wraplen - ind ) / 2)) ;
|
||||
|
||||
if ( !TY_(tmbstrcasecmp)(lang, "ja") )
|
||||
/* average Japanese text is 30% kanji */
|
||||
return (ind + ((( wraplen - ind ) * 7) / 10)) ;
|
||||
|
||||
return wraplen;
|
||||
}
|
||||
#endif
|
||||
|
||||
typedef enum
|
||||
{
|
||||
UC00, /* None */
|
||||
|
|
246
src/tagask.c
246
src/tagask.c
|
@ -28,252 +28,6 @@ Bool TIDY_CALL tidyNodeIsHeader( TidyNode tnod )
|
|||
{ return TY_(nodeIsHeader)( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
|
||||
Bool TIDY_CALL tidyNodeIsHTML( TidyNode tnod )
|
||||
{ return nodeIsHTML( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsHEAD( TidyNode tnod )
|
||||
{ return nodeIsHEAD( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTITLE( TidyNode tnod )
|
||||
{ return nodeIsTITLE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBASE( TidyNode tnod )
|
||||
{ return nodeIsBASE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsMETA( TidyNode tnod )
|
||||
{ return nodeIsMETA( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBODY( TidyNode tnod )
|
||||
{ return nodeIsBODY( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsFRAMESET( TidyNode tnod )
|
||||
{ return nodeIsFRAMESET( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsFRAME( TidyNode tnod )
|
||||
{ return nodeIsFRAME( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsIFRAME( TidyNode tnod )
|
||||
{ return nodeIsIFRAME( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsNOFRAMES( TidyNode tnod )
|
||||
{ return nodeIsNOFRAMES( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsHR( TidyNode tnod )
|
||||
{ return nodeIsHR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH1( TidyNode tnod )
|
||||
{ return nodeIsH1( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH2( TidyNode tnod )
|
||||
{ return nodeIsH2( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsPRE( TidyNode tnod )
|
||||
{ return nodeIsPRE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsLISTING( TidyNode tnod )
|
||||
{ return nodeIsLISTING( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsP( TidyNode tnod )
|
||||
{ return nodeIsP( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsUL( TidyNode tnod )
|
||||
{ return nodeIsUL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsOL( TidyNode tnod )
|
||||
{ return nodeIsOL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsDL( TidyNode tnod )
|
||||
{ return nodeIsDL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsDIR( TidyNode tnod )
|
||||
{ return nodeIsDIR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsLI( TidyNode tnod )
|
||||
{ return nodeIsLI( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsDT( TidyNode tnod )
|
||||
{ return nodeIsDT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsDD( TidyNode tnod )
|
||||
{ return nodeIsDD( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTABLE( TidyNode tnod )
|
||||
{ return nodeIsTABLE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsCAPTION( TidyNode tnod )
|
||||
{ return nodeIsCAPTION( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTD( TidyNode tnod )
|
||||
{ return nodeIsTD( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTH( TidyNode tnod )
|
||||
{ return nodeIsTH( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTR( TidyNode tnod )
|
||||
{ return nodeIsTR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsCOL( TidyNode tnod )
|
||||
{ return nodeIsCOL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsCOLGROUP( TidyNode tnod )
|
||||
{ return nodeIsCOLGROUP( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBR( TidyNode tnod )
|
||||
{ return nodeIsBR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsA( TidyNode tnod )
|
||||
{ return nodeIsA( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsLINK( TidyNode tnod )
|
||||
{ return nodeIsLINK( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsB( TidyNode tnod )
|
||||
{ return nodeIsB( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsI( TidyNode tnod )
|
||||
{ return nodeIsI( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSTRONG( TidyNode tnod )
|
||||
{ return nodeIsSTRONG( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsEM( TidyNode tnod )
|
||||
{ return nodeIsEM( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBIG( TidyNode tnod )
|
||||
{ return nodeIsBIG( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSMALL( TidyNode tnod )
|
||||
{ return nodeIsSMALL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsPARAM( TidyNode tnod )
|
||||
{ return nodeIsPARAM( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsOPTION( TidyNode tnod )
|
||||
{ return nodeIsOPTION( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsOPTGROUP( TidyNode tnod )
|
||||
{ return nodeIsOPTGROUP( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsIMG( TidyNode tnod )
|
||||
{ return nodeIsIMG( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsMAP( TidyNode tnod )
|
||||
{ return nodeIsMAP( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsAREA( TidyNode tnod )
|
||||
{ return nodeIsAREA( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsNOBR( TidyNode tnod )
|
||||
{ return nodeIsNOBR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsWBR( TidyNode tnod )
|
||||
{ return nodeIsWBR( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsFONT( TidyNode tnod )
|
||||
{ return nodeIsFONT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsLAYER( TidyNode tnod )
|
||||
{ return nodeIsLAYER( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSPACER( TidyNode tnod )
|
||||
{ return nodeIsSPACER( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsCENTER( TidyNode tnod )
|
||||
{ return nodeIsCENTER( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSTYLE( TidyNode tnod )
|
||||
{ return nodeIsSTYLE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSCRIPT( TidyNode tnod )
|
||||
{ return nodeIsSCRIPT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsNOSCRIPT( TidyNode tnod )
|
||||
{ return nodeIsNOSCRIPT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsFORM( TidyNode tnod )
|
||||
{ return nodeIsFORM( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsTEXTAREA( TidyNode tnod )
|
||||
{ return nodeIsTEXTAREA( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBLOCKQUOTE( TidyNode tnod )
|
||||
{ return nodeIsBLOCKQUOTE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsAPPLET( TidyNode tnod )
|
||||
{ return nodeIsAPPLET( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsOBJECT( TidyNode tnod )
|
||||
{ return nodeIsOBJECT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsDIV( TidyNode tnod )
|
||||
{ return nodeIsDIV( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSPAN( TidyNode tnod )
|
||||
{ return nodeIsSPAN( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsINPUT( TidyNode tnod )
|
||||
{ return nodeIsINPUT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsQ( TidyNode tnod )
|
||||
{ return nodeIsQ( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsLABEL( TidyNode tnod )
|
||||
{ return nodeIsLABEL( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH3( TidyNode tnod )
|
||||
{ return nodeIsH3( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH4( TidyNode tnod )
|
||||
{ return nodeIsH4( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH5( TidyNode tnod )
|
||||
{ return nodeIsH5( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsH6( TidyNode tnod )
|
||||
{ return nodeIsH6( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsADDRESS( TidyNode tnod )
|
||||
{ return nodeIsADDRESS( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsXMP( TidyNode tnod )
|
||||
{ return nodeIsXMP( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSELECT( TidyNode tnod )
|
||||
{ return nodeIsSELECT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBLINK( TidyNode tnod )
|
||||
{ return nodeIsBLINK( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsMARQUEE( TidyNode tnod )
|
||||
{ return nodeIsMARQUEE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsEMBED( TidyNode tnod )
|
||||
{ return nodeIsEMBED( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsBASEFONT( TidyNode tnod )
|
||||
{ return nodeIsBASEFONT( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsISINDEX( TidyNode tnod )
|
||||
{ return nodeIsISINDEX( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsS( TidyNode tnod )
|
||||
{ return nodeIsS( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsSTRIKE( TidyNode tnod )
|
||||
{ return nodeIsSTRIKE( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsU( TidyNode tnod )
|
||||
{ return nodeIsU( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
Bool TIDY_CALL tidyNodeIsMENU( TidyNode tnod )
|
||||
{ return nodeIsMENU( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
|
||||
/* HTML5 */
|
||||
Bool TIDY_CALL tidyNodeIsDATALIST( TidyNode tnod )
|
||||
{ return nodeIsDATALIST( tidyNodeToImpl(tnod) );
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* local variables:
|
||||
|
|
|
@ -2144,7 +2144,7 @@ uint TIDY_CALL tidyNodeColumn( TidyNode tnod )
|
|||
return col;
|
||||
}
|
||||
|
||||
ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod )
|
||||
ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod )
|
||||
{
|
||||
Node* nimp = tidyNodeToImpl( tnod );
|
||||
ctmbstr nnam = NULL;
|
||||
|
@ -2154,7 +2154,7 @@ ctmbstr TIDY_CALL tidyNodeGetName( TidyNode tnod )
|
|||
}
|
||||
|
||||
|
||||
Bool TIDY_CALL tidyNodeHasText( TidyDoc tdoc, TidyNode tnod )
|
||||
Bool TIDY_CALL tidyNodeHasText( TidyDoc tdoc, TidyNode tnod )
|
||||
{
|
||||
TidyDocImpl* doc = tidyDocToImpl( tdoc );
|
||||
if ( doc )
|
||||
|
@ -2163,7 +2163,7 @@ Bool TIDY_CALL tidyNodeHasText( TidyDoc tdoc, TidyNode tnod )
|
|||
}
|
||||
|
||||
|
||||
Bool TIDY_CALL tidyNodeGetText( TidyDoc tdoc, TidyNode tnod, TidyBuffer* outbuf )
|
||||
Bool TIDY_CALL tidyNodeGetText( TidyDoc tdoc, TidyNode tnod, TidyBuffer* outbuf )
|
||||
{
|
||||
TidyDocImpl* doc = tidyDocToImpl( tdoc );
|
||||
Node* nimp = tidyNodeToImpl( tnod );
|
||||
|
@ -2269,18 +2269,6 @@ TidyTagId TIDY_CALL tidyNodeGetId(TidyNode tnod)
|
|||
}
|
||||
|
||||
|
||||
/* Null for non-element nodes and all pure HTML
|
||||
cmbstr tidyNodeNsLocal( TidyNode tnod )
|
||||
{
|
||||
}
|
||||
cmbstr tidyNodeNsPrefix( TidyNode tnod )
|
||||
{
|
||||
}
|
||||
cmbstr tidyNodeNsUri( TidyNode tnod )
|
||||
{
|
||||
}
|
||||
*/
|
||||
|
||||
/* Iterate over attribute values */
|
||||
TidyAttr TIDY_CALL tidyAttrFirst( TidyNode tnod )
|
||||
{
|
||||
|
@ -2324,18 +2312,6 @@ void TIDY_CALL tidyAttrDiscard( TidyDoc tdoc, TidyNode tnod, TidyAttr
|
|||
TY_(RemoveAttribute)( impl, nimp, attval );
|
||||
}
|
||||
|
||||
/* Null for pure HTML
|
||||
ctmbstr tidyAttrNsLocal( TidyAttr tattr )
|
||||
{
|
||||
}
|
||||
ctmbstr tidyAttrNsPrefix( TidyAttr tattr )
|
||||
{
|
||||
}
|
||||
ctmbstr tidyAttrNsUri( TidyAttr tattr )
|
||||
{
|
||||
}
|
||||
*/
|
||||
|
||||
TidyAttrId TIDY_CALL tidyAttrGetId( TidyAttr tattr )
|
||||
{
|
||||
AttVal* attval = tidyAttrToImpl( tattr );
|
||||
|
@ -2344,16 +2320,6 @@ TidyAttrId TIDY_CALL tidyAttrGetId( TidyAttr tattr )
|
|||
attrId = attval->dict->id;
|
||||
return attrId;
|
||||
}
|
||||
Bool TIDY_CALL tidyAttrIsProp( TidyAttr tattr )
|
||||
{
|
||||
/*
|
||||
You cannot tell whether an attribute is proprietary without
|
||||
knowing on which element it occurs in the general case, but
|
||||
this function cannot know the element. As a result, it does
|
||||
not work anymore. Do not use.
|
||||
*/
|
||||
return no;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
|
|
Loading…
Reference in a new issue