Melodeon.net Forums

Discussions => Tunes => ABC => Topic started by: Jack Campin on January 01, 2017, 02:11:02 AM

Title: title mangling by abcm2ps
Post by: Jack Campin on January 01, 2017, 02:11:02 AM
Is there a way to stop abcm2ps from rearranging the words in a title?

As it works at present (for the version I have, anyway) it's designed for people who don't want to index their tunes manually.  So they put articles at the end: "Jig of Slurs, The" and abcm2ps reorganizes that in typesetting to say "The Jig of Slurs".

The problem being that it makes "Veni, Veni, Emmanuel" come out as "Emmanuel Veni, Veni" and "Green Grow the Rashes, O" gets displayed as "O Green Grow the Rashes".

Is it possible to turn this counterproductive cleverdickery off?
Title: Re: title mangling by abcm2ps
Post by: Anahata on January 01, 2017, 08:29:45 AM
any of these:
Code: [Select]
%%titletrim 0
%%titletrim false
%%titletrim n

should do it.It's off by default on my system.
The information was hard to find, but it's documented on the abcm2ps web site at
http://moinejf.free.fr/abcm2ps-doc/index.html
Title: Re: title mangling by abcm2ps
Post by: Roger Hare on January 01, 2017, 08:41:57 AM
any of these:
Code: [Select]
%%titletrim 0
%%titletrim false
%%titletrim n

Snap! I was just about to post this simple example:

Code: [Select]
X:1
T:Green Grow the Rashes, O
%%titletrim 0
M:4/4
L:1/8
K:C
| c2 c2 c2 c2 |

Roger
Title: Re: title mangling by abcm2ps
Post by: Jack Campin on January 03, 2017, 08:25:53 AM
Yuck.  You have to modify each source file (or worse, each tune within each file) to get it to behave sanely?

Is there no way to pass that as a flag when you start the program?
Title: Re: title mangling by abcm2ps
Post by: Anahata on January 03, 2017, 08:45:24 AM
All formatting parameters can be passed in the command line.
e.g. abcm2ps --titletrim 0 filenames...
See http://moinejf.free.fr/abcm2ps-doc/index.html (the "overview" section)

I usually run the program from a small shell script which provides the required overrides. On my system titletrim is off by default (I assume that's a compilation option, don't know why yours is different), but I added --stretchlast 1 into my script because I like the last line always to be printed full width.

Also note the "format" option, command line switch -F which lets you put all your favourite format settings into one file, handy if you have several regular preferences that differ from the default behaviour.
SimplePortal 2.3.5 © 2008-2012, SimplePortal