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

Re: show <h1><h2>... differently



From: jidanni@xxxxxxxxxxx said
Subject: [emacs-w3m:10658] Re: show <h1><h2>... differently
Message-ID: <87fxizmiaq.fsf@xxxxxxxxxxx>
Date: Sun, 01 Feb 2009 02:39:25 +0800

> j> <h1>1</h1><h2>2</h2><h3>3</h3><h4>4</h4><h5>5</h5><h6>6</h6>
> j> Can't they somehow be displayed somewhat differently

> All I know is that when using Info, the finer and finer nodes (info
> "(texinfo)Tree Structuring") get smaller and smaller fonts. Perhaps
> w3m could be like Info.

This is almost impossible because it is very difficult.

Emacs-w3m uses the output of w3m's half-dump to do rendering.

Ex.
% cat h123.html
<html>
  <head>
    <title>H123 test</title>
  </head>
  <body>
    <h1>This is Header1</h1>
    <h2>This is Header2</h2>
    <h3>This is Header3</h3>
  </body>
</html>

% w3m -halfdump h123.html
<title_alt title="H123 test"><b>This is Header1</b>

<b>This is Header2</b>

<b>This is Header3</b>

<internal>
<title_alt title="H123 test">
</internal>

%

Thus, information such as <h1>, <h2> is lost in the output of
w3m's halfdump. Therefore, emacs-w3m is not good at rendering so
that the distinction of <h1>, <h2> and <h3>.

-- 
Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)