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

Re: Strange characters displayed in lists



Katsumi Yamaoka <yamaoka@xxxxxxx> writes:

>>>>>> In [emacs-w3m : No.08755] Hideyuki SHIRAI wrote:
>
>>> I think there's no way to customize it in emacs-w3m, since it
>>> seems to be mostly impossible to distinguish those characters
>>> from the ones used in an ordinary text.
>
>> No, we can customize if use window system.
>
> Oh, I completely misunderstood.  Thank you for correcting me.
>
>> If we customize like the below,
>
>> (setq w3m-mule-unicode-symbol
>>       '("„©" "„¥" "„¦" "„¡" "„§" "„ " "„¢" "" "„¨" "„¤" "„Ÿ" "" "„£" "" ""
>> 	"" "„©" "„µ" "„¶" "„¬" "„·" "„«" "„­" "" "„¸" "„¯" "„ª" "" "„®" "" "" ""
>> 	"1" "2" "3" "4" "5" "6" "7" "8" "9" "œ" "›" " " "œ" "á ª « "))
>
>> Then, attached 'test.html' looks like the below under UTF-8
>> environment.
>
>>   1 test1
>>       2 test2
>>           3 test3
>>               4 test4
>>                   5 test5
>>                       6 test6
>>                           7 test7
>>                               8 test8
>>                                   9 test9
>
> Stefan, you can do it by putting the following code in the
> ~/.emacs-w3m.el (or ~/.emacs-w3m) file:
>
> (eval-after-load "w3m-symbol"
>   '(when w3m-mule-unicode-symbol
>      (setcar (nthcdr 32 w3m-mule-unicode-symbol) "1")
>      (setcar (nthcdr 33 w3m-mule-unicode-symbol) "2")
>      (setcar (nthcdr 34 w3m-mule-unicode-symbol) "3")
>      (setcar (nthcdr 35 w3m-mule-unicode-symbol) "4")
>      (setcar (nthcdr 36 w3m-mule-unicode-symbol) "5")
>      (setcar (nthcdr 37 w3m-mule-unicode-symbol) "6")
>      (setcar (nthcdr 38 w3m-mule-unicode-symbol) "7")
>      (setcar (nthcdr 39 w3m-mule-unicode-symbol) "8")
>      (setcar (nthcdr 40 w3m-mule-unicode-symbol) "9")))
>
> Of course, you can alter those "1"-"9" characters with the ones
> in your taste.

Cool. w3m-mule-unicode-symbol was the setting I was looking for.
Thanks for your help, Katsumi and Hideyuki!

Stefan.