On Wed, 8 Mar 2000, Stefan Siegel wrote:
> Hello everybody,
>
> I've got a problem. I'like to use lynx, to dump html-documents to a
> ascii-printer. This documents contain some formulas like:
>
> 2<sup>4</sup> = 16 H<sub>2</sub>O
>
> which is actually dumped (lynx -dump <filename>) as:
>
> 24 = 16 H2O
>
> by lynx. Especcially the first on is a very bad behaviour.
> I'd prefer a result like:
>
> 2^(4) = 16 H_(2)0
>
> How can I teach lynx to act this way ?
> I tried to find some Information about ".lss" files (hoping there
> would be some possibilities by using them) but din'd find any.
>
> It's very improtant for me to get such a behaviour. Please email me
> if it is possible.
>
> P.S.: You have to answer directly to this address, as I am not on
> the mailing list.
Sorry for the late answer, but at least lynx-2.8.3dev14 shows <sup> as ^
and <sub> as [], i.e. 2<sup>2 will be rendered as 2^2 and H<sub>2</sub>O will
be rendered as H[2]O.
If you personally need to alter this to match your requirements, just change
the following lines in src/HTML.c
case HTML_SUB:
HText_appendCharacter(me->text, '[');
to
case HTML_SUB:
HText_appendCharacter(me->text, '_(');
and
case HTML_SUB:
HText_appendCharacter(me->text, ']');
to
case HTML_SUB:
HText_appendCharacter(me->text, ')');
and recompile the lynx. Remember to get some recent lynx (the latest is
2.8.3dev21).
> --
> Tsch�ss und bis demn�chst,
>
> Stefan
>
Best regards,
-Vlad