X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/ae0b96d850262996ccf7f133cb455e73f3f7673c..e2bc69b731434e6929686637ba4cf296632138e2:/librarian/pdf/wl.sty

diff --git a/librarian/pdf/wl.sty b/librarian/pdf/wl.sty
index 847504c..897535e 100644
--- a/librarian/pdf/wl.sty
+++ b/librarian/pdf/wl.sty
@@ -7,6 +7,10 @@
 \usepackage{xunicode}
 \usepackage{xltxtra}
 
+\usepackage[overload]{textcase}
+\usepackage{scalefnt}
+\usepackage[colorlinks=true,linkcolor=black,urlcolor=black]{hyperref}
+
 \setmainfont [
 %ExternalLocation,
 UprightFont = JunicodeWL-Regular,
@@ -20,6 +24,14 @@ Scale=1.04,
 LetterSpace=-1.0
 ] {JunicodeWL}
 
+\newfontfamily\alien[
+SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}},
+Numbers=OldStyle,
+Scale=0.85,
+LetterSpace=-1.0
+] {DejaVu Serif}
+
+
 \defaultfontfeatures{
 SizeFeatures={
   {Size={-10}, FakeStretch=1.02, LetterSpace=2.0 },
@@ -76,6 +88,19 @@ Letters={SmallCaps,UppercaseSmallCaps}
 \clubpenalty=100000
 \widowpenalty=100000
 
+
+% see http://osdir.com/ml/tex.xetex/2005-10/msg00003.html
+\newsavebox{\ximagebox}\newlength{\ximageheight}
+\newsavebox{\xglyphbox}\newlength{\xglyphheight}
+\newcommand{\xbox}[1]
+{\savebox{\ximagebox}{#1}\settoheight{\ximageheight}{\usebox {\ximagebox}}%
+\savebox{\xglyphbox}{\char32}\settoheight{\xglyphheight}{\usebox {\xglyphbox}}%
+\raisebox{\ximageheight}[0pt][0pt]{%\raisebox{-\xglyphheight}[0pt] [0pt]{%
+\makebox[0pt][l]{\usebox{\xglyphbox}}}%}%
+\usebox{\ximagebox}%
+\raisebox{0pt}[0pt][0pt]{\makebox[0pt][r]{\usebox{\xglyphbox}}}}
+
+
 \renewcommand{\maketitle}{
     {
     \thispagestyle{empty}
@@ -83,40 +108,48 @@ Letters={SmallCaps,UppercaseSmallCaps}
     \color{theme}
 
     \noindent \begin{minipage}[t]{.35\textwidth}\vspace{0pt}
-        \includegraphics[width=\textwidth]{wl-logo.png}
+        \href{http://www.wolnelektury.pl}{\xbox{\includegraphics[width=\textwidth]{wl-logo.png}}}
     \end{minipage}
     \begin{minipage}[t]{.65\textwidth}\vspace{0pt}
-        \sourceinfo
 
+        \href{\bookurl}{Ta lektura}, podobnie jak tysiÄce innych, jest dostÄpna on-line na stronie
+        \href{http://www.wolnelektury.pl/}{wolnelektury.pl}.
         \vspace{.5em}
 
-        WejdÅº na stronÄ http://wolnelektury.pl/ i~zobacz, jak wiele moÅ¼liwoÅci daje interaktywna wersja szkolnej biblioteki
-        internetowej Wolne Lektury.
-        \vspace{.5em}
-
-        Ten utwÃ³r nie jest chroniony prawem autorskim i~znajduje siÄ w~domenie publicznej, co oznacza, Å¼e moÅ¼esz go swobodnie wykorzystywaÄ, publikowaÄ i~rozpowszechniaÄ.
-
-        \vspace{.6em}
+        UtwÃ³r opracowany zostaÅ w ramach projektu \href{http://www.wolnelektury.pl/}{Wolne Lektury}
+        przez \href{http://nowoczesnapolska.org.pl}{fundacjÄ Nowoczesna Polska}.
 
     \end{minipage}
     \noindent \rule{\linewidth}{0.4pt}
 
     \vspace{.6em}
     \color{black}
+    }
+}
 
-%    \begin{figure}[b!]
-%        \footnotesize
-%        \color{theme}
-%        \noindent \rule{\linewidth}{0.4pt}
+\newcommand{\editorialsection}{
+  \begin{figure}[b!]
+  {
+    \footnotesize
+    \color{theme}
+    \noindent \rule{\linewidth}{0.4pt}
 
-%        Szkolna biblioteka internetowa Wolne Lektury tworzona jest dziÄki pracy Wolontariuszy, ale to osoby
-%        zatrudnione w~FNP bÄdÄ musiaÅy wymyÅliÄ, co powinno zostaÄ napisane w~tym miejscu. MoÅ¼na zupeÅnie usunÄÄ
-%        tÄ sekcjÄ, ale autor konwertera chciaÅ siÄ popisaÄ, Å¼e umie coÅ takiego zrobiÄ.
-%        \color{black}
-%    \end{figure}
-    }
+    \rightsinfo
+    \vspace{.6em}
+
+    \sourceinfo
+
+    \description
+    \vspace{.6em}
+
+    \editors
+
+    \color{black}
+  }
+  \end{figure}
 }
 
+
 \newcommand{\typosubsubsection}[1]{%
 {\textsc{#1}}
 }
@@ -134,7 +167,14 @@ Letters={Uppercase}
 }
 
 \newcommand{\typosection}[1]{%
-{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
+{\addfontfeature{FakeStretch=0.96, LetterSpace=-4.0}\emph{\scalefont{2}#1}}
+%{\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}}
+}
+
+
+\newcommand{\tytul}[1]{%
+#1%
+\vspace{1em}%
 }
 
 \newcommand{\nazwapodutworu}[1]{%
@@ -145,10 +185,23 @@ Letters={Uppercase}
 \subsection*{\typosubsection{#1}}%
 }
 
+\newcommand{\dzielonadrzedne}[1]{%
+\subsection*{\typosubsubsection{#1}}%
+}
+
 \newcommand{\nazwautworu}[1]{%
 \section*{\typosection{#1}}%
 }
 
+\newcommand{\podtytul}[1]{%
+\subsection*{\typosubsubsection{#1}}%
+}
+
+\newcommand{\translator}[1]{%
+\subsection*{\typosubsubsection{tÅum. #1}}%
+}
+
+
 \newcommand{\powiesc}[1]{#1}
 \newcommand{\opowiadanie}[1]{#1}
 \newcommand{\lirykal}[1]{#1}
@@ -272,10 +325,10 @@ Letters={Uppercase}
 }
 
 
-\newcommand{\pa}[1]{\footnote{#1}}
-\newcommand{\pe}[1]{\footnote{#1}}
-\newcommand{\pr}[1]{\footnote{#1}}
-\newcommand{\pt}[1]{\footnote{#1}}
+\newcommand{\pa}[1]{\NoCaseChange{\footnote{#1}}}
+\newcommand{\pe}[1]{\NoCaseChange{\footnote{#1}}}
+\newcommand{\pr}[1]{\NoCaseChange{\footnote{#1}}}
+\newcommand{\pt}[1]{\NoCaseChange{\footnote{#1}}}
 
 \newcommand{\mat}[1]{$#1$}
 
@@ -297,15 +350,20 @@ Letters={Uppercase}
 }
 
 \newcommand{\sekcjaswiatlo}{%
-\hspace{30pt}%
+\vspace{30pt}%
 }
 
 \newcommand{\sekcjaasterysk}{%
+\vspace{10pt}%
+\begin{center}%
 \par{*}%
+\end{center}%
 }
 
 \newcommand{\separatorlinia}{%
+\vspace{10pt}%
 \hrule{}%
+\vspace{10pt}%
 }
 
 \newcommand{\motyw}[2][0]{%
