language package:bcp47
Parse a language subtag from
Text
BCP-47 language parser
This only implements the ISO 639 portion of the grammar.
@ language = 2*3ALPHA ; shortest ISO 639 code ["-" extlang] ;
sometimes followed by ; extended language subtags / 4ALPHA ; or
reserved for future use / 5*8ALPHA ; or registered language subtag
@
BCP-47 language extension parser
This only implements the ISO 639 portion of the ISO.
@ extlang = 3ALPHA ; selected ISO 639 codes *2("-" 3ALPHA) ;
permanently reserved @
Extended language subtags
These are used to identify certain specially selected languages that,
for various historical and compatibility reasons, are closely
identified with or tagged using an existing primary language subtag.
Extended language subtags
These are used to identify certain specially selected languages that,
for various historical and compatibility reasons, are closely
identified with or tagged using an existing primary language subtag.
Look up all language extension subtags
Construct a simple language tag