https://bugzilla.redhat.com/show_bug.cgi?id=987199
Jeff Fearn <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Jeff Fearn <[email protected]> --- (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 _______________________________________________ publican-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/publican-list Wiki: https://fedorahosted.org/publican
