Skip to main content

normalise_name

Function normalise_name 

Source
pub fn normalise_name(raw: &str) -> &str
Expand description

Reduces whatever a system wrote down to a layout name.

Console keymaps are named for files — no-latin1, /etc/keymap/no.bmap.gz, uk.map.gz — so this takes the basename, drops the extensions, and then drops any variant suffix if the full name matches nothing.