texlive[51125] Master/texmf-dist: metrix (14may19)

commits+karl at tug.org commits+karl at tug.org
Tue May 14 23:41:19 CEST 2019


Revision: 51125
          http://tug.org/svn/texlive?view=revision&revision=51125
Author:   karl
Date:     2019-05-14 23:41:19 +0200 (Tue, 14 May 2019)
Log Message:
-----------
metrix (14may19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/metrix/README
    trunk/Master/texmf-dist/doc/latex/metrix/metrix.pdf
    trunk/Master/texmf-dist/source/latex/metrix/metrix.dtx
    trunk/Master/texmf-dist/source/latex/metrix/metrix.ins
    trunk/Master/texmf-dist/tex/latex/metrix/metrix.sty

Modified: trunk/Master/texmf-dist/doc/latex/metrix/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/metrix/README	2019-05-14 21:41:06 UTC (rev 51124)
+++ trunk/Master/texmf-dist/doc/latex/metrix/README	2019-05-14 21:41:19 UTC (rev 51125)
@@ -20,11 +20,15 @@
 
 
 # License
-This material is subject to the LaTeX Project Public License.
-See http://mirror.ctan.org/help/Catalogue/licenses.lppl.html
-for the details of that license.
+License:
+This material is subject to the LaTeX Project Public License
+(LPPL), either version 1.3c of this license or (at your
+option) any later version. The latest version of this
+license is in the file
 
+  http://www.latex-project.org/lppl.txt
 
+
 # Files
 
 - README         : this file

Modified: trunk/Master/texmf-dist/doc/latex/metrix/metrix.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/metrix/metrix.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/metrix/metrix.dtx	2019-05-14 21:41:06 UTC (rev 51124)
+++ trunk/Master/texmf-dist/source/latex/metrix/metrix.dtx	2019-05-14 21:41:19 UTC (rev 51125)
@@ -1,8 +1,8 @@
 % \iffalse meta-comment
 %
-%% File: metrix.dtx Copyright (C) 2013-2016 Tobias Weh
+%% File: metrix.dtx Copyright (c) Tobias Weh
 %%
-%% It may be distributed and/or modified under the conditions of the
+%% This file may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
 %% license or (at your option) any later version.  The latest version
 %% of this license is in the file
@@ -27,8 +27,8 @@
 %<package>  }
 \def\metrixFileName{metrix}
 \def\metrixFileDescription{Typset prosody/metric symbols.}
-\def\metrixFileDate{2019/05/05}
-\def\metrixFileVersion{1.4}
+\def\metrixFileDate{2019/05/13}
+\def\metrixFileVersion{1.4a}
 %</driver|package>
 %<*driver>
 \documentclass[full,english]{l3doc}
@@ -193,8 +193,16 @@
 % correct input is \verb*|_ ' x| (where \verb*| | indicates a space/blank).
 % \subsubsection*{Accents above symbols (ictus)}
 % If you want to add an additional accent above a symbol you may precede the symbol with
