Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1]   Go Down

Author Topic: title mangling by abcm2ps  (Read 1484 times)

0 Members and 1 Guest are viewing this topic.

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
title mangling by abcm2ps
« 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?
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

Anahata

  • This mind intentionally left blank
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 6373
  • Oakwood D/G, C/F Club, 1-rows in C,D,G
    • Treewind Music
Re: title mangling by abcm2ps
« Reply #1 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
Logged
I'm a melodeon player. What's your excuse?
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk

Roger Hare

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 829
  • Urmston, Lancashire, U.K.
Re: title mangling by abcm2ps
« Reply #2 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
« Last Edit: January 01, 2017, 08:44:08 AM by lachenal74693 »
Logged
For more about Manchester Morris, The Beech Band Folk Club or anything else,  please use the private messaging facility.
My (large) ABC Tune Book is here.

Jack Campin

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 764
    • Jack Campin's Home Page
Re: title mangling by abcm2ps
« Reply #3 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?
Logged
http://www.campin.me.uk/

I can't figure out how to quit but I will no longer check this group and have deleted all shortcuts to it.

Anahata

  • This mind intentionally left blank
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 6373
  • Oakwood D/G, C/F Club, 1-rows in C,D,G
    • Treewind Music
Re: title mangling by abcm2ps
« Reply #4 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.
Logged
I'm a melodeon player. What's your excuse?
Music recording and web hosting: www.treewind.co.uk
Mary Humphreys and Anahata: www.maryanahata.co.uk
Ceilidh band: www.barleycoteband.co.uk
Pages: [1]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal