[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: when the first <LI> is in a right-to-left language
- From: Naohiro Aota <naota@xxxxxxxxx>
- Date: Tue, 06 Dec 2011 20:00:25 +0900
- X-ml-name: emacs-w3m
- X-mail-count: 11689
- References: <87hb1ecf0d.fsf@xxxxxxxxxxx> <b4miplu3szl.fsf@xxxxxxx>
Using (setq bidi-paragraph-direction 'left-to-right) would help.
(BI don't when we should set to 'left-to-right by default. Maybe we can
(Bconsider language environment, I guess.
(BKatsumi Yamaoka <yamaoka@xxxxxxx> writes:
(B> In [emacs-w3m : No.11687] jidanni@xxxxxxxxxxx wrote:
(B>> It's crazy I tell you! On http://en.wikipedia.org/wiki/Vevo one needs to add
(B>> <!-- LANGUAGES -->
(B>> <div class="portal" id='p-lang'>
(B>> <div class="body">
(B>> <li>DUMB</li> <------------ this
(B>> Or else because the first item in the list in a 'right to left'
(B>> language, the whole list renders way over against the right margin!
(B>> Only happens inside emacs, not plain w3m.
(B> Interesting! That happens in the following steps:
(B> emacs-w3m passes the html source "<ul><li>DUMB</li></ul>" to w3m.
(B> w3m returns
(B> <_SYMBOL TYPE=32>*</_SYMBOL> DUMB
(B> , and emacs-w3m tries to remove those two useless tags in turn.
(B> After having removed the second one, the line
(B> *</_SYMBOL> DUMB
(B> changes into:
(B> DUMB *
(B> I have no idea for the solution. I'm going to ask for a help in
(B> the mule-ja list.