Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script and language attributes #3

Open
bertsky opened this issue Mar 31, 2021 · 2 comments
Open

script and language attributes #3

bertsky opened this issue Mar 31, 2021 · 2 comments
Assignees

Comments

@bertsky
Copy link
Collaborator

bertsky commented Mar 31, 2021

For @primaryLanguage, @secondaryLanguage, @language, we have @LANG, but that's an xsd:lang type, i.e. supposed to be ISO 639-2 or -3, so one would still have to enumerate the mapping due to PRImA-Research-Lab/PAGE-XML#27

For @primaryScript, @secondaryScript, @script I don't see any possibility for representation.

@kba kba self-assigned this Apr 1, 2021
@kba
Copy link
Member

kba commented Apr 8, 2021

I've used https://github.com/LuminosoInsight/langcodes to implement the mapping from the long-form ISO 639 language names PAGE-XML defines for LanguageSimpleType to ISO 639-3 representation. That works pretty well with all the languages I've tried.

@bertsky
Copy link
Collaborator Author

bertsky commented Apr 12, 2021

I've used https://github.com/LuminosoInsight/langcodes to implement the mapping from the long-form ISO 639 language names PAGE-XML defines for LanguageSimpleType to ISO 639-3 representation. That works pretty well with all the languages I've tried.

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants