[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: [w3m-dev 03915] charset attribute of anchor tag



At Wed, 18 Jun 2003 11:49:48 +0900,
TSUCHIYA Masatoshi wrote:
> 
> HTML4 の規格を調べてみると,
> 
> <!ELEMENT A - - (%inline;)* -(A)       -- anchor -->
> <!ATTLIST A
>   %attrs;                              -- %coreattrs, %i18n, %events --
>   charset     %Charset;      #IMPLIED  -- char encoding of linked resource --
>   (snip)
>   >
> 
> と,アンカーに対して charset 属性を付与することができます.この属性を 
> emacs-w3m で利用したい(= halfdump 時に出力してほしい)ので,以下のよう
> に変更して頂けないでしょうか.

こうでしょうね

Index: html.c
===================================================================
RCS file: /cvsroot/w3m/w3m/html.c,v
retrieving revision 1.23
diff -u -u -p -r1.23 html.c
--- html.c	18 Apr 2003 16:47:18 -0000	1.23
+++ html.c	18 Jun 2003 16:00:22 -0000
@@ -6,10 +6,10 @@
 #define ATTR_CORE	ATTR_ID
 #define MAXA_CORE	1
 unsigned char ALST_A[] = {
-    ATTR_NAME, ATTR_HREF, ATTR_TARGET, ATTR_HSEQ, ATTR_REFERER,
+    ATTR_NAME, ATTR_HREF, ATTR_CHARSET, ATTR_TARGET, ATTR_HSEQ, ATTR_REFERER,
     ATTR_FRAMENAME, ATTR_TITLE, ATTR_ACCESSKEY, ATTR_CORE
 };
-#define MAXA_A		MAXA_CORE + 8
+#define MAXA_A		MAXA_CORE + 9
 unsigned char ALST_P[] = { ATTR_ALIGN, ATTR_CORE };
 #define MAXA_P		MAXA_CORE + 1
 unsigned char ALST_UL[] = { ATTR_START, ATTR_TYPE, ATTR_CORE };

-- 
鵜飼文敏