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

Re: trasformare html - txt



Il 08 ottobre 2003, alle 13:52, fernando Figaroli ha scritto:
> trasformando delle pagine html in txt con
>  html2text
> 
> me le converte giuste, con un 
[...-cut-...]
> per ogni lettera mi aggiunge ^H?
> es. la P diventa P^HP
> ecco:
> P^HPr^Hre^Hep^Hpa^Har^Hra^Haz^Hz
> 
> come risolvo a questo invonveniente ?
Aggiungendo -nobs al comando.
> ma soprattutto .. perchè succede ?
Perche` non hai letto la pagina di manuale dove dice:

-nobs  By  default,  html2text  renders underlined letters with
sequences like "underscore-backspace-character"  and  boldface  letters  like
"character-backspace-character", which  works  fine  when  the output is piped into
more(1), less(1), or similar. For other applications, or when redirecting the output into a
file, it may be  desirable not to render character attributes with such backspace
sequences, which can be specified with this command line option.

:-)

Ciao, Alvise
-- 
+------------------------------------------------------------+
| Alvise Belotti     alvise@laventa.it     http://laventa.it |
| «La vera casa dell'uomo non è una casa, è la strada.       |
| La vita stessa è un viaggio da fare a piedi». (B. Chatwin) |
| PGP Key = AD 85 93 92 A9 9C 93 14  9C 6B 3B 15 52 79 B8 BD |
+------------------------------------------------------------+
sequences like "underscore- backspace-character"  and  boldface  letters
like "character-backspace-character", which  works  fine  when  the
output is piped into more(1), less(1), or similar. For other
applications, or when redirecting the output into a file, it may be
desirable not to render character attributes with such backspace
sequences, which can be specified with this command line option.



Reply to: