diff options
author | Norbert Preining <norbert@preining.info> | 2021-06-08 03:02:17 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-06-08 03:02:17 +0000 |
commit | 19ec3a90133b7827c16b0ffde16152fb4d566138 (patch) | |
tree | 056101811eeb7e1bfb0067e3628591dd0e52bc06 /language | |
parent | 1ba2ae020aea220436899cf65f5a85c1686940cd (diff) |
CTAN sync 202106080302
Diffstat (limited to 'language')
-rw-r--r-- | language/bengali/bangla/README | 22 | ||||
-rw-r--r-- | language/bengali/bangla/b-map.tex | 81 | ||||
-rw-r--r-- | language/bengali/bangla/bangla.pdf | bin | 0 -> 88226 bytes | |||
-rw-r--r-- | language/bengali/bangla/bangla.sty | 270 | ||||
-rw-r--r-- | language/bengali/bangla/bangla.tex | 170 | ||||
-rw-r--r-- | language/bengali/bangla/doulos.ttf | bin | 0 -> 1582480 bytes | |||
-rw-r--r-- | language/bengali/bangla/kalpurush.ttf | bin | 0 -> 314592 bytes | |||
-rw-r--r-- | language/bengali/bangla/solaimanlipi.ttf | bin | 0 -> 249532 bytes | |||
-rw-r--r-- | language/bengali/bangla/vrinda.ttf | bin | 0 -> 259520 bytes | |||
-rw-r--r-- | language/japanese/pxjahyper/README-ja.md | 3 | ||||
-rw-r--r-- | language/japanese/pxjahyper/README.md | 1 | ||||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper-ajm.def | 2 | ||||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper-enc.sty | 2 | ||||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper-uni.def | 2 | ||||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper.pdf | bin | 127370 -> 127111 bytes | |||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper.sty | 209 | ||||
-rw-r--r-- | language/japanese/pxjahyper/pxjahyper.tex | 23 |
17 files changed, 670 insertions, 115 deletions
diff --git a/language/bengali/bangla/README b/language/bengali/bangla/README new file mode 100644 index 0000000000..b5ee8a73ff --- /dev/null +++ b/language/bengali/bangla/README @@ -0,0 +1,22 @@ + ---------------------------------------------------------------- + bangla package - Comprehensive Bangla latex package + E-mail: mailbox.nahid@gmail.com / nahid@cse.uiu.ac.bd + Released under the LaTeX Project Public License v1.3c or later + See http://www.latex-project.org/lppl.txt + ---------------------------------------------------------------- +The bangla package is a programming tools geared primarily towards LaTeX +class and package authors. It provides all necessary LaTeX frontends for Bangla +language. + ------------------------------------------------------------------ + Copyright (C) 2021 by Nahid Hossain mailbox.nahid@gmail.com + + This work may be distributed and/or modified under the + conditions of the LaTeX Project Public License (LPPL), either + version 1.3c of this license or (at your option) any later + version. The latest version of this license is in the file: + + http://www.latex-project.org/lppl.txt + + This work is "maintained" (as per LPPL maintenance status) by + Nahid Hossain + diff --git a/language/bengali/bangla/b-map.tex b/language/bengali/bangla/b-map.tex new file mode 100644 index 0000000000..3c3c1e8c95 --- /dev/null +++ b/language/bengali/bangla/b-map.tex @@ -0,0 +1,81 @@ +\zztable{ +\zzrow{0}{০} +\zzrow{1}{১} +\zzrow{2}{২} +\zzrow{3}{৩} +\zzrow{4}{৪} +\zzrow{5}{৫} +\zzrow{6}{৬} +\zzrow{7}{৭} +\zzrow{8}{৮} +\zzrow{9}{৯} +\zzrow{.}{।} +\zzrow{,}{,} +\zzrow{a}{া} +\zzrow{i}{ি} +\zzrow{i}{ী} +\zzrow{u}{ু} +\zzrow{ū}{ূ} +\zzrow{r̥i}{ৃ} +\zzrow{ɔo̯}{ো} +\zzrow{ē}{ে} +\zzrow{oi̯}{ৈ} +\zzrow{ou̯}{ৌ} +\zzrow{ɔ}{অ} +\zzrow{a}{আ} +\zzrow{i}{ই} +\zzrow{i}{ঈ} +\zzrow{u}{উ} +\zzrow{u}{ঊ} +\zzrow{r̥i}{ঋ} +\zzrow{e}{এ} +\zzrow{oi̯}{ঐ} +\zzrow{o}{ও} +\zzrow{ou̯}{ঔ} +\zzrow{ŋ}{ং} +\zzrow{̃}{ঁ} +\zzrow{ḥ}{ঃ} +\zzrow{t}{ৎ} +\zzrow{k}{ক} +\zzrow{kʰ}{খ} +\zzrow{ɡ}{গ} +\zzrow{ɡʱ}{ঘ} +\zzrow{ŋ}{ঙ} +\zzrow{tʃ}{চ} +\zzrow{tʃʰ}{ছ} +\zzrow{dʒ}{জ} +\zzrow{dʒʱ}{ঝ} +\zzrow{n}{ঞ} +\zzrow{ʈ}{ট} +\zzrow{ʈʰ}{ঠ} +\zzrow{ɖ}{ড} +\zzrow{ɖʱ}{ঢ} +\zzrow{ɽ}{ড়}\zzrow{ɽ}{ড়} +\zzrow{ɽ}{ঢ়}\zzrow{ɽ}{ঢ়} +\zzrow{n}{ণ} +\zzrow{t}{ত} +\zzrow{tʰ}{থ} +\zzrow{d}{দ} +\zzrow{dʱ}{ধ} +\zzrow{n}{ন} +\zzrow{p}{প} +\zzrow{pʰ}{ফ} +\zzrow{b}{ব} +\zzrow{bʱ}{ভ} +\zzrow{m}{ম} +\zzrow{dʒ}{য} +\zzrow{ʲ}{য়}\zzrow{ʲ}{য়} +\zzrow{r}{র} +\zzrow{l}{ল} +\zzrow{ʃ}{শ} +\zzrow{ʃ}{ষ} +\zzrow{ʃ}{স} +\zzrow{ɦ}{হ} +\zzrow{’}{ঽ} +\zzrow{q}{ক়} +\zzrow{k͟h}{খ়} +\zzrow{ġ}{গ়} +\zzrow{z}{জ়} +\zzrow{f}{ফ়} +} + diff --git a/language/bengali/bangla/bangla.pdf b/language/bengali/bangla/bangla.pdf Binary files differnew file mode 100644 index 0000000000..dd936466af --- /dev/null +++ b/language/bengali/bangla/bangla.pdf diff --git a/language/bengali/bangla/bangla.sty b/language/bengali/bangla/bangla.sty new file mode 100644 index 0000000000..0d30055aa2 --- /dev/null +++ b/language/bengali/bangla/bangla.sty @@ -0,0 +1,270 @@ +\NeedsTeXFormat{LaTeX2e}[1994/06/01] +\ProvidesPackage{bangla}[2021/05/13] +\RequirePackage{fontspec} +\RequirePackage{etoolbox} +\RequirePackage{polyglossia} + +\setmainlanguage{english} +\setotherlanguage{bengali} +\newfontface\translitfont{Noto Serif} +\newfontface\banglaipafont{Doulos SIL} + +\makeatletter +\def\zztable#1{#1} +\def\zzrow#1#2{\expandafter\gdef\csname B-#2\endcsname{#1}} +\def\banglaipa#1{\banglaipafont\xgenerateTransliteration#1@} +\def\xgenerateTransliteration{\futurelet\tmp\xxgenerateTransliteration} +\def\xxgenerateTransliteration{% +\ifx\tmp\@sptoken\space\fi +\xxxgenerateTransliteration +} +\def\xxxgenerateTransliteration#1{% +\expandafter\ifx\csname B-#1\endcsname\relax?% +\expandafter\show\csname B-#1\endcsname +\fi +\csname B-#1\endcsname +\xgenerateTransliteration} +\expandafter\def\csname B-@\endcsname#1{} +\input{b-map} +\makeatother + +\makeatletter +\long\def\@gobbletorelax#1\relax{} +\newcommand\bengalinum[1]{\expandafter\@bengalinum\csname c@#1\endcsname} +\newcommand\@bengalinum[1]{\expandafter\@bengalinum@\the#1\relax} +\newcommand\@bengalinum@[1] + {% + \@gobbletorelax#1\@bengalinum@end\relax + \@bengalinum@digit{#1}% + } +\newcommand\@bengalinum@digit[1] + {% + \ifcase#1 + \banglatext{০}\or % 0 + \banglatext{১}\or % 1 + \banglatext{২}\or % 2 + \banglatext{৩}\or % 3 + \banglatext{৪}\or % 4 + \banglatext{৫}\or % 5 + \banglatext{৬}\or % 6 + \banglatext{৭}\or % 7 + \banglatext{৮}\or % 8 + \banglatext{৯}\fi % 9 + \@bengalinum@ + } +\def\@bengalinum@end#1\@bengalinum@digit#2{} +\makeatother +\newcommand{\banglapage}{\renewcommand\thepage{\bengalinum{page}}} +\newcommand{\banglasection}{\renewcommand*\thesection{\bengalinum{section}} +\renewcommand*\thesubsection{\thesection.\bengalinum{subsection}}} + +\newcommand{\banglaequation}{\renewcommand\theequation{\bengalinum{equation}}} + +\newcommand{\banglatable}{\renewcommand\thetable{\bengalinum{table}}} +\newcommand{\banglafigure}{\renewcommand\thefigure{\bengalinum{figure}}} + +\makeatletter +\long\def\@gobbletorelax#1\relax{} +\newcommand\bengalialpha[1]{\expandafter\@bengalialpha\csname c@#1\endcsname} +\newcommand\@bengalialpha[1]{\expandafter\@bengalialpha@\the#1\relax} +\newcommand\@bengalialpha@[1] + {% + \@gobbletorelax#1\@bengalialpha@end\relax + \@bengalialpha@digit{#1}% + } +\newcommand\@bengalialpha@digit[1] + {% + \ifcase#1 + \banglatext{ক}\or % 0 + \banglatext{ক}\or % 0 + \banglatext{খ}\or % 1 + \banglatext{গ}\or % 2 + \banglatext{ঘ}\or % 3 + \banglatext{ঙ}\or % 4 + \banglatext{চ}\or % 5 + \banglatext{ছ}\or % 6 + \banglatext{জ}\or % 7 + \banglatext{ঝ}\or % 8 + \banglatext{ঞ}\fi % 9 + \@bengalialpha@ + } +\def\@bengalialpha@end#1\@bengalialpha@digit#2{} +\makeatother + +\newcommand{\banglaenumerate}{\renewcommand\theenumi{\bengalinum{enumi}}\renewcommand\theenumii{\bengalialpha{enumii}}} + + +%\newcommand{\banglasubsectionnum}{\renewcommand\thesection{\bengalinumeral{section}}} + + +\ExplSyntaxOn +\tl_new:N \l_mytrans_tl + +% transliteration +\NewDocumentCommand{\indictrans}{ m } +{ +\tl_set:Nn \l_mytrans_tl { #1 } +\doindictrans + { \translitfont + \tl_use:N \l_mytrans_tl + } +} + +% text (transliteration) +\NewDocumentCommand{\banglatranslit}{ m } +{ +\tl_set:Nn \l_mytrans_tl { #1 } +\doindictrans + { \translitfont + \tl_use:N \l_mytrans_tl + } +} + +% multi-line environment +\NewDocumentEnvironment{isoindictranse}{ +b } +{ +\tl_set:Nn \l_mytrans_tl { #1 } +\doindictrans +%\bengalifont + { \translitfont + \tl_use:N \l_mytrans_tl + } +} +{ } + +% the mapping +\newcommand\doindictrans{ +\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 { ক় } { qa } +\tl_replace_all:Nnn \l_mytrans_tl { খ় } { k͟ha } +\tl_replace_all:Nnn \l_mytrans_tl { গ় } { g^^^^0307a } +\tl_replace_all:Nnn \l_mytrans_tl { জ় } { za } +\tl_replace_all:Nnn \l_mytrans_tl { ফ় } { fa } +\tl_replace_all:Nnn \l_mytrans_tl { অ } { a } +\tl_replace_all:Nnn \l_mytrans_tl { আ } { ā } +\tl_replace_all:Nnn \l_mytrans_tl { ই } { i } +\tl_replace_all:Nnn \l_mytrans_tl { ঈ } { ī } +\tl_replace_all:Nnn \l_mytrans_tl { উ } { u } +\tl_replace_all:Nnn \l_mytrans_tl { ঊ } { ū } +\tl_replace_all:Nnn \l_mytrans_tl { ঋ } { r̥ } +\tl_replace_all:Nnn \l_mytrans_tl { ৠ } { r̥̄ } +\tl_replace_all:Nnn \l_mytrans_tl { ঌ } { l̥ } +\tl_replace_all:Nnn \l_mytrans_tl { ৡ } { l̥̄ } +\tl_replace_all:Nnn \l_mytrans_tl { এ } { ē } +\tl_replace_all:Nnn \l_mytrans_tl { ঐ } { ai } +\tl_replace_all:Nnn \l_mytrans_tl { ও } { ō } +\tl_replace_all:Nnn \l_mytrans_tl { ঔ } { au } +\tl_replace_all:Nnn \l_mytrans_tl { ং } { ṁ } +\tl_replace_all:Nnn \l_mytrans_tl { ঁ } { m̐ } +\tl_replace_all:Nnn \l_mytrans_tl { ঃ } { ḥ } +\tl_replace_all:Nnn \l_mytrans_tl { ক } { ka } +\tl_replace_all:Nnn \l_mytrans_tl { খ } { kha } +\tl_replace_all:Nnn \l_mytrans_tl { গ } { ga } +\tl_replace_all:Nnn \l_mytrans_tl { ঘ } { gha } +\tl_replace_all:Nnn \l_mytrans_tl { ঙ } { ṅa } +\tl_replace_all:Nnn \l_mytrans_tl { চ } { ca } +\tl_replace_all:Nnn \l_mytrans_tl { ছ } { cha } +\tl_replace_all:Nnn \l_mytrans_tl { জ } { ja } +\tl_replace_all:Nnn \l_mytrans_tl { ঝ } { jha } +\tl_replace_all:Nnn \l_mytrans_tl { ঞ } { ña } +\tl_replace_all:Nnn \l_mytrans_tl { ট } { ṭa } +\tl_replace_all:Nnn \l_mytrans_tl { ঠ } { ṭha } +\tl_replace_all:Nnn \l_mytrans_tl { ড } { ḍa } +\tl_replace_all:Nnn \l_mytrans_tl { ঢ } { ḍha } +\tl_replace_all:Nnn \l_mytrans_tl { ণ } { ṇa } +\tl_replace_all:Nnn \l_mytrans_tl { ত } { ta } +\tl_replace_all:Nnn \l_mytrans_tl { থ } { tha } +\tl_replace_all:Nnn \l_mytrans_tl { দ } { da } +\tl_replace_all:Nnn \l_mytrans_tl { ধ } { dha } +\tl_replace_all:Nnn \l_mytrans_tl { ন } { na } +\tl_replace_all:Nnn \l_mytrans_tl { প } { pa } +\tl_replace_all:Nnn \l_mytrans_tl { ফ } { pha } +\tl_replace_all:Nnn \l_mytrans_tl { ব } { ba } +\tl_replace_all:Nnn \l_mytrans_tl { ভ } { bha } +\tl_replace_all:Nnn \l_mytrans_tl { ম } { ma } +\tl_replace_all:Nnn \l_mytrans_tl { য } { ya } +\tl_replace_all:Nnn \l_mytrans_tl { র } { ra } +\tl_replace_all:Nnn \l_mytrans_tl { ৰ } { ra } +\tl_replace_all:Nnn \l_mytrans_tl { ল } { la } +\tl_replace_all:Nnn \l_mytrans_tl { ৱ } { va } +\tl_replace_all:Nnn \l_mytrans_tl { শ } { śa } +\tl_replace_all:Nnn \l_mytrans_tl { ষ } { ṣa } +\tl_replace_all:Nnn \l_mytrans_tl { স } { sa } +\tl_replace_all:Nnn \l_mytrans_tl { হ } { ha } +\tl_replace_all:Nnn \l_mytrans_tl { ঽ } { ’ } +\tl_replace_all:Nnn \l_mytrans_tl { । } { . } +\tl_replace_all:Nnn \l_mytrans_tl { া } { -ā } +\tl_replace_all:Nnn \l_mytrans_tl { ি } { -i } +\tl_replace_all:Nnn \l_mytrans_tl { ী } { -ī } +\tl_replace_all:Nnn \l_mytrans_tl { ু } { -u } +\tl_replace_all:Nnn \l_mytrans_tl { ূ } { -ū } +\tl_replace_all:Nnn \l_mytrans_tl { ৃ } { -r } +\tl_replace_all:Nnn \l_mytrans_tl { ৄ } { -rr } +\tl_replace_all:Nnn \l_mytrans_tl { ে } { -e } +\tl_replace_all:Nnn \l_mytrans_tl { ৈ } { -ai } +\tl_replace_all:Nnn \l_mytrans_tl { ো } { -o } +\tl_replace_all:Nnn \l_mytrans_tl { ৌ } { -au } +\tl_replace_all:Nnn \l_mytrans_tl { ্ } { virama } +\tl_replace_all:Nnn \l_mytrans_tl { ৎ } { t } +\tl_replace_all:Nnn \l_mytrans_tl { ৗ } { - } +\tl_replace_all:Nnn \l_mytrans_tl { ০ } { 0 } +\tl_replace_all:Nnn \l_mytrans_tl { ১ } { 1 } +\tl_replace_all:Nnn \l_mytrans_tl { ২ } { 2 } +\tl_replace_all:Nnn \l_mytrans_tl { ৩ } { 3 } +\tl_replace_all:Nnn \l_mytrans_tl { ৪ } { 4 } +\tl_replace_all:Nnn \l_mytrans_tl { ৫ } { 5 } +\tl_replace_all:Nnn \l_mytrans_tl { ৬ } { 6 } +\tl_replace_all:Nnn \l_mytrans_tl { ৭ } { 7 } +\tl_replace_all:Nnn \l_mytrans_tl { ৮ } { 8 } +\tl_replace_all:Nnn \l_mytrans_tl { ৯ } { 9 } + + +% tidy-up: inherent a, etc +\regex_replace_all:nnN { a\-(ai) } { \1 } \l_mytrans_tl +\regex_replace_all:nnN { a\-(au) } { \1 } \l_mytrans_tl +\regex_replace_all:nnN { a\-([āiueoīū]{1}) } { \1 } \l_mytrans_tl +\regex_replace_all:nnN { a\-(rr) } { \1 } \l_mytrans_tl +\regex_replace_all:nnN { a\-(r) } { \1 } \l_mytrans_tl +\tl_replace_all:Nnn \l_mytrans_tl { avirama } { } +\tl_replace_all:Nnn \l_mytrans_tl { ṁ } { ng } +\regex_replace_all:nnN { \-([āiueoīū]{1}) } { \1 } \l_mytrans_tl +%... +} +\ExplSyntaxOff + +\newtoggle{langen} +\DeclareOption{vrinda}{\newcommand{\fooA}{font1}} +\DeclareOption{kalpurush}{\newcommand{\fooA}{font2}} +\DeclareOption{solaimanlipi}{\newcommand{\fooA}{font3}} +\ProcessOptions + +\ifdefstring{\fooA}{font1}{ +\newfontface{\banglatext}{vrinda.ttf} +\newfontfamily{\banglabold}{vrinda.ttf}[FakeBold=4.0] +\newfontfamily{\banglaitalic}{vrinda.ttf}[FakeSlant=0.2] +} +{ + \ifdefstring{\fooA}{font2}{ + \newfontface{\banglatext}{kalpurush.ttf} + \newfontfamily{\banglabold}{kalpurush.ttf}[FakeBold=4.0] + \newfontfamily{\banglaitalic}{kalpurush.ttf}[FakeSlant=0.2] + } + { + \ifdefstring{\fooA}{font3}{ + \newfontface{\banglatext}{solaimanlipi.ttf} + \newfontfamily{\banglabold}{solaimanlipi.ttf}[FakeBold=4.0] + \newfontfamily{\banglaitalic}{solaimanlipi.ttf}[FakeSlant=0.2] + } + { + \newfontface{\banglatext}{kalpurush.ttf} + \newfontfamily{\banglabold}{kalpurush.ttf}[FakeBold=4.0] + \newfontfamily{\banglaitalic}{kalpurush.ttf}[FakeSlant=0.2] + } + } + +} + + + diff --git a/language/bengali/bangla/bangla.tex b/language/bengali/bangla/bangla.tex new file mode 100644 index 0000000000..495f8d94b1 --- /dev/null +++ b/language/bengali/bangla/bangla.tex @@ -0,0 +1,170 @@ +\documentclass{article} +\usepackage{bangla} +\usepackage{xcolor} +\usepackage{listings} +\usepackage{float} +\newcommand{\com}[2]{\textcolor{blue}{\textbackslash\texttt{#1}}\texttt{#2}} + +\begin{document} + +\title{The \texttt{bangla} Package} + +\author{Nahid Hossain \\Assistant Professor, United International University\\Bangladesh\\nahid@cse.uiu.ac.bd\\mailbox.nahid@gmail.com} + +\date{June 7, 2021} +\maketitle +\tableofcontents + +\section{Introduction} +\subsection{About \texttt{bangla} Package} +The \texttt{bangla} package is a programming tools geared primarily towards LaTeX class and package authors. It provides all necessary LaTeX frontends for Bangla language. + +\subsection{Licence} +Copyright © 2021 Nahid Hossain. Permission is granted to copy, distribute and/or modify this software under the terms of the LaTeX Project Public License, version 1.3c or later. +\section{Commands} +\subsection{Use Package} +The basic command to use the package is-\\ \\ +\com{usepackage}{\{bangla\}} + + +\subsection{Font Selection} +\textbf{The default font of the \texttt{bangla} package is \texttt{Kalpurush}}. However, an author can easily change the font using the parameter of the \texttt{usepackage} command. +\\ \\ +\com{usepackage}{[<font name>]\{bangla\}} +\\ + +For example, if an author wants \texttt{Vrinda} as his default font for the whole article, he can write- +\\ \\ +\com{usepackage}{[vrinda]\{bangla\}} +\\ + + +The following fonts are currently associated with the \texttt{bangla} package- + +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Font Name} & \textbf{Command Keyword} \\ +\hline +Vrinda & \textcolor{blue}{\texttt{vrinda}}\\ +\hline +Kalpurush & \textcolor{blue}{\texttt{kalpurush}} \\ +\hline +Solaiman Lipi & \textcolor{blue}{\texttt{solaimanlipi}} \\ +\hline +\end{tabular} +\end{table} + + +\subsection{With Parameter Definitions} +In this subsection, we have demonstrated the commands that requires parameters(at least one or more). +\subsubsection{\com{banglatext}{\{<bangla text here>\}}} +\texttt{banglatext} displays any Bangla texts provided inside the parameter. Insert Bangla text in the parameter.\\ +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Command} & \textbf{Output} \\ +\hline +\texttt{\com{banglatext}{\{\banglatext{আমি বাংলায় কথা বলি।}\}}} & \banglatext{আমি বাংলায় কথা বলি।}\\ +\hline +\end{tabular} +\end{table} + +\subsubsection{\com{banglabold}{\{<bangla text here>\}}} +\texttt{banglabold} bolds the Bangla texts provided inside the parameter. It can make texts bold automatically of any font that has no bold fonts available.\\ +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Command} & \textbf{Output} \\ +\hline +\texttt{\com{banglabold}{\{\banglatext{আমি বাংলায় কথা বলি।}\}}} & \banglabold{আমি বাংলায় কথা বলি।}\\ +\hline +\end{tabular} +\end{table} + +\subsubsection{\com{banglaitalic}{\{<bangla text here>\}}} +\texttt{banglaitalic} makes the Bangla texts italic provided inside the parameter. It can make texts italic automatically of any font that has no italic fonts available.\\ +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Command} & \textbf{Output} \\ +\hline +\texttt{\com{banglaitalic}{\{\banglatext{আমি বাংলায় কথা বলি।}\}}} & \banglaitalic{আমি বাংলায় কথা বলি।}\\ +\hline +\end{tabular} +\end{table} + +\subsubsection{\com{banglatranslit}{\{<bangla text here>\}}} +\texttt{banglatranslit} generates a comprehensive and sophisticated transliteration of Bangla into Latin based on ISO 15919. \texttt{banglatranslit} works on character, word, and sentences as well.\\ +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Command} & \textbf{Output} \\ +\hline +\texttt{\com{banglatranslit}{\{\banglatext{আমি বাংলায় কথা বলি।}\}}} & \banglatranslit{আমি বাংলায় কথা বলি।}\\ +\hline +\end{tabular} +\end{table} + +\subsubsection{\com{banglaipa}{\{<bangla text here>\}}} +\texttt{banglaipa} generates equivalent International Phonetic Alphabets(IPA) symbols for Bangla alphabets. \texttt{banglaipa} works on character, word, and sentences as well.\\ +\begin{table}[H] +\centering +\begin{tabular}{|c|c|} +\hline +\textbf{Command} & \textbf{Output} \\ +\hline +\texttt{\com{banglaipa}{\{\banglatext{আমি বাংলায় কথা বলি।}\}}} & \banglaipa{আমি বাংলায় কথা বলি।}\\ +\hline +\end{tabular} +\end{table} + +\subsection{Without Parameter Definitions} +In this subsection, we have demonstrated the commands that require no parameter at all. + +\subsubsection{\com{banglapage}{}} +\texttt{banglapage} produces bangla page numbering. \texttt{banglapage} does not need any parameters. +Put \texttt{banglapage} command before \textbackslash begin\{document\} command. Such as:\\ +\com{banglapage}{} + + + +\subsubsection{\com{banglasection}{}} +\texttt{banglasection} produces bangla numbering for all sections in the article including all subsections. \texttt{banglasection} does not need any parameters. +Put \texttt{banglasection} command before \textbackslash begin\{document\} command. Such as:\\ +\com{banglasection}{} + + +\subsubsection{\com{banglaenumerate}{}} +\texttt{banglaenumerate} produces level-2 bangla numbering for enumerate or the list in latex for the whole article. \texttt{banglaenumerate} does not need any parameters. +Put \texttt{banglaenumerate} command before \textbackslash begin\{document\} command or anywhere above the enumerate. Such as:\\ +\com{banglaenumerate}{} + + +\subsubsection{\com{banglaequation}{}} +\texttt{banglaequation} produces bangla numbering for all equations in the whole article. \texttt{banglaequation} does not need any parameters. +Put \texttt{banglaequation} command before \textbackslash begin\{document\} command or anywhere above the equations. Such as:\\ +\com{banglaequation}{} + +\subsubsection{\com{banglatable}{}} +\texttt{banglatable} produces bangla numbering for all tables in the whole article. \texttt{banglatable} does not need any parameters. +Put \texttt{banglatable} command before \textbackslash begin\{document\} command or anywhere above the tables. Such as:\\ +\com{banglatable}{} + + +\subsubsection{\com{banglafigure}{}} +\texttt{banglafigure} produces bangla numbering for all figures/images in the whole article. \texttt{banglafigure} does not need any parameters. +Put \texttt{banglafigure} command before \textbackslash begin\{document\} command or anywhere above the figures. Such as:\\ +\com{banglafigure}{} + + +\section{Reporting issues} +To report any error or issue please send an email to nahid@cse.uiu.ac.bd or mailbox.nahid@gmail.com. +\section{Revision History} +This is version 1.0 and it has no revision history yet. +\end{document} diff --git a/language/bengali/bangla/doulos.ttf b/language/bengali/bangla/doulos.ttf Binary files differnew file mode 100644 index 0000000000..095e26f402 --- /dev/null +++ b/language/bengali/bangla/doulos.ttf diff --git a/language/bengali/bangla/kalpurush.ttf b/language/bengali/bangla/kalpurush.ttf Binary files differnew file mode 100644 index 0000000000..537cf8da5b --- /dev/null +++ b/language/bengali/bangla/kalpurush.ttf diff --git a/language/bengali/bangla/solaimanlipi.ttf b/language/bengali/bangla/solaimanlipi.ttf Binary files differnew file mode 100644 index 0000000000..7e58d118bc --- /dev/null +++ b/language/bengali/bangla/solaimanlipi.ttf diff --git a/language/bengali/bangla/vrinda.ttf b/language/bengali/bangla/vrinda.ttf Binary files differnew file mode 100644 index 0000000000..bdef0c8f36 --- /dev/null +++ b/language/bengali/bangla/vrinda.ttf diff --git a/language/japanese/pxjahyper/README-ja.md b/language/japanese/pxjahyper/README-ja.md index 73a6d0f554..e6d8f90159 100644 --- a/language/japanese/pxjahyper/README-ja.md +++ b/language/japanese/pxjahyper/README-ja.md @@ -70,6 +70,9 @@ pxjahyper-enc パッケージ ー 文字コード設定 更新履歴 -------- + * Version 0.9c 〈2021/06/06〉 + - pxjahyper-uni モジュールを実際に使用する。 + * Version 0.9b 〈2021/05/29〉 - PDF 文字列中で pxbabel の `\UTFJ` をサポート。 - モジュール pxjahyper-uni.def を追加。 diff --git a/language/japanese/pxjahyper/README.md b/language/japanese/pxjahyper/README.md index d10519799f..0ac2707534 100644 --- a/language/japanese/pxjahyper/README.md +++ b/language/japanese/pxjahyper/README.md @@ -52,6 +52,7 @@ the PDF strings in the output DVI file. Revision History ---------------- + * Version 0.9c 〈2021/06/06〉 * Version 0.9b 〈2021/05/29〉 * Version 0.9a 〈2021/05/11〉 * Version 0.9 〈2021/05/10〉 diff --git a/language/japanese/pxjahyper/pxjahyper-ajm.def b/language/japanese/pxjahyper/pxjahyper-ajm.def index 976439c0ff..cb8cbd28af 100644 --- a/language/japanese/pxjahyper/pxjahyper-ajm.def +++ b/language/japanese/pxjahyper/pxjahyper-ajm.def @@ -11,7 +11,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesFile{pxjahyper-ajm.def}[2021/05/29 v0.9b] +\ProvidesFile{pxjahyper-ajm.def}[2021/06/06 v0.9c] %% avoid multiple loading \csname pxjahyperajmLoaded\endcsname diff --git a/language/japanese/pxjahyper/pxjahyper-enc.sty b/language/japanese/pxjahyper/pxjahyper-enc.sty index fc33bc6fa3..f51dc75e78 100644 --- a/language/japanese/pxjahyper/pxjahyper-enc.sty +++ b/language/japanese/pxjahyper/pxjahyper-enc.sty @@ -10,7 +10,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{pxjahyper-enc}[2021/05/29 v0.9b] +\ProvidesPackage{pxjahyper-enc}[2021/06/06 v0.9c] \def\pxhe@pkgname{pxjahyper-enc} \providecommand{\bxDebug}[1]{} diff --git a/language/japanese/pxjahyper/pxjahyper-uni.def b/language/japanese/pxjahyper/pxjahyper-uni.def index 54671ca190..c05b0369f7 100644 --- a/language/japanese/pxjahyper/pxjahyper-uni.def +++ b/language/japanese/pxjahyper/pxjahyper-uni.def @@ -10,7 +10,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesFile{pxjahyper-uni.def}[2021/05/29 v0.9b] +\ProvidesFile{pxjahyper-uni.def}[2021/06/06 v0.9c] \providecommand{\bxDebug}[1]{} %--------------------------------------- environment check diff --git a/language/japanese/pxjahyper/pxjahyper.pdf b/language/japanese/pxjahyper/pxjahyper.pdf Binary files differindex 02224f5d8b..25651f8654 100644 --- a/language/japanese/pxjahyper/pxjahyper.pdf +++ b/language/japanese/pxjahyper/pxjahyper.pdf diff --git a/language/japanese/pxjahyper/pxjahyper.sty b/language/japanese/pxjahyper/pxjahyper.sty index f23d94a223..486792b8d7 100644 --- a/language/japanese/pxjahyper/pxjahyper.sty +++ b/language/japanese/pxjahyper/pxjahyper.sty @@ -10,7 +10,7 @@ %% package declaration \NeedsTeXFormat{pLaTeX2e} -\ProvidesPackage{pxjahyper}[2021/05/29 v0.9b] +\ProvidesPackage{pxjahyper}[2021/06/06 v0.9c] \def\pxhy@pkgname{pxjahyper} \providecommand{\bxDebug}[1]{} @@ -384,6 +384,59 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \def\pxhy@if@opt@b#1#2]{#1{#2}} \fi +%--------------------------------------- Load bxjatoucs + +%% \pxhy@bxjatoucs@failure +% Holds the reason message if bxjatoucs is unavailable; +% otherwise equals to \relax. +\@onlypreamble\pxhy@bxjatoucs@failure +\let\pxhy@bxjatoucs@failure\relax + +%% \pxhy@try@load@bxjatoucs +% Tries to load bxjatoucs. If it failed, then it sets the reason +% message to \pxhy@bxjatoucs@failure. +\@onlypreamble\pxhy@try@load@bxjatoucs +\def\pxhy@try@load@bxjatoucs{% + \global\let\pxhy@try@load@bxjatoucs\relax + \ifpxhy@etoolbox + % load bxjatoucs in "check mode" + \IfFileExists{bxjatoucs.sty}{% + \let\bxjatoucsCheckAvail=t + \RequirePackage{bxjatoucs}[] + \undef\bxjatoucsCheckAvail + }{} + % and judge availability + \ifundef\bxjaCidToUcs{% + \def\pxhy@bxjatoucs@failure{% + package 'bxjatoucs' is unavailable% + }% + }{} + \else\ifpxhy@etex + \def\pxhy@bxjatoucs@failure{% + package 'etoolbox' is unavailable% + } + \else + \def\pxhy@bxjatoucs@failure{% + e-TeX extension is unavailable% + } + \fi\fi +} + +\@tempswafalse +\ifpxhy@uptex\else\ifpxhy@hy@unicode + \pxhy@try@load@bxjatoucs + \ifx\pxhy@bxjatoucs@failure\relax\else + \@tempswatrue + \fi +\fi\fi +\if@tempswa + \PackageError\pxhy@pkgname + {The hyperref 'unicode' mode is not supported\MessageBreak + because \pxhy@bxjatoucs@failure}% + {\pxhy@eh@fatal}% + \expandafter\endinput +\fi + %--------------------------------------- Output 'tounicode' special \ifpxhy@tounicode @@ -711,35 +764,11 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% %--------------------------------------- Support for 'otfcid' \ifpxhy@otfcid -%% \pxhy@otfcid@disabled -% Holds the message if otfcid/otfmacros is unavailable; -% otherwise equals to \relax. -\@onlypreamble\pxhy@otfcid@disabled -\let\pxhy@otfcid@disabled\relax -\ifpxhy@etoolbox - % check if bxjatoucs is available - \IfFileExists{bxjatoucs.sty}{% - \let\bxjatoucsCheckAvail=t - \RequirePackage{bxjatoucs}[] - \undef\bxjatoucsCheckAvail - }{} - \ifundef\bxjaCidToUcs{% - \def\pxhy@otfcid@disabled{% - package 'bxjatoucs' is unavailable% - }% - }{} -\else\ifpxhy@etex - \def\pxhy@otfcid@disabled{% - package 'etoolbox' is unavailable% - } -\else - \def\pxhy@otfcid@disabled{% - e-TeX extension is unavailable% - } -\fi\fi +%% packages +\pxhy@try@load@bxjatoucs %% annihilate the ajmacros's own pdfstring process -\ifpxhy@otfmacros\ifx\pxhy@otfcid@disabled\relax +\ifpxhy@otfmacros\ifx\pxhy@bxjatoucs@failure\relax \let\ajRedefine@ajCommands\relax \fi\fi @@ -773,14 +802,14 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \@onlypreamble\pxhy@dispatch@otfcid \def\pxhy@dispatch@otfcid{% \global\let\pxhy@dispatch@otfcid\relax - \ifx\pxhy@otfcid@disabled\relax % available! + \ifx\pxhy@bxjatoucs@failure\relax % available! \pdfstringdefDisableCommands{% \let\CID\pxhy@CID }% \else \PackageWarningNoLine\pxhy@pkgname {Option 'otfcid'/'otfmacros' is disabled, because\MessageBreak - \pxhy@otfcid@disabled}% + \pxhy@bxjatoucs@failure}% \pxhy@otfcidfalse \fi } @@ -789,7 +818,7 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \@onlypreamble\pxhy@dispatch@otfmacros \def\pxhy@dispatch@otfmacros{% \global\let\pxhy@dispatch@otfmacros\relax - \ifx\pxhy@otfcid@disabled\relax % available! + \ifx\pxhy@bxjatoucs@failure\relax % available! \let\ajRedefine@ajCommands\relax \chardef\pxhy@tmp@orgcc=\catcode`\@ \makeatletter @@ -989,7 +1018,7 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \pxDeclarePdfTextCommand{\textcent}{2171}{00A2} \pxDeclarePdfTextCommand{\textsterling}{2172}{00A3} \pxDeclarePdfTextCommand{\textcurrency}{}{00A4} -\pxDeclarePdfTextCommand{\textyen}{}{00A5} +\pxDeclarePdfTextCommand{\textyen}{216F}{00A5} \pxDeclarePdfTextCommand{\textbrokenbar}{}{00A6} \pxDeclarePdfTextCommand{\textsection}{2178}{00A7} \pxDeclarePdfTextCommand{\textasciidieresis}{212F}{00A8} @@ -1089,27 +1118,19 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% %% %%[B] Aliases to [A]. -%\pxDeclarePdfTextCommand{\copyright}{}{00A9} \pxDeclarePdfTextCommand{\textflqq}{}{00AB} -\pxDeclarePdfTextCommand{\flqq}{}{00AB} \pxDeclarePdfTextCommand{\textneg}{224C}{00AC} \pxDeclarePdfTextCommand{\textpm}{215E}{00B1} \pxDeclarePdfTextCommand{\textcdot}{}{00B7} \pxDeclarePdfTextCommand{\textfrqq}{}{00BB} -\pxDeclarePdfTextCommand{\frqq}{}{00BB} \pxDeclarePdfTextCommand{\texttimes}{215F}{00D7} \pxDeclarePdfTextCommand{\textdiv}{2160}{00F7} \pxDeclarePdfTextCommand{\textgrq}{2146}{2018} \pxDeclarePdfTextCommand{\textglq}{}{201A} -\pxDeclarePdfTextCommand{\textquotesinglbase}{}{201A} \pxDeclarePdfTextCommand{\textgrqq}{2148}{201C} -\pxDeclarePdfTextCommand{\crqq}{2148}{201C} \pxDeclarePdfTextCommand{\textglqq}{}{201E} -\pxDeclarePdfTextCommand{\clqq}{}{201E} -\pxDeclarePdfTextCommand{\textquotedblbase}{}{201E} \pxDeclarePdfTextCommand{\textflq}{}{2039} \pxDeclarePdfTextCommand{\textfrq}{}{203A} -\pxDeclarePdfTextCommand{\textEuro}{}{20AC} \pxDeclarePdfTextCommand{\guillemetleft}{}{00AB} \pxDeclarePdfTextCommand{\guillemetright}{}{00BB} %% @@ -1328,77 +1349,53 @@ pxhy@textcmd = \ifpxhy@textcmd true\else false\fi^^J% \fi %</unicode> %%%%%%%%%%%%%%%%%%%% done +\ifpxhy@textcmd %<*textcmd> + + %% \pxhy@disable@tc@commands + \def\pxhy@disable@tc@commands{% + \let\yen\textyen + \let\copyright\textcopyright + \let\flqq\textflqq + \let\frqq\textfrqq + \let\textquotesinglbase\quotesinglbase + \let\crqq\textglqq + \let\clqq\textgrqq + \let\textquotedblbase\quotedblbase + \let\textEuro\texteuro + } + %% register to 'disable' list + \ltx@GlobalPrependToMacro\pdfstringdefPreHook{\pxhy@disable@tc@commands} + + \ifpxhy@hy@unicode %<*unicode> + + %% supplementary definitions + \def\pxhy@next#1#2{% + \expandafter\ifx\csname PU\string#1\endcsname\relax + \DeclareTextCommand{#1}{PU}{#2}\fi} + \pxhy@next{\guillemetleft}{\80\253}%00AB + \pxhy@next{\guillemetright}{\80\273}%00BB + \pxhy@next{\textborn}{\9046\005}%2605 + \pxhy@next{\textfinalsigma}{\83\302}%03C2 + \pxhy@next{\textxgeq}{\9042\145}%2265 + \pxhy@next{\textxleq}{\9042\144}%2264 + + \fi %</unicode> +\fi %</textcmd> + %--------------------------------------- Enable hyperref unicode \ifpxhy@hy@unicode -%% check the current meaning -\def\pxhy@tmpa#1{\@backslashchar 000#1} -\ifx\HyPsd@Char\pxhy@tmpa -\PackageInfo\pxhy@pkgname - {The setup for hyperref 'unicode' is applied.\@gobbletwo} - -%% The following code is taken from hyperref.sty. -%%%%BEGIN - \def\HyPsd@Char#1{% - \ifnum`#1<128 % - \@backslashchar 000#1% - \else - \ifnum`#1<65536 % - \expandafter\HyPsd@CharTwoByte\number`#1!% - \else - \expandafter\expandafter\expandafter\HyPsd@CharSurrogate - \intcalcSub{`#1}{65536}!% - \fi - \fi - }% - \def\HyPsd@CharTwoByte#1!{% - \expandafter\expandafter\expandafter\HyPsd@CharOctByte - \IntCalcDiv#1!256!!% - \expandafter\expandafter\expandafter\HyPsd@CharOctByte - \IntCalcMod#1!256!!% - }% - \def\HyPsd@CharOctByte#1!{% - \@backslashchar - \IntCalcDiv#1!64!% - \intcalcDiv{\IntCalcMod#1!64!}{8}% - \IntCalcMod#1!8!% - }% - \def\HyPsd@CharSurrogate#1!{% - \@backslashchar 33% - \IntCalcDiv#1!262144!% - \expandafter\expandafter\expandafter\HyPsd@CharOctByte - \intcalcDiv{\IntCalcMod#1!262144!}{1024}!% - \@backslashchar 33% - \expandafter\expandafter\expandafter\IntCalcAdd - \intcalcDiv{\IntCalcMod#1!1024!}{256}!4!% - \expandafter\expandafter\expandafter\HyPsd@CharOctByte - \IntCalcMod#1!256!!% - }% -%%%%END +%% load the submodule +\input{pxjahyper-uni.def} +\ifx t\pxHyperrefUnicodePatched + \PackageInfo\pxhy@pkgname + {The setup for hyperref 'unicode' is applied.\@gobbletwo} +\else + \PackageInfo\pxhy@pkgname + {The setup for hyperref 'unicode' is NOT applied!\MessageBreak + The package might not work properly.\@gobbletwo} \fi -\ifpxhy@uptex\else %<*pTeX> - \RequirePackage{bxjatoucs}[] - \def\HyPsd@Char#1{% - \ifnum`#1<128 % - \@backslashchar 000#1% - \else\ifnum`#1<256 % - \expandafter\HyPsd@CharTwoByte\number`#1!% - \else - \expandafter\HyPsd@CharTwoByte\number\pxhy@to@ucs{`#1}!% - \fi\fi - }% - \def\pxhy@to@ucs#1{"FFFD} - \ifnum\jis"2121="8140 % sjis - \let\pxhy@to@ucs\bxjaSjisToUcs - \else\ifnum\jis"2121="A1A1 % euc - \let\pxhy@to@ucs\bxjaEucToUcs - \fi\fi -\fi %</pTeX> - -%% disable the verification of bxjscls -\let\jsCheckHyperrefUnicode\@empty - \fi %--------------------------------------- 'jacommentline' \ifpxhy@jacommentline diff --git a/language/japanese/pxjahyper/pxjahyper.tex b/language/japanese/pxjahyper/pxjahyper.tex index aaf7e2cb65..2af226192e 100644 --- a/language/japanese/pxjahyper/pxjahyper.tex +++ b/language/japanese/pxjahyper/pxjahyper.tex @@ -1,13 +1,23 @@ % 文字コードは UTF-8 % uplatex で組版する -\documentclass[uplatex,a4paper]{jsarticle} +\documentclass[uplatex,dvipdfmx,a4paper]{jsarticle} \renewcommand{\headfont}{\gtfamily\romanseries{sbc}\sffamily} -\usepackage{shortvrb} -\MakeShortVerb{\|} +\usepackage[T1]{fontenc} +\usepackage{lmodern,textcomp} +\usepackage{color} +\definecolor{myblue}{rgb}{0,0,0.75} +\definecolor{mygreen}{rgb}{0,0.45,0} +\usepackage[colorlinks,hyperfootnotes=false]{hyperref} +\usepackage{pxjahyper} +\hypersetup{linkcolor=myblue,urlcolor=mygreen, + pdftitle={pxjahyperパッケージ}, + pdfauthor={八登崇之}} \usepackage{bxtexlogo} \bxtexlogoimport{*} -\newcommand{\PkgVersion}{0.9b} -\newcommand{\PkgDate}{2021/05/29} +\usepackage{shortvrb} +\MakeShortVerb{\|} +\newcommand{\PkgVersion}{0.9c} +\newcommand{\PkgDate}{2021/06/06} \newcommand{\Pkg}[1]{\textsf{#1}} \newcommand{\Meta}[1]{$\langle$\mbox{}#1\mbox{}$\rangle$} \newcommand{\Note}{\par\noindent ※} @@ -19,6 +29,7 @@ \author{八登崇之\ (Takayuki YATO; aka.~``ZR'')} \date{v\PkgVersion\quad[\PkgDate]} \maketitle +\tableofcontents %=========================================================== \section{概要} @@ -131,7 +142,7 @@ Unicode符号値入力用の命令が使っているものである。 |\Ux| でUnicode符号値入力が可能になる。 ただし、Unicode符号値入力用の命令としては 「\Pkg{japanese-otf}パッケージの |\UTF| 命令」 -の方が有名であり、\Pkg{pxjahyper}は |\UTF| も正しく扱えるので、 +の方が有名であり、\Pkg{pxjahyper}は |\UTF| もサポートするので、 こちらを使う方が無難かもしれない。} \begin{itemize} |