---f_rosencrantz@yahoo.com wrote:
> Is there a way to make w3m think that 78 columns is wide enough
> to handle a table of WIDTH 638.
>
> I'd prefer not to have to edit either the input or the output to
> do this sort of conversion. I sort of wish it was pilot error. ;)
w3m assumes a fixed character width of 8 pixels (defined as
PIXEL_PER_CHAR in fm.h). On this basis, Word's insistence on
generating fixed-width tables of 638 pixels converts to 79.75
character columns, so your required 78-column width is just
slightly too small.
Your options would appear to be:
1. Let w3m render the text in 80 columns rather than 78;
2. Edit the generated HTML to remove all the WIDTH attributes;
3. Slightly shrink your column or page width in Word before
generating the HTML so that the fixed table width comes out
smaller (not sure whether this will work!);
4. Edit fm.h to change PIXEL_PER_CHAR to 9 and recompile w3m
(this is now getting slightly silly!).
It would be nice if w3m could detect the character width from the
font being used in the xterm (or whatever) window, and/or if there
was an option to change value from the default 8, either as a settable
option or as a command line argument. Perhaps our Esteemed Developer
could add this to a wishlist?
Keep up the good work,
Alex Lyons.
***********************************************************************
This transmission contains information which may be confidential and
which may also be privileged. It is intended for the named addressee
only. Unless you are the named addressee, or authorised to receive it
on behalf of the addressee you may not copy or use it, or disclose it
to anyone else. If you have received this transmission in error please
contact the sender. Thank you for your cooperation.
***********************************************************************
For more information about AEA Technology please visit our website at http://www.aeat.co.uk
AEA Technology plc registered office 329 Harwell, Didcot, Oxfordshire OX11 0QJ.
Registered in England and Wales, number 3095862.
This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 11:33:33 CDT