Bug 35166 - app-text/docbook-sgml-utils requires lynx or links. this adds w3m support.
Bug#: 35166 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: enhancement Priority: P3
Resolution: FIXED Assigned To: text-markup@gentoo.org Reported By: jim_jim33@hotmail.com
Component: Applications
URL: 
Summary: app-text/docbook-sgml-utils requires lynx or links. this adds w3m support.
Keywords:  
Status Whiteboard: 
Opened: 2003-12-05 17:33 0000
Description:   Opened: 2003-12-05 17:33 0000
app-text/docbook-sgml-utils requires lynx or links for its "txt" backend. 
Since
I am a w3m user and didn't want to emerge lynx or links, I made a teeny patch
to
add w3m support.  The first attachment is the patch to go into the files
directory, and the second attachment is a diff against the current ebuild.

Reproducible: Always
Steps to Reproduce:

------- Comment #1 From jim_jim33@hotmail.com 2003-12-05 17:34:31 0000 -------
Created an attachment (id=21773) [details]
patch to go in files directory

------- Comment #2 From jim_jim33@hotmail.com 2003-12-05 17:34:54 0000 -------
Created an attachment (id=21774) [details]
patch against latest ebuild

------- Comment #3 From Mamoru KOMACHI (RETIRED) 2003-12-06 05:31:41 0000 -------
Nice to add w3m support to docbook-sgml-utils. btw, /usr/bin/w3mbelongs to
either net-www/w3m, net-www/w3m-m17n and net-www/w3mmeeand they all provides
virtual/w3m, we could write virtual/w3m insteadof net-www/w3m. (Just a thought,
if only net-www/lynx, net-www/links,net-www/elinks and net-www/w3m* provide
virtual/textbrowser,can we add a patch to support elinks as well and put
virtual/textbrowserin DEPEND?)

------- Comment #4 From Mike Gardiner (RETIRED) 2003-12-16 06:38:28 0000 -------
Personally, I'm inclined to apply this, as well as another patch I've written
for using html2text with docbook-sgml-utils, as I've felt that although
lynx/links are definitely required, they're both rather 'heavy' dependencies.

Thanks for reporting, I'll get looking into this as I have some time now.

------- Comment #5 From Mamoru KOMACHI (RETIRED) 2004-02-12 09:01:52 0000 -------
*** Bug 41384 has been marked as a duplicate of this bug. ***

------- Comment #6 From kyberneticist@yahoo.com 2004-02-12 09:55:48 0000 -------
BTW, regarding your patch...
the -T text/html  - necessary in your opinion?
'cause when I hassled the actual maintainer of these tools, I just used -dump.
Thus, 0.6.14 which now has this doesn't include that flag.
I mean, I know what it *does*, I use it when grepping HTML files.
grep mysqladmin * | sed 's/$/<br>/' | w3m -T text/html

I just was wondering if it was needed for what the txt script does.

------- Comment #7 From Mamoru KOMACHI (RETIRED) 2004-02-12 10:16:17 0000 -------
It isn't quite necessary but it's safe to add it in case 
w3m cannot auto-detect content-type (in most case w3m
auto-detects content-type), as txt backend always gets
HTML input and dumps txt output. 

Obz, could you have a look at it again and commit it?
docbook-sgml-utils-0.6.14 was released this week but
0.6.12 seems more than one years old ... (and yet we don't
have 0.6.13 in Portage!)

------- Comment #8 From kyberneticist@yahoo.com 2004-02-12 11:31:56 0000 -------
Ok.  Just wondering if I should nag the poor guy again (who was already
unwilling to add w3m without much pleading)  to add the -T text/html 
But maybe not.
In any case, the patch is no longer needed, I'd say.

------- Comment #9 From Mike Gardiner (RETIRED) 2004-02-12 15:30:03 0000 -------
will bump to .14, add w3m and html2text patches, and mark ~ tonight, thanks for
the heads up.

------- Comment #10 From Stephane Loeuillet 2004-04-02 03:41:37 0000 -------
forgot to put this one in portage CVS ?
seems 6.0.12-r2 is still the latest in portage

------- Comment #11 From Mike Gardiner (RETIRED) 2004-04-27 23:01:44 0000 -------
Have been away/busy, will fix asap.

------- Comment #12 From Mamoru KOMACHI (RETIRED) 2004-09-03 11:52:43 0000 -------
Added 0.6.14 to CVS. Thanks for the bug report.