%%
%% This is file `ctex-makespa-lxgw.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lxgw.dtx  (with options: `makespa')
%% -----------------------------------------------------------------------
%%   Runtime: Copyright (C) 2025-2026 by Mingyu Xia <myhsia@outlook.com> *
%%                                                                       *
%%   Fonts:   Copyright (C) 2021-2026 by LXGW <https://github.com/lxgw>  *
%%            Copyright (C) 2021-2026 by TrionesType <x.com/TrionesType> *
%% -----------------------------------------------------------------------
%%   This work may be distributed and/or modified under the conditions   *
%%   of the SIL Open Font License (OFL) version 1.1.                     *
%%   The latest version of this license is in                            *
%%                                                                       *
%%       https://openfontlicense.org                                     *
%%                                                                       *
%%   This work has the OFL maintenance status `maintained'.              *
%%                                                                       *
%%   The Current Maintainer of this work on CTAN is Mingyu Xia.          *
%%                                                                       *
%%   The Current Designer of this font family is LXGW.                   *
%% -----------------------------------------------------------------------
\input ctex-spa-macro %
\ExplSyntaxOn
\cs_set_protected:Npn \__ctex_write_family:nn #1#2
  {
    \group_begin:
      \tex_font:D \l__ctex_punct_font = "[#2]" ~ at ~ 100 pt \scan_stop:
      \l__ctex_punct_font
      \clist_clear:N \l__ctex_punct_bounds_clist
      \seq_map_inline:Nn \c__ctex_punct_seq
        {
          \exp_args:No \__ctex_save_bounds:n
            { \int_use:N \tex_XeTeXcharglyph:D ##1 }
        }
      \iow_now:Nx \g__ctex_spa_iow
        {
          \token_to_str:N \ctexspadef {#1}
            { \l__ctex_punct_bounds_clist , , , }
        }
    \group_end:
  }
\ExplSyntaxOff
\MAKESPA {ctexpunct-lxgw.tex}
  {
    {lxgwzhsong}      {LXGWNeoZhiSong} ,
    {lxgwzhsongb}     {LXGWNeoZhiSongScreen} ,
    {lxgwzhhei}       {LXGWNeoXiHei} ,
    {lxgwzhheib}      {LXGWNeoXiHeiScreen} ,
    {lxgwzhfs}        {LXGWZhuqueFangsong-Regular} ,
    {lxgwzhkai}       {LXGWWenKaiGBLite-Regular} ,
    {lxgwzhkaib}      {LXGWZhenKaiGB-Regular} ,
  }
\primitive\end
%% -----------------------------------------------------------------------
%%   This work consists of the files lxgw.dtx,                           *
%%                                   lxgw.ins,                           *
%%                 the derived files ctex-fontset-lxgw.def,              *
%%                                   ctex-zhmap-lxgw.tex,                *
%%                                   ctex-spa-lxgw.spa,                  *
%%                                   ctexpunct-lxgw.tex,                 *
%%                    the font files LXGWNeoZhiSong.ttf,                 *
%%                                   LXGWNeoZhiSongScreen.ttf,           *
%%                                   LXGWNeoXiHei.ttf,                   *
%%                                   LXGWNeoXiHeiScreen.ttf,             *
%%                                   LXGWZhuqueFangsong-Regular.ttf,     *
%%                                   LXGWWenKaiLite-Regular.ttf,         *
%%                                   LXGWZhenKaiGB-Regular.ttf,          *
%%           the documentation files lxgw.pdf,                           *
%%                               and README.md.                          *
%% -----------------------------------------------------------------------
%%
%% End of file `ctex-makespa-lxgw.tex'.
