I'm styling a series of vector data in Polar Stereographic Projection (specifically EPSG 3031) using GeoServer and SLDs. These maps can be rotated E/W, so if the labels are fixed they appear upside-down in places. (Example here: SCAR ADD (hold shift and drag to rotate)).
Is there a function that I could apply to the Rotation feature in SLDs to calculate the rotation of the labels based on the CRS rotation/meridian of the map?