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

Re: keep html format

Thanks a lot for your prompt response.  

Do you, by any chance, have any idea whehter this might work with w3,
the stand alone emacs web-browser?

Or, can you, perhaps, think of an alternative solution?


>>>>>> In [emacs-w3m : No.10969] Santiago Mejia wrote:

> [...]
>> In firefox, http://www.wordreference.com/deen/dabei will display some
>> things underlined, and others in bold (in particular, "nahe dabei:" is in
>> bold, and "close by", which comes right next, is not).
>> However, when I call
>> (w3m-browse-url http://www.wordreference.com/deen/dabei)
>> most of this formatting is lost, and I have no way of automatically
>> distinguishing  German expressions from English ones.
>> Is there a way to keep track of the html formatting?
> Unfortunately there seems to be no way to do that for the moment.
> In the page source, maybe `span' tags around words like
> ...<span class=b>nahe <span class=sd>dabei</span>:</span>...
> control the appearance of the contents.  If w3m (not emacs-w3m)
> knows how it should treat those attributes, it will interpret
> them into the ones that emacs-w3m can handle.  However, currently
> w3m simply strips them as follows:
> $ echo '<span class=b>nahe <span class=sd>dabei</span>:</span>'\
>   | w3m -halfdump -T text/html
> nahe dabei:
> <internal>
> </internal>
> This is why emacs-w3m displays them with no attribute.
> Regards,