Turning off wrapping for a specific XHTML tag
by Kaloian Doganov
Using po4a to process XHTML documents, I have to turn of wrapping for a
specific XHTML tag (<script>) still considering the containing text as
translatable. Po4a's Xml module provides a way to specify this using
the `W' character in the `tags' option:
-o "tags=W<script>"
Unfortunately this leads to skipping the containing text of <script> as
non-translatable. I can avoid this by adding `tagsonly' option, but
this way I practically have to list all possible XHTML tags in `tags',
just to turn off wrapping for one of them.
It would be much easier if there was a way to specify this wrap-flag
individually for a tag, without having to deal with global
skipping/non-skipping of all mentioned tags.
--
Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
16 years, 10 months
XML attribute translation
by David Suárez Pascal
Hi, I'm employing po4a to manage translation of DocBook XML files and
until now it has served me well. However I added a new feature to the
original document requiring employment of XML attributes. The problem
is po4a seems to be not capable of managing translation of these. Is
that true or am I missing something on the config file?
Thanks,
David.
17 years