Re: a new release ?
Derek Robert Price <[email protected]> Tue, 17 Jun 2003 15:09:27 -0400
| Newsgroups | gmane.comp.tex.texi2html.devel |
|---|---|
| Organization | Ximbiot <http://ximbiot.com> |
| Message-ID | <[email protected]> |
Dumas Patrice wrote:
>>>There are also some i18n which could be done.
>>>
>>>
>>>
>>That's an enhancement, nothing to stop a release. Could you open
>>particular issues with your ideas?
>>
>>
>
>I have put
># i18n
>in the source file where I think there should be some internationalisation.
>But I think that there is a difficulty. For example, there is (for defop)
>
>$entry = "$name on $ftype";
>
>We could imagine use
>
>$entry = "$name $T2H_WORDS->{'on'} $ftype";
>
>But it might well be that in another language, this should be
>
>$entry = "operation de $name sur $ftype";
>
>I think that this issue is solved with gettext in C.
>
Yeah. I think the answer was that all the text goes in a single
language, then there is some %1, %2, %3 substitution in the lines. The
original language's text is used as indexes into the translations (so if
no translation is provided, the original text is the default), then the
%vars are subbed as desired.
Thus, gettext("%1 on %2", name, ftype) would find the string with key
"%1 on %2" in some language file, perhaps French, and the value
"operation de %1 sur %2".
I think that's close to what I've seen, but that's from memory and I
haven't actually developed using gettext yet.
> Is there something
>equivalent in perl, and sufficiently distributed ? I have searched a little
>on CPAN and ther appears to be more than one implementation.
>
Not that I know of, but there almost must be. My CPAN interface is
acting up at the moment, but perhaps something based on gettext would be
best since that seems to be what most GNU projects are using?
>I have allready done the xhtml part, I will open an issue for the css based
>xhtml file. I think it would be nice if we used similar css config and
>classes than makeinfo. Even the same default css file would be nice, if
>possible.
>
>
I don't know much about how makeinfo generates HTML except that it
didn't satisfy a long time ago and that's what started me on texi2html.
I'll see if I can catch up later, but in a general sense, your
suggestion makes sense.
Derek
--
*8^)
Email: [email protected]
Get CVS support at <http://ximbiot.com>!
--
All work and no play makes Bart a dull boy.
All work and no play makes Bart a dull boy.
All work and no play makes Bart a dull boy...
- Bart Simpson on chalkboard, _The Simpsons_