% This file:
%   http://angg.twu.net/LATEX/edrx20chars.tex.html
%   http://angg.twu.net/LATEX/edrx20chars.tex
%           (find-angg "LATEX/edrx20chars.tex")
% Author: Eduardo Ochs <eduardoochs@gmail.com>

% This file works as both
%   (find-LATEX "edrxaccents.tex")
%   (find-LATEX "edrxchars.tex")
% but it should work both in lualatex and in pdflatex.
% EXPERIMENTAL.
% Version: 2020jun30

% Use it like this:
%   %\input edrxaccents.tex           % (find-LATEX "edrxaccents.tex")
%   %\input edrxchars.tex             % (find-LATEX "edrxchars.tex")
%   \input edrx20chars.tex            % (find-LATEX "edrxchars.tex")
% Note that this file replaces both edrxaccents and edrxchars.

%\usepackage{mynewunicodechar}   % (find-LATEX "mynewunicodechar.sty")

\makeatletter
\ifluatex
  \usepackage{mynewunicodechar}   % (find-LATEX "mynewunicodechar.sty")
\else
  \def\defunicodechar#1#2{\@namedef{u8:\detokenize{#1}}{#2}}
\fi
\makeatother

% (push-mark (point-max))
% (fooi-re "\\\\catcode`\\(.\\)=13 \\\\def.{\\([^\n]*\\)}\n" "\\\\defunicodechar{\\1}{\\2}\n")

\ifluatex

