From 268a6662a179c6090cba74c7ea4964740164f591 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Wed, 8 Sep 2004 09:47:07 +0000 Subject: [PATCH] More detailed default templates. --- tools/cueprint.c | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/tools/cueprint.c b/tools/cueprint.c index cd15af2..b79cb0b 100644 --- a/tools/cueprint.c +++ b/tools/cueprint.c @@ -13,8 +13,33 @@ #include "cuefile.h" /* default templates */ -#define D_TEMPLATE "%P \"%T\" (%N tracks)\n" -#define T_TEMPLATE "%n: %p \"%t\"\n" + +#define D_TEMPLATE "\ +Disc Information\n\ +arranger: %A\n\ +composer: %C\n\ +genre: %G\n\ +message: %M\n\ +no. of tracks: %N\n\ +performer: %P\n\ +songwriter: %S\n\ +title: %T\n\ +UPC/EAN: %U\n\ +" + +#define T_TEMPLATE "\ +\n\ +Track %n Information\n\ +arranger: %a\n\ +composer: %c\n\ +genre: %g\n\ +ISRC: %i\n\ +message: %m\n\ +track number: %n\n\ +perfomer: %p\n\ +title: %t\n\ +ISRC (CD-TEXT): %u\n\ +" char *progname; char *d_template = NULL; /* disc template */ @@ -57,8 +82,8 @@ Track:\n\ Any other % is expanded to that character. For example, to get a\n\ '%', use %%.\n\ ", stdout); - fprintf(stdout, "default disc template is:\n\"%s\"\n", D_TEMPLATE); - fprintf(stdout, "default track template is:\n\"%s\"\n", T_TEMPLATE); + fprintf(stdout, "default disc template is:\n%s\n", D_TEMPLATE); + fprintf(stdout, "default track template is:\n%s\n", T_TEMPLATE); } else { fprintf(stderr, "%s: syntax error\n", progname); fprintf(stderr, "run `%s -h' for usage\n", progname);