Templated / automatic package generation
I've used datetime2-german
as somewhat of a reference while writing datetime2-serbian
, so I'd like to help you out, too.
Like German, Serbian language also has several regions (but also two scripts - Cyrillic and Latin). While writing datetime2-serbian
, I found it very hard to maintain the code for different regions (and scripts) by hand, and keeping both Unicode and LICR/ASCII localization strings in sync was also tiring. So I did the sensible thing and wrote a Python (+ Jinja2) script that generates the final LaTeX files from templates and YAML files containing localization strings. I did something similar for Serbian biblatex
localization. Along the way, I wrote a simple Utf-8 → LICR helper script (it's in-source for both of the localization packages).
Hopefully some of this will help and inspire you to automate datetime2-german
deployment.