summaryrefslogtreecommitdiff
path: root/fonts/countriesofeurope/latex/countriesofeurope.sty
blob: ca07f5b1efad6892f838339d06c31877c1e1264c (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
%% This is file `CountriesofEurope.sty',
%%
%% Copyright (C) 2016-
%% Rolf Niepraschk, Herbert Voss
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{countriesofeurope}%
  [2018/12/29 v0.23 countriesofeurope Font (hv,RN)]
\PassOptionsToPackage{rgb}{xcolor}
\RequirePackage{ifxetex,ifluatex,xkeyval,graphicx,xcolor}

\newcommand*\countriesofeurope@scale{1}
\newcommand*\countriesofeurope@ligatures{ResetAll}
\RequirePackage{xkeyval}
\DeclareOptionX{Scale}{\renewcommand*\countriesofeurope@scale{#1}}
\DeclareOptionX{Ligatures}{\renewcommand*\countriesofeurope@ligatures{#1}}
\ProcessOptionsX\relax

\newif\ifCoE@outline 

\def\CoE@boolkey#1#2{\csname CoE@#2\ifx\relax#1\relax true\else#1\fi\endcsname}

\define@key{CoE}{Scale}[1]{\def\CoE@Scale{#1}}
\define@key{CoE}{outline}[true]{\lowercase{\CoE@boolkey{#1}}{outline}}
\define@key{CoE}{fillcolor}[]{\def\CoE@fillcolor{#1}}
\define@key{CoE}{linecolor}[black]{\def\CoE@linecolor{#1}}
%
\def\setCoEkeys#1{\edef\x{\noexpand\setkeys{CoE}{#1}}\x}

\setCoEkeys{outline=false,Scale=1,fillcolor=,linecolor=black}

\def\getPDFsyntax#1,#2,#3\@nil#4{\gdef#4{#1 #2 #3}}
\def\getPDFcolor#1#2{\extractcolorspecs{#1}\Col@A\Col@B\relax
  \expandafter\getPDFsyntax\Col@B\@nil#2\relax
}

\newif\if@CoE@newengine \@CoE@newenginefalse 
\ifxetex\@CoE@newenginetrue
\else
  \ifluatex\@CoE@newenginetrue\fi
\fi

\if@CoE@newengine
  \def\set@Outline{%
    \ifx\CoE@fillcolor\@empty
      \pdfextension literal direct { 1 Tr 0 w }\relax
    \else
      \getPDFcolor{\CoE@linecolor}\CoE@pdf@linecolor
      \getPDFcolor{\CoE@fillcolor}\CoE@pdf@fillcolor
      \pdfextension literal direct{ \CoE@pdf@fillcolor\space rg \CoE@pdf@linecolor\space RG 2 Tr 0 w }\relax
    \fi}
  \def\unset@Outline{\pdfextension literal direct{ 0 Tr 0 w }\relax}%
\else
  \def\set@Outline{%
    \ifx\relax\CoE@fillcolor\relax
      \pdfliteral direct { 1 Tr 0 w }\relax
    \else
      \getPDFcolor{\CoE@linecolor}\CoE@pdf@linecolor
      \getPDFcolor{\CoE@fillcolor}\CoE@pdf@fillcolor
      \pdfliteral direct{ \CoE@pdf@fillcolor\space rg \CoE@pdf@linecolor\space RG 2 Tr 0 w }\relax
    \fi}%
  \def\unset@Outline{\pdfliteral direct{ 0 Tr 0 w }\relax}%
\fi

\newcommand\EUCountry[2][]{{%
  \expandafter\setCoEkeys\expandafter{#1}%
  \countriesofeuropefamily\scalebox{\CoE@Scale}{%
  \ifCoE@outline\set@Outline\fi%
  \csname#2\endcsname%
  \ifCoE@outline\unset@Outline\fi%
  }}}

\if@CoE@newengine
  \RequirePackage{fontspec}
  \newfontface\countriesofeuropefamily{countriesofeurope.otf}%
    [Scale=\countriesofeurope@scale,Ligatures=\countriesofeurope@ligatures]
  \let\CoEF\countriesofeuropefamily
  \DeclareTextCommand{\Albania}{TU}{\char"F8EC}% 63724
  \DeclareTextCommand{\Andorra}{TU}{\char"F8EB}
  \DeclareTextCommand{\Austria}{TU}{\char"F8EA}
  \DeclareTextCommand{\Belarus}{TU}{\char"F8E9}
  \DeclareTextCommand{\Belgium}{TU}{\char"F8E8}
  \DeclareTextCommand{\Bosnia}{TU}{\char"F8E7}
  \DeclareTextCommand{\Bulgaria}{TU}{\char"F8E6}
  \DeclareTextCommand{\Croatia}{TU}{\char"F8E5}
  \DeclareTextCommand{\Czechia}{TU}{\char"F8E4}
  \DeclareTextCommand{\Denmark}{TU}{\char"F8E3}
  \DeclareTextCommand{\Estonia}{TU}{\char"F8E2}
  \DeclareTextCommand{\Finland}{TU}{\char"F8E1}
  \DeclareTextCommand{\France}{TU}{\char"F8E0}
  \DeclareTextCommand{\Germany}{TU}{\char"F8DF}
  \DeclareTextCommand{\GreatBritain}{TU}{\char"F8DE}
  \DeclareTextCommand{\Greece}{TU}{\char"F8DD}
  \DeclareTextCommand{\Hungary}{TU}{\char"F8DC}
  \DeclareTextCommand{\Iceland}{TU}{\char"F8DB}
  \DeclareTextCommand{\Ireland}{TU}{\char"F8DA}
  \DeclareTextCommand{\Italy}{TU}{\char"F8D9}
  \DeclareTextCommand{\Latvia}{TU}{\char"F8D8}
  \DeclareTextCommand{\Liechtenstein}{TU}{\char"F8D7}
  \DeclareTextCommand{\Lithuania}{TU}{\char"F8D6}
  \DeclareTextCommand{\Luxembourg}{TU}{\char"F8D5}
  \DeclareTextCommand{\Macedonia}{TU}{\char"F8D4}
  \DeclareTextCommand{\Malta}{TU}{\char"F8D3}
  \DeclareTextCommand{\Moldova}{TU}{\char"F8D2}
  \DeclareTextCommand{\Montenegro}{TU}{\char"F8D1}
  \DeclareTextCommand{\Netherlands}{TU}{\char"F8D0}
  \DeclareTextCommand{\Norway}{TU}{\char"F8CF}
  \DeclareTextCommand{\Poland}{TU}{\char"F8CE}
  \DeclareTextCommand{\Portugal}{TU}{\char"F8CD}
  \DeclareTextCommand{\Romania}{TU}{\char"F8CC}
  \DeclareTextCommand{\Serbia}{TU}{\char"F8CB}
  \DeclareTextCommand{\Slovakia}{TU}{\char"F8CA}
  \DeclareTextCommand{\Slovenia}{TU}{\char"F8C9}
  \DeclareTextCommand{\Spain}{TU}{\char"F8C8}
  \DeclareTextCommand{\Sweden}{TU}{\char"F8C7}
  \DeclareTextCommand{\Switzerland}{TU}{\char"F8C6}% 63686
\else
\RequirePackage[T1]{fontenc}
\RequirePackage{textcomp}
  \DeclareFontFamily{U}{countriesofeurope}{}
  \DeclareFontShape{U}{countriesofeurope}{m}{n}{<->s*[\countriesofeurope@scale]countriesofeurope}{}
  \providecommand\countriesofeuropefamily{\usefont{U}{countriesofeurope}{m}{n}}
  \DeclareTextCommand{\Albania}{U}{\char128}
  \DeclareTextCommand{\Andorra}{U}{\char129}
  \DeclareTextCommand{\Austria}{U}{\char130}
  \DeclareTextCommand{\Belarus}{U}{\char131}
  \DeclareTextCommand{\Belgium}{U}{\char132}
  \DeclareTextCommand{\Bosnia}{U}{\char133}
  \DeclareTextCommand{\Bulgaria}{U}{\char134}
  \DeclareTextCommand{\Croatia}{U}{\char135}
  \DeclareTextCommand{\Czechia}{U}{\char136}
  \DeclareTextCommand{\Denmark}{U}{\char137}
  \DeclareTextCommand{\Estonia}{U}{\char138}
  \DeclareTextCommand{\Finland}{U}{\char139}
  \DeclareTextCommand{\France}{U}{\char140}
  \DeclareTextCommand{\Germany}{U}{\char141}
  \DeclareTextCommand{\GreatBritain}{U}{\char142}
  \DeclareTextCommand{\Greece}{U}{\char143}
  \DeclareTextCommand{\Hungary}{U}{\char144}
  \DeclareTextCommand{\Iceland}{U}{\char145}
  \DeclareTextCommand{\Ireland}{U}{\char146}
  \DeclareTextCommand{\Italy}{U}{\char147}
  \DeclareTextCommand{\Latvia}{U}{\char148}
  \DeclareTextCommand{\Liechtenstein}{U}{\char149}
  \DeclareTextCommand{\Lithuania}{U}{\char150}
  \DeclareTextCommand{\Luxembourg}{U}{\char151}
  \DeclareTextCommand{\Macedonia}{U}{\char152}
  \DeclareTextCommand{\Malta}{U}{\char153}
  \DeclareTextCommand{\Moldova}{U}{\char154}
  \DeclareTextCommand{\Montenegro}{U}{\char155}
  \DeclareTextCommand{\Netherlands}{U}{\char156}
  \DeclareTextCommand{\Norway}{U}{\char157}
  \DeclareTextCommand{\Poland}{U}{\char158}
  \DeclareTextCommand{\Portugal}{U}{\char159}
  \DeclareTextCommand{\Romania}{U}{\char160}
  \DeclareTextCommand{\Serbia}{U}{\char161}
  \DeclareTextCommand{\Slovakia}{U}{\char162}
  \DeclareTextCommand{\Slovenia}{U}{\char163}
  \DeclareTextCommand{\Spain}{U}{\char164}
  \DeclareTextCommand{\Sweden}{U}{\char165}
  \DeclareTextCommand{\Switzerland}{U}{\char166}
\fi
% otftotfm --encoding=countriesofeurope.enc --no-map countriesofeurope.otf countriesofeurope

\endinput


%80
  \Albania \Andorra \Austria \Belarus \Belgium \Bosnia \Bulgaria \Croatia
  \Czechia \Denmark \Estonia \Finland \France \Germania \GreatBritain \Greece
%90
  \Hungary \Iceland \Ireland \Italy \Latvia \Liechtenstein \Lithuania \Luxembourg
  \Macedonia \Malta \Moldova \Montenegro \Netherlands \Norway \Poland \Portugal
%A0
  \Romania \Serbia \Slovakia \Slovenia \Spain \Sweden \Switzerland