fixed indents

This commit is contained in:
2024-11-24 12:09:53 +01:00
parent fe5ba3a18f
commit 930123771c
6 changed files with 70 additions and 61 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
docker = podman
build_dir = build build_dir = build
template_dir = templates
config_dir = config config_dir = config
docker = podman
library_dir = library
propers_dir = propers
template_dir = templates
tex_deps = $(template_dir)/*.tt $(library_dir)/*/*/*.tt $(propers_dir)/*.tt $(config_dir)/song_choices.csv $(config_dir)/qr_codes.csv $(config_dir)/variables.tt
.PHONY: all .PHONY: all
all: leadsheet_collection.pdf choir_scores.pdf print_a3.pdf clean_intermediate #print_a4.pdf all: leadsheet_collection.pdf choir_scores.pdf print_a3.pdf clean_intermediate #print_a4.pdf
%.pdf: build %.pdf: build
$(MAKE) -C $(build_dir) $@ $(MAKE) -C $(build_dir) $@
songsheet.tex: $(template_dir)/songsheet.tt $(tex_deps) $(template_dir)/header.tt $(template_dir)/head.tt $(template_dir)/footer.tt
%.tex: build %.tex: build
$(MAKE) -C $(template_dir) $@ $(MAKE) -C $(template_dir) $@
clean_intermediate: clean_intermediate:
+1 -1
View File
@@ -2,7 +2,7 @@ build_dir = ../build
library_dir = ../library library_dir = ../library
propers_dir = ../propers propers_dir = ../propers
config_dir = ../config config_dir = ../config
tex_deps = *.tt $(library_dir)/*/*/*.tt $(config_dir)/song_choices.csv $(propers_dir)/*.tt tex_deps = *.tt $(library_dir)/*/*/*.tt $(propers_dir)/*.tt $(config_dir)/song_choices.csv $(config_dir)/variables.tt
songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt songsheet.tex: songsheet.tt $(tex_deps) header.tt head.tt footer.tt
tpage $< > $(build_dir)/$@ tpage $< > $(build_dir)/$@
musician_scores.tex: musician_scores.tt $(tex_deps) musician_scores.tex: musician_scores.tt $(tex_deps)
+1 -1
View File
@@ -86,7 +86,7 @@ RawFeature = {+ss06}
purpose = song.purpose purpose = song.purpose
title = song.title title = song.title
content = song.content content = song.content
variables = song.variables ? "${song.variables}/assignments.tt" : '' variables = song.variables ? "${library_dir}/${song.variables}/assignments.tt" : ''
%] %]
[% END %] [% END %]
+21 -17
View File
@@ -6,15 +6,16 @@
\song{[% purpose_print ? purpose_print : purpose %]}{[% song_title -%]}{ \song{[% purpose_print ? purpose_print : purpose %]}{[% song_title -%]}{
[% before_song -%] [% before_song -%]
\begin{samepage} \begin{samepage}
[% IF scores -%] [% IF scores;
[% IF scores.gregorian AND (gregorian OR NOT scores.congregation) -%] IF scores.gregorian AND (gregorian OR NOT scores.congregation);
[% IF NOT gregorian -%] IF NOT gregorian;
\textbf{\LARGE{Activate gregorian}} GET "\\textbf{\\LARGE{Activate gregorian}}\n";
[% ELSE -%] ELSE;
\gregorioscore{gregorio_scores/[% scores.gregorian %]} GET "\\gregorioscore{gregorio_scores/${scores.gregorian}}\n";
[% END -%] END;
[% ELSE -%] ELSE;
\lilypondfile{[% IF parts; GET '\lilypondfile{';
IF parts;
IF parts == 'band'; IF parts == 'band';
IF scores.leadsheet; IF scores.leadsheet;
GET "${library_dir}/${scores.leadsheet}"; GET "${library_dir}/${scores.leadsheet}";
@@ -30,16 +31,19 @@
END; END;
ELSE; ELSE;
GET "${library_dir}/${scores.congregation}"; GET "${library_dir}/${scores.congregation}";
END; %]} END;
[% END -%] GET "}\n";
[% ELSIF lyrics -%] END;
[% lyrics %] ELSIF lyrics;
[% END -%] GET lyrics;
END; %]
[% IF credits -%] [% IF credits -%]
\leavevmode\\* \leavevmode\\*
[% FOREACH key = credits.keys -%] [% FOREACH key = credits.keys;
\[% key %]{[% credits.$key %]} # Workaround because PERL keeps resolving \\$ to $
[% END -%] s = "\\ ${key}{${credits.$key}}\n";
GET s.replace('(\W) ', '$1');
END; -%]
[% END -%] [% END -%]
\end{samepage} \end{samepage}
[% content -%] [% content -%]
+1 -1
View File
@@ -11,7 +11,7 @@
[% INCLUDE "$template" [% INCLUDE "$template"
purpose = song.purpose purpose = song.purpose
content = song.content content = song.content
variables = song.variables ? "${song.variables}/assignments.tt" : '' variables = song.variables ? "${library_dir}/${song.variables}/assignments.tt" : ''
%] %]
[% END %] [% END %]
+2 -1
View File
@@ -10,9 +10,10 @@
meditations = 0 meditations = 0
config_dir = '../config' config_dir = '../config'
library_dir = '../library' library_dir = '../library'
propers_dir = '../propers/'
-%] -%]
[% PROCESS "${config_dir}/variables.tt"; [% PROCESS "${config_dir}/variables.tt";
IF proper != ''; IF proper != '';
PROCESS "propers/${proper}.tt"; PROCESS "${propers_dir}/${proper}.tt";
END; END;
-%] -%]