[PROPOSED 1/3] Fix adjustment and hyphenation in *.txt files
* date.1: Remove no-longer-needed .nh and .na. * workman.sh: Modernize the code that disables adjustment and hyphenation, to work in groff 1.23 too. Add comments. --- date.1 | 2 -- workman.sh | 18 +++++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/date.1 b/date.1 index 3a02e7c2..5f334358 100644 --- a/date.1 +++ b/date.1 @@ -4,8 +4,6 @@ .SH NAME date \- show and set date and time .SH SYNOPSIS -.if n .nh -.if n .na .B date [ .B \-u diff --git a/workman.sh b/workman.sh index 29f317cb..ad1a9532 100644 --- a/workman.sh +++ b/workman.sh @@ -9,12 +9,24 @@ if (type nroff && type perl) >/dev/null 2>&1; then # Tell groff not to emit SGR escape sequences (ANSI color escapes). export GROFF_NO_SGR=1 - echo ".am TH -.hy 0 + printf '%s\n' '. +.\" -- Tailor groff -man -- +. +.\" Left-adjust and do not hyphenate. +.ds AD l +.nr HY 0 +. +.\" -- Tailor traditional troff -man -- +. +.\" Left-adjust and do not hyphenate. +.am TH .na +.hy 0 .. +.\" Omit page headers and footers. .rm }H -.rm }F" | nroff -man - ${1+"$@"} | perl -ne ' +.rm }F +.' | nroff -man - ${1+"$@"} | perl -ne ' binmode STDIN, '\'':encoding(utf8)'\''; binmode STDOUT, '\'':encoding(utf8)'\''; chomp; -- 2.50.1
* zic.8 (:): Remove; no longer needed. (FILES): Use UR and UE for URL, instead of doing it by hand. --- zic.8 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zic.8 b/zic.8 index 06ff8667..62ebfcc9 100644 --- a/zic.8 +++ b/zic.8 @@ -22,8 +22,6 @@ zic \- timezone compiler .el .ds < \(la .ie '\(ra'' .ds > > .el .ds > \(ra -.ie \n(.g .ds : \: -.el .ds : . .ds d " degrees .ds m " minutes .ds s " seconds @@ -289,8 +287,10 @@ zero or more lines, each ending in a newline byte and containing at most 2048 bytes counting the newline, and without any NUL bytes. The input text's encoding is typically UTF-8 or ASCII; it should have a unibyte representation -for the POSIX Portable Character Set (PPCS) -\*<https://pubs\*:.opengroup\*:.org/\*:onlinepubs/\*:9799919799/\*:basedefs/\*:V1_chap06\*:.html\*> +for the +.UR https://\:pubs\:.opengroup\:.org/\:onlinepubs/\:9799919799/\:basedefs/\:V1_chap06\:.html +POSIX Portable Character Set (PPCS) +.UE and the encoding's non-unibyte characters should consist entirely of non-PPCS bytes. Non-PPCS characters typically occur only in comments: although output file names and time zone abbreviations can contain -- 2.50.1
* theory.html (Accuracy of the tz database): Update citation of Morrison, Stephenson et al to their 2020 addendum. --- theory.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theory.html b/theory.html index 458d64ac..e9928e30 100644 --- a/theory.html +++ b/theory.html @@ -832,10 +832,10 @@ href="https://www.dissentmagazine.org/blog/booked-a-global-history-of-time-vanes title="International System of Units">SI</abbr></a> seconds to historical <a href="https://en.wikipedia.org/wiki/Solar_time">solar time</a> to more than about one-hour accuracy. - See: Stephenson FR, Morrison LV, Hohenkerk CY. - <a href="https://dx.doi.org/10.1098/rspa.2016.0404">Measurement of - the Earth's rotation: 720 BC to AD 2015</a>. - <cite>Proc Royal Soc A</cite>. 2016;472:20160404. + See: Morrison LV, Stephenson FR, Hohenkerk CY, Zawilski M. + <a href="https://doi.org/10.1098/rspa.2020.0776">Addendum 2020 + to 'Measurement of the Earth's rotation: 720 BC to AD 2015'</a>. + <cite>Proc Royal Soc A</cite>. 2021;477:20200776. Also see: Espenak F. <a href="https://eclipse.gsfc.nasa.gov/SEhelp/uncertainty2004.html">Uncertainty in Delta T (ΔT)</a>. -- 2.50.1
participants (1)
-
Paul Eggert