after lunch one thinks better the line DI_KEYMAP="${DI_KEYMAP##-latin1}" is ment to remove the -latin1 parts but ## deletes from the left. if one replaces with DI_KEYMAP="${DI_KEYMAP%%-latin1}" it works as expected. Ronny Aasen