keymanapp / keymanapp/keyman

feat(developer): compiler should check BCP47 part of model name

Open
#9,693 1 comment 0 reactions 1 assignee Claimed by @mcdurdin View on GitHub
developer/ feat m:bcp47
Dominant language
Pascal
Stars
534
Forks
143
Avg merge
2d 10h
Merged PRs (30d)
113

Description

### Is your feature request related to a problem? Please describe.

The compiler should make additional checks on the name of a lexical model.

Developer should check the name of a new lexical model project.

### Describe the solution you'd like

When checking the name of a lexical model, the first and third parts should use underscores and not allow hyphens. The middle part of the name is a BCP 47 code and should use hyphens rather than underscores.

Two models that are in the repository with underscore in the BCP 47 code are:
gff/gff.ti_er.gff_tigrinya_eritrea
gff/gff.ti_et.gff_tigrinya_ethiopia
and this could have been caught and flagged by the compiler.

### Describe alternatives you've considered

_No response_

### Related issues

_No response_

### Keyman apps

- [ ] Keyman for Android
- [ ] Keyman for iPhone and iPad
- [ ] Keyman for Linux
- [ ] Keyman for macOS
- [ ] Keyman for Windows
- [X] Keyman Developer
- [ ] KeymanWeb
- [ ] Other - give details at bottom of form

### Keyman version

16

### Operating system

_No response_

### Device

_No response_

### Target application

_No response_

### Browser

_No response_

### Keyboard name

_No response_

### Keyboard version

_No response_

### Language name

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.