I know nothing about music notation, but I was very interested in LilyPond’s explanation of how and why it does some of the stuff it does: http://lilypond.org/about/automated-engraving/big-page
I wonder how much of this sort of work will end up in VexFlow.