Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Mar 2003 04:40:26 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
Cc:        freebsd-doc@FreeBSD.ORG
Subject:   Re: docs/50211: [PATCH] Fix textfile creation
Message-ID:  <20030324024026.GA23139@gothmog.gr>
In-Reply-To: <20030324020745.GA22656@gothmog.gr>
References:  <200303231710.h2NHAGEb024196@freefall.freebsd.org> <20030324020745.GA22656@gothmog.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-03-24 04:07, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
> giorgos@gothmog[03:57]/tmp$ elinks -dump-charset ISO-8859-7 -dump 1 lala.html
>    AAeec,ieeue eaass`iaaii.
> giorgos@gothmog[03:57]/tmp$ grep charset lala.html
>     <meta name="http-equiv" content="text/html; charset="ISO-8859-7">
>
> Hrmf... Doesn't quite work.  At least, it doesn't work without
> tweaking the ~/.elinks files and stuff.  This is bad, because we can't
> use elinks in batch mod conversion of many different languages and
> charsets without first configuring it through the curses interface.
>
> There is an -eval command line option that should probably work fine
> with non ISO-8859-1 texts, when used as:
>
> 	elinks -eval 'set document.codepage.assume = "ISO-8859-7"' \
> 	    -eval 'set terminal.vt220.charset = "ISO-8859-7"' \
> 	    -dump 1 lala.html
>
> but I can't seen to find any good way of making this output raw 8-bit
> text for Greek :(

Hmmm, now that I think about this reply a bit more, it might sound
like I'm being negative just for the sake of it.  I'm not.

I have been using w3m for producing text versions of the few Greek
documents I managed to write so far.  It just works.  No special
tweaking of ~/.w3m needed, no strange conversions donen to 8-bit text.

The patch that makes our doc/ tree use w3m is very small too.
Less than 50 lines in `cvs di -u' format.

	http://people.freebsd.org/~keramida/diff/w3m_docs.patch

If anyone is interested in testing this with a full doc and/or web
build on i386, alpha and sparc64 I'd be very glad to commit it and
update textproc/docproj to depend on w3m instead of links.

- Giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030324024026.GA23139>