def norm_text_angle(a):
 a = ((a + 180) % 180)
 if (a > 90):
  a = (a - 180)
 return a

def norm_text_angle ( a ) : a = ( ( a + 180 ) % 180 ) if ( a > 90 ) : a = ( a - 180 ) return a
return angle between -90 and +90 .