tweh / metrix

A LaTeX package to typset prosodic/metric symbols above verses.
7 stars 1 forks source link

Repeat last symbol sequence #4

Open tweh opened 11 years ago

tweh commented 11 years ago

Add feature on \metrics to repeat the lat sequence of metric symbols in combination with new syllables.

E.g.

\metrics{_ uu_ _ _|_ _uu _ _ _ } {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}
\metrics+{flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}

instead of

\metrics{_ uu_ _ _|_ _uu _ _ _ } {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}
\metrics{_ uu_ _ _|_ _uu _ _ _ } {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}

The test wether the number of syllable and symbol match, should work in this case too.

An environment version could be possible:

\begin{Metricverses}{_ uu_ _ _|_ _uu _ _ _}
   flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust \\
   flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust \\
\end{Metricverses}

in this case every line must be processed separately and should end with \\. Maybe a processing as {tabular}{l} in the background works.

tweh commented 9 years ago

Maybe it would be better to name a sequence of metrics symbols so it can be reused more flexible, e.g.

\metrics[set=my-rythm]{_ uu_ _ _|_ _uu _ _ _ } {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}

to save and

\metrics[use=my-rythm]{} {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}

to reuse a sequence. In case of

    \metrics[use=my-rythm]{_ uu_ _ _|_ _uu _ _ _ } {flos ve-te-ris vi-ni | meis na-ri-bus ob-iec-tust}

argument #2 will be ignored.

An addtional command like

\definemetric{my-rhythm}{_ uu_ _ _|_ _uu _ _ _}

would be handy …

tweh commented 8 years ago

Better names