About soft hyphen in Sutta Central texts

Do you have some script with rules how to hyphenate words? Or was it done by simple find-and-replace for only limited number of long words?