I'm using a logical FR layout on a physical Mac FR layout, the underlying layout for Japanese input is QWERTY while the pinyin for Traditional Chinese uses AZERTY... I'm tired of all these context switches and I wish there was an universal keyboard IME that allow me to type the languages I care about without having to switch between IME all the time. Same complains about mobile (iOS). I might build something one day because of how annoying it is (at least typing English is easy from FR keyboard so that's one less keyboard to use).
Can’t you just configure Japanese IME to use the same one as physical keyboard map? Japanese IME shouldn’t be adamant about “keymap goes with language” model.