Repository navigation
Conversation
Sourcing layouts from Microsoft `.klc` is awkward (MSKLC GUI) and the files are Microsoft-licensed. Add a host tool that reads the open, offline XKB data (`/usr/share/X11/xkb/symbols/*`) and emits the NeoDOS `.kbd` format directly. - resolves `include "file(section)"` chains, maps EVDEV -> set-1 scancodes, maps levels 1-3 to normal/shift/altgr, translates Latin-1 / `U<hex>` / common keysym names, marks dead keys and builds the compose table from the X11 `Compose` file. - verified `us`, `es`, `fr`, `de`: the `es` output matches the `.klc`-derived `es-ES` (ñ/Ñ, ´/¨, ç/Ç, dead keys, ¡/¿). Related: #390 (dynamic .kbd discovery) — new layouts still need wiring into the image allowlist and the kernel load list.
Collaborator
Author
|
Superado por #705: la herramienta xkbcompile se ha integrado en esa PR junto con el pipeline completo (XKB → .kbd + scripts + CI). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Herramienta host para generar
.kbddesde XKB (abierto y offline), en vez de depender de.klc(GUI de MSKLC + licencia Microsoft).Qué
tools/xkbcompile:include "file(section)"(p. ej.es(basic)→latin(type4)→latin(basic)), con override por orden.set1 = evdev - 8); niveles 1-3 →normal/shift/altgr.U<hex>y nombres comunes; marca dead keys y construye la tablacomposedesde elComposede X11.Verificación
us,es,fr,de. La salida deescoincide con eles-ESderivado del.klc:sc 0x27=ñ/Ñ (altgr dead_tilde),0x28=´/¨,0x1a=`/^,0x2b=ç/Ç,0x0d=¡/¿ (altgr dead_cedilla).Relacionado (no cierra)
.kbd): añadir idiomas aún requiere el allowlist deimage.rsy la lista del kernel.kbdcompile/.klcsigue soportado (KBD-BUILD: kbdcompile no se ejecuta en el build; los .kbd se commitean a mano #702).