Skip to content

Commit 2aa1144

Browse files
committed
Add SVG paint attributes
Fixes htacg#903
1 parent 1889880 commit 2aa1144

File tree

3 files changed

+259
-212
lines changed

3 files changed

+259
-212
lines changed

include/tidyenum.h

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ extern "C" {
123123
/** inline */ FN(TIDYCUSTOMINLINE_STRING) \
124124
/** pre */ FN(TIDYCUSTOMPRE_STRING) \
125125

126-
126+
127127
/** These messages are used to generate additional dialogue style output from
128128
** Tidy when certain conditions exist, and provide more verbose explanations
129129
** than the short report.
@@ -285,7 +285,7 @@ extern "C" {
285285
FN(XML_ID_SYNTAX)
286286

287287

288-
/** These are report messages added by Tidy's accessibility module.
288+
/** These are report messages added by Tidy's accessibility module.
289289
** Note that commented out items don't have checks for them at this time,
290290
** and it was probably intended that some test would eventually be written.
291291
*/
@@ -533,7 +533,7 @@ extern "C" {
533533

534534
/** @addtogroup public_enumerations
535535
** @{ */
536-
536+
537537
/** @name Configuration Options Enumerations
538538
**
539539
** These enumerators are used to define available configuration options and
@@ -557,7 +557,7 @@ extern "C" {
557557
typedef enum
558558
{
559559
TidyUnknownOption = 0, /**< Unknown option! */
560-
560+
561561
TidyAccessibilityCheckLevel, /**< Accessibility check level */
562562
TidyAltText, /**< Default text for alt attribute */
563563
TidyAnchorAsName, /**< Define anchors as name attributes */
@@ -734,7 +734,7 @@ typedef enum
734734
} TidyUseCustomTagsState;
735735

736736

737-
/** TidyNewline option values to control output line endings.
737+
/** TidyNewline option values to control output line endings.
738738
** @remark This enum's starting value is guaranteed to remain stable.
739739
*/
740740
typedef enum
@@ -744,7 +744,7 @@ typedef enum
744744
TidyCR /**< Use Macintosh style: CR */
745745
} TidyLineEnding;
746746

747-
747+
748748
/** TidyEncodingOptions option values specify the input and/or output encoding.
749749
** @remark This enum's starting value is guaranteed to remain stable.
750750
*/
@@ -1169,7 +1169,7 @@ typedef enum
11691169
TidyAttr_XML_LANG, /**< XML_LANG= */
11701170
TidyAttr_XML_SPACE, /**< XML_SPACE= */
11711171
TidyAttr_XMLNS, /**< XMLNS= */
1172-
1172+
11731173
TidyAttr_EVENT, /**< EVENT= */
11741174
TidyAttr_METHODS, /**< METHODS= */
11751175
TidyAttr_N, /**< N= */
@@ -1336,17 +1336,33 @@ typedef enum
13361336
TidyAttr_RESOURCE, /**< RESOURCE= */
13371337
TidyAttr_TYPEOF, /**< TYPEOF= */
13381338
TidyAttr_VOCAB, /**< VOCAB= */
1339-
1339+
13401340
TidyAttr_INTEGRITY, /**< INTEGRITY= */
1341-
1341+
13421342
TidyAttr_AS, /**< AS= */
1343-
1343+
13441344
TidyAttr_XMLNSXLINK, /**< svg xmls:xlink="url" */
1345-
1345+
1346+
/* SVG paint attributes (SVG 1.1) */
1347+
TidyAttr_FILL, /**< FILL= */
1348+
TidyAttr_FILLRULE, /**< FILLRULE= */
1349+
TidyAttr_STROKE, /**< STROKE= */
1350+
TidyAttr_STROKEDASHARRAY, /**< STROKEDASHARRAY= */
1351+
TidyAttr_STROKEDASHOFFSET, /**< STROKEDASHOFFSET= */
1352+
TidyAttr_STROKELINECAP, /**< STROKELINECAP= */
1353+
TidyAttr_STROKELINEJOIN, /**< STROKELINEJOIN= */
1354+
TidyAttr_STROKEMITERLIMIT, /**< STROKEMITERLIMIT= */
1355+
TidyAttr_STROKEWIDTH, /**< STROKEWIDTH= */
1356+
TidyAttr_COLORINTERPOLATION, /**< COLORINTERPOLATION= */
1357+
TidyAttr_COLORRENDERING, /**< COLORRENDERING= */
1358+
TidyAttr_OPACITY, /**< OPACITY= */
1359+
TidyAttr_STROKEOPACITY, /**< STROKEOPACITY= */
1360+
TidyAttr_FILLOPACITY, /**< FILLOPACITY= */
1361+
13461362
N_TIDY_ATTRIBS /**< Must be last */
13471363
} TidyAttrId;
13481364

1349-
1365+
13501366
/** @}
13511367
** @name I/O and Message Handling Interface
13521368
**
@@ -1378,7 +1394,7 @@ typedef enum
13781394
TidyDialogueDoc = TidyDialogueFootnote, /**< Dialogue: Deprecated (renamed) */
13791395
} TidyReportLevel;
13801396

1381-
1397+
13821398
/** Indicates the data type of a format string parameter used when Tidy
13831399
** emits reports and dialogue as part of the messaging callback functions.
13841400
** See `messageobj.h` for more information on this API.
@@ -1396,12 +1412,12 @@ typedef enum
13961412
/** @} */
13971413
/** @} end group public_enumerations*/
13981414

1399-
1415+
14001416
/* MARK: - Public Enumerations (con't) */
14011417
/** @addtogroup public_enumerations
14021418
** @{ */
14031419

1404-
/** @name Messages
1420+
/** @name Messages
14051421
** @{ */
14061422

14071423
/** The enumeration contains a list of every possible string that Tidy and the

0 commit comments

Comments
 (0)