I’ve just added the official rules for the use of hyphens in hanyu pinyin to my website.
More to come soon.