OSDN Git Service

* Added <dl> tag for CHTML2.0 converter.
authorkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Wed, 9 Apr 2008 09:09:15 +0000 (09:09 +0000)
committerkonn <konn@1a406e8e-add9-4483-a2c8-d8cac5b7c224>
Wed, 9 Apr 2008 09:09:15 +0000 (09:09 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/modchxj/mod_chxj/branches/RELEASE_0_11_0@2062 1a406e8e-add9-4483-a2c8-d8cac5b7c224

src/chxj_chtml20.c

index a8bcda7..46fa064 100644 (file)
@@ -93,6 +93,8 @@ static char *s_chtml20_start_blockquote_tag(void *pdoc, Node *node);
 static char *s_chtml20_end_blockquote_tag  (void *pdoc, Node *node);
 static char *s_chtml20_start_dir_tag     (void *pdoc, Node *node);
 static char *s_chtml20_end_dir_tag       (void *pdoc, Node *node);
+static char *s_chtml20_start_dl_tag      (void *pdoc, Node *node);
+static char *s_chtml20_end_dl_tag        (void *pdoc, Node *node);
 
 static void  s_init_chtml20(chtml20_t *chtml, Doc *doc, request_rec *r, device_table *spec);
 
@@ -340,8 +342,8 @@ tag_handler chtml20_handler[] = {
   },
   /* tagDL */
   {
-    NULL,
-    NULL,
+    s_chtml20_start_dl_tag,
+    s_chtml20_end_dl_tag,
   },
   /* tagDD */
   {
@@ -371,10 +373,10 @@ tag_handler chtml20_handler[] = {
  */
 char *
 chxj_exchange_chtml20(
-  request_rec         *r,
+  request_rec *r,
   device_table *spec,
   const char *src,
-  apr_size_t          srclen,
+  apr_size_t srclen,
   apr_size_t *dstlen,
   chxjconvrule_entry *entryp,
   cookie_t *cookie
@@ -3058,6 +3060,46 @@ s_chtml20_end_dir_tag(void *pdoc, Node *UNUSED(child))
   W20_L("</dir>");
   return chtml20->out;
 }
+
+
+/**
+ * It is a handler who processes the DL tag.
+ *
+ * @param pdoc  [i/o] The pointer to the CHTML structure at the output
+ *                     destination is specified.
+ * @param node   [i]   The DL tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_start_dl_tag(void *pdoc, Node *UNUSED(child))
+{
+  chtml20_t *chtml20;
+  Doc *doc;
+  chtml20 = GET_CHTML20(pdoc);
+  doc     = chtml20->doc;
+  W20_L("<dl>");
+  return chtml20->out;
+}
+
+
+/**
+ * It is a handler who processes the DL tag.
+ *
+ * @param pdoc  [i/o] The pointer to the CHTML structure at the output
+ *                     destination is specified.
+ * @param node   [i]   The DL tag node is specified.
+ * @return The conversion result is returned.
+ */
+static char *
+s_chtml20_end_dl_tag(void *pdoc, Node *UNUSED(child))
+{
+  chtml20_t *chtml20;
+  Doc *doc;
+  chtml20 = GET_CHTML20(pdoc);
+  doc     = chtml20->doc;
+  W20_L("</dl>");
+  return chtml20->out;
+}
 /*
  * vim:ts=2 et
  */