From: Peter Hutterer <peter.hutterer@who-t.net>
To: Marco Morandini <marco.morandini@polimi.it>
Cc: Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
linux-input@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
linux-doc@vger.kernel.org
Subject: Re: [PATCH v2] HID: Add introduction about HID for non-kernel programmers
Date: Mon, 17 Jul 2023 10:15:44 +1000 [thread overview]
Message-ID: <20230717001544.GA129954@quokka> (raw)
In-Reply-To: <2c2a03ac-cd11-7893-4b89-b88845e0f189@polimi.it>
On Thu, Jul 13, 2023 at 04:36:18PM +0200, Marco Morandini wrote:
>
> The current version is with a unique code block, and renders like this
>
> https://home.aero.polimi.it/morandini/Downloads/Screenshot_20230712_185907.png
>
> With a unique code block but a newline in between the report and the
> explanation I get
>
> https://home.aero.polimi.it/morandini/Downloads/Screenshot_20230712_190335.png
>
> that I find somewhat more dispersive.
>
> If I interpose multiple code blocks and explanations (as text) unfortunately
> spynx add a colon at the end of every paragraph, as if the text was the explanation of the
> code block below, and not above:
>
> https://home.aero.polimi.it/morandini/Downloads/Screenshot_20230712_190656.png
>
> I've not understood how to get rid of that colon, and I would prefer to leave the
> explanation _after_ the corresponding code block, and not move it before.
https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#literal-blocks
This suggests that if you write it as "what follows is a button ::"
(i.e. space before ::) that should render it without a colon.
[...]
> >> +This Report Descriptor tells us that the mouse input will be
> >> +transmitted using four bytes: the first one for the buttons (three
> >> +bits used, five for padding), the last three for the mouse X, Y and
> >> +wheel changes, respectively.
> >
> > I wonder if here we should mention something like:
> > "This particular device only has one HID report so it may (and does)
> > omit the Report ID. Devices that can send multiple different HID reports
> > must send the Report ID as the first byte of each report."
>
> The problem is that, with the current document structure,
> Report IDs are introduced later, in section
> "Collections, Report IDs and Evdev events".
> There we have the sentence "A device with only one supporteHID report
> (like the mouse example above) may omit the report ID."
>
> Before that section the reader does not know what
> a Report ID is.
>
> Thus, I could add the sentence you are suggesting, but
> changing it into something like
>
> This particular device only has one HID report so it may (and does)
> omit the Report ID (see Section "Collections, Report IDs and Evdev events").
> Devices that can send multiple different HID reports
> must send the Report ID as the first byte of each report.
>
> I don't know whether we are clarifying of confusing the matter,
> and I propose to leave things as they are now.
sure, that's fine
Cheers,
Peter
next prev parent reply other threads:[~2023-07-17 0:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-22 20:39 [PATCH v2] HID: Add introduction about HID for non-kernel programmers Marco Morandini
2023-06-23 4:32 ` Randy Dunlap
2023-06-23 10:45 ` Marco Morandini
2023-06-23 15:16 ` Randy Dunlap
2023-06-27 6:04 ` Peter Hutterer
2023-06-28 13:37 ` Marco Morandini
2023-07-10 2:10 ` Peter Hutterer
2023-07-13 14:36 ` Marco Morandini
2023-07-17 0:15 ` Peter Hutterer [this message]
2023-07-17 16:38 ` Marco Morandini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230717001544.GA129954@quokka \
--to=peter.hutterer@who-t.net \
--cc=benjamin.tissoires@redhat.com \
--cc=corbet@lwn.net \
--cc=jikos@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=marco.morandini@polimi.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.