Package: bsdmainutils
Version: 11.1.2+b1
Severity: minor
Tags: patch

Dear Maintainer,

   * What led up to the situation?

  Warning from "troff":

troff: <calendar.1>:310: warning: macro 'FL' not defined

Output is from: test-groff -b -e -mandoc -T utf8 -rF0 -t -w w -z 
  ["test-groff" is a developmental version of "groff"]

###

  Some other reasons for a fix:

Input file is calendar.1

mandoc: calendar.1:90:31: WARNING: new sentence, new line
mandoc: calendar.1:138:7: WARNING: new sentence, new line
mandoc: calendar.1:307:41: WARNING: new sentence, new line
mandoc: calendar.1:310:2: ERROR: skipping unknown macro: .FL w
mandoc: calendar.1:311:65: WARNING: new sentence, new line

#######

Test nr. 8:

Protect a full stop (.) with "\&", if it has a blank (white-space) in
front of or (ignoring characters transparent to it) after it, and it
does not mean an end of a sentence.

64:Defaults to one. (same as \-l)
199:Jun. 15\fB\et\fRJune 15.
271:U.S. history.
273:U.S. holidays.

#####

Test nr. 18:

Change - to \- if it means a minus sign.

209:Ostern-2\fB\et\fRGood Friday (2 days before Easter)

#####

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" (.!?).

64:Defaults to one. (same as \-l)
80:days (forward, future). Defaults to one. (same as \-A)
84:days, only if today is Friday (forward, future). Defaults to two, which 
causes
90:as the default calendar file. If this file is not accessible, the 
system-wide default is used.
138:read. This is so that locales from one file do not accidentally carry over 
into
199:Jun. 15\fB\et\fRJune 15.
271:U.S. history.
273:U.S. holidays.
294:and description, or that begin with a <tab>. This is different than in 
previous
307:flags are Debian-specific enhancements. Option
311:in Debian, but this option is now used differently by upstream. Also, the 
original

#####

Input file is calendar.1
Test nr. 42:

Split lines longer than 80 characters into two or more lines.
Appropriate break points are the end of a sentence and a subordinate
clause.

calendar.1: line 90     length 94
calendar.1: line 311    length 82

#####

  Patch:

--- calendar.1  2018-05-04 12:24:31.000000000 +0000
+++ calendar.1.new      2018-05-23 00:36:04.000000000 +0000
@@ -61,7 +61,7 @@ The options are as follows:
 Print lines from today and next
 .Ar num
 days (forward, future).
-Defaults to one. (same as \-l)
+Defaults to one (same as \-l).
 .It Fl a
 Process the
 .Dq calendar
@@ -77,17 +77,20 @@ Enforce special date calculation mode fo
 .It Fl l Ar num
 Print lines from today and next
 .Ar num
-days (forward, future). Defaults to one. (same as \-A)
+days (forward, future).
+Defaults to one (same as \-A).
 .It Fl e Ar num
 Print lines from today and next
 .Ar num
-days, only if today is Friday (forward, future). Defaults to two, which causes
+days, only if today is Friday (forward, future).
+Defaults to two, which causes
 .Nm
 to print entries through the weekend on Fridays.
 .It Fl f Ar calendarfile
 Use
 .Ar calendarfile
-as the default calendar file. If this file is not accessible, the system-wide 
default is used.
+as the default calendar file.
+If this file is not accessible, the system-wide default is used.
 .It Fl t Oo Oo Oo Ar cc Oc Ns Ar yy Oc Ns Ar mm Oc Ns Ar dd
 Act like the specified value is
 .Dq today
@@ -135,7 +138,8 @@ and
 where <local_name> can be ru_RU.UTF-8, uk_UA.UTF-8 or by_BY.UTF-8.
 .Pp
 Note that the locale is reset to the user's default for each new file that is
-read. This is so that locales from one file do not accidentally carry over into
+read.
+This is so that locales from one file do not accidentally carry over into
 another file.
 .Pp
 Other lines should begin with a month and day.
@@ -156,7 +160,7 @@ multiple line specifications for a singl
 Orthodox Easter for this year.
 Weekdays may be followed by
 .Dq -4
-.Li ...
+.Li \&...\&
 .Dq +5
 (aliases last, first, second, third, fourth) for moving events like
 .Dq the last Monday in April .
@@ -183,7 +187,7 @@ directory
 and finally in
 .Pa /usr/share/calendar .
 Empty lines and lines protected by the C commenting syntax
-.Pq Li /* ... */
+.Pq Li /* \&...\& */
 are ignored.
 .Pp
 Some possible calendar entries
@@ -196,7 +200,7 @@ Easter=Ostern
 #include <calendar.birthday>
 
 6/15\fB\et\fRJune 15 (if ambiguous, will default to month/day).
-Jun. 15\fB\et\fRJune 15.
+Jun.\& 15\fB\et\fRJune 15.
 15 June\fB\et\fRJune 15.
 Thursday\fB\et\fREvery Thursday.
 June\fB\et\fREvery June 1st.
@@ -206,7 +210,7 @@ May Sun+2\fB\et\fRsecond Sunday in May (
 04/SunLast\fB\et\fRlast Sunday in April,
 \fB\et\fRsummer time in Europe
 Easter\fB\et\fREaster
-Ostern-2\fB\et\fRGood Friday (2 days before Easter)
+Ostern\-2\fB\et\fRGood Friday (2 days before Easter)
 Paskha\fB\et\fROrthodox Easter
 .Ed
 .Sh FILES
@@ -268,9 +272,9 @@ Cosmic history.
 .It Pa calendar.uk
 UK calendar.
 .It Pa calendar.ushistory
-U.S. history.
+U.S.\& history.
 .It Pa calendar.usholiday
-U.S. holidays.
+U.S.\& holidays.
 .It Pa calendar.world
 World wide calendar.
 .El
@@ -291,8 +295,8 @@ at the beginning of a line.
 The
 .Nm
 command will only display lines that use a <tab> character to separate the date
-and description, or that begin with a <tab>. This is different than in previous
-releases.
+and description, or that begin with a <tab>.
+This is different than in previous releases.
 .Pp
 The
 Fl t
@@ -304,11 +308,13 @@ The
 .Fl l
 and
 .Fl e
-flags are Debian-specific enhancements. Option
+flags are Debian-specific enhancements.
+Option
 .Fl e
 used to be called
-.FL w
-in Debian, but this option is now used differently by upstream. Also, the 
original
+.Fl w
+in Debian, but this option is now used differently by upstream.
+Also, the original
 .Nm
 program did not accept
 .Li 0



-- 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.88-1-u1 (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 bsdmainutils depends on:
ii  bsdutils     1:2.32-0.1
ii  debianutils  4.8.6
ii  libbsd0      0.8.7-1
ii  libc6        2.27-3
ii  libtinfo6    6.1+20180210-3

bsdmainutils recommends no packages.

Versions of packages bsdmainutils suggests:
ii  cpp                   4:7.2.0-1d1
pn  vacation              <none>
ii  wamerican [wordlist]  2018.04.16-1
ii  whois                 5.3.0
ii  wngerman [wordlist]   20161207-4

-- no debconf information

-- 
Bjarni I. Gislason

Reply via email to