I forgot an important detail. Ukelele comes with a set of keyboard layouts (in the directory System Keyboards). You could simply copy German.keylayout, add the characters you need, rename it and change its ID. Yves