libxklavier is a utility library to make XKB stuff easier. This requires iso-codes, which is also available from SlackBuilds.org