[Top][All Lists]

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

Re: lynx-dev megapatch to dev.10 - and a rant

From: Eduardo Chappa L.
Subject: Re: lynx-dev megapatch to dev.10 - and a rant
Date: Fri, 15 Oct 1999 02:11:31 -0700 (PDT)

*** Vlad Harchev (address@hidden) wrote on Oct 14, 1999:

:)          1. Let  W be the screen width subtracted by the sum of widths of
:)             fixed-width columns.
:)          2. Distribute W into the columns whose width are not decided, in
:)             proportion to the logarithm of the maximum width of each col-
:)             umn.
:)          3. If the distributed width of a column is smaller than the min-
:)             imum  width,  then fix the width of the column to the minimum
:)             width, and do the distribution again.
:)    In this process, distributed width is proportion to logarithm of maxi-
:)    mum  width,  but I am not sure that this heuristic is the best. It can
:)    be, for example, square root of the maximum width.

Yes you can make it as you want to, but remember that the maximum width is
the number of characters in that row, if you choose a logarithmic factor,
then doubling the size of the data in the row will only increase the width
of the column in a constant number (log 2), if you choose square root you
will multiply the width by sqrt(2), making it too big, maybe, too fit in
the screen, as Fermat said.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]