Hi,

sorry to answer my own post, but I've gotten a bit further after some
reading up of Postscript specs and a lot of guesswork. ;-)

By modifying 'subs.c' and 'syms.c' modified from the current (08-Apr-2003)
version of jcabc2ps found at

        http://trillian.mit.edu/~jc/music/abc/src/jcabc2ps-src.tar.gz

jcabc2ps can handle macron (\=), dot (\.), breve (\u) and hacek (\v)
accents in what I hope is a fairly portable manner not depending on any
special postscript hardware.

The modified files are temporarily available at

        http://www.th.physik.uni-frankfurt.de/~reiter/subs.c
and
        http://www.th.physik.uni-frankfurt.de/~reiter/syms.c

An example abc-input file (govori.abc) and the postscript my modified
version produces  are available at

        http://www.th.physik.uni-frankfurt.de/~reiter/govori.abc
and 
        http://www.th.physik.uni-frankfurt.de/~reiter/govori.ps

Please let me know whether this works for you!

A couple of issues I'm aware of:

- I fear that my implemetation could break Postscript's 'stringwidth' for
strings which contain accents. To work around that, I'd need a way to get
a glyphs width from a glyph in postscript, anybody want to help out?

- Placement of the accents works quite well for most characters but is
ugly for high lower-case characters like 'l' and 'b'.

- Including the other combining accents og Postscript's Latin1Encoding
(grave, acute, circumflex, tilde, diaeresis, ring above, double acute ) is
in principle trivial, but for some I didn't find a notation on 

        http://www.musicaviva.com/abc/abcyclopedia/view.tpl?kw=Special%20characters

and others might conflict with built-in accented characters like (\'e) -
but that should be easy to fix.

I hope anybody besides me finds this helpful. :-) Maybe it will even make
its way into mainstream jcabc2ps when the above issues have been sorted
out.

Cheers,

  Manuel

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

Reply via email to