api icon indicating copy to clipboard operation
api copied to clipboard

Example langtag of en-Latn is not valid in language map description

Open azaroth42 opened this issue 4 years ago • 1 comments

The json example in the Presentation API for HTML tags of "en-Latn" is not valid, and should be changed to just "en". "ar-Latn" on the other hand is fine in the textual description for the language tags.

The reason is that in the IANA registry, "Latn" is a suppressed script for English, as it's the default script.

The first letter of the script could also be capitalized, but the values are not case sensitive, so everything in lower case is also fine.

Thanks to Giacomo Marchioro for pointing this out!

azaroth42 avatar Sep 10 '21 14:09 azaroth42

I removed the "-Latn" script tag from the language in the HTML example. Since this section is not concerned with lang maps, I thought the simpler "en" was sufficient (over "ar-Latn" for example). See https://github.com/IIIF/api/pull/2096

kirschbombe avatar Jan 31 '22 21:01 kirschbombe