Hi Richard,
There is no reliable way to get this correct at the moment and if there were good and easy ways to get this working they'd be implemented already.
OK, I then withdraw the patch (and have unassigned myself from the PR). Best regards Thomas