-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub Actions
committed
Dec 16, 2024
1 parent
b1ce196
commit 09d63e8
Showing
4 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+849 KB
en/brahmali/pli-tv-vi/epub/Theravāda-Collection-on-Monastic-Law-brahmali-cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.08 MB
en/brahmali/pli-tv-vi/epub/Theravāda-Collection-on-Monastic-Law-brahmali-cover.pdf
Binary file not shown.
127 changes: 127 additions & 0 deletions
127
en/brahmali/pli-tv-vi/epub/Theravāda-Collection-on-Monastic-Law-brahmali-cover.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
\documentclass[coverheight=9in,coverwidth=3in,pagecolor=backgroundcolor,bleedwidth=3.5mm,marklength=0in,12pt]{bookcover}% | ||
% | ||
% | ||
\usepackage{setspace} | ||
\usepackage[12pt]{moresize} | ||
\usepackage{microtype} | ||
\usepackage{fontspec} | ||
\usepackage[code=Code39]{makebarcode} | ||
\usepackage{contour} | ||
\usepackage{graphicx} | ||
\usepackage{polyglossia} | ||
|
||
|
||
\setdefaultlanguage[]{english} | ||
\setotherlanguage[script=Latin]{sanskrit} | ||
|
||
\newcommand*{\z}[1]{\contourlength{2pt}\contour{backgroundcolor}{#1}}% | ||
|
||
\newcommand*{\fronttranslationtitle}[1]{\flushleft\setstretch{3.5}\Lightfont{\fontsize{60pt}{80pt}\selectfont{#1}}}% | ||
|
||
\newcommand*{\fronttranslationsubtitle}[1]{\flushleft\normalfont\setstretch{2}{\Huge{\color{secondarytextcolor}{#1}}}\vspace{0em}}% | ||
|
||
\newcommand*{\frontbyline}[1]{\flushright\setstretch{1}{\textit{\Large{\color{secondarytextcolor}{#1}}}}\vspace{-.75em}}% | ||
|
||
\newcommand*{\frontcreatorname}[1]{\flushright\setstretch{1}{\Huge{#1}}}% | ||
|
||
\newcommand*{\frontvolumenumber}[1]{\flushleft{\lowercase{\scshape\Large{\color{secondarytextcolor}{#1}}}}\\\vspace{-1.6em}}% | ||
|
||
\newcommand*{\frontvolumeacronym}[1]{\flushleft{\huge{#1}\\\vspace{-.4em}}}% | ||
|
||
\newcommand*{\frontvolumetranslationtitle}[1]{\flushleft{\setstretch{.2}{\large{#1}}\\\vspace{-.8em}}}% | ||
|
||
\newcommand*{\frontvolumeroottitle}[1]{\flushleft{\setstretch{.2}{\large\itshape{\color{secondarytextcolor}{#1}}}}}% | ||
|
||
\setmainfont[Numbers=OldStyle]{Arno Pro} | ||
|
||
\newfontfamily\Lightfont[]{Arno Pro Light Display} | ||
|
||
\newfontfamily\Noligaturecaptionfont[Renderer=Basic]{Arno Pro Caption} | ||
|
||
% use a small amount of tracking on small caps | ||
\SetTracking[ spacing = {25*,166, } ]{ encoding = *, shape = sc }{ 50 } | ||
|
||
% hang quotes (requires microtype) | ||
\microtypesetup{ | ||
protrusion = true, | ||
expansion = true, | ||
tracking = true, | ||
factor = 1000, | ||
patch = all, | ||
final | ||
} | ||
|
||
% Custom protrusion rules to allow hanging punctuation | ||
\SetProtrusion | ||
{ encoding = *} | ||
{ | ||
% char right left | ||
{-} = { , 500 }, | ||
% Double Quotes | ||
\textquotedblleft | ||
= {1000, }, | ||
\textquotedblright | ||
= { , 1000}, | ||
\quotedblbase | ||
= {1000, }, | ||
% Single Quotes | ||
\textquoteleft | ||
= {1000, }, | ||
\textquoteright | ||
= { , 1000}, | ||
\quotesinglbase | ||
= {1000, } | ||
} | ||
|
||
\setstretch{1.05} | ||
|
||
% individual | ||
% grey colors | ||
|
||
\providecolor{textcolor}{HTML}{ffffff} | ||
|
||
\providecolor{secondarytextcolor}{HTML}{CFDEE3} | ||
|
||
\providecolor{backgroundcolor}{HTML}{243237} | ||
|
||
\color{textcolor} | ||
|
||
% images. position of cover image can be adjusted if necessary | ||
|
||
\newcommand*{\backlogo}[1]{\normalsize\Logofont{\color{secondarytextcolor}{#1}}} | ||
|
||
\newcommand*{\spinelogo}[1]{\centering{\Large\Logofont{\color{secondarytextcolor}{#1}}}} | ||
|
||
% block with if condition required for generating cover background image | ||
\newcommand*{\coverimage}[1]{\vspace*{3in}\hspace*{2in}{\includegraphics[height=8in]{/app/sutta_publisher/images/grey1.png}}} | ||
% | ||
% | ||
\begin{document}% | ||
\pagestyle{empty}% | ||
\normalsize% | ||
\begin{bookcover} | ||
|
||
\bookcovercomponent{normal}{bg whole}{ | ||
\vspace*{3in} | ||
\hspace*{2in}{\coverimage{}} | ||
} | ||
|
||
\bookcovercomponent{normal}{whole}[.95in,.92in,1in,.75in]{ | ||
|
||
\fronttranslationtitle{\z{\textsanskrit{Theravāda}} \z{Collection} \z{on} \z{Monastic} \z{Law}} | ||
|
||
\fronttranslationsubtitle{\z{A} \z{translation} \z{of} \z{the} \z{Pali} \z{Vinaya} \z{\textsanskrit{Piṭaka}} \z{into} \z{English}} | ||
|
||
\hfil{\color{secondarytextcolor}{\rule{4in}{1pt}}}\hfil | ||
|
||
\frontbyline{\z{translated} \z{by}} | ||
\frontcreatorname{\z{Bhikkhu} \z{Brahmali}} | ||
|
||
\vfill | ||
|
||
\setstretch{1.05} | ||
|
||
\frontvolumeacronym{\z{Vi}}} | ||
|
||
\end{bookcover}% | ||
\end{document} |
Binary file added
BIN
+2.13 MB
en/brahmali/pli-tv-vi/epub/Theravāda-Collection-on-Monastic-Law-brahmali.epub
Binary file not shown.