diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/marathi/marathi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/marathi/marathi.sty | 50 |
1 files changed, 15 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/marathi/marathi.sty b/Master/texmf-dist/tex/latex/marathi/marathi.sty index 6f7b24cd149..43038c3db34 100644 --- a/Master/texmf-dist/tex/latex/marathi/marathi.sty +++ b/Master/texmf-dist/tex/latex/marathi/marathi.sty @@ -9,7 +9,7 @@ %% ------------------------------------------------------------------------- %% आज्ञासंच: marathi %% लेखक: निरंजन -%% आवृत्ती: १.२ (१६ जून, २०२०) +%% आवृत्ती: १.३ (२८ जुलै, २०२०) %% माहिती: लुआ-लाटेक् व झी-लाटेक् ह्यांच्यासह मराठीचा सुलभ वापर करण्यासाठी. %% दुवा: https://gitlab.com/niranjanvikastambe/marathi %% अडचणी: https://gitlab.com/niranjanvikastambe/marathi/-/issues @@ -32,7 +32,7 @@ %% -------------------------------------------------------------------------- %% Package: marathi %% Author: Niranjan -%% Version: 1.2 (16 June, 2020) +%% Version: 1.3 (28 July, 2020) %% Description: For conveniently typesetting Marathi language with LuaLaTeX and XeLaTeX. %% Repository: https://gitlab.com/niranjanvikastambe/marathi %% Bug tracker: https://gitlab.com/niranjanvikastambe/marathi/-/issues @@ -40,8 +40,8 @@ %% --------------------------------------------------------------------------- %% \def\marathiPackageName{marathi} -\def\marathiPackageVersion{१.२} -\def\marathiPackageDate{१६ जून, २०२०} +\def\marathiPackageVersion{१.३} +\def\marathiPackageDate{२८ जुलै, २०२०} \def\marathiPackageDescription{लुआ-लाटेक् व झी-लाटेक् ह्यांच्यासह मराठीचा सुलभ वापर करण्यासाठी. इथून पुढे लाटेक्-वरील मराठीच्या स्थानिकीकरणाचे काम ह्या आज्ञासंचामार्फत केले जाईल. तूर्त expex व blindtext ह्या आज्ञासंचांचे स्थानिकीकरण ह्या आज्ञासंचामार्फत पुरवले आहे.} \ProvidesPackage{marathi} @@ -52,7 +52,7 @@ \def\बदल#1{\pgfkeys{marathi/.cd,#1}} \pgfkeys{ marathi/.is family,marathi/.cd, - अंतर/.code={\setstretch{#1}\selectfont}, + अंतर/.code={\@ifclassloaded{memoir}{\linespread{#1}}{\setstretch{#1}}\selectfont}, अंतर=1.5, अंतर/.default=1 } @@ -63,9 +63,7 @@ \def\arraystretch{1.2} \@ifclassloaded{standalone}{\RequirePackage{fontspec}}{} \RequirePackage{iftex} - \ifluatex - \usepackage{babel} \babelprovide[import, main, maparabic, mapdigits, counters/swar = अ आ इ ई उ ऊ ए ऐ ओ औ अं अः ॲ ऋ ऌ ऑ , @@ -89,41 +87,23 @@ counters/vyanjan = क ख ग घ ङ प फ ब भ म य र ल व श ष स ह ळ ]{marathi} - \renewcommand\thepart{\localecounter{anka}{part}} \renewcommand\theenumiii{\localecounter{vyanjan}{enumiii}} -\usepackage{fontspec} -\defaultfontfeatures{Renderer=HarfBuzz} -\babelfont{rm}{Shobhika} - +\defaultfontfeatures[\rmfamily,\sffamily,\ttfamily]{Script=Devanagari,Renderer=HarfBuzz} \else - \RequirePackage{polyglossia} \setdefaultlanguage{marathi} -\setmainfont[Script=Devanagari,Mapping=devanagarinumerals]{Shobhika} -\fi - -\providecommand{\टंक}[1] -{\ifluatex -\babelfont{rm}{#1} - -\else - -\setmainfont[ -Script=Devanagari, -Mapping=devanagarinumerals -] -{#1} +\defaultfontfeatures[\rmfamily,\sffamily,\ttfamily]{Script=Devanagari,Mapping=devanagarinumerals} \fi -} - +\setmainfont{Shobhika} +\providecommand{\टंक}[1]{\setmainfont{#1}} \providecommand{\दुसराटंक}[2]{ -\ifluatex -\newfontfamily{#1}[Renderer=Harfbuzz,Script=Devanagari]{#2} -\else -\ifxetex -\newfontfamily{#1}[Script=Devanagari,Mapping=devanagarinumerals]{#2} -\fi\fi + \ifluatex + \newfontfamily{#1}[Renderer=Harfbuzz,Script=Devanagari]{#2} + \else + \ifxetex + \newfontfamily{#1}[Script=Devanagari,Mapping=devanagarinumerals]{#2} + \fi\fi } \providecommand{\परिच्छेद}{\input{namuna-para}} |