%%
%% This is file `linguistix-fixpex.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% linguistix.dtx  (with options: `fixpex')
%% ---------------------------------------------------------
%% Bundle:       LinguisTiX
%% Version:      v0.5d
%% Author:       निरंजन
%% Description:  Enhanced support for linguistics.
%% Repository:   puszcza.gnu.org.ua/projects/linguistix
%% License:      GPLv3+, GFDLv1.3+
%% ---------------------------------------------------------
%% 
%% The LinguisTiX bundle v0.5d
%% Copyright © 2022, 2023, 2024, 2025 निरंजन
%% 
%% This program is free software: you can redistribute it
%% and/or modify it under the terms of the GNU General
%% Public License as published by the Free Software
%% Foundation, either version 3 of the License, or (at your
%% option) any later version.
%% 
%% This program is distributed in the hope that it will be
%% useful, but WITHOUT ANY WARRANTY; without even the
%% implied warranty of MERCHANTABILITY or FITNESS FOR A
%% PARTICULAR PURPOSE. See the GNU General Public License
%% for more details.
%% 
%% You should have received a copy of the GNU General Public
%% License along with this program. If not, see
%% <https://www.gnu.org/licenses/>.
%% 
%% ---------------------------------------------------------
\ProvidesExplPackage{linguistix-fixpex}
                    {2025-07-11}
                    {v0.5d}
                    {%
                      The base package of the ‘LinguisTiX’
                      bundle.%
                    }

\msg_new:nnn { fixpex } { pkg_not_loaded } {
  The~ ‘linguistix-fixpex’~ package~ is~ a~ first-aid~
  for~ resolving~ the~ conflict~ between~ ‘unicode-math’~
  and\\ ‘expex’.~ It~ should~ only~ be~ used~ if~ at~ least~
  one~ of~ these~ two~ is~ loaded.~ Here~
  ‘linguistix-fixpex’~ can~\\ be~ omitted~ since~ you~ are~
  not~ using~ ‘#1’.
}

\hook_gput_code:nnn { begindocument / before } { . } {
  \IfPackageLoadedTF { expex } {
    \IfPackageLoadedTF { unicode-math } {
      \hook_gput_code:nnn { begindocument / end } { . } {
        \cs_set_eq:NN \umgla \gla
        \cs_set_eq:NN \gla   \glw@gla
      }
    } {
      \msg_info:nnn { fixpex } { pkg_not_loaded } {
        unicode-math
      }
    }
  } {
    \msg_info:nnn { fixpex } { pkg_not_loaded } {
      expex
    }
  }
}
\endinput
%%
%% End of file `linguistix-fixpex.sty'.
