Page
Library
Module
Module type
Parameter
Class
Class type
Source
Iso639.LangSourceIndividual languages and macrolanguages as identified by ISO 639-3.
ISO 639-3 defines language codes for individual languages and macrolanguages. This module defines an abstract denotaion of these language codes. It provides partial conversions to and from language codes of ISO 639-1 and ISO 639-2, and one-to-one conversions to and from language codes of ISO 639-3.
ISO 639-1 and 639-2 contains a subset of ISO 639-3 along with a subset of ISO 639-5, so the correspondence is partial in both directions.
A representation of languages present in ISO 639-3.
pp ppf lang prints the ISO 639-3 language code of lang on ppf.
scope lang is `Individual if lang is an individual language `Macro if lang is a macrolanguage, or `Special if lang is not a language.
macrolanguage lang is the macrolanguage including lang, if any.
If lang is a macrolanguage, then macrolanguage_members lang is the list of individual languages included in lang, otherwise the empty list.
Injection into the combined ISO 639 type.
Restriction from the combined ISO 639 type.
of_string s is the language represented by the ISO 639-3 language code s.
of_string_exn s is the language represented by the ISO 639-3 language code s.
to_iso639p1 lang is the ISO 693-1 language code of lang, if it exists.
of_iso639p1 s is the language represented by the ISO 639-1 language code s.
to_iso639p2t lang is the ISO 639-2T language code of lang, if it exists.
to_iso639p2b lang is the ISO 639-2B language code of lang, if it exists.