Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

MARC language codes table for Ruby

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
README.markdown

= MARC language codes

A tiny Ruby library that makes it easier to deal with data that uses MARC langauge codes. For details, see Wikipedia entry on "MARC standards":http://en.wikipedia.org/wiki/MARC_standards

= API

API is very simple. Lookup language name by language code like so:

MARC::LanguageCodes.lookup("eng") # => English MARC::LanguageCodes.lookup("ita") # => Italian MARC::LanguageCodes.lookup("rus") # => Russian

MARC has a list of discontinued language codes, and by default MARC::LanguageCodes.lookup includes those. If you want just current list, use MARC::LanguageCodes.lookup_current.

Language lookup tables were generated from http://www.loc.gov/marc/languages/language_code.html, so make sure you understand that before you send any pull requests.

== Copyright

Copyright (c) 2009 Michael S. Klishin. See LICENSE for details.

Something went wrong with that request. Please try again.