mbakeranalecta / sam

Semantic Authoring Markdown
Other
79 stars 8 forks source link

en-dash recognition issue #143

Closed mbakeranalecta closed 7 years ago

mbakeranalecta commented 7 years ago

If you have the following text: “x, y, z, etc. -- something else”, the conversion does not convert the two hyphens into an en-dash.

If you change “etc." into "and so forth”, the conversion works correctly.

I suspect it’s a pattern matching glitch, where the conversion handles hyphens after a period differently.

mbakeranalecta commented 7 years ago

Addressed in 60610815f0ff5af5d0fa327404ce752862cb66b6

Note that only this specific issue is addressed. This does not mean that the algorithm for recognizing dashes has been perfected, since it is not clear that there is a perfect algorithm and the intent is to move this functionality to the schema so that people can define replacement behavior to suit themselves.