begin parsing script, region, variant per BCP 47

Reference: http://www.rfc-editor.org/bcp/bcp47.txt
Variant is a deviation, since SIL uses it as unregistered private use