Compute xpath of paragraphs. Merged from
https://github.com/dreamindustries/jaws/tree/master/justext.