#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-fix_man_page.dpatch by Joao Eriberto Mota Filho (eriberto) <eriberto@eriberto.pro.br>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix mistakes in upstream man page.
@DPATCH@
diff -urNad jp2a-1.0.6~/man/jp2a.1 jp2a-1.0.6/man/jp2a.1
--- jp2a-1.0.6~/man/jp2a.1 2006-09-04 08:49:46.000000000 -0300
+++ jp2a-1.0.6/man/jp2a.1 2009-08-25 21:00:55.000000000 -0300
@@ -19,7 +19,7 @@
.TP
.B \-\-background=light \-\-background=dark
If you don't want to mess with \-\-invert all the time, just use these instead.
-If you are using white characters on a black display, then use --background=dark,
+If you are using white characters on a black display, then use \-\-background=dark,
and vice versa.
.TP
.B \-b \-\-border
@@ -27,7 +27,7 @@
.TP
.BI \-\-chars= ...
Use the given characters when producing the output ASCII image. Default is " ...',;:clodxkO0KXNWM".
-.Tp
+.TP
.BI \-\-colors
Use ANSI color for text output and CSS color for HTML output.
.TP
@@ -50,11 +50,11 @@
When used with \-\-html and \-\-color, then color each output character's background color. For instance,
if you want to use fill-output on a light background, do
-jp2a --color --html --html-fill --background=light somefile.jpg --output=dark.html
+jp2a \-\-color \-\-html \-\-html-fill \-\-background=light somefile.jpg \-\-output=dark.html
To do the same on a light background:
-jp2a --color --html --html-fill --background=dark somefile.jpg --output=light.html
+jp2a \-\-color \-\-html \-\-html-fill \-\-background=dark somefile.jpg \-\-output=light.html
The default is to have fill disabled.
.TP
@@ -65,7 +65,7 @@
Flip output image vertically
.TP
.BI \-\-height= N
-Set output height. If only --height is specified, then output width will
+Set output height. If only \-\-height is specified, then output width will
be calculated according to the source images aspect ratio.
.TP
.B \-h \-\-help
@@ -142,7 +142,7 @@
Output picture.jpg and picture2.jpg, each 80x25 characters, using the characters " ...ooxx@@" for output:
.PP
.B jp2a
-\-\-size=80x25 --chars=" ...ooxx@@" picture.jpg picture2.jpg
+\-\-size=80x25 \-\-chars=" ...ooxx@@" picture.jpg picture2.jpg
.PP
Output image.jpg using 76 columns, height is automatically calculated from aspect ratio of image.jpg
.PP
@@ -188,7 +188,7 @@
You can extract the red channel by doing this:
.B jp2a
-somefile.jpg --red=1.0 --green=0.0 --blue=0.0
+somefile.jpg \-\-red=1.0 \-\-green=0.0 \-\-blue=0.0
This will calculate luminance based on Y = R*1.0 + G*0.0 + B*0.0. The default
values is to use Y = R*0.2989 + G*0.5866 + B*0.1145.