%%
%% This is file `electrum.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% electrumadf.dtx  (with options: `sty')
%% Copyright (C) 2010-2024 Clea F. Rees.
%% 
%% This work 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
%%   https://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008-05-04 or later.
%% 
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Clea F. Rees.
%% 
%% This file may only be distributed together with a copy of the package
%% electrumadf. You may however distribute the package electrumadf without
%% such generated files.
%% 
%% This work consists of all files listed in manifest.txt.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ateb Heiko Oberdiek: https://tex.stackexchange.com/a/172896/
%% dyw hwn ddim yn gweithio tu mewn i arg macro!
%% (*wrth gwrs* dyw e ddim yn weithio! wyt ti'n *hollol* dwp?)
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{svn-prov}
\ProvidesPackageSVN[electrum.sty]{$Id: electrumadf.dtx 10402 2024-09-27 02:35:48Z cfrees $}[v1.1 \revinfo]
\DefineFileInfoSVN[electrum]
\RequirePackage[T1]{fontenc}
\RequirePackage{nfssext-cfr}[2024/01/01]
\IfFormatAtLeastTF {2020-02-02}{%
  \DeclareEncodingSubset{TS1}{yes}{1}%
  \DeclareEncodingSubset{TS1}{yesj}{1}%
  \DeclareEncodingSubset{TS1}{yesw}{1}%
  \DeclareEncodingSubset{TS1}{yesjw}{1}%
  \DeclareEncodingSubset{TS1}{yes0}{1}%
  \DeclareEncodingSubset{TS1}{yes1}{1}%
}{%
  \RequirePackage{textcomp}}
\UndeclareTextCommand{\textperthousand}{T1}
\ExplSyntaxOn
\keys_define:nn { electrum }
{
  lig .bool_set:N = \g__electrum_lig_bool,
  lig .default:n = true,
  lig .initial:n = false,
  lf .bool_set_inverse:N = \g__electrum_osf_bool,
  lf .default:n = true,
  osf .bool_set:N = \g__electrum_osf_bool,
  osf .default:n = true,
  osf .initial:n = true,
  scale .tl_set:N = \yes@scale,
  scale .initial:V = \@empty,
}
\ProcessKeyOptions[electrum]
\tl_new:N \g__electrum_rm_tl
\tl_gset:Nn \g__electrum_rm_tl {yes}
\bool_if:NT \g__electrum_osf_bool
{
  \tl_gput_right:Nn \g__electrum_rm_tl {j}
}
\bool_if:NT \g__electrum_lig_bool
{
  \tl_gput_right:Nn \g__electrum_rm_tl {w}
}
\renewcommand{\rmdefault}{\g__electrum_rm_tl}
\cs_if_exist:NF \infstyle
{
  \hook_gput_code:nnn { begindocument } { . }
  {
    \PackageWarning{electrum}
    {electrum ~ requires ~ updated ~ nfssext-cfr ~ for ~ compatibility ~ with ~ hyperref}
    \@ifpackageloaded{hyperref}{
      \hook_gput_code:nnn { cmd/textin/before } { . }
      {
        \PackageWarning{electrum}{Note ~ that ~ '\protect\textin' ~ is ~ defined ~ by ~ hyperref.\MessageBreak
          Use ~ for ~ inferior ~ digits ~ will ~ yield ~ an\MessageBreak
          undefined ~ command ~ error ~ with ~ document ~ font ~ encodings.\MessageBreak
          Use ~ '\protect\textinf' ~ to ~ access ~ inferior ~ digits}
      }
      \let\infstyle\instyle
      \DeclareTextFontCommand{\textinf}{\infstyle}
    }{}
  }
}
\ExplSyntaxOff
%% paid â chynnwys \endinput - docstrip yn chwilio amddo fe yn arbennigol
%% & bydd doctrip yn ei ychwanegu fe beth bynnag
%% (Martin Scharrer: https://tex.stackexchange.com/a/28997/)
%% end electrum.sty
\endinput
%%
%% End of file `electrum.sty'.
