rewrite form_translate in sh

so much easier to reason with!