Skip to content

Commit 8597789

Browse files
bencao simples
1 parent 229e25f commit 8597789

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/core/src/augustinus.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function generateGabc(input: string, modelObject: Model, partialP
6666
if (model.type === "prefacio" && model.tom === "solene") {
6767
input = input.replaceAll("Por isso,", "Por isso," + DELIM);
6868
}
69-
if (model.type === "bencao" && model.tom === "solene") {
69+
if (model.type === "bencao") {
7070
input = input.replaceAll("Amém.", "Amém." + DELIM);
7171
}
7272

@@ -107,6 +107,10 @@ export default function generateGabc(input: string, modelObject: Model, partialP
107107
gabcLines.push("<c><sp>R/</sp>.</c> A(g)mém.(gh) (::Z)");
108108
continue
109109
}
110+
if (model.type === "bencao" && model.tom === "simples" && chunk == "Amém.") {
111+
gabcLines.push("<c><sp>R/</sp>.</c> A(h)mém.(h) (::Z)");
112+
continue
113+
}
110114
let findIndex = model.find.indexOf(chunk + parametersObject.separator)
111115
if (findIndex !== -1) {
112116
const replacement = model.replace[findIndex];

packages/frontend/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function updateCustomFields() {
128128
129129
// Prefácios usam "**" como marcador de cadência final (para não confundir com a
130130
// pontuação); os demais modelos usam o separador padrão ".".
131-
parameters.separator = model.type === 'prefacio' ? '**' : '.';
131+
parameters.separator = (model.type === 'prefacio' || model.type === 'bencao') ? '**' : '.';
132132
}
133133
134134
function gabcToSvg(gabc: string) {

0 commit comments

Comments
 (0)