patch-urlview_man 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. $OpenBSD: patch-urlview_man,v 1.1 2015/01/10 18:02:04 schwarze Exp $
  2. Fix incorrect escaping resulting in incorrectly shown regexp.
  3. While here, fix various other nits.
  4. --- urlview.man.orig Tue Jul 4 12:14:30 2000
  5. +++ urlview.man Fri Jan 9 14:41:54 2015
  6. @@ -7,18 +7,18 @@
  7. .\" Copyright (c) 1997 Michael Elkins <me@cs.hmc.edu>
  8. .\" Copyright (c) 2000 Thomas Roessler <roessler@does-not-exist.org>
  9. .\"
  10. -.\" This document is free software; you can redistribute it and/or
  11. +.\" This document is free software; you can redistribute it and/or
  12. .\" modify it under the terms of the GNU General Public License as
  13. .\" published by the Free Software Foundation; either version 2 of the
  14. .\" License, or (at your option) any later version.
  15. .\"
  16. -.TH "urlview" 1
  17. +.TH URLVIEW 1
  18. .SH NAME
  19. .PP
  20. urlview \- URL extractor/launcher
  21. .SH SYNOPSIS
  22. .PP
  23. -.B urlview
  24. +.B urlview
  25. \fIfilename\fP [ \fIfilename\fP ... ]
  26. .SH DESCRIPTION
  27. .PP
  28. @@ -29,53 +29,50 @@ specific item.
  29. .SH CONFIGURATION
  30. .PP
  31. .B urlview
  32. -attempts to read
  33. +attempts to read
  34. .I ~/.urlview
  35. -upon startup. If this file
  36. -doesn't exist, it will try to read a system wide file
  37. -in
  38. +upon startup.
  39. +If this file doesn't exist, it will try to read a system wide file in
  40. .IR /etc/urlview.conf .
  41. There are two configuration commands (order does not matter):
  42. .TP
  43. REGEXP \fIregexp\fP
  44. .B urlview
  45. -uses a regular expression to extract URLs from the specified
  46. -text files. \\r, \\t, \\n and \\f are all converted to
  47. -their normal
  48. +uses a regular expression to extract URLs from the specified text files.
  49. +\er, \et, \en and \ef are all converted to their normal
  50. .BR printf (3)
  51. -meanings. The default REGEXP is:
  52. +meanings.
  53. +The default REGEXP is:
  54. .PP
  55. -.sp
  56. -.ft RR
  57. +.sp
  58. .nf
  59. -(((https?|ftp|gopher)://|(mailto|file|news):)[^' \t<>"]+|(www|web|w3)\.[-a-z0-9.]+)[^' \t.,;<>"\):]
  60. +(((https?|ftp|gopher)://|(mailto|file|news):)[^' \et<>"]+|(www|web|w3)\e.[-a-z0-9.]+)[^' \et.,;<>"\e):]
  61. .fi
  62. -.ec
  63. -.ft P
  64. .sp
  65. .TP
  66. COMMAND \fIcommand\fP
  67. -If the specified command contains a
  68. +If the specified command contains a
  69. .BR %s ,
  70. it will be subsituted
  71. with the URL that was requested, otherwise the URL is appended to
  72. -the COMMAND string. The default COMMAND is:
  73. +the COMMAND string.
  74. +The default COMMAND is:
  75. .br
  76. .sp
  77. url_handler.sh %s
  78. .PP
  79. .B Note:
  80. -You should
  81. +You should
  82. .I never
  83. -put single quotes around the
  84. +put single quotes around the
  85. .BR %s .
  86. .B urlview
  87. does this for you, and also makes sure that single quotes eventually
  88. -showing up inside the URL are handled properly. (Note that this
  89. +showing up inside the URL are handled properly.
  90. +(Note that this
  91. shouldn't happen with the default regular expression, which
  92. explicitly excludes single quotes.)
  93. .SH FILES
  94. -.PP
  95. .IP "/etc/urlview.conf"
  96. system-wide urlview configuration file
  97. .IP "~/.urlview"
  98. @@ -83,7 +80,7 @@ urlview configuration file
  99. .SH SEE ALSO
  100. .PP
  101. .BR printf (3),
  102. -.BR regcomp (3),
  103. +.BR regcomp (3),
  104. .BR regex (7)
  105. .SH AUTHOR
  106. .PP
  107. @@ -94,4 +91,3 @@ Modified for Debian by Luis Francisco Gonzalez <luisgh
  108. Modified for SuSE by Dr. Werner Fink <werner@suse.de> and Stepan Kasal <kasal@suse.cz>.
  109. .PP
  110. Changes put together by Thomas Roessler <roessler@does-not-exist.org>.
  111. -