Re: [RECIPE] Pull the trigger on Mister Sed? (MR macro migration)

Alejandro Colomar
2024-01-15T12:37:41Z

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

Hi Branden,

On Mon, Jan 15, 2024 at 06:05:20AM -0600, G. Branden Robinson wrote:
> Hi Alex,
>
> At 2024-01-15T01:10:45+0100, Alejandro Colomar wrote:
> > I was checking the book script from Deri (Deri, could you simplify the
> > script now that we use MR? So dropping support for old BR?), and
> > noticed about syscalls.2, which has man-page references inside a tbl.
> >
> > That hasn't been migrated by the script. I guess you'd want to also
> > migrate those, right, Branden?
>
> Yes. This can be done by setting the cross references inside text
> blocks "T{"/"T}", where they can call macros. I'll test this, of
> course--calling macros from within a text block can be a chancy thing.
> I don't _expect_ problems here, since `MR` does not mess with the format
> of the output line--it does not alter line length, indentation, or
> vertical spacing. I trust but will verify.
>
> I also see several references that didn't get converted ca. line 850
> because my sed script cowardly refused to rewrite lines with *roff
> comments in them. So I'll search for more stragglers like this.
>
> I will therefore be back with a "RECIPE v2". I do not promise that the
> updated sed script will be any easier to look at. :P

Maybe some preparation patch can help with this?

>
> > BTW, I've amended now the author, which I forgot.
> > <https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib>
>
> Thanks! Better if I take the heat for this 15,000+-line change. As
> Ferris Bueller said to Cameron Frye, "you don't want this much heat."
> ;-)

:-)

Cheers,
Alex

>
> Regards,
> Branden