-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shape notes: Help defining glyphs #101
Comments
Hi,
Then, the class could be defined in a
I updated the shape example (care, the file extension has changed from xhtml to html): http://moinejf.free.fr/abcm2ps-doc/shape.html But, this does not work with the PostScript output of abcm2ps. |
I was talking about the PS output. Funnily the instructions (as in the new example) do work just fine for PS output, except for the styles.
Could you give me pointers on how to find out how to do this? |
I looked in the code of abcm2ps and, you're lucky, the stroke width may be defined in the %%beginsvg definitions by |
That’s great thanks. For fine-tuning this further (aligning staff with head, having different stroke widths for horizontal / vertical lignes …) etc. I’d still need more control over this. I don’t think a blind trial-error approach will allow this. Is there anything I that you can point me at that would help me? (I am a software developer so reading C code is not entirely beyond me). |
Well, abcm2ps can do both PostScript (PS) and SVG. For SVG, it contains a small PS interpreter, so, the SVG output is rather odd. Now that abcm2ps does not evolve anymore, it is replaced by abc2svg which does only SVG output. As it seems that your better like PS output, you should use %%beginps..%%endps and have a fine definition of the graphical output. The PostScript language is defined in the Adobe document PLRM3.pdf. For the shape notes, the move from SVG to PS is easy enough: with abcm2ps, generate a simple ABC tune with the SVG definitions, and, then, looking at the generated PS file, you will see the functions /fablup, /fablupo ... (these functions have been generated from the SVG definitions). You can then move these PS functions to your ABC tune between %%beginps and %%endps, and remove the %%beginsvg .. %%endsvg sequence. The result shoud be the same. |
Thanks for writing this up! It’s very useful. I didn’t realise that abcm2ps was being phased out. Being more fluent in SVG than PS, this might indeed be a good opportunity for me to attempt a switch instead of investing more into abcm2ps. |
Hi, I’m trying to make abcm2ps render shape notes. I’ve started from the shape note example and further refined it to also include non-filled shapes for half notes and full notes (see my current version at the bottom).
Through trial and error I’ve found that while I can’t remove the class-attribute (I then get a broken PS file), I can replace it with another class.
I’ve also found the
svg.c
source file which seems to provide many examples for defining glyphs.At the moment I’m trying increase the stroke-width for the unfilled heads, but it doesn’t seem to accept the
stroke-width
attribute as in thesvg.c
. In a more general sense I’m wondering which SVG subset is supported here.Am I looking for this in the right place? Is there more documentation for defining the note head glyphs that I didn’t find?
The text was updated successfully, but these errors were encountered: