Langtag version 0.1.0

Overview

The Langtag class represents IETF Language Tags as a subclass of String that provides read/write access to specific parts of a language tag, such as language, script, region, and so on, as well as well-formedness checks and some other simple operations.

IETF Language Tags

IETF Language Tags are defined by BCP 47 (www.ietf.org/rfc/bcp/bcp47.txt), which currently consists of RFC 4646 (www.ietf.org/rfc/rfc4646.txt) and RFC 4647 (www.ietf.org/rfc/rfc467.txt). These documents are the work of the LTRU Working Group (see www.ietf.org/html.charters/ltru-charter.html). For further explanatory information on IETF language tags, in particular in a Web context, please also see www.w3.org/International/articles/language-tags/.

Future Work

  • Provide support for various matching/lookup options defined in RFC 4647

  • Provide support for validation

Copyright © 2007 Martin J. Du“rst ([email protected]) Licensed under the same terms as Ruby. Absolutely no warranty. (see www.ruby-lang.org/en/LICENSE.txt)