summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/polyglossia/gloss-coptic.ldf
blob: 8c4d9322fe889fc175b2e2b7faa6c342c6c87f05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
\ProvidesFile{gloss-coptic.ldf}[polyglossia: module for coptic]
\makeatletter

\ifx\l@coptic\@undefined%
   \xpg@nopatterns{Coptic}%
   \adddialect\l@coptic0%
\fi

%\def\captionscoptic{%
%   \def\refname{\textcoptic{<++>}}%
%   \def\abstractname{\textcoptic{<++>}}%
%   \def\bibname{\textcoptic{<++>}}%
%   \def\prefacename{\textcoptic{<++>}}%
%   \def\chaptername{\textcoptic{<++>}}%
%   \def\appendixname{\textcoptic{<++>}}%
%   \def\contentsname{\textcoptic{<++>}}%
%   \def\listfigurename{\textcoptic{<++>}}%
%   \def\listtablename{\textcoptic{<++>}}%
%   \def\indexname{\textcoptic{<++>}}%
%   \def\figurename{\textcoptic{<++>}}%
%   \def\tablename{\textcoptic{<++>}}%
%   \def\thepart{\textcoptic{}}%
%   \def\partname{\textcoptic{<++>}}%
%   \def\pagename{\textcoptic{<++>}}%
%   \def\seename{\textcoptic{<++>}}%
%   \def\alsoname{\textcoptic{<++>}}%
%   \def\enclname{\textcoptic{<++>}}%
%   \def\ccname{\textcoptic{<++>}}%
%   \def\headtoname{\textcoptic{<++>}}%
%   \def\proofname{\textcoptic{<++>}}%
%   \def\glossaryname{\textcoptic{<++>}}%
%   }
%\def\datecoptic{%
%   \def\today{\textcoptic{<++>}}%
%   }

\def\coptic@language{\protect\language=\l@coptic}

\def\coptic@font{%
\font\zf@basefont="\csname zf@family@fontdef\f@family\endcsname" at \f@size pt
\@ifundefined{copticfont}{%
        \zf@check@ot@script{copt}%
	\if@tempswa%
	  \addfontfeature{Script=Coptic}%
	  \zf@check@ot@lang{COP}%
	  \if@tempswa\addfontfeature{Language=Coptic}\fi%
	\else%
	  \PackageError{polyglossia}{^^J
	  The current font does not contain the Coptic script!^^J
	  Please define \string\copticfont\space with \string\newfontfamily}%
	\fi%
	}%
     {\copticfont}%
}

\def\selectnormalfontcoptic{%
   \let\normalfont=\coptic@font%
   \def\reset@font{\normalfont}}

\setlocalhyphenmins{coptic}{2}{2}

\endinput