summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/csplain
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/csplain')
-rw-r--r--Master/texmf-dist/tex/csplain/opmac/opmac.tex30
1 files changed, 16 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/csplain/opmac/opmac.tex b/Master/texmf-dist/tex/csplain/opmac/opmac.tex
index d414231cf31..be09d128e29 100644
--- a/Master/texmf-dist/tex/csplain/opmac/opmac.tex
+++ b/Master/texmf-dist/tex/csplain/opmac/opmac.tex
@@ -5,7 +5,7 @@
%% The history of versions is at the end of this file, after \endpinput
\ifx\OPmacversion\undefined \else \endinput \fi
-\def\OPmacversion{Apr. 2014c}
+\def\OPmacversion{May 2014}
\immediate\write16{This is OPmac (Olsak's Plain macros), version <\OPmacversion>}
@@ -972,21 +972,22 @@
\fi
\def\url#1{{\def\tmpb{#1}%
- \replacestrings{//}{\urlskip\urlslashslash\urlbskip}%
- \replacestrings{/}{\urlskip/\urlbskip}%
- \replacestrings{.}{\urlskip.\urlbskip}%
- \replacestrings{?}{\urlskip?\urlbskip}%
- \replacestrings{=}{\urlskip=\urlbskip}%
- \replacestrings{~}{\char`\~ }%
- \replacestrings{_}{\char`\_ }%
- \replacestrings{^}{\char`\^ }%
+ \replacestrings{//}{{\urlskip\urlslashslash\urlbskip}}%
+ \replacestrings{/}{{\urlskip/\urlbskip}}%
+ \replacestrings{.}{{\urlskip.\urlbskip}}%
+ \replacestrings{?}{{\urlskip?\urlbskip}}%
+ \replacestrings{=}{{\urlskip=\urlbskip}}%
+ \replacestrings{~}{{\char`\~}}%
+ \replacestrings{_}{{\char`\_}}%
+ \replacestrings{^}{{\char`\^}}%
\replacestrings{\\}{\bslash}%
- \replacestrings{\{}{\char`\{ }%
- \replacestrings{\}}{\char`\} }%
- \replacestrings{&}{\urlbskip\char`\& \urlskip}%
- \ulink[#1]{\urlfont\tmpb}%
+ \replacestrings{\{}{{\char`\{}}%
+ \replacestrings{\}}{{\char`\}}}%
+ \replacestrings{&}{{\urlbskip\char`\& \urlskip}}%
+ \def\|{}\ulink[#1]{\urlfont\tmpb}%
}}
-\def\urlfont{\tt}
+\def\urlfont{\tt \hyphenchar\the\font=-1 \let\|=\urlspecchar}
+\def\urlspecchar{\penalty10 }
\def\urlskip{\null\nobreak\hskip0pt plus0.05em\relax}
\def\urlbskip{\penalty100 \hskip0pt plus0.05em\relax}
\def\urlslashslash{/\urlskip/}
@@ -1724,5 +1725,6 @@ Apr. 2014 \nonumcitations, \ecite, \printbib, \lastbibnum introduced
\fnotehook introduced
Apr. 2014b \nocite[*] bug removed, \insertmark corrected
Apr. 2014c nowarn about old csplain if csplain isn't used
+May 2014 \hyphenchar\urlfont=-1, \urlspecchar introduced
%%%%%%%%%%%%%% End of opmac.tex