Package: catdoc
Version: 1:0.95-4.1
Severity: minor
Tags: patch

  The patch is in the attachment.

  Summary:

Remove space at end of lines.

Change a two-fonts macro to an one-font macro for a
single argument.

Change a HYPHEN-MINUS (code 0x55, 2D) to a dash
(minus) if it matches " -[:alpha:]" or \(aq-[:alpha:] (for options).

Begin a sentence on a new line.

Use \(en for a dash where appropriate.

###

  Details:

Input file is catppt.1

mandoc: catppt.1:6:23: STYLE: whitespace at end of input line
mandoc: catppt.1:9:10: STYLE: whitespace at end of input line
mandoc: catppt.1:10:19: STYLE: whitespace at end of input line
mandoc: catppt.1:11:10: STYLE: whitespace at end of input line
mandoc: catppt.1:12:19: STYLE: whitespace at end of input line
mandoc: catppt.1:18:67: STYLE: whitespace at end of input line
mandoc: catppt.1:31:26: STYLE: whitespace at end of input line
mandoc: catppt.1:39:65: STYLE: whitespace at end of input line

#######

Test nr. 2:

Enable and fix warnings from 'test-groff'.

<catppt.1>:21 (macro BR): only 1 argument, but more are expected

Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z

  [ "test-groff" is a developmental version of "groff" ]

####

Test nr. 16:

Use the correct macro for the font change of a single argument.

21:.BR -l

#####

Test nr. 25:

Change a HYPHEN-MINUS (code 0x55, 2D) to a minus (\-), if in front of a
name for an option.

6:.BR "catppt " [ -lV ] 
7:.RB [ -b
9:.RB [ -s 
11:.RB [ -d 
21:.BR -l
24:.BI -b string
29:.BI -d charset`
37:.BI -s charset
43:.B -V

#####

Test nr. 41:

Wrong distance between sentences or protect the indicator.

1) Separate the sentences and subordinate clauses; each begins on a new
line.  See man-pages(7) [package "manpages"] and "info groff".

Or

2) Adjust space between sentences (two spaces),

3) or protect the indicator by adding "\&" after it.

The "indicator" is an "end-of-sentence character" (.!?).

25:slides break string. This string (by default - formfeed) would be output
30:- specifies destination charset name. Charset file has format described in
33:manual page. By default, current locale
38:- specifies source charset. Typically, PowerPoint files use UNICODE

#####

Test nr. 44:

Use \(en for a dash (en-dash) between space characters, not a minus
(\-) or a hyphen (-), except in the NAME section.

25:slides break string. This string (by default - formfeed) would be output

#####

-- System Information:
Debian Release: buster/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'proposed-updates'), (500, 
'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.110-3 (SMP w/2 CPU cores)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE=is_IS.iso88591 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages catdoc depends on:
ii  libc6  2.27-5

catdoc recommends no packages.

Versions of packages catdoc suggests:
pn  tk | wish  <none>

-- no debconf information

-- 
Bjarni I. Gislason
--- catppt.1    2017-11-05 22:48:29.000000000 +0000
+++ catppt.1.new        2018-07-23 20:36:20.000000000 +0000
@@ -3,44 +3,48 @@
 catppt \- reads MS-PowerPoint file and puts its content on standard output
 .SH SYNOPSIS
 
-.BR "catppt " [ -lV ] 
-.RB [ -b
-.IR " string " ]
-.RB [ -s 
-.IR " charset " ] 
-.RB [ -d 
-.IR " charset " ] 
+.BR "catppt " [ \-lV ]
+.RB [ \-b
+.IR string " ]"
+.RB [ \-s
+.IR charset " ]"
+.RB [ \-d
+.IR charset " ]"
 .I files
 
 .SH DESCRIPTION
 
 .B catppt
-reads MS-PowerPoint presentations and dumps its content to stdout. 
+reads MS-PowerPoint presentations and dumps its content to stdout.
 .SH "OPTIONS"
 .TP 8
-.BR -l
+.B \-l
 list known charsets and exit successfully
 .TP 8
-.BI -b string
-slides break string. This string (by default - formfeed) would be output
+.BI \-b string
+slides break string.
+This string (by default \(en formfeed) would be output
 at the end of each slide page.
 
 .TP 8
-.BI -d charset`
-- specifies destination charset name. Charset file has format described in
-CHARACTER SETS section of 
+.BI \-d charset
+\(en specifies destination charset name.
+Charset file has format described in
+CHARACTER SETS section of
 .BR catdoc (1)
-manual page. By default, current locale
+manual page.
+By default, current locale
 charset would be used if langinfo support was enabled at the compile time.
 
 .TP 8
-.BI -s charset
-- specifies source charset. Typically, PowerPoint files use UNICODE
-strings with known charsets, but for some reason you may wish to 
+.BI \-s charset
+\(en specifies source charset.
+Typically, PowerPoint files use UNICODE
+strings with known charsets, but for some reason you may wish to
 override it.
 
 .TP 8
-.B -V
+.B \-V
 outputs version number
 
 .SH "SEE ALSO"

Reply via email to