Re: xml2po
- From: danilo gnome org (Danilo Šegan)
- To: mdke ubuntu com
- Cc: gnome-doc-devel-list gnome org
- Subject: Re: xml2po
- Date: Thu, 15 Sep 2005 12:05:27 +0200
Hi Matthew,
Today at 10:38, Matthew East wrote:
> ok I have another question, since you've been so helpful! Do you guys at
> gnome-doc-utils have a tool to do html -> pot? We have a strict xhtml
> file that we need to get into pot. Any ideas?
Well, xml2po is designed to handle any XML format :) It's just that
it by default makes use of DocBook mode. For anything else for what
there is no special mode, you should try "-a" (automatic detection).
It should work fine for XHTML, except for two things:
1. attribute values are not translatable (eg. <img> alt or title
attributes might need translation). This has been sitting on my TODO
list for a while already, and it shouldn't be too hard to implement
(actually, it should be pretty straight-forward :), but we simply
didn't have enough need for it so far.
2. <pre> is not going to be treated as space-preserving, i.e. spaces
are going to be collapsed: this is easily fixed by creating
separate "xhtml" mode which would return all "space-preserving"
tags. Implementing 2 is even simpler than 1, and instead of "-a",
you'd use "-m xhtml" then. :)
Just be sure to pass on "-a" when merging back as well.
Cheers,
Danilo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]