[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Strange characters displayed in lists
>>>>> In [emacs-w3m : No.08755] Hideyuki SHIRAI wrote:
(B
(B>> I think there's no way to customize it in emacs-w3m, since it
(B>> seems to be mostly impossible to distinguish those characters
(B>> from the ones used in an ordinary text.
(B
(B> No, we can customize if use window system.
(B
(BOh, I completely misunderstood. Thank you for correcting me.
(B
(B> If we customize like the below,
(B
(B> (setq w3m-mule-unicode-symbol
(B> '("$B(+(B" "$B('(B" "$B(((B" "$B(#(B" "$B()(B" "$B("(B" "$B($(B" "" "$B(*(B" "$B(&(B" "$B(!(B" "" "$B(%(B" "" ""
(B> "" "$B(+(B" "$B(7(B" "$B(8(B" "$B(.(B" "$B(9(B" "$B(-(B" "$B(/(B" "" "$B(:(B" "$B(1(B" "$B(,(B" "" "$B(0(B" "" "" ""
(B> "1" "2" "3" "4" "5" "6" "7" "8" "9" "$B!|(B" "$B!{(B" "$B""(B" "$B!|(B" "$B"c(B $B",(B $B"-(B "))
(B
(B> Then, attached 'test.html' looks like the below under UTF-8
(B> environment.
(B
(B> 1 test1
(B> 2 test2
(B> 3 test3
(B> 4 test4
(B> 5 test5
(B> 6 test6
(B> 7 test7
(B> 8 test8
(B> 9 test9
(B
(BStefan, you can do it by putting the following code in the
(B~/.emacs-w3m.el (or ~/.emacs-w3m) file:
(B
(B(eval-after-load "w3m-symbol"
(B '(when w3m-mule-unicode-symbol
(B (setcar (nthcdr 32 w3m-mule-unicode-symbol) "1")
(B (setcar (nthcdr 33 w3m-mule-unicode-symbol) "2")
(B (setcar (nthcdr 34 w3m-mule-unicode-symbol) "3")
(B (setcar (nthcdr 35 w3m-mule-unicode-symbol) "4")
(B (setcar (nthcdr 36 w3m-mule-unicode-symbol) "5")
(B (setcar (nthcdr 37 w3m-mule-unicode-symbol) "6")
(B (setcar (nthcdr 38 w3m-mule-unicode-symbol) "7")
(B (setcar (nthcdr 39 w3m-mule-unicode-symbol) "8")
(B (setcar (nthcdr 40 w3m-mule-unicode-symbol) "9")))
(B
(BOf course, you can alter those "1"-"9" characters with the ones
(Bin your taste.