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

auto: Keyman for web help deployment #1793

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions developer/engine/web/18.0/guide/adding-keyboards.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ title: Adding Keyboards

There are multiple ways to add and install keyboards into your KeymanWeb installation.

In the examples that follow, please note the use of variable `kmw` as shorthand for the `keyman` object.

## Directly linking a local copy

The most efficient way to utilize a keyboard is to obtain a local copy of it and place this copy in a static location on your website. Once this is done, it can be directly linked into KeymanWeb as follows.
Expand All @@ -21,6 +19,7 @@ keyman.addKeyboards({
filename:'./us-1.0.js' // A valid path to the compiled *.js file representing the keyboard.
});
```

Custom fonts may also be utilized via the `language.font` property. For example:

```c
Expand Down Expand Up @@ -53,7 +52,7 @@ The `@` prefix indicates the use of the BCP 47 language code, which in this case
To obtain a specific keyboard by name or by keyboard name and language code as a pair, see the following:

```c
keyman.addKeyboards('french','european2@sv','european2@no')
keyman.addKeyboards('french','sil_euro_latin@sv','sil_euro_latin@no')
```

This will install three keyboards - one for French (named, quite simply, "French") and two copies of the EuroLatin2 keyboard - one for Swedish and one for Norwegian.
This will install three keyboards - one for French (named, quite simply, "French") and two copies of the EuroLatin keyboard - one for Swedish and one for Norwegian.
Loading