From: "onf" <onf@disroot.org>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>,
<emacs-orgmode@gnu.org>, <groff@gnu.org>
Subject: Re: [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)]
Date: Sat, 04 Jan 2025 01:23:02 +0100 [thread overview]
Message-ID: <D6SUZCI7NIR4.20OQPOJ5Q7RT@disroot.org> (raw)
In-Reply-To: <20250103083819.bvz53fcaluaxyubt@illithid>
Hi Branden,
On Fri Jan 3, 2025 at 9:38 AM CET, G. Branden Robinson wrote:
> At 2025-01-02T15:29:59+0100, onf wrote:
> > I don't know why it took me so long, but I think what you're looking
> > for is this:
> > \fC\f(CRLorem\fR
>
> Not a bad idea, but while you're there, given Ihor's ambitious
> portability objectives, you might as well scoop up the population of
> troffs that named the font `CW`.[1]
>
> So you'd emit `\fC\fCW\fCRLorem\fR`.
Fair point.
> [...]
> At 2025-01-02T22:51:47+0100, onf wrote:
> [...]
> > But I agree; I would track each style change (bold -> not bold,
> > italic -> not italic) and emit an appropriate \f sequence that
> > would match the currently active styles after each such change,
> > like so:
> > code & bold & italic \f[CBI]
> > code & bold \fC\f(CB
> > code & italic \fC\f(CI
> > code \fC\f(CR
> > bold & italic \f(BI
> > bold \fB
> > italic \fI
> > none \fR
> >
> > Note that \f[CBI] will break in old troffs due to the "new" \f[]
> > syntax, so a warning should probably be emitted. And I have no
> > idea how good support for {bold,italic} Courier is in older troffs
> > either.
>
> Poor, in general. Where Courier bold-italic existed, it was sometimes
> called "CX".
I meant support for CB and CI, not CBI.
> > (That is assuming Org-mode markup allows code to be styled like that.)
> >
> > Also note that if a change involving italic happens between two
> > non-whitespace characters, like so:
> > groff(/7/)
> >
> > ...an italic correction should be emitted to prevent the two glyphs
> > colliding into each other:
> > groff(\,\fI7\fR\/)
> > where:
> > \, is left italic correction
> > \/ is right italic correction
>
> So another thing to know here is that these italic correction escape
> sequences are, yet again, GNU troff extensions. A legacy formatter is
> likely to render them as if the backslash were absent, which is very
> much not what you want in your output.
Oh. Thanks for pointing that out, I had no idea.
> [...]
> If org-mode did that, it could ignore the `CW` font whose history I just
> went to the trouble to explore, and the problem with `\,` and `\/`
> escape sequences as well. With a little more research we might find
> that org-mode could disregard `\fC` as well.
Speaking of the left italic correction (\,), could you please give me
some example(s) where it's actually useful? I have yet to see a single
instance where it changes anything... (I don't rule out the possibility
that I may be using it incorrectly or that my fonts might be
misconfigured, though.)
> [...]
> [5] I admit I'm a little fuzzy on Plan 9 from User Space's objectives
> for its troff. I can say that the pace of its development is not
> swift. I don't think Plan 9 advocates pick up the system to use its
> typesetter.
My understanding is that Plan 9 from User Space is merely providing a
port of the Plan 9 program. My impression of Plan 9's troff is that
it's a poorly maintained descendant of DWB troff that's used only to
format manpages.
~ onf
next prev parent reply other threads:[~2025-01-04 0:24 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 7:51 [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)] Xiyue Deng
2024-03-03 13:30 ` Ihor Radchenko
2024-03-12 0:06 ` Xiyue Deng
2024-03-13 11:25 ` Ihor Radchenko
2024-03-14 21:46 ` Jeremy Sowden
2024-05-22 9:54 ` Ihor Radchenko
2024-12-18 17:20 ` G. Branden Robinson
2024-12-22 15:41 ` Ihor Radchenko
2024-12-31 17:00 ` G. Branden Robinson
2024-12-31 18:15 ` Ihor Radchenko
2024-12-31 18:42 ` onf
2024-12-31 18:54 ` onf
2025-01-01 9:38 ` Ihor Radchenko
2025-01-01 12:30 ` onf
2025-01-02 14:29 ` onf
2025-01-02 17:47 ` [BUG] ox-man: Nested markup is broken (was: [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)]) Ihor Radchenko
2025-01-02 21:51 ` onf
2025-01-03 8:38 ` [BUG] "\fC" macro in ox-man.el [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.2/lisp/org/)] G. Branden Robinson
2025-01-04 0:23 ` onf [this message]
2025-01-04 6:37 ` G. Branden Robinson
2025-01-04 20:10 ` onf
2025-01-05 15:24 ` Lennart Jablonka
2025-01-04 13:26 ` Ihor Radchenko
2025-01-04 16:22 ` Dave Kemper
2025-01-04 17:37 ` Ihor Radchenko
2025-01-02 12:14 ` G. Branden Robinson
2025-01-04 12:21 ` Ihor Radchenko
2025-01-02 12:38 ` G. Branden Robinson
2025-01-02 14:21 ` onf
2025-01-04 12:36 ` Ihor Radchenko
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D6SUZCI7NIR4.20OQPOJ5Q7RT@disroot.org \
--to=onf@disroot.org \
--cc=emacs-orgmode@gnu.org \
--cc=g.branden.robinson@gmail.com \
--cc=groff@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).