[publican-list] [Bug 987199] RFE: pass a "sortas" attribute to Publican from PO files

bugzilla at redhat.com bugzilla at redhat.com
Tue Jul 23 06:16:15 UTC 2013


https://bugzilla.redhat.com/show_bug.cgi?id=987199

Jeff Fearn <jfearn at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfearn at redhat.com

--- Comment #1 from Jeff Fearn <jfearn at redhat.com> ---
(In reply to Ruediger Landmann from comment #0)
> DocBook supports a "sortas" attribute for strings that will be sorted and
> collated automatically in glossaries and indexes. However, translators
> cannot take advantage of this attribute without altering the XML. 
> 
> Without the manual override provided by the sortas attribute, indexes and
> glossaries in languages that are not machine-sortable (Japanese in
> particular) are useless.
> 
> Supporting a magic word in PO files could expose the "sortas" attribute to
> translators. For example, the word "SORTAS" and anything following it would
> always be removed from a msgstr like:
> 
> msgid="foo"
> msgstr="bar SORTAS baz"
> 
> but when applied to any of the four DocBook elements that support the
> "sortas" attribute (<primary>, <secondary>, <tertiary>, and <glossentry>),
> it would add a "sortas" element:
> 
> <primary sortas="baz">bar</primary>
> 
> The downside is that anyone using other tools to apply these PO files to XML
> strings is going to get rubbish:
> 
> <primary>bar SORTAS baz</primary>
> 
> However, the glossaries and indexes of anyone doing that are already broken
> anyway, and an identifiable string like this would be easily removed before
> or even after transformation by anyone who needed to do so.

To be specific this is about the sortas attribute in the glossentry tag.

I'd like to do it in a way that doesn't stuff up other tools, or at least is a
harmless as possible, so I think we could use remark tags and put them after
the translated content.

e.g.
#. Tag: glossentry
msgid="foo"
msgstr="bar<remark>SORTAS baz</remark>"

That way most systems will hide the remark and the order will revert to the
upstream order.

The sortas would take everything after the space so <remark>SORTAS baz bar
foo</remark> would end up <primary sortas="baz bar foo">bar</primary> which I'm
assuming might be significant in one language or another :)

Thoughts?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=HlOgPVIIGA&a=cc_unsubscribe




More information about the publican-list mailing list