diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-05 20:10:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-05 20:10:46 +0000 |
commit | 80f1150ee5061f1a97d7f36a3ad5b26244c75d1e (patch) | |
tree | b5a0b87f15beb0e438d0779e2e8fde15c295e4cb /Master/texmf-dist/source | |
parent | 29dd85189805a04fd0dd4a04f6c3e90580e0339a (diff) |
xgreek (5sep22)
git-svn-id: svn://tug.org/texlive/trunk@64300 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/xgreek/xgreek.dtx (renamed from Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx) | 94 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/xgreek/xgreek.ins (renamed from Master/texmf-dist/source/xelatex/xgreek/xgreek.ins) | 7 |
2 files changed, 58 insertions, 43 deletions
diff --git a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx b/Master/texmf-dist/source/latex/xgreek/xgreek.dtx index 864345aa821..6ab153c623d 100644 --- a/Master/texmf-dist/source/xelatex/xgreek/xgreek.dtx +++ b/Master/texmf-dist/source/latex/xgreek/xgreek.dtx @@ -29,12 +29,14 @@ % Apostolos Syropoulos (asyropoulos@yahoo.com) % %\fi -% \CheckSum{1929} +% \CheckSum{1930} % \iffalse This is a Metacommentxel % %<xgreek, >\ProvidesFile{xgreek.sty} +%<xelistings, >\ProvidesFile{xelistings} % -%<xgreek, > [2022/08/28 v3.1.0 Package `xgreek.sty'] +%<xgreek, > [2022/09/04 v3.2.0 Package `xgreek.sty'] +%<xelistings, > [2022/09/04 v1.0 Package `xelistings.sty'] % % \begin{macrocode} %<*driver> @@ -57,7 +59,7 @@ %\author{Apostolos Syropoulos\\ % Xanthi, Greece\\ % \texttt{asyropoulos@yahoo.com}} -% \date{2009/11/23\\ Last Updated 2022/08/22} +% \date{2009/11/23\\ Last Updated 2022/09/04} %\maketitle % \begin{abstract} % The \textsf{xgreek} package provides rudimentary support for Greek language @@ -74,7 +76,7 @@ % % Support for Lua\LaTeX\ was provided by Javier Bezos. % -% \section{The Source Code} +% \section{The Source Code of \textsf{xgreek}} % According to the Unicode standard %\begin{center} %|http://www.unicode.org/Public/UNIDATA/UnicodeData.txt| @@ -578,53 +580,27 @@ % \end{macrocode} % Package \textsf{listings} does not work properly with UTF-8 encoded files. So this % option should be used whenever one wants to use this package and see Greek text come out -% correctly. +% correctly. In versaion 3.1.0 of this package, I had included the code that modifies +% package \textsf{listings} in the source code of this package. However, this decision +% was wrong since when one does not use the \texttt{listings} option, processing of the +% input file stops with an error message about a text line that contains an invalid character. +% So the best way to solve this problem is to move the code in a different file and load it +% when the user has specified \texttt{listings} option. To enable this option, I use a boolean +% variable. % \begin{macrocode} \newif\if@mylistings \@mylistingsfalse -\DeclareOption{listings}{% - \@mylistingstrue -} +\DeclareOption{listings}{\@mylistingstrue} % \end{macrocode} % By default the |monogreek| option is activated. % \begin{macrocode} \ExecuteOptions{monogreek} \ProcessOptions % \end{macrocode} -% If the user has enabled the |listings| option, then it loads the package \textsf{listings} -% and makes a few changes to it. In particular, it redefines the command |\lst@DefEC| and the new -% comamnd makes all characters in the range 128--255 plus the Greek letters to be treated as letters. +% If the user has enabled the |listings| option, then it loads the package \textsf{xelistings} % \begin{macrocode} \if@mylistings -\RequirePackage{listings} -\lstset{inputencoding=utf8} -\lst@InputCatcodes -\gdef\lst@DefEC{% - \lst@CCECUse \lst@ProcessLetter - ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% - ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% - ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% - ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% - ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% - ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% - ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% - ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% - ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters - ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% - ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% - ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% - ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% - ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% - ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% - ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% - ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% - ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% - ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% - ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% - ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% - ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters - ^^00}% -\lst@RestoreCatcodes +\RequirePackage{xelistings} \fi % \end{macrocode} % Now I am going to define the macros that typeset alphabetic Greek numerals. The code @@ -1011,5 +987,43 @@ \expandafter\Greeknumeral\expandafter{\the\year}} %</xgreek> % \end{macrocode} +% \section{The Source Code of \textsf{xelistings}} % +% If the user has enabled the |listings| option, then the package loads the rudimentary package +% \textsf{xelistings}. This package loads the \textsf{listings} package and makes accessible to +% it all characters in the range 128--255 plus all Greek letters that belong to the +% Greek and Coptic Unicode block. This is achieved by redefining the command |\lst@DefEC|. +% \begin{macrocode} +%<*xelistings> +\RequirePackage{listings} +\lstset{inputencoding=utf8} +\lst@InputCatcodes +\gdef\lst@DefEC{% + \lst@CCECUse \lst@ProcessLetter + ^^80^^81^^82^^83^^84^^85^^86^^87^^88^^89^^8a^^8b^^8c^^8d^^8e^^8f% + ^^90^^91^^92^^93^^94^^95^^96^^97^^98^^99^^9a^^9b^^9c^^9d^^9e^^9f% + ^^a0^^a1^^a2^^a3^^a4^^a5^^a6^^a7^^a8^^a9^^aa^^ab^^ac^^ad^^ae^^af% + ^^b0^^b1^^b2^^b3^^b4^^b5^^b6^^b7^^b8^^b9^^ba^^bb^^bc^^bd^^be^^bf% + ^^c0^^c1^^c2^^c3^^c4^^c5^^c6^^c7^^c8^^c9^^ca^^cb^^cc^^cd^^ce^^cf% + ^^d0^^d1^^d2^^d3^^d4^^d5^^d6^^d7^^d8^^d9^^da^^db^^dc^^dd^^de^^df% + ^^e0^^e1^^e2^^e3^^e4^^e5^^e6^^e7^^e8^^e9^^ea^^eb^^ec^^ed^^ee^^ef% + ^^f0^^f1^^f2^^f3^^f4^^f5^^f6^^f7^^f8^^f9^^fa^^fb^^fc^^fd^^fe^^ff% + ^^^^0396^^^^0388^^^^0389^^^^038a^^^^038c% <--- Begin of Greek Letters + ^^^^038e^^^^038f^^^^0390^^^^0391^^^^0392% + ^^^^0393^^^^0394^^^^0395^^^^0396^^^^0397% + ^^^^0398^^^^0399^^^^039a^^^^039b^^^^039c% + ^^^^039d^^^^039e^^^^039f^^^^03a0^^^^03a1% + ^^^^03a3^^^^03a4^^^^03a5^^^^03a6^^^^03a7% + ^^^^03a8^^^^03a9^^^^03aa^^^^03ab^^^^03ac% + ^^^^03ad^^^^03ae^^^^03af^^^^03b0^^^^03b1% + ^^^^03b2^^^^03b3^^^^03b4^^^^03b5^^^^03b6% + ^^^^03b7^^^^03b8^^^^03b9^^^^03ba^^^^03bb% + ^^^^03bc^^^^03bd^^^^03be^^^^03bf^^^^03c0% + ^^^^03c1^^^^03c2^^^^03c3^^^^03c4^^^^03c5% + ^^^^03c6^^^^03c7^^^^03c8^^^^03c9^^^^03ca% + ^^^^03cb^^^^03cc^^^^03cd^^^^03ce% <--- End of Greek Letters + ^^00}% +\lst@RestoreCatcodes +%</xelistings> +% \end{macrocode} % \Finale diff --git a/Master/texmf-dist/source/xelatex/xgreek/xgreek.ins b/Master/texmf-dist/source/latex/xgreek/xgreek.ins index b744ebff6c7..b54cbd524ec 100644 --- a/Master/texmf-dist/source/xelatex/xgreek/xgreek.ins +++ b/Master/texmf-dist/source/latex/xgreek/xgreek.ins @@ -3,7 +3,7 @@ %% This file is part of the `xgreek' package. %% You are not allowed to modify its contents. %% -\def\filedate{2022/08/28} +\def\filedate{2022/09/04} \def\batchfile{xgreek.ins} \input docstrip.tex @@ -41,12 +41,13 @@ \keepsilent -\generate{\generateFile{xgreek.sty}{f}{\from{xgreek.dtx}{xgreek}}} +\generate{\generateFile{xgreek.sty}{f}{\from{xgreek.dtx}{xgreek}} +\generateFile{xelistings.sty}{f}{\from{xgreek.dtx}{xelistings}}} \postamble \endpostamble \Msg{**********************************************************} \Msg{* To finish installation you have to copy} -\Msg{* the generated .sty file in the appropriate} +\Msg{* the generated .sty files in the appropriate} \Msg{* directory and then to rehash your TeX system} \Msg{* Happy Greek Xe/LuaTeXing!} \Msg{**********************************************************} |