discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: Ingo Schwarze <schwarze@usta.de>
Cc: discuss@mandoc.bsd.lv
Subject: Re: Getting semantically-correct mdoc fonts outside of requests
Date: Sun, 29 May 2022 19:34:16 +0200	[thread overview]
Message-ID: <20220529173416.j34lwx4vogo4tpy5@tarta.nabijaczleweli.xyz> (raw)
In-Reply-To: <20220529001500.gnxuiiawdegcjwy7@tarta.nabijaczleweli.xyz>

[-- Attachment #1: Type: text/plain, Size: 642 bytes --]

Hi!

I rotated this in my head overnight, and have decided that the
least-worst solution compatibility-wise is to do
  .if !ddoc-Ar-font .ds doc-Ar-font \fI
  .if !ddoc-Li-font .ds doc-Li-font \f(CR
  .if !ddoc-Nm-font .ds doc-Nm-font \fB
  .if !ddoc-Pa-font .ds doc-Pa-font \fI
&c., which is correct for groff mdoc (OOB)
and mandoc (by font-matching the default styling);
with a custom style, this can trivially be made to match by injecting
  printf '.ds doc-%s-font \\f[%s]\n' Ar CI  Nm CB  [macro font]...
for -Thtml output, since that's where you specify -Ostyle anyway.

Thanks for your input on this :)

Best,
наб

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2022-05-29 17:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-28 19:03 наб
2022-05-28 22:28 ` Ingo Schwarze
2022-05-29  0:15   ` наб
2022-05-29 17:34     ` наб [this message]

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=20220529173416.j34lwx4vogo4tpy5@tarta.nabijaczleweli.xyz \
    --to=nabijaczleweli@nabijaczleweli.xyz \
    --cc=discuss@mandoc.bsd.lv \
    --cc=schwarze@usta.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).