-% an acute +\xB4+ or grave +`+. At the moment this only works with breve (+\xB4u+ or +`u+)
-% and longum (+\xB4_+ or +`_+).
+% an slash +/+ for an acute or a star +*+ for a grave accent. At the moment this only works
+% with breve (+/u+ or +*u+) and longum (+/_+ or +*_+).
+% \begin{example}
+% An ictus (although out of date).
+%   \begin{verbatim}
+% \metricsymbols{/_ u u /_ _ /_}
+%   \end{verbatim}
+%   \metricsymbols{/_ u u /_ _ /_}
+% \end{example}
+%\pagebreak
 % \begin{longtabu}to \textwidth {l>{\itshape}lcXl}
 %    \caption{Symbol abbreviations\label{tab:symbols}}\\
 %    \toprule
@@ -983,8 +991,8 @@
 %       +arrow+ & +\$+\cs{downarrow}+\$+ & arrow for highlighting \\
 %       +breakgap+ & +0.6em+ & gap before and after a (verse) break \\
 %       +emptywidth+ & +1em+ & gap replacing an empty symbol (abbreviation +e+) \\
-%       +acute+ & +\xB4+ & acute accent character/symbol \\
-%       +grave+ & +\`{}+ & grave accent character/symbol \\
+%       +acute+ & +\string\textasciiacute+ & acute accent character/symbol \\
+%       +grave+ & +\string\textasciigrave+ & grave accent character/symbol \\
 %    \end{longtabu}
 %
 % \subsection{\TikZ/ styles}\label{sec:styles}
@@ -1000,6 +1008,9 @@
 % These styles defines the +node+s in which a syllable or a break symbol (the ones spanning across
 % the symbol and the syllable line) is typeset, e.g. it aligns these +node+s at their base line.
 % \end{variable}
+% \begin{variable}{every metrix ictus node}
+% This style defines the apperance of accents above symbols (ictus, e.g. +/u+).
+% \end{variable}
 % \begin{variable}{every metrix accent}
 % This style defines the apperance of accents created by \cs{lng} and \cs{brv}.
 % \end{variable}
@@ -1043,6 +1054,7 @@
 \ExplSyntaxOff
  \usetikzlibrary{calc}
 \ExplSyntaxOn
+\RequirePackage{textcomp}
 %    \end{macrocode}
 %
 % \subsection{Constants and internal variables}
@@ -1051,13 +1063,13 @@
 % \begin{variable}[internal]{\c_@@_acute_accent_tl}
 %    Constant holding an acute accent char.
 %    \begin{macrocode}
-\tl_const:Nn \c_@@_acute_accent_tl { \xB4 }
+\tl_const:Nn \c_@@_acute_accent_tl { / }
 %    \end{macrocode}
 % \end{variable}
 % \begin{variable}[internal]{\c_@@_acute_accent_tl}
 %    Constant holding an grave accent char.
 %    \begin{macrocode}
-\tl_const:Nn \c_@@_grave_accent_tl { ` }
+\tl_const:Nn \c_@@_grave_accent_tl { * }
 %    \end{macrocode}
 % \end{variable}
 % \subsubsection{Variables}
@@ -1350,7 +1362,7 @@
 %    This variable stores acute symbol.
 %    \begin{macrocode}
 \tl_new:N \g_@@_variable_acute_tl
-\tl_set:Nn \g_@@_variable_acute_tl { \xB4 }
+\tl_set:Nn \g_@@_variable_acute_tl { \textasciiacute }
 %    \end{macrocode}
 % \end{variable}
 % \begin{variable}[internal]{\g_@@_variable_grave_tl}
@@ -1357,7 +1369,7 @@
 %    This variable stores grave symbol.
 %    \begin{macrocode}
 \tl_new:N \g_@@_variable_grave_tl
