<!-- Generated by basedpl.keyboards from layout.json and keyboards.json. Do not edit. -->

# Keyboard map

Hold Option (Alt) for the large character. Add Shift for the small character above it. The small label at the bottom is the ordinary key. Option-Shift-1–9 types `¹²³⁴⁵⁶⁷⁸⁹` and Option-Shift-Minus types [`⁻`](https://bpl.fast.ai//glyphs/superscript-minus.html) unless the layout already uses that key combination. Option-Shift-0 remains [`⍬`](https://bpl.fast.ai//glyphs/zilde.html). In the browser, Option-Shift-3 remains [`#`](https://bpl.fast.ai//glyphs/hash.html), so type `³` with the superscript dead key: Option-6, then 3.

Orange borders mark dead keys. You can hold or release Option between keys. Holding it through `5x51` enters `ₓ₁`. Repeat the prefix key, or press Space, to enter the dead key's own character. Follow-ups can be sequences, such as `-1` for a negative superscript or subscript.

| Key | Double-tap | Follow-ups |
|--- |--- |--- |
| `1` | `¨` | `t`:`⍤`; `o`:`⍥`; `g`:`⍢`; `8`:`⍣`; `` ` ``:`⍨` |
| `5` | `₅` | `0–9`:`₀–₉`; `x`:`ₓ`; `j`:`ⱼ`; `e`:`ₑ`; `r`:`ᵣ`; `h`:`ₕ`; `s`:`ₛ`; `p`:`ₚ`; `-Space`:`₋`; `-0–9`:`₋₀–₋₉` |
| `6` | `⁶` | `0–9`:`⁰–⁹`; `-Space`:`⁻`; `-0–9`:`⁻⁰–⁻⁹`; `b`:`ᵇ`; `s`:`ˢ`; `t`:`ᵀ`; `u`:`ᵘ` |
| `-` | `¯` | `,`:`⍪`; `\`:`⍀`; `/`:`⌿`; `a`:`⍶`; `w`:`⍹`; `7`:`⍙`; `` ` ``:`⍚`; `0`:`⊼`; `9`:`⊽`; `e`:`⍷`; `i`:`⍸`; `z`:`⊆` |
| `q` | `⎕` | `t`:`⌻`; `=`:`⌸`; `u`:`⌹`; `` ` ``:`⌺`; `;`:`⍠`; `\`:`⌷` |
| `o` | `○` | `\`:`⍉`; `/`:`⊘`; `m`:`⊗`; `u`:`⨸`; `8`:`⊛`; `c`:`⍝`; `b`:`⍎`; `n`:`⍕` |
| `\` | `⍭` | `7`:`⍋`; `g`:`⍒` |

This is the US-based map used in the browser and REPL, and by the native BasedPL-us macOS layout. Regional macOS layouts preserve their native Option characters and move conflicting BPL shortcuts. See [macOS installation](#macos-installation).

## macOS installation

After `pip install basedpl`, run `basedpl-install` to install the Jupyter kernel, SAX2B and BQN386B fonts, and the US keyboard layout for your user. Pass `uk`, `de`, `fr` or `es` for British, German QWERTZ, French AZERTY or Spanish: for example, `basedpl-install de`.

In System Settings, open Keyboard → Text Input → Edit, add `BasedPL-us` (or your chosen code), then select it from the input menu. If the layout isn't listed, log out and back in. `editors/macos/BasedPL-{code}.txt` lists each native layout's shortcuts. On Linux, `basedpl-install` installs the kernel and fonts without a native keyboard layout.
