Calculate break position more generally

There was another character I was going to add here, but I can't remember for the life of me. At least now it'll be easy to add in.