\defunicodechar{á}{\'a}
\defunicodechar{é}{\'e}
\defunicodechar{í}{\'\i}
\defunicodechar{ó}{\'o}
\defunicodechar{ú}{\'u}
\defunicodechar{Á}{\'A}
\defunicodechar{É}{\'E}
\defunicodechar{Í}{\'I}
\defunicodechar{Ó}{\'O}
\defunicodechar{Ú}{\'U}

\defunicodechar{à}{\`a}
\defunicodechar{è}{\`e}
\defunicodechar{ì}{\`\i}
\defunicodechar{ò}{\`o}
\defunicodechar{ù}{\`u}
\defunicodechar{À}{\`A}
\defunicodechar{È}{\`E}
\defunicodechar{Ì}{\`\I}
\defunicodechar{Ò}{\`O}
\defunicodechar{Ù}{\`U}

\defunicodechar{â}{\^a}
\defunicodechar{ê}{\^e}
\defunicodechar{î}{\^\i}
\defunicodechar{ô}{\^o}
\defunicodechar{û}{\^u}
\defunicodechar{Â}{\^A}
\defunicodechar{Ê}{\^E}
\defunicodechar{Î}{\^\I}
\defunicodechar{Ô}{\^O}
\defunicodechar{Û}{\^U}

\defunicodechar{ã}{\~a}
\defunicodechar{õ}{\~o}
\defunicodechar{Ã}{\~A}
\defunicodechar{Õ}{\~O}

\defunicodechar{ç}{\c c}
\defunicodechar{Ç}{\c C}




\defunicodechar{°}{^\circ}
\defunicodechar{¹}{^{-1}}
\defunicodechar{²}{^2}
\defunicodechar{³}{^3}
%\defunicodechar{¼}{}
%\defunicodechar{½}{}
%\defunicodechar{¾}{}
\defunicodechar{±}{\pm}
\defunicodechar{÷}{\div}
\defunicodechar{·}{\cdot}
\defunicodechar{×}{\times}
\defunicodechar{¬}{\neg}
\defunicodechar{§}{\S}
\defunicodechar{¡}{\text{\textexclamdown}}

\defunicodechar{Δ}{\Delta}
\defunicodechar{Γ}{\Gamma}
\defunicodechar{Θ}{\Theta}
\defunicodechar{Π}{\Pi}
\defunicodechar{Λ}{\Lambda}
\defunicodechar{Σ}{\Sigma}
\defunicodechar{Φ}{\Phi}
\defunicodechar{Ψ}{\Psi}
\defunicodechar{Ω}{\Omega}

\defunicodechar{α}{\alpha}
\defunicodechar{β}{\beta}
\defunicodechar{γ}{\gamma}
\defunicodechar{δ}{\delta}
\defunicodechar{ε}{\epsilon}
\defunicodechar{ζ}{\zeta}
\defunicodechar{η}{\eta}
\defunicodechar{θ}{\theta}
\defunicodechar{ι}{\iota}
\defunicodechar{κ}{\kappa}
\defunicodechar{λ}{\lambda}
\defunicodechar{μ}{\mu}
\defunicodechar{ν}{\nu}
\defunicodechar{ξ}{\xi}
\defunicodechar{π}{\pi}
\defunicodechar{ρ}{\rho}
\defunicodechar{σ}{\sigma}
\defunicodechar{τ}{\tau}
\defunicodechar{φ}{\phi}
\defunicodechar{ϕ}{\origphi}
\defunicodechar{χ}{\chi}
\defunicodechar{ψ}{\psi}
\defunicodechar{ω}{\omega}

\defunicodechar{•}{\bullet}
\defunicodechar{⅋}{\bindnasrepma}
\defunicodechar{←}{\ot}
\defunicodechar{↑}{\upto}
\defunicodechar{→}{\to}
\defunicodechar{↓}{\dnto}
\defunicodechar{↔}{\bij}
\defunicodechar{↕}{\updownarrow}
\defunicodechar{↖}{\nwarrow}
\defunicodechar{↗}{\nearrow}
\defunicodechar{↘}{\searrow}
\defunicodechar{↙}{\swarrow}
\defunicodechar{↣}{\epito}
\defunicodechar{↣}{\twoheadrightarrow}
\defunicodechar{↤}{\mapsfrom}
\defunicodechar{↦}{\mapsto}
\defunicodechar{⇐}{\Leftarrow}
\defunicodechar{⇒}{\funto}
\defunicodechar{∀}{\forall}
\defunicodechar{∂}{\partial}
\defunicodechar{∃}{\exists}
\defunicodechar{∅}{\emptyset}
\defunicodechar{∇}{\nabla}
\defunicodechar{∈}{\in}
\defunicodechar{∖}{\backslash}
\defunicodechar{∘}{\circ}
\defunicodechar{√}{\sqrt}
\defunicodechar{∞}{\infty}
\defunicodechar{∧}{\land}
\defunicodechar{∨}{\lor}
\defunicodechar{∩}{\cap}
\defunicodechar{∩}{\cap}
\defunicodechar{∪}{\cup}
\defunicodechar{≃}{\simeq}
\defunicodechar{≅}{\cong}
\defunicodechar{≠}{\neq}
\defunicodechar{≤}{\le}
\defunicodechar{≥}{\ge}
\defunicodechar{⊂}{\subset}
\defunicodechar{⊃}{\supset}
\defunicodechar{⊆}{\subseteq}
\defunicodechar{⊇}{\supseteq}
\defunicodechar{⊓}{\sqcap}
\defunicodechar{⊔}{\sqcup}
\defunicodechar{⊢}{\vdash}
\defunicodechar{⊨}{\vDash}
\defunicodechar{⊣}{\dashv}
\defunicodechar{⊤}{\top}
\defunicodechar{⊥}{\bot}
\defunicodechar{⋀}{\bigwedge}
\defunicodechar{⋁}{\bigvee}
\defunicodechar{⋂}{\bigcap}
\defunicodechar{⋃}{\bigcup}
\defunicodechar{♭}{\flat}
\defunicodechar{♮}{\natural}
\defunicodechar{♯}{\sharp}
\defunicodechar{⟦}{\llbracket}
\defunicodechar{⟧}{\rrbracket}
\defunicodechar{⠆}{{:}}

\defunicodechar{∼}{\sim}
\defunicodechar{≈}{\approx}
\defunicodechar{≡}{\equiv}

\defunicodechar{⋄}{\lozenge}
\defunicodechar{⋅}{\Box}
\defunicodechar{◻}{\Box}
\defunicodechar{□}{\Box}
\defunicodechar{…}{\ldots}
\defunicodechar{∫}{\int}
\defunicodechar{⇀}{\rightharpoonup}
\defunicodechar{〈}{\langle}
\defunicodechar{〉}{\rangle}
\defunicodechar{⊙}{\odot}
\defunicodechar{⊖}{\ominus}
\defunicodechar{⊕}{\oplus}
\defunicodechar{⊘}{\oslash}
\defunicodechar{⊗}{\otimes}
\defunicodechar{▁}{\_}

\defunicodechar{𝐛}{\mathbf}
\defunicodechar{𝐢}{\textsl}
\defunicodechar{𝐫}{\mathrm}
\defunicodechar{𝐭}{\text}
\defunicodechar{𝐬}{\mathsf}

\else

%\input 2019oxford-chars.tex   % (find-LATEX "2019oxford-chars.tex")
\usepackage[utf8]{inputenc}

\DeclareUnicodeCharacter{00B0}{^\circ}             
\DeclareUnicodeCharacter{00B9}{^{-1}}              
\DeclareUnicodeCharacter{00B2}{^2}                 
\DeclareUnicodeCharacter{00B3}{^3}                 
\DeclareUnicodeCharacter{00B1}{\pm}                
\DeclareUnicodeCharacter{00F7}{\div}               
\DeclareUnicodeCharacter{00B7}{\cdot}              
\DeclareUnicodeCharacter{00D7}{\times}             
\DeclareUnicodeCharacter{00AC}{\neg}               
\DeclareUnicodeCharacter{00A7}{\S}                 
\DeclareUnicodeCharacter{00A1}{\text{\textexclamdown}}
\DeclareUnicodeCharacter{03BC}{\mu}                
\DeclareUnicodeCharacter{03BD}{\nu}                
\DeclareUnicodeCharacter{03C1}{\rho}               
\DeclareUnicodeCharacter{03C3}{\sigma}             
\DeclareUnicodeCharacter{03C4}{\tau}               
\DeclareUnicodeCharacter{03C6}{\phi}               
\DeclareUnicodeCharacter{03C7}{\chi}               
\DeclareUnicodeCharacter{03C8}{\psi}               
\DeclareUnicodeCharacter{0394}{\Delta}             
\DeclareUnicodeCharacter{0393}{\Gamma}             
\DeclareUnicodeCharacter{0398}{\Theta}             
\DeclareUnicodeCharacter{03A0}{\Pi}                
\DeclareUnicodeCharacter{03A3}{\Sigma}             
\DeclareUnicodeCharacter{03A6}{\Phi}               
\DeclareUnicodeCharacter{03A8}{\Psi}               
\DeclareUnicodeCharacter{03A9}{\Omega}             
\DeclareUnicodeCharacter{03B1}{\alpha}             
\DeclareUnicodeCharacter{03B2}{\beta}              
\DeclareUnicodeCharacter{03B3}{\gamma}             
\DeclareUnicodeCharacter{03B4}{\delta}             
\DeclareUnicodeCharacter{03B5}{\epsilon}           
\DeclareUnicodeCharacter{03B7}{\eta}               
\DeclareUnicodeCharacter{03B8}{\theta}             
\DeclareUnicodeCharacter{03B9}{\iota}              
\DeclareUnicodeCharacter{03BB}{\lambda}            
\DeclareUnicodeCharacter{03C0}{\pi}                
\DeclareUnicodeCharacter{03C9}{\omega}             
\DeclareUnicodeCharacter{03D5}{\origphi}           
\DeclareUnicodeCharacter{2022}{\bullet}            
\DeclareUnicodeCharacter{214B}{\bindnasrepma}      
\DeclareUnicodeCharacter{2190}{\ot}                
\DeclareUnicodeCharacter{2191}{\upto}              
\DeclareUnicodeCharacter{2192}{\to}                
\DeclareUnicodeCharacter{2193}{\dnto}              
\DeclareUnicodeCharacter{2194}{\bij}               
\DeclareUnicodeCharacter{2195}{\updownarrow}       
\DeclareUnicodeCharacter{2196}{\nwarrow}           
\DeclareUnicodeCharacter{2197}{\nearrow}           
\DeclareUnicodeCharacter{2198}{\searrow}           
\DeclareUnicodeCharacter{2199}{\swarrow}           
\DeclareUnicodeCharacter{21A3}{\epito}             
\DeclareUnicodeCharacter{21A3}{\twoheadrightarrow} 
\DeclareUnicodeCharacter{21A4}{\mapsfrom}          
\DeclareUnicodeCharacter{21A6}{\mapsto}            
\DeclareUnicodeCharacter{21D0}{\Leftarrow}         
\DeclareUnicodeCharacter{21D2}{\funto}             
\DeclareUnicodeCharacter{2200}{\forall}            
\DeclareUnicodeCharacter{2203}{\exists}            
\DeclareUnicodeCharacter{2205}{\emptyset}          
\DeclareUnicodeCharacter{2208}{\in}                
\DeclareUnicodeCharacter{2216}{\backslash}         
\DeclareUnicodeCharacter{2218}{\circ}              
\DeclareUnicodeCharacter{221A}{\sqrt}              
\DeclareUnicodeCharacter{221E}{\infty}             
\DeclareUnicodeCharacter{2227}{\land}              
\DeclareUnicodeCharacter{2228}{\lor}               
\DeclareUnicodeCharacter{2229}{\cap}               
\DeclareUnicodeCharacter{2229}{\cap}               
\DeclareUnicodeCharacter{222A}{\cup}               
\DeclareUnicodeCharacter{2243}{\simeq}             
\DeclareUnicodeCharacter{2245}{\cong}              
\DeclareUnicodeCharacter{2260}{\neq}               
\DeclareUnicodeCharacter{2264}{\le}                
\DeclareUnicodeCharacter{2265}{\ge}                
\DeclareUnicodeCharacter{2282}{\subset}            
\DeclareUnicodeCharacter{2283}{\supset}            
\DeclareUnicodeCharacter{2286}{\subseteq}          
\DeclareUnicodeCharacter{2287}{\supseteq}          
\DeclareUnicodeCharacter{2293}{\sqcap}             
\DeclareUnicodeCharacter{2294}{\sqcup}             
\DeclareUnicodeCharacter{22A2}{\vdash}             
\DeclareUnicodeCharacter{22A3}{\dashv}             
\DeclareUnicodeCharacter{22A4}{\top}               
\DeclareUnicodeCharacter{22A5}{\bot}               
\DeclareUnicodeCharacter{22C0}{\bigwedge}          
\DeclareUnicodeCharacter{22C1}{\bigvee}            
\DeclareUnicodeCharacter{22C2}{\bigcap}            
\DeclareUnicodeCharacter{22C3}{\bigcup}            
\DeclareUnicodeCharacter{266D}{\flat}              
\DeclareUnicodeCharacter{266E}{\natural}           
\DeclareUnicodeCharacter{266F}{\sharp}             
\DeclareUnicodeCharacter{2806}{{:}}                
\DeclareUnicodeCharacter{27E6}{\llbracket}         
\DeclareUnicodeCharacter{27E7}{\rrbracket}         
\DeclareUnicodeCharacter{223C}{\sim}               
\DeclareUnicodeCharacter{2248}{\approx}            
\DeclareUnicodeCharacter{2261}{\equiv}             
\DeclareUnicodeCharacter{22C4}{\lozenge}           
\DeclareUnicodeCharacter{22C5}{\Box}               
\DeclareUnicodeCharacter{25FB}{\Box}               
\DeclareUnicodeCharacter{25A1}{\Box}               
\DeclareUnicodeCharacter{2026}{\ldots}             
\DeclareUnicodeCharacter{222B}{\int}               
\DeclareUnicodeCharacter{21C0}{\rightharpoonup}    
\DeclareUnicodeCharacter{2329}{\langle}            
\DeclareUnicodeCharacter{232A}{\rangle}            
\DeclareUnicodeCharacter{2299}{\odot}              
\DeclareUnicodeCharacter{2296}{\ominus}            
\DeclareUnicodeCharacter{2295}{\oplus}             
\DeclareUnicodeCharacter{2298}{\oslash}            
\DeclareUnicodeCharacter{2297}{\otimes}            
\DeclareUnicodeCharacter{2581}{\_}                 
\DeclareUnicodeCharacter{1D41B}{\mathbf}           
\DeclareUnicodeCharacter{1D422}{\textsl}           
\DeclareUnicodeCharacter{1D42B}{\mathrm}           
\DeclareUnicodeCharacter{1D42D}{\text}             
\DeclareUnicodeCharacter{1D42C}{\mathsf}           

\fi
