Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 19.0Version 18.0 (current version)Version 14.0

On this page

You are viewing an incomplete pre-release version of this documentation. Click here to open the current version, 18.0.

IKeymanBCP47Canonicalization::GetCanonicalTag Method


Introduction

The IKeymanBCP47Canonicalization::GetCanonicalTag method returns a canonical tag according to data from SIL langtags.json. The method will convert ISO639-3 language tags, ISO639-1 language tags, remove suppressed script tags, and append a default region if one is not present.

Note: This tag may not always be identical to a Windows canonical tag. A region subtag may be present in the canonical tag which may later be removed by Windows, if Windows believes the language is used in only one region.

Specification

string GetCanonicalTag(string Tag)

Parameters

Tag
The BCP 47 tag to canonicalize.