Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 2015 14:42:26 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        =?ISO-8859-15?Q?Ren=E9_Ladan?= <r.c.ladan@gmail.com>
Cc:        freebsd-translators@freebsd.org
Subject:   Re: PO translations of books
Message-ID:  <alpine.BSF.2.20.1510271437580.30143@wonkity.com>
In-Reply-To: <CADL2u4g85ydYG_EvoNcbvKh6NTnv51Bbh9jgsbn521GJEqCvuw@mail.gmail.com>
References:  <alpine.BSF.2.20.1509041829390.32741@wonkity.com> <CADL2u4g85ydYG_EvoNcbvKh6NTnv51Bbh9jgsbn521GJEqCvuw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 27 Oct 2015, René Ladan wrote:

> 2015-09-05 2:39 GMT+02:00 Warren Block <wblock@wonkity.com>:
>> So far, there have been several successes at translating the leap seconds
>> article.
>>
>> Has anyone started a PO translation of a book yet?  It would be nice to get
>> some feedback about how well the process works for books with separate
>> chapters.
>>
> I just tried that with the FDP Primer, which consists of multiple XML
> files. It looks like 'make po' does it job fine (with some patches to
> doc.docbook.mk from wblock) but 'make tran' writes everything into
> book.xml instead of preserving the original file structure (in which
> book.xml contains mostly references to the other files).
>
> This would probably not matter in case we consider the generated
> book.xml as an intermediate file.

Right.  And it is pretty much required for the PO process.  The only way 
to extract a PO is to "normalize" the original XML into a single file, 
which includes all the chapter files (which are entities themselves).

I don't think we can keep the original structure, but yes, if we 
consider the generated XML file as an intermediate, we don't have to 
worry about the format of that file.

Thanks!
From owner-freebsd-translators@freebsd.org  Tue Oct 27 21:10:14 2015
Return-Path: <owner-freebsd-translators@freebsd.org>
Delivered-To: freebsd-translators@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02699A1C755
 for <freebsd-translators@mailman.ysv.freebsd.org>;
 Tue, 27 Oct 2015 21:10:14 +0000 (UTC)
 (envelope-from r.c.ladan@gmail.com)
Received: from mail-ob0-x22b.google.com (mail-ob0-x22b.google.com
 [IPv6:2607:f8b0:4003:c01::22b])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id BE3B211DF
 for <freebsd-translators@freebsd.org>; Tue, 27 Oct 2015 21:10:13 +0000 (UTC)
 (envelope-from r.c.ladan@gmail.com)
Received: by obbza9 with SMTP id za9so64208046obb.1
 for <freebsd-translators@freebsd.org>; Tue, 27 Oct 2015 14:10:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 bh=lpYeknu9HdKUgghUGOBhRLT8SNa4MxpE6pr9OkHKraw=;
 b=RbR9TWqjeY3ilpsrklqgGNKLCgAgOYUc1REUkyRt7Se1FVGMKJwvoVF9vWaDYav6wj
 TZ6oeG7Pd8aj7Dw3P0ekcM4nBcPm8ZxnHqxkGxSmBqxwhtqSSa8GXqhMSiIbv6hleewq
 RpYAEHyKyWEHpKfF5/1StlL2NL6n9x0Of0lyXusjKa34/y5jDDeKAFYRpOCw2R24dMsx
 rPnowvQrZKOTU7+rLDL5gI5uhmCL9IVkY/2EL/X4fVIEjCnNHHKWjFMHuFgJZUudSyst
 FEcF+PKoZMWc9uCm2o777+ahyb+Dn2dOe2Lye1zCdhU4HXIiznUoYQe3TnlZWhNHnOHL
 zZDQ==
MIME-Version: 1.0
X-Received: by 10.60.176.36 with SMTP id cf4mr32149077oec.9.1445980212977;
 Tue, 27 Oct 2015 14:10:12 -0700 (PDT)
Received: by 10.60.73.74 with HTTP; Tue, 27 Oct 2015 14:10:12 -0700 (PDT)
In-Reply-To: <alpine.BSF.2.20.1510271437580.30143@wonkity.com>
References: <alpine.BSF.2.20.1509041829390.32741@wonkity.com>
 <CADL2u4g85ydYG_EvoNcbvKh6NTnv51Bbh9jgsbn521GJEqCvuw@mail.gmail.com>
 <alpine.BSF.2.20.1510271437580.30143@wonkity.com>
Date: Tue, 27 Oct 2015 22:10:12 +0100
Message-ID: <CADL2u4hqkhPvB=fSNUDaBhoAe8kKWiguRbU3y7rt8CmES7XMJg@mail.gmail.com>
Subject: Re: PO translations of books
From: =?UTF-8?Q?Ren=C3=A9_Ladan?= <r.c.ladan@gmail.com>
To: Warren Block <wblock@wonkity.com>
Cc: freebsd-translators@freebsd.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-BeenThere: freebsd-translators@freebsd.org
X-Mailman-Version: 2.1.20
Precedence: list
List-Id: Translators <freebsd-translators.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-translators>, 
 <mailto:freebsd-translators-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-translators/>;
List-Post: <mailto:freebsd-translators@freebsd.org>
List-Help: <mailto:freebsd-translators-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-translators>, 
 <mailto:freebsd-translators-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 27 Oct 2015 21:10:14 -0000

2015-10-27 21:42 GMT+01:00 Warren Block <wblock@wonkity.com>:
> On Tue, 27 Oct 2015, Ren=C3=A9 Ladan wrote:
>
>> 2015-09-05 2:39 GMT+02:00 Warren Block <wblock@wonkity.com>:
>>>
>>> So far, there have been several successes at translating the leap secon=
ds
>>> article.
>>>
>>> Has anyone started a PO translation of a book yet?  It would be nice to
>>> get
>>> some feedback about how well the process works for books with separate
>>> chapters.
>>>
>> I just tried that with the FDP Primer, which consists of multiple XML
>> files. It looks like 'make po' does it job fine (with some patches to
>> doc.docbook.mk from wblock) but 'make tran' writes everything into
>> book.xml instead of preserving the original file structure (in which
>> book.xml contains mostly references to the other files).
>>
>> This would probably not matter in case we consider the generated
>> book.xml as an intermediate file.
>
>
> Right.  And it is pretty much required for the PO process.  The only way =
to
> extract a PO is to "normalize" the original XML into a single file, which
> includes all the chapter files (which are entities themselves).
>
> I don't think we can keep the original structure, but yes, if we consider
> the generated XML file as an intermediate, we don't have to worry about t=
he
> format of that file.
>
One thing though: the final makes traverses through all the referenced
XML files, because Makefile still says so, so that file has to be
modifed too.

Regards,
Ren=C3=A9
--=20
http://www.rene-ladan.nl/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1510271437580.30143>