From: Jan Szejko Date: Wed, 26 Jul 2017 13:28:37 +0000 (+0200) Subject: right-aligned poem line in WL XML X-Git-Tag: 1.7~45 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/4d46ba6c455d3544dbf195424f61546978a82d75?ds=sidebyside right-aligned poem line in WL XML --- diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index d6f69bb..29966e4 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -207,6 +207,12 @@   + +
+ +  
+
+
diff --git a/librarian/pdf/wl.cls b/librarian/pdf/wl.cls index 575f7c4..824ac19 100644 --- a/librarian/pdf/wl.cls +++ b/librarian/pdf/wl.cls @@ -500,6 +500,9 @@ Letters={Uppercase} \newcommand{\werswciety}[2][1em]{% \Nw\hspace*{#1}#2% } +\newcommand{\wersdoprawej}[1]{% +\Nw\hspace*{\fill}#1% +} \ifshowfootnotes \newcommand{\pa}[1]{\NoCaseChange{\footnote{#1 [przypis autorski]}}} diff --git a/librarian/pdf/wl2tex.xslt b/librarian/pdf/wl2tex.xslt index 525b412..f26f62a 100644 --- a/librarian/pdf/wl2tex.xslt +++ b/librarian/pdf/wl2tex.xslt @@ -312,7 +312,7 @@ - + \\{} @@ -321,14 +321,14 @@ - + - + diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index 07588b6..d62071e 100644 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -200,7 +200,7 @@ - + @@ -208,14 +208,14 @@ - + - + @@ -243,6 +243,9 @@ padding-left: 12em + + text-align: right +

diff --git a/librarian/xslt/book2txt.xslt b/librarian/xslt/book2txt.xslt index 322dd74..514d624 100644 --- a/librarian/xslt/book2txt.xslt +++ b/librarian/xslt/book2txt.xslt @@ -180,7 +180,7 @@ - + @@ -188,14 +188,14 @@ - + - + @@ -226,6 +226,9 @@ + + + diff --git a/librarian/xslt/config.xml b/librarian/xslt/config.xml index 4730f4b..113c464 100644 --- a/librarian/xslt/config.xml +++ b/librarian/xslt/config.xml @@ -49,6 +49,7 @@ + diff --git a/librarian/xslt/normalize.xslt b/librarian/xslt/normalize.xslt index 85a2a65..435c30a 100644 --- a/librarian/xslt/normalize.xslt +++ b/librarian/xslt/normalize.xslt @@ -51,7 +51,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -70,7 +70,7 @@ - + diff --git a/tests/files/example-wl.xml b/tests/files/example-wl.xml index 6a06517..945eee5 100644 --- a/tests/files/example-wl.xml +++ b/tests/files/example-wl.xml @@ -83,6 +83,7 @@ autor_utworu, dzielo_nadrzedne, nazwa_utworu, podtytul, tłumacz (z DC)] wers_wciety@typ=4/ wers_wciety@typ=5/ wers_wciety@typ=6/ +wers do prawej/ wers_cd/ . . . . . . . . . . . . . . . .