diff options
author | Karl Berry <karl@freefriends.org> | 2021-08-04 21:13:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-08-04 21:13:25 +0000 |
commit | 76f9942e80a1aebc326c795407e3b68b53fa0b4a (patch) | |
tree | 3c97c138529ca13104f74d8b3874673a6dd01ea7 | |
parent | f2185d02ebb39f1890285e12c894bb6490329b8f (diff) |
bangla (4aug21)
git-svn-id: svn://tug.org/texlive/trunk@60159 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/bangla/bangla.pdf | bin | 88933 -> 87498 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/bangla/bangla.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/bangla/bangla.sty | 57 |
3 files changed, 46 insertions, 26 deletions
diff --git a/Master/texmf-dist/doc/latex/bangla/bangla.pdf b/Master/texmf-dist/doc/latex/bangla/bangla.pdf Binary files differindex 70ae83264bc..8781f5098f2 100644 --- a/Master/texmf-dist/doc/latex/bangla/bangla.pdf +++ b/Master/texmf-dist/doc/latex/bangla/bangla.pdf diff --git a/Master/texmf-dist/doc/latex/bangla/bangla.tex b/Master/texmf-dist/doc/latex/bangla/bangla.tex index 4b024e162c5..a3b51a9543e 100644 --- a/Master/texmf-dist/doc/latex/bangla/bangla.tex +++ b/Master/texmf-dist/doc/latex/bangla/bangla.tex @@ -8,9 +8,9 @@ \title{The \texttt{bangla} Package} -\author{Nahid Hossain \\Assistant Professor, United International University\\Bangladesh\\nahid@cse.uiu.ac.bd\\mailbox.nahid@gmail.com\\ \textbf{Version 1.9}} +\author{Nahid Hossain \\Assistant Professor, United International University\\Bangladesh\\nahid@cse.uiu.ac.bd\\mailbox.nahid@gmail.com\\ \textbf{Version 2.0}} -\date{July 1, 2021} +\date{August 4, 2021} \maketitle \tableofcontents @@ -172,11 +172,12 @@ Put \texttt{banglaallcounters} command before \textbackslash begin\{document\} c \section{Reporting issues} To report any error or issue please send an email at nahid@cse.uiu.ac.bd or mailbox.nahid@gmail.com. \section{Revision History} -Version 1.9 new command added. minor bug fixed.\\ -Version 1.8 bug fixed.\\ -Version 1.7 bug fixed.\\ -Version 1.6 a new OFL SIL font added. bug fixed.\\ -Version 1.5 solved font licence issues and fixed some bugs.\\ +Version 2.0 bug fixes.\\ +Version 1.9 new command added. minor bug fixes.\\ +Version 1.8 bug fixes.\\ +Version 1.7 bug fixes.\\ +Version 1.6 a new OFL SIL font added. bug fixes.\\ +Version 1.5 solved font licence issues and bug fixes.\\ Version 1.0 primary version.\\ \end{document} diff --git a/Master/texmf-dist/tex/latex/bangla/bangla.sty b/Master/texmf-dist/tex/latex/bangla/bangla.sty index a3a8cf1d80a..63e5b5f6439 100644 --- a/Master/texmf-dist/tex/latex/bangla/bangla.sty +++ b/Master/texmf-dist/tex/latex/bangla/bangla.sty @@ -1,7 +1,7 @@ % Copyright at Nahid Hossain , Asst. Professor, UIU % nahid@cse.uiu.ac.bd / mailbox.nahid@gmail.com \NeedsTeXFormat{LaTeX2e}[1994/06/01] -\ProvidesPackage{bangla}[2021/07/01] +\ProvidesPackage{bangla}[2021/08/04] \RequirePackage{fontspec} \RequirePackage{etoolbox} \RequirePackage{polyglossia} @@ -9,12 +9,13 @@ \setmainlanguage{english} \setotherlanguage{bengali} -\newfontface\translitfont{CharisSIL-R.ttf} +\newfontface\bdnhtranslitfont{CharisSIL-R.ttf} +\DeclareTextFontCommand{\translitfont}{\bdnhtranslitfont} \newfontface\banglaipafont{CharisSIL-R.ttf} \makeatletter \def\zztable#1{#1} \def\zzrow#1#2{\expandafter\gdef\csname B-#2\endcsname{#1}} -\def\banglaipa#1{\banglaipafont\xgenerateTransliteration#1@} +\def\banglaipa#1{{\banglaipafont\xgenerateTransliteration#1@}} \def\xgenerateTransliteration{\futurelet\tmp\xxgenerateTransliteration} \def\xxgenerateTransliteration{% \ifx\tmp\@sptoken\space\fi @@ -128,8 +129,11 @@ % the mapping \newcommand\doindictrans{ \tl_replace_all:Nnn \l_mytrans_tl { ড় } { r^^^^0323a } +\tl_replace_all:Nnn \l_mytrans_tl { ড় } { r^^^^0323a } \tl_replace_all:Nnn \l_mytrans_tl { ঢ় } { r^^^^0323ha } -\tl_replace_all:Nnn \l_mytrans_tl { য় } { y^^^^0307a } +\tl_replace_all:Nnn \l_mytrans_tl { ঢ় } { r^^^^0323ha } +\tl_replace_all:Nnn \l_mytrans_tl { য় } { y^^^^0307a} +\tl_replace_all:Nnn \l_mytrans_tl { য় } { y^^^^0307a} \tl_replace_all:Nnn \l_mytrans_tl { ক় } { qa } \tl_replace_all:Nnn \l_mytrans_tl { খ় } { k͟ha } \tl_replace_all:Nnn \l_mytrans_tl { গ় } { g^^^^0307a } @@ -235,32 +239,47 @@ \ProcessOptions \ifdefstring{\fooA}{font1}{ -\newfontface{\banglatext}{fontshimanto.ttf} -\newfontfamily{\banglabold}{fontshimanto.ttf}[FakeBold=4.0] -\newfontfamily{\banglaitalic}{fontshimanto.ttf}[FakeSlant=0.2] +\newfontface{\bdnhtext}{fontshimanto.ttf} +\DeclareTextFontCommand{\banglatext}{\bdnhtext} +\newfontfamily{\bdnhbold}{fontshimanto.ttf}[FakeBold=4.0] +\DeclareTextFontCommand{\banglabold}{\bdnhbold} +\newfontfamily{\bdnhitalic}{fontshimanto.ttf}[FakeSlant=0.2] +\DeclareTextFontCommand{\banglaitalic}{\bdnhitalic} } { \ifdefstring{\fooA}{font2}{ - \newfontface\banglatext{Noto Sans Bengali} - \newfontfamily{\banglabold}{Noto Sans Bengali}[FakeBold=4.0] - \newfontfamily{\banglaitalic}{Noto Sans Bengali}[FakeSlant=0.2] + \newfontface{\bdnhtext}{Noto Sans Bengali} + \DeclareTextFontCommand{\banglatext}{\bdnhtext} + \newfontfamily{\bdnhbold}{Noto Sans Bengali}[FakeBold=4.0] + \DeclareTextFontCommand{\banglabold}{\bdnhbold} + \newfontfamily{\bdnhitalic}{Noto Sans Bengali}[FakeSlant=0.2] + \DeclareTextFontCommand{\banglaitalic}{\bdnhitalic} } { \ifdefstring{\fooA}{font3}{ - \newfontface\banglatext{Noto Serif Bengali} - \newfontfamily{\banglabold}{Noto Serif Bengali}[FakeBold=4.0] - \newfontfamily{\banglaitalic}{Noto Serif Bengali}[FakeSlant=0.2] + \newfontface{\bdnhtext}{Noto Serif Bengali} + \DeclareTextFontCommand{\banglatext}{\bdnhtext} + \newfontfamily{\bdnhbold}{Noto Serif Bengali}[FakeBold=4.0] + \DeclareTextFontCommand{\banglabold}{\bdnhbold} + \newfontfamily{\bdnhitalic}{Noto Serif Bengali}[FakeSlant=0.2] + \DeclareTextFontCommand{\banglaitalic}{\bdnhitalic} } { \ifdefstring{\fooA}{font4}{ - \newfontface{\banglatext}{fontkalpurush.ttf} - \newfontfamily{\banglabold}{fontkalpurush.ttf}[FakeBold=4.0] - \newfontfamily{\banglaitalic}{fontkalpurush.ttf}[FakeSlant=0.2] + \newfontface{\bdnhtext}{fontkalpurush.ttf} + \DeclareTextFontCommand{\banglatext}{\bdnhtext} + \newfontfamily{\bdnhbold}{fontkalpurush.ttf}[FakeBold=4.0] + \DeclareTextFontCommand{\banglabold}{\bdnhbold} + \newfontfamily{\bdnhitalic}{fontkalpurush.ttf}[FakeSlant=0.2] + \DeclareTextFontCommand{\banglaitalic}{\bdnhitalic} } { - \newfontface{\banglatext}{fontkalpurush.ttf} - \newfontfamily{\banglabold}{fontkalpurush.ttf}[FakeBold=4.0] - \newfontfamily{\banglaitalic}{fontkalpurush.ttf}[FakeSlant=0.2] + \newfontface{\bdnhtext}{fontkalpurush.ttf} + \DeclareTextFontCommand{\banglatext}{\bdnhtext} + \newfontfamily{\bdnhbold}{fontkalpurush.ttf}[FakeBold=4.0] + \DeclareTextFontCommand{\banglabold}{\bdnhbold} + \newfontfamily{\bdnhitalic}{fontkalpurush.ttf}[FakeSlant=0.2] + \DeclareTextFontCommand{\banglaitalic}{\bdnhitalic} } } |