[elinks-users] Printing - no not the dump way

Chris Jones cjns1989 at gmail.com
Thu May 17 21:51:18 PDT 2012


On Thu, May 17, 2012 at 09:52:43PM EDT, Mayuresh wrote:
> On Thu, May 17, 2012 at 03:18:49PM -0400, Chris Jones wrote:

> > > Any way to print "as it appears" in elinks?
> > 
> > maybe the cups-pdf package.?

> How would that print as it appears in elinks? Does elinks have
> interface with it?
> 
> I have tried html2ps as well as printing to pdf from firefox etc.
> Point is getting _same_ view as in elinks.
> 
> -dump comes close to it, though does not exactly match. E.g. there
> will be gaps in | symbol that draws vertical lines in text dump. When
> elinks renders it visually, there are no gaps.

Yes, it looks like ‘elinks -dump’ replaces unicode line drawing
characters by their ascii equivalents. When I browse with ELinks and I'm
looking at tables at www.w3schools.com I see nice line-drawing
characters in the U+2500 range or thereabout, but when I do an ‘elinks
-dump.. ’ of the URL, all I get is the old Ascii stuff (with dashes and
plus signs ‘+------------+-----------+’ e.g. 

The dump options are under ‘Options Manager->Document->Dump Output’ but
I don't see anything that looks like it would let you change this
setting. 

But apart from that, and issues related to the page width, everything
else looks OK.

Anyway, to answer your other question there is no ‘interface’ that
I know of between ELinks and the printing system.  

What I had in mind was more prosaically something along the lines of:

| $ elinks -dump-width nnn -dump URL | lpr -P PDF 

That should give you the exact image of the ‘Elinks -dump command’ in
printable form.

Only other thing that comes to mind is that if it's just the tables
bothering you, you might be able to write a script to postprocess the
output of ‘elinks -dump’ and replace the pluses and dashes by the
better-looking line-drawing characters and add it as a filter to the
pipe above.

CJ

-- 
Have a nice day!



More information about the elinks-users mailing list