diff options
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r-- | Master/texmf-dist/source/generic/babel-greek/Makefile | 104 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx | 35 |
2 files changed, 119 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/generic/babel-greek/Makefile b/Master/texmf-dist/source/generic/babel-greek/Makefile new file mode 100644 index 00000000000..af860da050d --- /dev/null +++ b/Master/texmf-dist/source/generic/babel-greek/Makefile @@ -0,0 +1,104 @@ +# This Makefile updates the source and documentation for the +# babel-greek LateX package +# +# © 2019 Günter Milde +# +# SRCDIR (and the other variables) can be easily modified as parameters +# while calling `make', e.g. +# +# make install SRCDIR=~/texmf/tex/latex/ + +# Global variables +# ================= + +# for installation into a users local texmf tree +DESTDIR = ~/texmf/tex/latex/greek/babel-greek +DOCDIR = ~/texmf/doc/latex/greek/babel-greek + +CHDIR = cd +COPY = cp -u +SH = sh + +# programs +PYLIT = pylit # text <-> source converter for literal programming +RST2HTML = rst2html5 # text -> HTML converter, see docutils.sf.net +RUBBER = rubber -f # wrapper around `latex`, run until references resolved +LATEX = pdflatex -interaction batchmode # suppress logging to terminal + +# LaTeX source files +# ================== + +.PHONY: all + +all: greek.ldf athnum.sty grmath.sty + +greek.ldf: babel-greek.dtx + tex babel-greek.ins + +athnum.sty: athnum.dtx + tex babel-greek.ins + +grmath.sty: athnum.dtx + tex babel-greek.ins + +# Documentation +# ============= + +.PHONY: doc html pdf + +doc: html pdf + +html: README.html + +README.html: README + $(RST2HTML) README README.html + + +pdf: babel-greek.pdf athnum.pdf grmath.pdf usage.pdf\ + test-greek.pdf test-unicode-greek.pdf test-unicode-lgr.pdf + +babel-greek.pdf: babel-greek.dtx + $(RUBBER) --pdf babel-greek.dtx + +athnum.pdf: athnum.dtx + $(RUBBER) --pdf athnum.dtx + +grmath.pdf: grmath.dtx + $(RUBBER) --pdf grmath.dtx + +usage.pdf: usage.tex greek.ldf + $(RUBBER) --pdf usage.tex + +test-greek.pdf: test-greek.tex greek.ldf + $(RUBBER) --pdf test-greek.tex + +test-unicode-greek.pdf: test-unicode-greek.tex greek.ldf + $(RUBBER) -m xelatex test-unicode-greek.tex + +test-unicode-lgr.pdf: test-unicode-lgr.tex greek.ldf + $(RUBBER) -m xelatex test-unicode-lgr.tex + + +# Installation +# ============= + +install: all + $(COPY) *.ldf $(DESTDIR) + #$(COPY) *.sty $(DESTDIR) + +install-doc: doc + $(COPY) README $(DOCDIR) + $(COPY) *.html $(DOCDIR) + $(COPY) *.dtx $(DOCDIR) + $(COPY) *.ins $(DOCDIR) + $(COPY) *.tex $(DOCDIR) + $(COPY) *.pdf $(DOCDIR) + $(COPY) Makefile $(DOCDIR) + +# Cleanup +# ======= + +.PHONY: clean + +clean: + rm -f *.aux *.log *.toc *~ diff --git a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx index 677eb4d4802..38d9a23d508 100644 --- a/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx +++ b/Master/texmf-dist/source/generic/babel-greek/babel-greek.dtx @@ -26,7 +26,7 @@ % and covered by LPPL is defined by the unpacking script (babel-greek.ins) % which is part of the package. % \fi -% \CheckSum{1552} +% \CheckSum{1543} % % \iffalse % Tell the \LaTeX\ system who we are and write an entry on the @@ -37,7 +37,7 @@ %<code>\ProvidesLanguage{greek} %\fi %\ProvidesFile{babel-greek.dtx} - [2016/09/07 v1.9h Greek support for the babel system] + [2020/02/27 v1.9i Greek support for the babel system] %\iffalse %% File `babel-greek.dtx' %% Greek language Definition File @@ -125,6 +125,8 @@ % and fixed latinencoding.} % \changes{babel-greek-1.9h}{2019/07/11}{Move breathing composite commands % to textalpha.} +% \changes{babel-greek-1.9i}{2020/02/28}{Update test for Unicode fonts. +% Fix accent in seename and alsoname.} % % \title{Babel support for the Greek language} % \author{Apostolos Syropoulos, Günter Milde} @@ -463,29 +465,21 @@ % \changes{greek-1.8}{2013/11/30}{Check for EU1/EU2 font encoding % instead of engine} % \changes{babel-greek-1.9f}{2016/02/04}{Check also for TU font encoding.} +% \changes{babel-greek-1.9i}{2020/02/27}{Update check for Unicode fonts.} % % \DescribeMacro\greekfontencoding % We test for available font encodings and set |\greekfontencoding| % and the internal macro |\bbl@greek@fontencdef| with the name of the % font definition file with Greek LICR macros. The fallback is LGR. % \begin{macrocode} -\@ifl@aded{def}{tuenc}{ - \providecommand*{\greekfontencoding}{TU} +\ifdefined \UTFencname % set by "fontspec.sty" + \providecommand*{\greekfontencoding}{\UTFencname} % TU, EU1, or EU2 \providecommand*{\bbl@greek@fontencdef}{greek-euenc} - \renewcommand*{\LastDeclaredEncoding}{TU} -}{} -\@ifl@aded{def}{eu1enc}{ - \providecommand*{\greekfontencoding}{EU1} - \providecommand*{\bbl@greek@fontencdef}{greek-euenc} - \renewcommand*{\LastDeclaredEncoding}{EU1} -}{} -\@ifl@aded{def}{eu2enc}{ - \providecommand*{\greekfontencoding}{EU2} - \providecommand*{\bbl@greek@fontencdef}{greek-euenc} - \renewcommand{\LastDeclaredEncoding}{EU2} -}{} -\providecommand*{\greekfontencoding}{LGR} -\providecommand*{\bbl@greek@fontencdef}{lgrenc} + \renewcommand*{\LastDeclaredEncoding}{\UTFencname} +\else + \providecommand*{\greekfontencoding}{LGR} + \providecommand*{\bbl@greek@fontencdef}{lgrenc} +\fi % \end{macrocode} % Ensure that the Greek LICR macros are available: % \begin{macrocode} @@ -647,6 +641,7 @@ % \changes{greek-1.3h}{2000/09/20}{Added \cs{glossaryname}} % \changes{greek-1.3i}{2000/10/02}{The final sigma in all names appears % as `s' instead of `c'.} +% \changes{babel-greek-1.9i}{2020/02/27}{Fix accent in seename and alsoname.} % \begin{macrocode} \addto\captionsgreek{% \def\prefacename{\textPi\textrho\acctonos\textomicron\textlambda @@ -765,8 +760,8 @@ \textomicron\acctonos\textiota\texteta\textsigma\textiota\textvarsigma}% \def\headtoname{\textPi\textrho\accvaria\textomicron\textvarsigma}% \def\pagename{\textSigma\textepsilon\textlambda\accvaria\textiota\textvarsigma}% - \def\seename{\accdasiavaria\textomicron\textrho\textalpha}% - \def\alsoname{\accdasiavaria\textomicron\textrho\textalpha{} \accdasia\textomega\textsigma + \def\seename{\accdasiaoxia\textomicron\textrho\textalpha}% + \def\alsoname{\accdasiaoxia\textomicron\textrho\textalpha{} \accdasia\textomega\textsigma \textalpha\acctonos\textupsilon\texttau\textomega\textvarsigma}% \def\proofname{\accpsili\textAlpha\textpi\acctonos\textomicron\textdelta\textepsilon \textiota\textxi\textiota\textvarsigma}% |