[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hebrew Lynx: How much Hebrew and how much Lynx ?
On Wed, 10 Feb 1999, Alex Shnitman wrote:
>> ;) The libWWW is probably harder to hack. You should find the HTML stream
>> and apply changes there. I do not claim to understand the whole Lynx
>> sources, or to have ever read them. BTW Lynx is a moving target (more than
>> pine f.ex).
>
>Hm. It looks to me that actually you need to reverse the string right
>before it is drawn to the display, because the text needs to be
>reversed line by line, and you cannot know where the line breaks
>before lynx does the layout calculation and breaks the line where it
>sees fit. Isn't that so?
Lynx uses curses for display afaik and curses maintain a mirror of the
terminal screen image array. This can be hacked relatively easily. But it
is not enough to reverse lines, you have to take care of english/hebrew
changes in the middle of the line. The idea is to respect the logical flow
of words for both languages, even if they flow into the next line or off
the screen... reversing line-by-line won't do that. Nothing is as simple
as it seems to be ...
Peter