%% 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/27 v0.22 CountriesofEurope Font (hv,RN)]

\RequirePackage{ifxetex,ifluatex,xkeyval,graphicx}

\newcommand*\CountriesofEurope@scale{1}
\RequirePackage{xkeyval}
\DeclareOptionX{Scale}{\renewcommand*\CountriesofEurope@scale{#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}}
%
\def\setCoEkeys#1{\edef\x{\noexpand\setkeys{CoE}{#1}}\x}

\setCoEkeys{outline=false,Scale=1}

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

\if@CoE@newengine
    \def\set@Outline{\pdfextension literal direct { 1 Tr 0 w }\relax}
    \def\unset@Outline{\pdfextension literal direct { 0 Tr 0 w }\relax}
\else
    \def\set@Outline{\pdfliteral direct { 1 Tr 0 w }\relax}
    \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]
  \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
