rearrange lines to do longer matches first
add a few more conversions in d2delight script