-\tl_set:Nn \g_@@_variable_grave_tl { \`{} }
+\tl_set:Nn \g_@@_variable_grave_tl { \textasciigrave }
 %    \end{macrocode}
 % \end{variable}
 %
@@ -1549,7 +1561,7 @@
     \int_incr:N \l_@@_process_int
     \int_compare:nT { \l_@@_process_int > 1 }
      {
-      \hspace{\usemetrixvar{symbolsep}}
+      \hspace { \usemetrixvar{symbolsep} }
      }
     \str_case:nnF { ##1 } 
      {
@@ -1728,7 +1740,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_break_gap: 
  {
-  \hspace{\usemetrixvar{breakgap}}
+  \hspace { \usemetrixvar { breakgap } }
  }
 %    \end{macrocode}
 % \end{macro}
@@ -1754,7 +1766,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_e_gap: 
  {
-  \hspace*{\usemetrixvar{emptywidth}}
+  \hspace* { \usemetrixvar { emptywidth } }
  }
 %    \end{macrocode}
 % \end{macro}
@@ -1869,11 +1881,11 @@
    \draw (0,0) arc [start~angle=0, end~angle=180, radius=-0.225];
    \bool_if:NT \l_@@_has_acute_accent_bool
     {
-     \node at (0.225,0) {\usemetrixvar{acute}};
+     \node [every~metrix~ictus~node] at (0.225,0) { \usemetrixvar { acute } };
     }
    \bool_if:NT \l_@@_has_grave_accent_bool
     {
-     \node at (0.225,0) {\usemetrixvar{grave}};
+     \node [every~metrix~ictus~node] at (0.225,0) { \usemetrixvar { grave } };
     }
   \end{tikzpicture}
  }
@@ -1890,11 +1902,11 @@
      \draw (0,0) -- ++(0.4,0);
      \bool_if:NT \l_@@_has_acute_accent_bool
       {
-       \node at (0.2,0) {\usemetrixvar{acute}};
+       \node [every~metrix~ictus~node] at (0.2,0) { \usemetrixvar { acute } };
       }
      \bool_if:NT \l_@@_has_grave_accent_bool
       {
-       \node at (0.2,0) {\usemetrixvar{grave}};
+       \node [every~metrix~ictus~node] at (0.2,0) { \usemetrixvar { grave } };
       }
     \end{tikzpicture}
    }
@@ -1903,11 +1915,11 @@
      \draw (0,0) -- ++(0.75,0);
      \bool_if:NT \l_@@_has_acute_accent_bool
       {
-       \node at (0.375,0) {\usemetrixvar{acute}};
+       \node [every~metrix~ictus~node] at (0.375,0) { \usemetrixvar { acute } };
       }
      \bool_if:NT \l_@@_has_grave_accent_bool
       {
-       \node at (0.375,0) {\usemetrixvar{grave}};
+       \node [every~metrix~ictus~node] at (0.375,0) { \usemetrixvar { grave } };
       }
     \end{tikzpicture}
    }
@@ -2374,6 +2386,9 @@
  every metrix symbol node/.style={
   inner sep=0pt, anchor=center,
  },
+ every metrix ictus node/.style={
+   overlay,
+ },
  every metrix break node/.style={
   inner sep=0pt, anchor=base, 
  },
@@ -2490,7 +2505,7 @@
    \string\verseref\space can~only~be~used~in~{metricverses}~env.
   }
  }
-\NewDocumentEnvironment{metricverses} { }
+\NewDocumentEnvironment { metricverses } { }
  {
   \RenewDocumentCommand { \verseref } { m }
    {
@@ -2497,18 +2512,18 @@
     \@@_print_vers_ref:n { ##1 }
    }
   \par
-  \addvspace{0.7\baselineskip}
-  \fp_compare:nT { \usemetrixvar{symbolshift} < 0.0 }
+  \addvspace { 0.7\baselineskip }
+  \fp_compare:nT { \usemetrixvar { symbolshift } < 0.0 }
    {
-    \vspace{\usemetrixvar{symbolshift}}
+    \vspace { \usemetrixvar { symbolshift } }
    }
-  \addtolength{\baselineskip}{0.6\baselineskip}
+  \addtolength { \baselineskip } { 0.6\baselineskip }
  }
  {
   \par
-  \addtolength{\baselineskip}{-0.6\baselineskip}
-  \vspace{\baselineskip}
-  \noindent\ignorespacesafterend
+  \addtolength { \baselineskip } { -0.6\baselineskip }
+  \vspace { \baselineskip }
+  \noindent \ignorespacesafterend
  }
 %    \end{macrocode}
 % \end{macro}
@@ -2526,5 +2541,8 @@
 % \changes{v1.3}{2016/03/21}{New highlight styles: \texttt{add text} and \texttt{add arrow}.}
 % \changes{v1.4}{2019/05/04}{Added docs for \texttt{l} and \texttt{ll} symbol.}
 % \changes{v1.4}{2019/05/05}{Added possibility to add accents/icutus above symbols.}
+% \changes{v1.4a}{2019/05/13}{Now loads \pkg{textcomp}.}
+% \changes{v1.4a}{2019/05/13}{Fix: Icuts/accents didn't work with unicode.}
+% \changes{v1.4a}{2019/05/13}{New style: \texttt{every metrix ictus node}}
 %
 % \PrintIndex^^A use: makeindex -s l3doc.ist -o metrix-doc.ind metrix-doc.idx 
\ No newline at end of file

Modified: trunk/Master/texmf-dist/source/latex/metrix/metrix.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/metrix/metrix.ins	2019-05-14 21:41:06 UTC (rev 51124)
+++ trunk/Master/texmf-dist/source/latex/metrix/metrix.ins	2019-05-14 21:41:19 UTC (rev 51125)
@@ -1,19 +1,14 @@
 \iffalse meta-comment
 
-File metrix.ins Copyright (c) 2013--2016 Tobias Weh
+File metrix.ins Copyright (c) Tobias Weh
 
-It may be distributed and/or modified under the conditions of the
+This file may be distributed and/or modified under the conditions of the
 LaTeX Project Public License (LPPL), either version 1.3c of this
 license or (at your option) any later version.  The latest version
 of this license is in the file
 
-   http://www.latex-project.org/lppl.txt
+  http://www.latex-project.org/lppl.txt
 
-This file is part of the "l3packages bundle" (The Work in LPPL)
-and all files in that bundle must be distributed together.
-
-The released version of this bundle is available from CTAN.
-
 \fi
 
 \input l3docstrip.tex

Modified: trunk/Master/texmf-dist/tex/latex/metrix/metrix.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/metrix/metrix.sty	2019-05-14 21:41:06 UTC (rev 51124)
+++ trunk/Master/texmf-dist/tex/latex/metrix/metrix.sty	2019-05-14 21:41:19 UTC (rev 51125)
@@ -20,9 +20,9 @@
 %% original source files, as listed above, are part of the
 %% same distribution. (The sources need not necessarily be
 %% in the same archive or directory.)
-%% File: metrix.dtx Copyright (C) 2013-2016 Tobias Weh
+%% File: metrix.dtx Copyright (c) Tobias Weh
 %%
-%% It may be distributed and/or modified under the conditions of the
+%% This file may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
 %% license or (at your option) any later version.  The latest version
 %% of this license is in the file
@@ -44,8 +44,8 @@
   }
 \def\metrixFileName{metrix}
 \def\metrixFileDescription{Typset prosody/metric symbols.}
-\def\metrixFileDate{2019/05/05}
-\def\metrixFileVersion{1.4}
+\def\metrixFileDate{2019/05/13}
+\def\metrixFileVersion{1.4a}
 \ProvidesExplPackage
   {\metrixFileName}{\metrixFileDate}{\metrixFileVersion}{\metrixFileDescription}
 \RequirePackage{xparse}
@@ -54,8 +54,9 @@
 \ExplSyntaxOff
  \usetikzlibrary{calc}
 \ExplSyntaxOn
-\tl_const:Nn \c__metrix_acute_accent_tl { \xB4 }
-\tl_const:Nn \c__metrix_grave_accent_tl { ` }
+\RequirePackage{textcomp}
+\tl_const:Nn \c__metrix_acute_accent_tl { / }
+\tl_const:Nn \c__metrix_grave_accent_tl { * }
 \tl_new:N \l__metrix_words_tl
 \seq_new:N \l__metrix_syllables_seq
 \seq_new:N \l__metrix_symbols_seq
