Remove unused isTitleCase function.
Convert space indents to tabs and clean trailing whitespace (sorry for this horrible situation).
Add recent changes from the standard translator.

Also fix a small bug (write.field).