wil writes:
| No, it looks for
| "!" (~["!","\n","\r"])+ "!"
| that is, two bangs with at least one non-bang in between before the end of line.
| ! at end-of-line should be ignored as before (although there may be issues with
| ! at end-of-tune, have to check that...

I've seen a number of abc2win files  that  contain  !  chars  in  the
middle  of  the  line.   I'm not sure what this means, but I found it
fairly easy to tell apart from the discussed uses of !text!.  What my
code  does  is  scans for the second !, and if it finds more than one
white-space char, backs up and treats the first ! as a space.

The "more than one" is because the suggested lists of !...!  thingies
that  I've  collected  include a few with a single space.  But others
have suggested that all  such  internal  spaces  should  be  removed,
running the words together.  This would be even simpler, as you could
then treat any white space (including \r and \n) after a ! as meaning
to ignore the !. This would mean that instead of !da Capo! you'd have
to write !daCapo! in the abc. I think that capitalization is probably
not significant in this proposed construct, also, so you can use this
interCaps style for readability.

Now I've just gotta fully implement the !...! notation myself ... ;-)

To subscribe/unsubscribe, point your browser to: http://www.tullochgorm.com/lists.html

Reply via email to