% datemultical-captions.def % % datemultical: Named dates with multi-calendar formatting for LaTeX. % % Copyright (C) 2026 Amer Amikhteh % % This file is part of the datemultical package. % % This work is free software: you may redistribute it and/or modify % it under the terms of the LaTeX Project Public License as published % by the LaTeX Project, either version 1.3c of the License, or % (at your option) any later version. % % This work 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. % % The full license text is available at: % https://www.latex-project.org/lppl/ % % This work is "maintained" by Amer Amikhteh. % % The current maintainer of this work is Amer Amikhteh. \NeedsTeXFormat{LaTeX2e} \ProvidesFile{datemultical-captions.def} [2026/09/17 v0.1.0 Calendar names and date captions] \ExplSyntaxOn \makeatletter % ============================================================ % Month names % ============================================================ \cs_new:Npn \dmc_month_name_gr:n #1 { \int_case:nnF {#1} { {1} {January} {2} {February} {3} {March} {4} {April} {5} {May} {6} {June} {7} {July} {8} {August} {9} {September} {10} {October} {11} {November} {12} {December} } {} } \cs_new:Npn \dmc_month_abbrev_gr:n #1 { \int_case:nnF {#1} { {1} {Jan} {2} {Feb} {3} {Mar} {4} {Apr} {5} {May} {6} {Jun} {7} {Jul} {8} {Aug} {9} {Sep} {10} {Oct} {11} {Nov} {12} {Dec} } {} } \cs_new:Npn \dmc_month_name_sh:n #1 { \int_case:nnF {#1} { {1} {Farvardin} {2} {Ordibehesht} {3} {Khordad} {4} {Tir} {5} {Mordad} {6} {Shahrivar} {7} {Mehr} {8} {Aban} {9} {Azar} {10} {Dey} {11} {Bahman} {12} {Esfand} } {} } \cs_new:Npn \dmc_month_abbrev_sh:n #1 { \int_case:nnF {#1} { {1} {Far} {2} {Ord} {3} {Kho} {4} {Tir} {5} {Mor} {6} {Sha} {7} {Meh} {8} {Aba} {9} {Aza} {10} {Dey} {11} {Bah} {12} {Esf} } {} } \cs_new:Npn \dmc_month_name_lh:n #1 { \int_case:nnF {#1} { {1} {Muharram} {2} {Safar} {3} {Rabi~al-Awwal} {4} {Rabi~al-Thani} {5} {Jumada~al-Awwal} {6} {Jumada~al-Thani} {7} {Rajab} {8} {Shaban} {9} {Ramadan} {10} {Shawwal} {11} {Dhu~al-Qadah} {12} {Dhu~al-Hijjah} } {} } \cs_new:Npn \dmc_month_abbrev_lh:n #1 { \int_case:nnF {#1} { {1} {Muh} {2} {Saf} {3} {Rab-I} {4} {Rab-II} {5} {Jum-I} {6} {Jum-II} {7} {Raj} {8} {Sha} {9} {Ram} {10} {Shw} {11} {Dhu-Q} {12} {Dhu-H} } {} } % ============================================================ % Weekday names % ============================================================ \cs_new:Npn \dmc_weekday_name:n #1 { \int_case:nnF {#1} { {0} {Sunday} {1} {Monday} {2} {Tuesday} {3} {Wednesday} {4} {Thursday} {5} {Friday} {6} {Saturday} } {} } \cs_new:Npn \dmc_weekday_abbrev:n #1 { \int_case:nnF {#1} { {0} {Sun} {1} {Mon} {2} {Tue} {3} {Wed} {4} {Thu} {5} {Fri} {6} {Sat} } {} } \makeatother \ExplSyntaxOff \endinput