High-energy optical absorption in f-compounds