Hello Marc,
Am Mon, Nov 18, 2024 at 04:00:59PM +0100 schrieb Marc Haber:
> On Thu, Oct 31, 2024 at 08:51:20PM +0000, Helge Kreutzmann wrote:
> > Ah, you do everything in the debian/rules file, there you make the
> > appropriate call. So then the Makefile is pure cosmetic, isn't it?
> 
> Maybe. I have removed it in my experimental work tree and will see
> whether this breaks anything. Will report back. Probably not this week.
> 
> > And since you set the limit to 95% (rather than the common 80%) quite
> > a few files are currently not build.
> 
> That's a matter of style. I despise switching back and forth between
> langauges in the same paragraph, so I have set the hurdle a bit higher.
> Is that bad?

Po4a is paragraph based, so either a paragraph is rended in english
(if the translation does not exist or is outdated) or in the target
language.

Jumping back and forth between languages is of course not optimal, but
usually 80% is a good compromise, especially since translators are a
scarce ressource. 

And consider the following scenario:
You add a new sections with lots of paragraphs, or quite a few new
options. Then the translation might drop below 95%, but actually the
new text is not "randomly" scattered over the man page, but limited in
one part. So having the rest in the users language can still be a
coherent reading experience (and the user might not be interested in
these new options or might not need the new section).

Again, I don't have hard facts or even soft feedback which limit is
sensible. Just 80% is common.

> > > > I can have a look at it late November/December, I might get it going
> > > > (I worked on this for some projects in the past, who integrated po4a). 
> > > 
> > > Can you name some package that does it so that I can steal code from
> > > there?
> > 
> > Well, po4a for example, or dpkg, or sysvinit. But given you don't
> > actually use a build system like configure, meson or similar, you
> > probably don't need anything?
> 
> Po4a is the code in question itself, it might have special casing for
> this, and dpkg and sysvinit are in the first look not what I'd call a
> simple package.

If you want it really simple, then take my toy package linuxinfo. But
I cannot guarantee that I considered all corner cases correctly, I'm
not a programmer and my autoconf is, well, basic.

And I'm pretty sure some right combination of "apt*" tool command will
print you all packages using (build depending on) po4a. 

Greetings

         Helge

-- 
      Dr. Helge Kreutzmann                     deb...@helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/

Attachment: signature.asc
Description: PGP signature

Reply via email to