1
Stax, 75 73 bytes â¢6=°┐♦#Ü─·█╦τ←‼╞↓₧nÿ╔ycD▬∙ô/╖ë«ë{S╙≡º²s&┌√♫▒τáG☼║╫←╗╣∩₧ÄΔπ_╧Φ↔m;Θ╗á*T♦l╗ Run and debug it online The basic approach is store the 4 types of formatting in a bit field, and then get the correct character offset from a lookup using the integer value. Only 8 values are in the ...