@@ -133,9 +134,9 @@
 \tl_new:N \g__metrix_variable_emptywidth_tl
 \tl_set:Nn \g__metrix_variable_emptywidth_tl { 1em }
 \tl_new:N \g__metrix_variable_acute_tl
-\tl_set:Nn \g__metrix_variable_acute_tl { \xB4 }
+\tl_set:Nn \g__metrix_variable_acute_tl { \textasciiacute }
 \tl_new:N \g__metrix_variable_grave_tl
-\tl_set:Nn \g__metrix_variable_grave_tl { \`{} }
+\tl_set:Nn \g__metrix_variable_grave_tl { \textasciigrave }
 \cs_generate_variant:Nn \prop_item:Nn { No , Nf , NV , Nx }
 \cs_generate_variant:Nn \prop_put:Nnn { Nnx , Nxx , Nff  , Noo }
 \cs_generate_variant:Nn \seq_item:Nn { Nf , NV , Nx }
@@ -264,7 +265,7 @@
     \int_incr:N \l__metrix_process_int
     \int_compare:nT { \l__metrix_process_int > 1 }
      {
-      \hspace{\usemetrixvar{symbolsep}}
+      \hspace { \usemetrixvar{symbolsep} }
      }
     \str_case:nnF { ##1 }
      {
@@ -399,7 +400,7 @@
  }
 \cs_new_protected:Npn \__metrix_break_gap:
  {
-  \hspace{\usemetrixvar{breakgap}}
+  \hspace { \usemetrixvar { breakgap } }
  }
 \cs_new:Npn \__metrix_break_node:n #1
  {
@@ -415,7 +416,7 @@
  }
 \cs_new_protected:Npn \__metrix_e_gap:
  {
-  \hspace*{\usemetrixvar{emptywidth}}
+  \hspace* { \usemetrixvar { emptywidth } }
  }
 \cs_new_protected:Npn \__metrix_evaluate_higlights:n #1
  {
@@ -486,11 +487,11 @@
    \draw (0,0) arc [start~angle=0, end~angle=180, radius=-0.225];
    \bool_if:NT \l__metrix_has_acute_accent_bool
     {
-     \node at (0.225,0) {\usemetrixvar{acute}};
+     \node [every~metrix~ictus~node] at (0.225,0) { \usemetrixvar { acute } };
     }
    \bool_if:NT \l__metrix_has_grave_accent_bool
     {
-     \node at (0.225,0) {\usemetrixvar{grave}};
+     \node [every~metrix~ictus~node] at (0.225,0) { \usemetrixvar { grave } };
     }
   \end{tikzpicture}
  }
@@ -502,11 +503,11 @@
      \draw (0,0) -- ++(0.4,0);
      \bool_if:NT \l__metrix_has_acute_accent_bool
       {
-       \node at (0.2,0) {\usemetrixvar{acute}};
+       \node [every~metrix~ictus~node] at (0.2,0) { \usemetrixvar { acute } };
       }
      \bool_if:NT \l__metrix_has_grave_accent_bool
       {
-       \node at (0.2,0) {\usemetrixvar{grave}};
+       \node [every~metrix~ictus~node] at (0.2,0) { \usemetrixvar { grave } };
       }
     \end{tikzpicture}
    }
@@ -515,11 +516,11 @@
      \draw (0,0) -- ++(0.75,0);
      \bool_if:NT \l__metrix_has_acute_accent_bool
       {
-       \node at (0.375,0) {\usemetrixvar{acute}};
+       \node [every~metrix~ictus~node] at (0.375,0) { \usemetrixvar { acute } };
       }
      \bool_if:NT \l__metrix_has_grave_accent_bool
       {
-       \node at (0.375,0) {\usemetrixvar{grave}};
+       \node [every~metrix~ictus~node] at (0.375,0) { \usemetrixvar { grave } };
       }
     \end{tikzpicture}
    }
@@ -818,6 +819,9 @@
  every metrix symbol node/.style={
   inner sep=0pt, anchor=center,
  },
+ every metrix ictus node/.style={
+   overlay,
+ },
  every metrix break node/.style={
   inner sep=0pt, anchor=base,
  },
@@ -917,7 +921,7 @@
    \string\verseref\space can~only~be~used~in~{metricverses}~env.
   }
  }
-\NewDocumentEnvironment{metricverses} { }
+\NewDocumentEnvironment { metricverses } { }
  {
   \RenewDocumentCommand { \verseref } { m }
    {
@@ -924,18 +928,18 @@
     \__metrix_print_vers_ref:n { ##1 }
    }
   \par
-  \addvspace{0.7\baselineskip}
-  \fp_compare:nT { \usemetrixvar{symbolshift} < 0.0 }
+  \addvspace { 0.7\baselineskip }
+  \fp_compare:nT { \usemetrixvar { symbolshift } < 0.0 }
    {
-    \vspace{\usemetrixvar{symbolshift}}
+    \vspace { \usemetrixvar { symbolshift } }
    }
-  \addtolength{\baselineskip}{0.6\baselineskip}
+  \addtolength { \baselineskip } { 0.6\baselineskip }
  }
  {
   \par
-  \addtolength{\baselineskip}{-0.6\baselineskip}
-  \vspace{\baselineskip}
-  \noindent\ignorespacesafterend
+  \addtolength { \baselineskip } { -0.6\baselineskip }
+  \vspace { \baselineskip }
+  \noindent \ignorespacesafterend
  }
 \endinput
 %%



More information about the tex-live-commits mailing list