Reference

XDisplayOfIM(3) on Linux

The text e49285642942, as Debian 13 (Trixie) shipped it.

open, close, and obtain input method information

XDisplayOfIM(3) on Linux now