diff options
author | Karl Berry <karl@freefriends.org> | 2019-05-14 21:41:19 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-05-14 21:41:19 +0000 |
commit | 871c0788659288f878cff3e52054be9a94871b88 (patch) | |
tree | 350710d101ccea10cb65446bb8da3ff159ca9853 /Master | |
parent | fe0339cd9b2d51a9a082541c1916f0122f2841e9 (diff) |
metrix (14may19)
git-svn-id: svn://tug.org/texlive/trunk@51125 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/metrix/README | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/metrix/metrix.pdf | bin | 637957 -> 639645 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/metrix/metrix.dtx | 76 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/metrix/metrix.ins | 11 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/metrix/metrix.sty | 54 |
5 files changed, 86 insertions, 65 deletions
diff --git a/Master/texmf-dist/doc/latex/metrix/README b/Master/texmf-dist/doc/latex/metrix/README index 723bca02297..f9d357d7dd9 100644 --- a/Master/texmf-dist/doc/latex/metrix/README +++ b/Master/texmf-dist/doc/latex/metrix/README @@ -20,9 +20,13 @@ new brevis and a longa accent and a bow to contract syllables. # 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 diff --git a/Master/texmf-dist/doc/latex/metrix/metrix.pdf b/Master/texmf-dist/doc/latex/metrix/metrix.pdf Binary files differindex ef37f8ec489..51322393d34 100644 --- a/Master/texmf-dist/doc/latex/metrix/metrix.pdf +++ b/Master/texmf-dist/doc/latex/metrix/metrix.pdf diff --git a/Master/texmf-dist/source/latex/metrix/metrix.dtx b/Master/texmf-dist/source/latex/metrix/metrix.dtx index f944927dc4d..421fc5ab775 100644 --- a/Master/texmf-dist/source/latex/metrix/metrix.dtx +++ b/Master/texmf-dist/source/latex/metrix/metrix.dtx @@ -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 +´+ or grave +`+. At the moment this only works with breve (+´u+ or +`u+) -% and longum (+´_+ 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+ & +´+ & 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 { ´ } +\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,14 +1362,14 @@ % This variable stores acute symbol. % \begin{macrocode} \tl_new:N \g_@@_variable_acute_tl -\tl_set:Nn \g_@@_variable_acute_tl { ´ } +\tl_set:Nn \g_@@_variable_acute_tl { \textasciiacute } % \end{macrocode} % \end{variable} % \begin{variable}[internal]{\g_@@_variable_grave_tl} % 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,25 +2505,25 @@ \string\verseref\space can~only~be~used~in~{metricverses}~env. } } -\NewDocumentEnvironment{metricverses} { } +\NewDocumentEnvironment { metricverses } { } { \RenewDocumentCommand { \verseref } { m } { \@@_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 diff --git a/Master/texmf-dist/source/latex/metrix/metrix.ins b/Master/texmf-dist/source/latex/metrix/metrix.ins index 3ad8d59d3d7..55350a84de1 100644 --- a/Master/texmf-dist/source/latex/metrix/metrix.ins +++ b/Master/texmf-dist/source/latex/metrix/metrix.ins @@ -1,18 +1,13 @@ \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 - -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. + http://www.latex-project.org/lppl.txt \fi diff --git a/Master/texmf-dist/tex/latex/metrix/metrix.sty b/Master/texmf-dist/tex/latex/metrix/metrix.sty index 6148ee53202..ab2ec91af87 100644 --- a/Master/texmf-dist/tex/latex/metrix/metrix.sty +++ b/Master/texmf-dist/tex/latex/metrix/metrix.sty @@ -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 { ´ } -\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 { ´ } +\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,25 +921,25 @@ \string\verseref\space can~only~be~used~in~{metricverses}~env. } } -\NewDocumentEnvironment{metricverses} { } +\NewDocumentEnvironment { metricverses } { } { \RenewDocumentCommand { \verseref } { m } { \__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 %% |