I use the same method to get lines from div Finding line-wraps
But.... Method does not take text with hyphens.
What I do...
I split word with hyphens by inter-na-tional (U+00AD)
to
['inter','na','tional']
and check each piece for next line with simple dash(minus)."-" U+002D
But...Seems like it is not correct, because it has some different as you can see in screenshot: http://prnt.sc/d5h3t7
Which symbol shell I use to be able to check it correct?