LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2012, 06:25 PM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 91
Elinks text browser. Any way to "word wrap" to avoid left-right scrolling?


I'm interested in getting rid of an annoyance with elinks text web browser. There is a setting in
options that supposedly eliminates the need to use the "[" and "]" character keys to scroll left and
right to read stuff that's going wide. It ain't working right or I'm missing something. I have a 16:9
screen and I don't see why I should have to scroll left and right all the time. Has anybody figured
out how to adjust this properly? Any hints, tips or hacks are very much appreciated. I really like
elinks, I rely on it for the morning news and lots of other reading like Wikipedia, etc because it
cooperates well with my dial up connection.
 
Old 08-08-2012, 10:06 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,796
Blog Entries: 28

Rep: Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536
Out of curiosity, I just installed elinks and visited Philly.com and Tampabay.com. They both seemed to wrap okay. When I narrowed the window, the text inside wrapped automatically; vice versa when I widened it (though tampabay.com seem to be locked in a three-column format, so if I narrowed the window too much--to about 1/4 the width of the monitor--I had to scroll).

This was on a standard 4:3 16-inch Viewsonic CRT under Debian Squeeze.

I could be missing something, but maybe if you posted links to some of the sites you are visiting it would help.

Afterthought: Have you tried lynx or links? Lynx is a pure text browser. Links is more like elinks, with some formatting.

Last edited by frankbell; 08-08-2012 at 10:09 PM. Reason: clarity
 
Old 08-09-2012, 08:52 AM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by frankbell View Post
Out of curiosity, I just installed elinks and visited Philly.com and Tampabay.com. They both seemed to wrap okay. When I narrowed the window, the text inside wrapped automatically; vice versa when I widened it (though tampabay.com seem to be locked in a three-column format, so if I narrowed the window too much--to about 1/4 the width of the monitor--I had to scroll).

This was on a standard 4:3 16-inch Viewsonic CRT under Debian Squeeze.

I could be missing something, but maybe if you posted links to some of the sites you are visiting it would help.

Afterthought: Have you tried lynx or links? Lynx is a pure text browser. Links is more like elinks, with some formatting.
Actually this very page does that, not wrapping the text. Yes, I've used Lynx since before there was elinks. Back in my Windows days, 1998. But Lynx doesn't handle frames well nor does it do javascript. I still install Lynx every upgrade just for the sake of nostalgia. I've tried different releases of elinks, 13, 12, 12pre5 and right now using version 13.git that I compiled with javascript support. Version 12 and 11 will not compile, they error out with javascript errors. That's with Fedora 16 here. The word wrap problem occurs both in a GUI terminal window and also in console mode, or "multi user" mode, run level 3. It's pretty annoying and apparently there are not many elinks users out there that can help. These days most people have a high speed internet connection and don't need a text browser. Alas, with my dial up reading the news each morning is an arduous test of patience with a GUI web browser. Thanks for the reply.
 
Old 08-09-2012, 09:02 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,796
Blog Entries: 28

Rep: Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536
Quote:
Actually this very page does that, not wrapping the text.
Indeed it does. I see exactly what you mean.

I have no idea how to deal with your request. If you haven't looked in man 5 elinkskeys, you might find something there, but I'm guessing you have already looked.

Sorry I couldn't help.
 
1 members found this post helpful.
Old 08-09-2012, 09:36 PM   #5
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by frankbell View Post
Indeed it does. I see exactly what you mean.

I have no idea how to deal with your request. If you haven't looked in man 5 elinkskeys, you might find something there, but I'm guessing you have already looked.

Sorry I couldn't help.
Oh don't be sorry, please. I am grateful for your replies, believe me. Very much so. And no, I have not looked at that particular manual but I will immediately do so. Thank you for turning me on to that. I'll try to get back after perusing said man page.
 
Old 08-09-2012, 09:46 PM   #6
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Nah, nothing there that helps. It justs mentions the use of the "w" key to toggle word wrap but it does not truly wrap all the way, just partly. But I will continue my vigilent search for information.
 
Old 08-09-2012, 10:01 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,796
Blog Entries: 28

Rep: Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536Reputation: 5536
Drat.

I hate not finding the answer.
 
Old 08-09-2012, 10:22 PM   #8
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 91
Quote:
Originally Posted by frankbell View Post
Drat.

I hate not finding the answer.
I do too. How about if I use this script I found, if I assign it to the "k" key? What's the best way to assign this function - and would it work?
def wrap(text, width=80):
lines = []
for paragraph in text.split('\n'):
line = []
len_line = 0
for word in paragraph.split(' '):
len_word = len(word)
if len_line + len_word <= width:
line.append(word)
len_line += len_word + 1
else:
lines.append(' '.join(line))
line = [word]
len_line = len_word + 1
lines.append(' '.join(line))
return '\n'.join(lines)

Last edited by SharpyWarpy; 08-09-2012 at 10:25 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash script: using "select" to show multi-word options? (like "option 1"/"o zidane_tribal Programming 7 12-19-2015 02:03 AM
enscript: "option '--word-wrap' doesn't allow an argument" kalinga59 Linux - Software 1 06-04-2009 06:08 AM
Simulating Word Wrap with "probably" SED fsenes Linux - Newbie 6 04-16-2009 01:43 AM
"setup" or "elinks" text garbage displayed sr99 Red Hat 1 12-06-2006 08:43 PM
"enscript --word-wrap" does not wrap line of text file powah Linux - General 3 05-16-2006 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration