summaryrefslogtreecommitdiff
path: root/fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx')
-rw-r--r--fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx67
1 files changed, 67 insertions, 0 deletions
diff --git a/fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx b/fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx
new file mode 100644
index 0000000000..b954dac16d
--- /dev/null
+++ b/fonts/utilities/fontinst-contrib/grkfinst/inputs/greeketx/lgrc.etx
@@ -0,0 +1,67 @@
+%% This file is part of the GRKFINST project version 0.3.1
+%% -------------------------------------------------------
+%%
+%% It may be distributed under the terms of the LaTeX Project Public
+%% License, as described in lppl.txt in the base LaTeX distribution.
+%% Either version 1.0 or, at your option, any later version.
+%% Copyright (C) 2001--2004 by Alexej Kryukov
+%% Please report errors to: A.M. Kryukov <basileia@yandex.ru>
+
+\relax
+% lgrc.etx -- install a LGR-encoded faked small-caps font
+%
+% This is used exclusively to install faked small-caps fonts;
+% real small caps fonts are installed using the default lgr.etx.
+
+\encoding
+
+% We define the parameters for lgr.etx to produce a c&sc font.
+
+\needsfontinstversion{1.926}
+
+\comment{\section{Default values}}
+
+\setstr{codingscheme}{GREEK FONT ENCODING - LGR}
+
+\setcommand\lc#1#2{#1small}
+\setcommand\uc#1#2{#1}
+\setcommand\lctop#1#2{#1small}
+\setcommand\uctop#1#2{#1}
+\setcommand\lclig#1#2{#1small}
+\setcommand\uclig#1#2{#1spaced}
+\setcommand\digit#1{#1}
+
+% added for typesetting Greek
+\setcommand\capsubscript#1#2{#1}
+\setcommand\lowsubscript#1#2{#1small}
+\setcommand\greekaccent#1#2{#1}
+\setcommand\capcomb#1#2{#1}
+
+\setint{smallcapsscale}{800}
+
+\ifisglyph{space}\then
+ \setint{interword}{\width{space}}
+\else\ifisglyph{i}\then
+ \setint{interword}{\width{i}}
+\else
+ \setint{interword}{333}
+\fi\fi
+
+\ifisint{monowidth}\then
+ \setint{smallcapsextraspace}
+ {\div{\scale{\int{interword}}{\sub{1000}{\int{smallcapsscale}}}}{2}}
+ \setint{smallcapsspacing}{0}
+\else
+ \setint{smallcapsextraspace}{50}
+ \setint{smallcapsspacing}{50}
+\fi
+
+\ifisint{capspacing}\then
+ \setint{letterspacing}{\int{capspacing}}
+\fi
+
+% Then we call lgr.etx.
+
+\inputetx{lgr}
+
+\endencoding