[syslinux] [PATCH] ppmtolss color need to be quoted

Gilles Espinasse g.esp at free.fr
Sat Nov 22 14:07:28 PST 2008


Fix internal ppmtolss comment and man page describing ppmtolss syntax with
color index
Fix typo s/freqency/frequency/ in comment

Not so sure it will not be mangled, so it's also as attachment.

Signed-off-by: Gilles Espinasse <g.esp at free.fr>

diff --git a/man/ppmtolss16.1 b/man/ppmtolss16.1
index 954e94b..5be3263 100644
--- a/man/ppmtolss16.1
+++ b/man/ppmtolss16.1
@@ -3,7 +3,7 @@
 ppmtolss16 \(em Convert a PPM to an LSS16 image
 .SH "SYNOPSIS"
 .PP
-\fBppmtolss16\fR [        \fB   \fI#rrggbb\fR=\fIi\fR  \fP        \&...]
[< input.ppm]  [> output.rle]
+\fBppmtolss16\fR [        \fB   \fI'#rrggbb\fR=\fIi'\fR  \fP        \&...]
[< input.ppm]  [> output.rle]
 .SH "DESCRIPTION"
 .PP
 This manual page documents briefly the \fBppmtolss16\fR command.
@@ -44,7 +44,7 @@ At the start of a row, the "previous pixel" is assumed to
be zero.
 .SH "OPTIONS"
 .PP
 A summary of options is included below.
-.IP "\fB\fI#rrggbb\fR=\fIi\fR\fP" 10
+.IP "\fB\fI'#rrggbb\fR=\fIi'\fR\fP" 10
 Specify that the color #rrggbb (hex) should be assigned index
 i (decimal).

diff --git a/utils/ppmtolss16 b/utils/ppmtolss16
index 5af9083..370ba35 100755
--- a/utils/ppmtolss16
+++ b/utils/ppmtolss16
@@ -36,9 +36,9 @@
 ##
 ## Usage:
 ##
-## ppmtolss16 [#rrggbb=i ...] < input.ppm > output.rle
+## ppmtolss16 ['#rrggbb=i' ...] < input.ppm > output.rle
 ##
-## Command line options of the form #rrggbb=i indicate that
+## Command line options of the form '#rrggbb=i' indicate that
 ## the color #rrggbb (hex) should be assigned index i (decimal)
 ##

@@ -237,7 +237,7 @@ for ( $y = 0 ; $y < $ysize ; $y++ ) {
     }
 }

-# Sort list of colors according to freqency
+# Sort list of colors according to frequency
 @colors = sort { $color_count{$b} <=> $color_count{$a} }
keys(%color_count);

 # Now we have our pick of colors.  Sort according to intensity;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: syslinux_ppmtolss-syntax.diff
Type: application/octet-stream
Size: 1597 bytes
Desc: not available
URL: <http://www.zytor.com/pipermail/syslinux/attachments/20081122/30a6de46/attachment.obj>


More information about the Syslinux mailing list