See the Glossary Tool for how the .glossary
format works.
You need PHP 7.2 or higher and Composer:
composer require corny-phoenix/glossary
To generate the glossary with LaTeX, use
xelatex glossary
makeglossaries glossary
xelatex glossary
open glossary.pdf
(XeLaTeX comes with most LaTeX distributions.)