I'm reading a book right now that has some formatting issues. All of the dashes are simply hyphens, whether they should be hyphens or em-dashes or en-dashes. They are coded as hyphens. I confirmed this using Calibre's editor.
Is there any way to convert hyphens to em-dashes automatically? I know I can convert them all with a simple find and replace, but this will destroy any legitimate hyphens, like in compound words. I'm looking for something analogous to 'smartening' quotes, but for dashes.
Is this even possible? I think the algorithm for 'smartening' quotes is fairly straight forward, but does such an algorithm exist for dashes?
It seems like a small point, but I really do notice this when I am reading and it distracts me from the book. Proper em-dashes add meaning to a passage. If they appear as hyphens, it take me a moment to realize these are not compound words.