Hello Guillem, thanks for your interest. I was thinking about a specific mode=eof that would not need a position nor a boundary to put the addendum at the end of the file. Would it fit your needs?
Bye, Mt. ----- Le 18 Mai 20, à 19:31, Guillem Jover guil...@debian.org a écrit : > Package: po4a > Version: 0.58.1-1 > Severity: normal > > Hi! > > While converting the dpkg man pages from troff to POD, I needed to > convert the addenda too, which was using this header for all addenda: > > ,--- > PO4A-HEADER:mode=after;position=^\.TH;beginboundary=FakePo4aBoundary > `--- > > Which is nice and generic. But for POD I had to use a different one per > locale, such as: > > ,--- > PO4A-HEADER:mode=after;position=^=head1 NOM;beginboundary=FakePo4aBoundary > `--- > > Because I was unable to match neither «^=encoding» nor the > «GENERATED FILE» string inserted by po4a on the output files. And while > the second might be fragile, as it could change, the former is part of > the source, so under the developer control, and it would be nice to be > able to use that. > > Using a localized section name works, but seems problematic as it depends > on the translation for that section not changing, and while certainly not > fatal, it's a bit annoying. :) > > Thanks, > Guillem