diff options
author | Karl Berry <karl@freefriends.org> | 2020-07-28 21:53:23 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-07-28 21:53:23 +0000 |
commit | 9b94f7189e834e69685fe5b7881110fa804c2858 (patch) | |
tree | 4cce924c3aeece91cfa019f80d44c8d9a9a9f8b5 /Master/texmf-dist/tex/latex | |
parent | 7c8866b9ff9e7f4debc872329ff829777d106a7c (diff) |
marathi (28jul20)
git-svn-id: svn://tug.org/texlive/trunk@55977 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-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}} |