A script to generate RTL CSS to append

This probably needs a fair bit more work. But in case anyone else wants to have a look at it.

It's just a bunch of shell scripts doing stuff with regexes, so it's a bit fragile.