lewdlime / abcm2ps

abcm2ps is a command line program which converts ABC to music sheet in PostScript or SVG format. It is an extension of abc2ps which may handle many voices per staff. abcm2ps is Copyright © 2014-2016 Jean-Francois Moine.
http://moinejf.free.fr/
GNU General Public License v3.0
82 stars 31 forks source link

Bar line at the end of a stave is being placed outside the generated image boundaries #109

Open BobtheBox opened 2 years ago

BobtheBox commented 2 years ago

Given a standard abc file with bar lines at the end of the stave and a format file with right margin set to zero the generated image crops the bar line and appears (in print) as an open ended stave. Other bar line ending styles ('|]', ':|') are rendered within the stave line boundary and are within the image.

% bar at end of line is appended to stave and appears outside rendered area FE|D2EF D2FA|B2 BA FABd|fedf afdf|edBe dBAF| % repeat bar at end of line appears on stave and appears inside rendered area D2EF D2FA|B2 BA FABd|fedf edBA|dBAF D2:|

% format file rightmargin 0.0cm

If the right margin is set to 0.1cm the bar lines are correctly rendered however they are, on close inspection, perceptibly misaligned with other bar ending types (and the image has a margin which must now be handled in downstream DTP apps).

Version is reported as abcm2ps-8.14.11

moinejf commented 2 years ago

This should be fixed by the commit e3282f8. Thanks.