From patchwork Sat Nov 30 03:18:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjarni Ingi Gislason X-Patchwork-Id: 13890129 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDD27D10DC0 for ; Mon, 2 Dec 2024 08:44:10 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 36FFA21E0; Mon, 2 Dec 2024 09:43:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 36FFA21E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1733129049; bh=PXqhSPgpUqCEp38iP89PHDt5AAr7v7b5FBdGF0ftKFY=; h=Date:From:To:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=OUGAUipzIzK+Qzz7p8D7L4ZBHrWNsRLlZl07GOYjQrvYbqpp11dMpEcx3nxuVNpuC 1xRbkKAwSYSxKrw6XJN6s6vbHMawDQJNK2+Eav2bB1tOSEGzVJkPgtu0pGlXd5eZ8i NZ/s3efKMnWiJTFQi3WiB/KLGqK6X0c2QMs7WP5s= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E7887F805BA; Mon, 2 Dec 2024 09:42:49 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 42718F80607; Mon, 2 Dec 2024 09:42:49 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2A0C9F80236; Sat, 30 Nov 2024 04:19:01 +0100 (CET) Received: from smtp-out1-06.simnet.is (smtp-out1-06.simnet.is [194.105.231.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E86F6F80073 for ; Sat, 30 Nov 2024 04:18:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E86F6F80073 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=simnet.is header.i=@simnet.is header.a=rsa-sha256 header.s=sel1 header.b=HL3z4pj1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simnet.is; i=@simnet.is; q=dns/txt; s=sel1; t=1732936740; x=1764472740; h=date:from:to:subject:message-id:mime-version; bh=o9dUYuQgSDRJRISh0LxG/ccBcJztQQIiPeVb51t6cdo=; b=HL3z4pj1T45mxUUKPGeQDhu/XLfzmrTAupbjIM/mpxnevjTi9qh7+kNf uc6uwCn9DEbsHwf6oItQwFDnfrYCogp+hQMPoOcbVOwyyIoHfaBnFQYla yfTIu04TzQBLogzd8p8h+m7DYmeAiIS8WEH0Asi9TIMKePOQHMObDNd3z N+ujQbn+8nd3GrS/Rzglg2wwHv+1h5MuMW6Ob1kXcFXUqX6LcYu6dtVYd pq15OG+YI/Y/dR9v36IyByMx7edMEAwIvWrfadQIaH9gl6XBSGzHDDltw T0cvE4II1YeXlxS3O/TwzjrECL0QumGqoivHf4t/CcOLwe/EzSFTIfQ0a g==; X-CSE-ConnectionGUID: Yac2mPUJS/eX+8AmbUJOeQ== X-CSE-MsgGUID: 4mg3tXRQR2aEks48K12aBA== Authentication-Results: smtp-out-06.simnet.is; dkim=none (message not signed) header.i=none X-SBRS: 3.3 X-IPAS-Result: A2HkAwCFgUpnhVfoacJaHgEBCxIMQIQXfYFkiCWOH6AgBwEBAQ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YhEdcLO7Sc29qBHnhPtICOAqVN/INmSL1wWVxepZnOnfKlPbak7DH5ZmpN 5dT5Q= X-Talos-CUID: 9a23:ZTtMe29naknoRQ6Q7d+Vv38dEZogSkD/9zDdEwzoIGNjdZ+yRGbFrQ== X-Talos-MUID: 9a23:EUbNqQ78ykGGReBMyKQQamE2xow05qv1FHA3qK9csuSHLnAgGG7HhR6eF9o= X-IronPort-Anti-Spam-Filtered: true X-IronPort-AV: E=Sophos;i="6.12,197,1728950400"; d="1'?diff'?scan'208";a="28226909" Received: from vist-zimproxy-01.vist.is ([194.105.232.87]) by smtp-out-06.simnet.is with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2024 03:18:56 +0000 Received: from localhost (localhost [127.0.0.1]) by vist-zimproxy-01.vist.is (Postfix) with ESMTP id CD695401091D for ; Sat, 30 Nov 2024 03:18:56 +0000 (GMT) Received: from vist-zimproxy-01.vist.is ([127.0.0.1]) by localhost (vist-zimproxy-01.vist.is [127.0.0.1]) (amavis, port 10032) with ESMTP id PmHGf7zGzaJN for ; Sat, 30 Nov 2024 03:18:56 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by vist-zimproxy-01.vist.is (Postfix) with ESMTP id 1139D401091E for ; Sat, 30 Nov 2024 03:18:56 +0000 (GMT) Received: from vist-zimproxy-01.vist.is ([127.0.0.1]) by localhost (vist-zimproxy-01.vist.is [127.0.0.1]) (amavis, port 10026) with ESMTP id BI77YuVpR3Tg for ; Sat, 30 Nov 2024 03:18:56 +0000 (GMT) Received: from kassi.invalid.is (85-220-33-163.dsl.dynamic.simnet.is [85.220.33.163]) by vist-zimproxy-01.vist.is (Postfix) with ESMTPS id F0977401091D for ; Sat, 30 Nov 2024 03:18:55 +0000 (GMT) Received: from bg by kassi.invalid.is with local (Exim 4.98) (envelope-from ) id 1tHE0Y-000000001Kz-3lR9 for alsa-devel@alsa-project.org; Sat, 30 Nov 2024 03:18:58 +0000 Date: Sat, 30 Nov 2024 03:18:58 +0000 From: Bjarni Ingi Gislason To: alsa-devel@alsa-project.org Subject: arecordmidi.1: Some remarks and editorial changes for this man page Message-ID: <173293654339.5079.9034847255158350049.reportbug@kassi.invalid.is> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: reportbug 13.0.2 X-MailFrom: bg@simnet.is X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1 Message-ID-Hash: ZNTC4PLAIXEXXWOJEYJKSYBQENFKEBER X-Message-ID-Hash: ZNTC4PLAIXEXXWOJEYJKSYBQENFKEBER X-Mailman-Approved-At: Mon, 02 Dec 2024 08:42:45 +0000 X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Package: alsa-utils Version: 1.2.12-1 Severity: minor Tags: patch * What led up to the situation? Checking for defects with test-[g|n]roff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z < "man page" [Use "groff -e ' $' " to find trailing spaces.] ["test-groff" is a script in the repository for "groff"; is not shipped] (local copy and "troff" slightly changed by me). [The fate of "test-nroff" was decided in groff bug #55941.] * What was the outcome of this action? troff: backtrace: file '':69 troff::69: warning: trailing space in the line troff: backtrace: file '':77 troff::77: warning: trailing space in the line Output from "test-nroff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z ": troff: backtrace: file '':69 troff::69: warning: trailing space in the line troff: backtrace: file '':77 troff::77: warning: trailing space in the line * What outcome did you expect instead? No output (no warnings). -.- General remarks and further material, if a diff-file exist, are in the attachments. -- System Information: Debian Release: trixie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 6.11.10-amd64 (SMP w/2 CPU threads; PREEMPT) Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: sysvinit (via /sbin/init) Versions of packages alsa-utils depends on: ii kmod 33+20240816-2 ii libasound2t64 1.2.12-1+b1 ii libatopology2t64 1.2.12-1+b1 ii libc6 2.40-3 ii libfftw3-single3 3.3.10-1+b3 ii libncursesw6 6.5-2+b1 ii libsamplerate0 0.2.2-4+b2 ii libtinfo6 6.5-2+b1 alsa-utils recommends no packages. Versions of packages alsa-utils suggests: pn dialog -- no debconf information Input file is arecordmidi.1 Any program (person), that produces man pages, should check the output for defects by using (both groff and nroff) [gn]roff -mandoc -t -ww -b -z -K utf8 The same goes for man pages that are used as an input. For a style guide use mandoc -T lint -.- So any 'generator' should check its products with the above mentioned 'groff', 'mandoc', and additionally with 'nroff ...'. This is just a simple quality control measure. The 'generator' may have to be corrected to get a better man page, the source file may, and any additional file may. Common defects: Input text line longer than 80 bytes. Not removing trailing spaces (in in- and output). The reason for these trailing spaces should be found and eliminated. Not beginning each input sentence on a new line. Lines should thus be shorter. See man-pages(7), item 'semantic newline'. -.- The difference between the formatted output of the original and patched file can be seen with: nroff -mandoc > nroff -mandoc > diff -u and for groff, using "printf '%s\n%s\n' '.kern 0' '.ss 12 0' | groff -mandoc -Z - " instead of 'nroff -mandoc' Add the option '-t', if the file contains a table. Read the output of 'diff -u' with 'less -R' or similar. -.-. If 'man' (man-db) is used to check the manual for warnings, the following must be set: The option "-warnings=w" The environmental variable: export MAN_KEEP_STDERR=yes (or any non-empty value) or (produce only warnings): export MANROFFOPT="-ww -b -z" export MAN_KEEP_STDERR=yes (or any non-empty value) -.-. Output from "mandoc -T lint arecordmidi.1 ": (shortened list) 2 whitespace at end of input line -.-. Output from "test-groff -mandoc -t -ww -b -z arecordmidi.1 ": (shortened list) 2 trailing space in the line -.-. Output from "mandoc -T lint arecordmidi.1 ": mandoc: arecordmidi.1:69:73: STYLE: whitespace at end of input line mandoc: arecordmidi.1:77:67: STYLE: whitespace at end of input line -.-. Remove space characters at the end of lines. Use "git apply ... --whitespace=fix" to fix extra space issues, or use global configuration "core.whitespace". 69:Metronome sounds are played on channel 10, MIDI notes 33 & 34 (GM2/GS/XG 77:the numerator and denominator of the time signature as it would be -.-. Wrong distance between sentences in the input file. Separate the sentences and subordinate clauses; each begins on a new line. See man-pages(7) ("Conventions for source file layout") and "info groff" ("Input Conventions"). The best procedure is to always start a new sentence on a new line, at least, if you are typing on a computer. Remember coding: Only one command ("sentence") on each (logical) line. E-mail: Easier to quote exactly the relevant lines. Generally: Easier to edit the sentence. Patches: Less unaffected text. Search for two adjacent words is easier, when they belong to the same line, and the same phrase. The amount of space between sentences in the output can then be controlled with the ".ss" request. 36:name. A port is specified by its number; for port 0 of a client, the 78:notated. The denominator must be a power of two. Both numbers should be 79:separated by a colon. The time signature is 4:4 by default. -.-. Split a punctuation from a single argument, if a two-font macro is meant 32:.I \-p,\-\-port=client:port,... -.-. Put a parenthetical sentence, phrase on a separate line, if not part of a code. See man-pages(7), item "semantic newline". arecordmidi.1:47:Possible values are 24, 25, 29.97 (for 30 drop-frame), and 30. arecordmidi.1:52:in ticks per beat (when using musical tempo) or ticks per frame -.-. Output from "test-groff -mandoc -t -K utf8 -rF0 -rHY=0 -ww -b -z ": troff: backtrace: file '':69 troff::69: warning: trailing space in the line troff: backtrace: file '':77 troff::77: warning: trailing space in the line --- arecordmidi.1 2024-11-30 02:53:12.480984416 +0000 +++ arecordmidi.1.new 2024-11-30 03:01:19.447146661 +0000 @@ -29,12 +29,14 @@ Prints the current version. Prints a list of possible input ports. .TP -.I \-p,\-\-port=client:port,... +.IR \-p , \-\-port=client:port ,... Sets the sequencer port(s) from which events are recorded. -A client can be specified by its number, its name, or a prefix of its -name. A port is specified by its number; for port 0 of a client, the -":0" part of the port specification can be omitted. +A client can be specified by its number, +its name, or a prefix of its name. +A port is specified by its number; +for port 0 of a client, +the ":0" part of the port specification can be omitted. .TP .I \-b,\-\-bpm=beats @@ -44,12 +46,16 @@ The default value is 120 BPM. .TP .I \-f,\-\-fps=frames Sets the SMPTE resolution, in frames per second. -Possible values are 24, 25, 29.97 (for 30 drop-frame), and 30. +Possible values are 24, 25, 29.97 +(for 30 drop-frame), +and 30. .TP .I \-t,\-\-ticks=ticks Sets the resolution of timestamps (ticks) in the MIDI file, -in ticks per beat (when using musical tempo) or ticks per frame +in ticks per beat +(when using musical tempo) +or ticks per frame (when using SMPTE timing). The default value is 384 ticks/beat or 40 ticks/frame, respectively. @@ -66,17 +72,19 @@ will generate a "format 0" file. .I \-m,\-\-metronome=client:port Plays a metronome signal on the specified sequencer port. -Metronome sounds are played on channel 10, MIDI notes 33 & 34 (GM2/GS/XG +Metronome sounds are played on channel 10, MIDI notes 33 & 34 (GM2/GS/XG metronome standard notes), with velocity 100 and duration 1. .TP .I \-i,\-\-timesig=numerator:denominator Sets the time signature for the MIDI file and metronome. -The time signature is specified as usual with two numbers, representing -the numerator and denominator of the time signature as it would be -notated. The denominator must be a power of two. Both numbers should be -separated by a colon. The time signature is 4:4 by default. +The time signature is specified as usual with two numbers, +representing the numerator and denominator of the time signature +as it would be notated. +The denominator must be a power of two. +Both numbers should be separated by a colon. +The time signature is 4:4 by default. .SH AUTHOR Clemens Ladisch