emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: 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 13:26:08 +0000	[thread overview]
Message-ID: <87frlyg173.fsf@localhost> (raw)
In-Reply-To: <20250103083819.bvz53fcaluaxyubt@illithid>

"G. Branden Robinson" <g.branden.robinson@gmail.com> writes:

>> 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.

Hmm. I am wondering why GNU troff is not making these adjustments
automatically when rendering things.

> I reiterate that Ihor's objective of "everything working everywhere" is
> a tall challenge.  My advice is to the org-mode project is to limit its
> compatibility horizon to groff, Heirloom Doctools troff, neatroff, and
> mandoc.  I say that not for self-serving reasons[4] but because other
> implementations are moribund or not aimed at general-purpose use.[5]

I do not oppose limiting scope somewhat.
At the end, our official policy is simply supporting the latest version
of third-party tools we need to cooperate with.
However, yet another policy is to not break Org documents that worked in
the past. That's way I prefer to be over-cautions and support more
things, especially if such support is not too difficult.

The idea with adding multiple legacy escapes seems simple enough to do
it once and forget.

> 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.

There is no problem with \, and \/ sequences in Org - we do not use
them. Whether we should is another story.

What would be the downside of adding \fCW (in addition to other things)?

> Having now seen org-mode's man(7) output in the flesh from my own input,
> I see plenty of room for easy wins and improvements.  I'll venture those
> in a separate discussion as I make time, or as someone throws me
> questions to answer or problems to solve.

That would indeed be welcome.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


  parent reply	other threads:[~2025-01-04 13: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
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 [this message]
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=87frlyg173.fsf@localhost \
    --to=yantar92@posteo.net \
    --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).