\NeedsTeXFormat{LaTeX2e} \ProvidesPackage{turkce-sayi}[2026/06/11 v1.0 Turkish suffix harmony for numbers] %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% See https://www.latex-project.org/lppl.txt %% LPPL maintenance status: maintained. %% Maintainer: Sonat Suer \RequirePackage{iftex} \ifluatex\else \PackageError{turkce-sayi}{LuaTeX required. Compile with lualatex.}{}% \expandafter\endinput \fi \RequirePackage{luatexbase} \RequirePackage{refcount} \directlua{trk = require('turkce-sayi')} % \trksuffix{}{} % Outputs only the apostrophe + transformed suffix (no digit). \newcommand*{\trksuffix}[2]{% \directlua{trk.output_suffix(#1, "\luatexluaescapestring{#2}")}% } % \trkappend{}{} % Outputs the digit, then the apostrophe + transformed suffix. % Use with literal integers or \the\value{counter} expressions. \newcommand*{\trkappend}[2]{% #1\directlua{trk.output_suffix(#1, "\luatexluaescapestring{#2}")}% } % \trkpageref{