Follow-up Comment #8, bug #68261 (group groff): At 2026-05-12T11:46:14-0400, Deri James wrote: > Follow-up Comment #7, bug #68261 (group groff): >> 3. Use a GNU troff feature to remap the font to something that will >> work better in context. This too can be done in "man.local". You >> could also do it in the document itself, but that would override >> user preferences that might be configured in "man.local" on a target >> system. > >> .if n if \n(.g .do .ftr C B \" bold on terminals >> .if t if \n(.g .do .ftr C CR \" Courier roman on typesetters > > I don't think this works (to suppress the warning).
Sorry, I forgot the dots before the second ifs. `if`/`ie`/`while` syntax is inconsistent with `do` and I can't tell you which way `nop` goes without looking it up. Disruptive change to alter any of them, though. :( I know I should _always_ test code snippets before pasting them. But do I? :-( > [derij@pip build (master)]$ printf ".ftr C HR\n\\\fCHello\\\fP\n"|groff -Z > troff:<standard input>:2: warning: font name 'C' is deprecated [-w font] > It works for nroff though. Confirmed. $ printf '.if n .if \\n(.g .do ftr C B\n\\fCHello\\fP\n'|nroff -z 2>&1 | grep . || echo no diagnostics no diagnostics $ printf '.if t .if \\n(.g .do ftr C B\n\\fCHello\\fP\n'|groff -z 2>&1 | grep . || echo no diagnostics troff:<standard input>:2: warning: font name 'C' is deprecated [-w font] One might argue that this is okay, because what we're trying to do is deprecate use of those _names_ in the document. On the other hand, by remapping the names, the user is effectively communicating their awareness of the issue and doing something about it. By that reasoning, we shouldn't be diagnosing here. They can translate 'C' to 'SUPERCALIFRAGILISTICEXPIALIDOCIOUS' on their system and, if they've set up font description files such that that font name can be resolved and mounted, then it's none of groff's business. So I might need to revisit [https://cgit.git.savannah.gnu.org/cgit/groff.git/commit/?id=5011cd1d5a commit 5011cd1d5a]. What do you think? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?68261> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature
