Text this: The symplectic potential for leaky boundaries