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

Re: Suggestions for w3m



Citation (with leading "> " of each line) from article:
  <20010605193621U.1000@pine.kuee.kyoto-u.ac.jp>
    by TSUCHIYA Masatoshi <tsuchiya@pine.kuee.kyoto-u.ac.jp> :
> ********* Tables
>
> In my (--unibyte) Emacs w3m buffer the table characters are displayed
> as octal sequences. This effectively destroys the table layout. I
> tried to
>
> (add-to-list 'w3m-command-arguments          "-no-graph")
> (add-to-list 'w3m-halfdump-command-arguments "-no-graph")
>
> but it didn't help (why?). So i added a function to the
> w3m-fontify-after-hook:
>
> (defun cc-w3m-beautify-tables()
>   (goto-char (point-min))
>   (while (re-search-forward
>           "\200\\|\203\\|\206\\|\211\\|\214\\|\202\\|\204\\|\210\\|\201" nil t)

これはw3m-0.2.1の(罫線素片を使わないときの)表の枠用の内部コードです。
坂本さんの[emacs-w3m:00378]のパッチを適用してw3m-fontifyで「<_RULE>…
</_RULE>」を変換したほうがよいでしょう。

> ********* Whitespace
>
> Often there's a lot of annoying whitespace before the end of lines:

w3mのconfigureか(configure実行後の)config.hの

#undef ENABLE_REMOVE_TRAILINGSPACES

という行を「#define …」に書き換えてからmakeすれば消えてくれます。

-- 
須藤 清一 <suto@ks-and-ks.ne.jp>
http://pub.ks-and-ks.ne.jp/pgp-public-key.html