Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Internationalization Tag Set

From Wikipedia, the free encyclopedia
Solution for internationalization and localization support in XML documents

TheInternationalization Tag Set (ITS) is a set of attributes and elements designed to provideinternationalization and localization support inXML documents.[1]

The ITS specification identifies concepts (called "ITS data categories") which are important for internationalization and localization. It also defines implementation of these concepts through a set of elements and attributes grouped in the ITS namespace. XML developers can use this namespace to integrate internationalization features directly into their own XML schemas and documents.

Overview

[edit]

ITS v1.0 includes seven data categories:

  • Translate: Defines what parts of a document are translatable or not.
  • Localization Note: Provides alerts, hints, instructions, or other information to help the localizers or the translators.
  • Terminology: Indicates which parts of the documents are terms and optionally points to information about these terms.
  • Directionality: Indicates what type of display directionality should be applied to parts of the document.
  • Ruby: Indicates what parts of the document should be displayed as ruby text. (Ruby is a short run of text alongside a base text, typically used in East Asian documents to indicate pronunciation or to provide a brief annotation).
  • Language Information: Identifies the language of the different parts of the document.
  • Elements Within Text: Indicates how elements should be treated with regard to linguistic segmentation.

The vocabulary is designed to address two different aspects: First by providing markup usable directly in the XML documents. Second, by offering a way to indicate if there are parts of a given markup that correspond to some of the ITS data categories and should be treated as such by ITS processors.

ITS applies to both new document types as well as existing ones. It also applies to both markups without any internationalization features as well documents already supporting internationalization or localization-related functions.

ITS can be specified usingglobal rules andlocal rules.

  • The global rules are expressed anywhere in the document (embedded global rules), or even outside the document (external global rules), using theits:rules element.
  • The local rules are expressed by specialized attributes (and sometimes elements) specified inside the document instance, at the location where they apply.

Examples

[edit]

Translate data category

[edit]

In the following ITS markup example, the elements and attributes with theits prefix are part of the ITS namespace. Theits:rules element lists the different rules to apply to this file. There is oneits:translateRule rule that indicates that any content inside thehead element should not be translated.

Theits:translate attributes used in some elements are utilized to override the global rule. Here, to make translatable the content oftitle and to make non-translatable the text "faux pas".

<textxmlns:its="http://www.w3.org/2005/11/its"><head><revision>2006-09-10v5</revision><author>GersonChicareli</author><contact>someone@example.com</contact><titleits:translate="yes">TheOriginsofModernNovel</title><its:rulesversion="1.0"><its:translateRuletranslate="no"selector="/text/head"/></its:rules></head><body><divxml:id="intro"><head>Introduction</head><p>Itwouldcertainlybequitea<spanits:translate="no">fauxpas</span>tostartadissertationontheoriginofmodernnovelwithoutmentioningthe<tl>HKLMofGFDL</tl>...</p></div></body></text>

Localization Note data category

[edit]

In the following ITS markup example, theits:locNote element specifies that any node corresponding to theXPath expression"//msg/data" has an associated note. The location of that note is expressed by thelocNotePointer attribute, which holds a relative XPath expression pointing to the node where the note is, here="../notes".

Note also the use of theits:translate attribute to mark thenotes elements as non-translatable.

<Resxmlns:its="http://www.w3.org/2005/11/its"><prolog><its:rulesversion="1.0"><its:translateRuleselector="//msg/notes"translate="no"/><its:locNoteRulelocNoteType="description"selector="//msg/data"locNotePointer="../notes"/></its:rules></prolog><body><msgid="FileNotFound"><notes>Indicatesthattheresourcefile{0}couldnotbeloaded.</notes><data>Cannotfindthefile{0}.</data></msg><msgid="DivByZero"><notes>Adivisionby0wasgoingtobecomputed.</notes><data>Invalidparameter.</data></msg></body></Res>

ITS limitations

[edit]

ITS does not have a solution to all XML internationalization and localization issues.

One reason is that version 1.0 does not have data categories for everything. For example, there is currently no way to indicate a relation source/target in bilingual files where some parts of a document store the source text and some other parts the corresponding translation.

The other reason is that many aspects of internationalization cannot be resolved with markup. This is due to the design of the DTD or the schema itself. There arebest practices, design and authoring guidelines help make documents are correctly internationalized and easy to localize. For example, using attributes to store translatable text is a bad idea for many different reasons, but ITS cannot prevent an XML developer from making such choice.

Some of the ITS 1.0 limitations are being addressed in the version 2.0: Seehttp://www.w3.org/TR/its20/ for more details.

References

[edit]
  1. ^Internationalization Tag Set (ITS)

External links

[edit]
Products,
standards
Recommendations
Notes
Working drafts
Guidelines
Initiative
Deprecated
Obsoleted
Groups,
organizations
Elected
Working
Community, business
Closed
Software
Browsers
Conferences
Retrieved from "https://en.wikipedia.org/w/index.php?title=Internationalization_Tag_Set&oldid=1114242772"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp