View Single Post
Old 03-31-2014, 04:01 PM   #1
jlocicero
Member
jlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterjlocicero can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 15
Karma: 12678
Join Date: Apr 2013
Device: none
convert hyphens to em dashes... possible?

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.
jlocicero is offline   Reply With Quote