summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-07-16 21:14:36 +0000
committerKarl Berry <karl@freefriends.org>2019-07-16 21:14:36 +0000
commitcf12bb505e9a4455ac9fb495f04cf7a2d079186c (patch)
treeeeb96649fd30bc3ac8752f78005b52d8efc47d57 /Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty
parentd2055c0169cf583fb9af2de4061319e5b31a4303 (diff)
lwarp (16jul19)
git-svn-id: svn://tug.org/texlive/trunk@51653 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty133
1 files changed, 104 insertions, 29 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty
index dca86fc472d..12143adac48 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-musicography.sty
@@ -15,79 +15,154 @@
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
-\LWR@ProvidesPackagePass{musicography}[2018/05/21]
-\RenewDocumentCommand{\musSymbol}{ O{\musFont} m m m m }{%
+\LWR@ProvidesPackagePass{musicography}[2019/05/28]
+\NewDocumentCommand{\LWR@HTML@musSymbol}{ O{\musFont} m m m m }{%
\begin{lateximage}%
{#1\kern#2\raisebox{#3}{#5}\kern#4}%
\end{lateximage}%
}
-\RenewDocumentCommand{\musStemmedNote}{ m }{%
+\LWR@formatted{musSymbol}
+
+\NewDocumentCommand{\LWR@HTML@musStemmedNote}{ m }{%
\begin{lateximage}%
\musSymbol{0.05em}{0.5ex}{0.2em}{#1\musStem}%
\end{lateximage}%
}
-\RenewDocumentCommand{\musFlaggedNote}{ m m }{%
+\LWR@formatted{musStemmedNote}
+
+\NewDocumentCommand{\LWR@HTML@musFlaggedNote}{ m m }{%
\begin{lateximage}%
\musSymbol{0.05em}{0.5ex}{0pt}{#1\musStem}%
\musSymbol{0pt}{0pt}{0.9em}{#2}%
\end{lateximage}%
}
-\RenewDocumentCommand{\musDottedNote}{ m }{%
+\LWR@formatted{musFlaggedNote}
+
+\NewDocumentCommand{\LWR@HTML@musDottedNote}{ m }{%
\begin{lateximage}%
#1\musDot%
\end{lateximage}%
}
-\RenewDocumentCommand{\musMeter}{ m m }{%
+\LWR@formatted{musDottedNote}
+
+\NewDocumentCommand{\LWR@HTML@musMeter}{ m m }{%
\begin{lateximage}*[#1/#2][#1#2]%
-\musStack{#1}{#2}\kern0.05em%
+\musStack{#1 #2}\kern0.05em%
\end{lateximage}%
}
-\RenewDocumentCommand{\meterCplus}{ m }{%
+\LWR@formatted{musMeter}
+
+\NewDocumentCommand{\LWR@HTML@meterCplus}{ m }{%
\begin{lateximage}*[C#1]%
\meterC{}\kern-0.7pt#1%
\end{lateximage}%
}
-\RenewDocumentCommand{\meterC}{}{%
+\LWR@formatted{meterCplus}
+
+\NewDocumentCommand{\LWR@HTML@meterC}{}{%
\begin{lateximage}*[C]%
\musSymbolMeter{\symbol{83}}%
\end{lateximage}%
}
-\RenewDocumentCommand{\meterCutC}{}{%
+\LWR@formatted{meterC}
+
+\NewDocumentCommand{\LWR@HTML@meterCutC}{}{%
\begin{lateximage}*[C|]%
\musSymbolMeter{\symbol{82}}%
\end{lateximage}%
}
-\RenewDocumentCommand{\meterCThreeTwo}{}{%
+\LWR@formatted{meterCutC}
+
+\NewDocumentCommand{\LWR@HTML@meterCThreeTwo}{}{%
\begin{lateximage}*[C3/2]%
-\meterCplus{\musStack{3}{2}}%
+\meterCplus{\musStack{3 2}}%
\end{lateximage}%
}
-\RenewDocumentCommand{\musFlat} {}{\HTMLunicode{266D}}
-\RenewDocumentCommand{\musDoubleFlat} {}{\HTMLunicode{1D12B}}
-\RenewDocumentCommand{\musSharp} {}{\HTMLunicode{266F}}
-\RenewDocumentCommand{\musDoubleSharp}{}{\HTMLunicode{1D12A}}
-\RenewDocumentCommand{\musNatural} {}{\HTMLunicode{266E}}
-
-\RenewDocumentCommand{\musWhole}{}{\HTMLunicode{1D15D}}
-\RenewDocumentCommand{\musHalf}{}{\HTMLunicode{1D15E}}
-\RenewDocumentCommand{\musQuarter}{}{\HTMLunicode{1D15F}}
-\RenewDocumentCommand{\musEighth}{}{\HTMLunicode{1D160}}
-\RenewDocumentCommand{\musSixteenth}{}{\HTMLunicode{1D161}}
-
-\RenewDocumentCommand{\musWholeDotted}{}{\HTMLunicode{1D15D}\HTMLunicode{1D16D}}
-\RenewDocumentCommand{\musHalfDotted}{}{\HTMLunicode{1D15E}\HTMLunicode{1D16D}}
-\RenewDocumentCommand{\musQuarterDotted}{}{\HTMLunicode{1D15F}\HTMLunicode{1D16D}}
-\RenewDocumentCommand{\musEighthDotted}{}{\HTMLunicode{1D160}\HTMLunicode{1D16D}}
-\RenewDocumentCommand{\musSixteenthDotted}{}{\HTMLunicode{1D161}\HTMLunicode{1D16D}}
+\LWR@formatted{meterCThreeTwo}
+
+\NewDocumentCommand{\LWR@HTML@meterO}{}{\HTMLunicode{25EF}}
+
+\LWR@formatted{meterO}
+
+\newcommand{\LWR@null@noFig}[1][]{}%
+
+\NewDocumentCommand{\LWR@HTML@musFig}{ m }{%
+\begin{lateximage}*[%
+ {% ALT text for copy/paste
+ \LetLtxMacro\noFig\LWR@null@noFig%
+ \LetLtxMacro\musSharp\LWR@HTML@musSharp%
+ \LetLtxMacro\musDoubleSharp\LWR@HTML@musDoubleSharp%
+ \LetLtxMacro\musFlat\LWR@HTML@musFlat%
+ \LetLtxMacro\musDoubleFlat\LWR@HTML@musDoubleFlat%
+ \LetLtxMacro\musNatural\LWR@HTML@musNatural%
+ ({#1})% braces here because \noFig uses []
+ }%
+]%
+ \musStack[\musFigFont]{#1}%
+\end{lateximage}%
+}
+
+\LWR@formatted{musFig}
+
+\NewDocumentCommand{\LWR@HTML@musFlat} {}{\HTMLunicode{266D}}
+\NewDocumentCommand{\LWR@HTML@musDoubleFlat} {}{\HTMLunicode{1D12B}}
+\NewDocumentCommand{\LWR@HTML@musSharp} {}{\HTMLunicode{266F}}
+\NewDocumentCommand{\LWR@HTML@musDoubleSharp}{}{\HTMLunicode{1D12A}}
+\NewDocumentCommand{\LWR@HTML@musNatural} {}{\HTMLunicode{266E}}
+
+\LWR@formatted{musFlat}
+\LWR@formatted{musDoubleFlat}
+\LWR@formatted{musSharp}
+\LWR@formatted{musDoubleSharp}
+\LWR@formatted{musNatural}
+
+\NewDocumentCommand{\LWR@HTML@musWhole} {}{\HTMLunicode{1D15D}}
+\NewDocumentCommand{\LWR@HTML@musHalf} {}{\HTMLunicode{1D15E}}
+\NewDocumentCommand{\LWR@HTML@musQuarter} {}{\HTMLunicode{1D15F}}
+\NewDocumentCommand{\LWR@HTML@musEighth} {}{\HTMLunicode{1D160}}
+\NewDocumentCommand{\LWR@HTML@musSixteenth} {}{\HTMLunicode{1D161}}
+\NewDocumentCommand{\LWR@HTML@musThirtySecond} {}{\HTMLunicode{1D162}}
+\NewDocumentCommand{\LWR@HTML@musSixtyFourth} {}{\HTMLunicode{1D163}}
+
+\LWR@formatted{musWhole}
+\LWR@formatted{musHalf}
+\LWR@formatted{musQuarter}
+\LWR@formatted{musEighth}
+\LWR@formatted{musSixteenth}
+\LWR@formatted{musThirtySecond}
+\LWR@formatted{musSixtyFourth}
+
+\NewDocumentCommand{\LWR@HTML@musWholeDotted}{}
+ {\HTMLunicode{1D15D}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musHalfDotted}{}
+ {\HTMLunicode{1D15E}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musQuarterDotted}{}
+ {\HTMLunicode{1D15F}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musEighthDotted}{}
+ {\HTMLunicode{1D160}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musSixteenthDotted}{}
+ {\HTMLunicode{1D161}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musThirtySecondDotted}{}
+ {\HTMLunicode{1D162}\HTMLunicode{1D16D}}
+\NewDocumentCommand{\LWR@HTML@musSixtyFourthDotted}{}
+ {\HTMLunicode{1D163}\HTMLunicode{1D16D}}
+
+\LWR@formatted{musWholeDotted}
+\LWR@formatted{musHalfDotted}
+\LWR@formatted{musQuarterDotted}
+\LWR@formatted{musEighthDotted}
+\LWR@formatted{musSixteenthDotted}
+\LWR@formatted{musThirtySecondDotted}
+\LWR@formatted{musSixtyFourthDotted}
\endinput
%%
%% End of file `lwarp-musicography.sty'.