Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 10:41:55PM EDT, Mayuresh wrote: > On Fri, May 18, 2012 at 01:36:16PM -0400, Chris Jones wrote: > > Other options is to check out the ouput from lynx & w3m... though > > I doubt they do better than ELinks. > > Checked already. I prefer elinks output. I did a quick test as well and noticed that ELinks does a better job with bulleted lists, and in my setup jutifies the text - which I don't mind since I read lots of man pages, but I guess some would find this questionable with fixed-width fonts. Elinks also has some color options, that might be significant for highlighting and such but I haven't tested that yet. These days it can be difficult to find a web page that renders correctly w/o js and css. CJ -- Have a nice day! ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 01:36:16PM -0400, Chris Jones wrote: > Other options is to check out the ouput from lynx & w3m... though > I doubt they do better than ELinks. Checked already. I prefer elinks output. Mayuresh. ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 10:04:39AM EDT, Mayuresh wrote: > On Fri, May 18, 2012 at 12:51:18AM -0400, Chris Jones wrote: > > | $ elinks -dump-width nnn -dump URL | lpr -P PDF > > Will try that out. Thanks. > > Not sure how it would know it should fill the gaps left between line > drawing character though. > > > 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. > > Yes. Sounds a bit challenging with + used in table corners as well as > within table etc. (for example). Nice little regex exercise ;-) Other options is to check out the ouput from lynx & w3m... though I doubt they do better than ELinks. CJ -- WHAT YOU SAY?? ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 12:51:18AM -0400, Chris Jones wrote: > | $ elinks -dump-width nnn -dump URL | lpr -P PDF Will try that out. Thanks. Not sure how it would know it should fill the gaps left between line drawing character though. > 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. Yes. Sounds a bit challenging with + used in table corners as well as within table etc. (for example). Mayuresh ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 07:04:10AM +, witekfl wrote: > The ELinks from the master branch draws nice looking frames in dumps. Sounds great! Probably an expected question - when would it come out in a release/rc so that distros can pick it up? Mayuresh ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Fri, May 18, 2012 at 03:04:10AM EDT, witekfl wrote: > The ELinks from the master branch draws nice looking frames in dumps. Now you're telling me.. :-) I indeed see it in the NEWS file: * enhancement: ``elinks --dump'' uses box-drawing characters if * supported by the charset. I haven't tried it, but this looks promising. Thanks for the good news. CJ -- Hi! My name is bobby... ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
The ELinks from the master branch draws nice looking frames in dumps. ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
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! ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
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. Mayuresh. ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
Re: [elinks-users] Printing - no not the dump way
On Thu, May 17, 2012 at 02:27:06PM EDT, Mayuresh wrote: > elinks rendering pages with tables etc is quite pleasing to the eyes. > > Wish it can be printed that way by converting to ps/pdf. > > Yes, there are other ways to convert html to ps/pdf. However getting same > effect of elinks rendering is difficult (or I don't know how to get it). > > If dumped as text, the smoothness of visual rendering with elinks goes > away. > > Also tried "save formatted document" which looks nearly same as dump > option. > > Any way to print "as it appears" in elinks? maybe the cups-pdf package.? CJ -- Focus follow mouse users will burn in hell!!! ___ elinks-users mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-users
