Package: po4a
Version: 0.31-1
Severity: wishlist

I recently started adding po4a support to man-db for its own manual
pages. In general I was very impressed with its parsing, but of course
there were a few cases where I wanted to hide strings from po4a (such as
environment variable names used as headings rather than in the middle of
sentences), and I spent a little while trying to think of a convenient
and reasonably clear way to suppress this. The best I came up with was
to use -o groff_code=verbatim and say:

  .if !'po4a'hide'

So, for example:

  .B \-q, \-\-quiet

becomes:

  .if !'po4a'hide' .B \-q, \-\-quiet

There may be a better way that uses a dedicated macro so that we can
just say -o untranslated=Ph or something, but I only had a small amount
of time to work on this and so didn't get that far.

Perhaps it would be useful to document my suggestion or an improvement
on it in Locale::Po4a::Man(3pm) (of course with a warning that it should
not be used in the middle of sentences such that it would break up
something that should be translated in one piece)?

Thanks,

-- 
Colin Watson                                       [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to