A maneira mais fácil de adicionar um índice de cânticos é duplicar o conteúdo dos \s Song Titles usando uma regra Changes.txt como esta:
'(\\s )([^\\]+)( ?\r?\n)' > '\\toc1 \2\3\1\2\3'
Isso diz: procure por um cabeçalho de seção \s e chame esse grupo de correspondência de 1.
Em seguida, capture o conteúdo/texto desse cabeçalho, chamando esse grupo de correspondência de 2.
Capture o fim da linha (que precisa de pelo menos um \n, mas pode ter um espaço e/ou \r antes do \n final) e chame esse grupo de correspondência de 3.
Em seguida, no lado da substituição, insira o novo marcador \toc1 seguido pelo conteúdo do grupo 2 e pela parte do fim da linha. Depois, coloque tudo de volta como estava (1, 2, 3).
Esses campos \toc1 agora devem ser capturados e usados no Sumário.
Observe que você também pode gerar um sumário ordenado a partir desses mesmos marcadores \toc1 para um índice no final do livro de cânticos. Basta usar \ztoc|sorta\* em vez de \ztoc|main\*
The easiest way to add an index of songs is to duplicate the contents of the \s Song Titles using a Changes.txt rule like this:
'(\\s )([^\\]+)( ?\r?\n)' > '\\toc1 \2\3\1\2\3'
This says, look for a \s section heading and call that match-group 1.
Then grab the content/text of that heading, calling that match-group 2.
Grab the end of line (which needs at least an \n but might have a space and/or \r before the final \n) and call that match-group 3.
Then, on the replace-with side, put in the new marker \toc1 followed by the contents of 2 and the end of line piece. Then put everything else back as you found it (1,2,3).
These \toc1 fields should now get picked up and used in the Table of Contents.
Note that you can also generate a sorted (table of contents) from these same \toc1 markers for an index at the back of the song book. Just use \ztoc|sorta\* instead of \ztoc|main\*
Tradução automática de English