(cherry picked from commit
8a57745)
- line-height: 1.5em;
- margin: 0;
+ line-height: 1.5em;
+ margin: 0;
- text-decoration: none;
- color: #00e;
+ text-decoration: none;
+ color: #00e;
- font-size: 2em;
- margin: 0;
- margin-top: 1.5em;
- font-weight: bold;
- line-height: 1.5em;
+ font-size: 2em;
+ margin: 0;
+ margin-top: 1.5em;
+ font-weight: bold;
+ line-height: 1.5em;
margin: 0;
margin-top: 1.5em;
margin: 0;
margin-top: 1.5em;
}
/* ======================== */
}
/* ======================== */
- border-left: 0.1em solid #DDDDDD;
- color: #777;
- padding: 0 0.5em;
- width: 7.5em;
- font-style: normal;
- font-weight: normal;
- font-size: 0.875em;
- float: right;
- margin-right: -9.5em;
- clear: both;
- left: 40em;
- line-height: 1.5em;
- text-align: left;
+ border-left: 0.1em solid #DDDDDD;
+ color: #777;
+ padding: 0 0.5em;
+ width: 7.5em;
+ font-style: normal;
+ font-weight: normal;
+ font-size: 0.875em;
+ float: right;
+ margin-right: -9.5em;
+ clear: both;
+ left: 40em;
+ line-height: 1.5em;
+ text-align: left;
text-align: center;
font-weight: bold;
text-align: center;
font-weight: bold;
- font-size: 1.125em;
- line-height: 1.5em;
- margin-bottom: -0.25em;
+ font-size: 1.125em;
+ line-height: 1.5em;
+ margin-bottom: -0.25em;
+.frame
+{
+ border: 1px darkgray solid;
+}
+
+ <xsl:template match="ramka">
+ <div class="frame" xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:apply-templates />
+ </div>
+ </xsl:template>
+
<xsl:template match="motto">
<div class="motto" xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates />
<xsl:template match="motto">
<div class="motto" xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates />
<empty-line/><p>————————</p><empty-line/>
</xsl:template>
<empty-line/><p>————————</p><empty-line/>
</xsl:template>
+ <xsl:template mode="para" match="ramka">
+ <xsl:apply-templates mode="para" />
+ </xsl:template>
<xsl:template mode="para" match="*"/>
<xsl:template mode="para" match="*"/>
def add_anchors(root):
counter = 1
for element in root.iterdescendants():
def add_anchors(root):
counter = 1
for element in root.iterdescendants():
- if any_ancestor(element, lambda e: e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication')
+ if any_ancestor(element, lambda e: e.get('class') in ('note', 'motto', 'motto_podpis', 'dedication', 'frame')
or e.get('id') == 'nota_red'
or e.tag == 'blockquote'):
continue
or e.get('id') == 'nota_red'
or e.tag == 'blockquote'):
continue
+\newcommand{\ramka}[1]{%
+\noindent\fbox{%
+\parbox{\textwidth}{%
+#1%
+}}%
+}
+
\newcommand{\dlugicytat}[1]{%
\begin{quotation}%
%\raggedright%
\newcommand{\dlugicytat}[1]{%
\begin{quotation}%
%\raggedright%
<!-- ==================================================================================== -->
<xsl:template
<!-- ==================================================================================== -->
<xsl:template
- match="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny|nota|dedykacja|dlugi_cytat|poezja_cyt|motto">
+ match="powiesc|opowiadanie|liryka_l|liryka_lp|dramat_wierszowany_l|dramat_wierszowany_lp|dramat_wspolczesny|nota|dedykacja|dlugi_cytat|poezja_cyt|motto|ramka">
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<cmd>
<xsl:attribute name="name">
<xsl:value-of select="wl:texcommand(name())" />
<div class="dedication"><xsl:apply-templates /></div>
</xsl:template>
<div class="dedication"><xsl:apply-templates /></div>
</xsl:template>
+<xsl:template match="ramka">
+ <div class="frame"><xsl:apply-templates /></div>
+</xsl:template>
+
<xsl:template match="kwestia">
<div class="kwestia">
<xsl:apply-templates select="strofa|akap|didaskalia" />
<xsl:template match="kwestia">
<div class="kwestia">
<xsl:apply-templates select="strofa|akap|didaskalia" />
<xsl:apply-templates />
</xsl:template>
<xsl:apply-templates />
</xsl:template>
+<xsl:template match="ramka">
+<xsl:apply-templates />
+</xsl:template>
+
<xsl:template match="lista_osob">
<xsl:text>
<xsl:template match="lista_osob">
<xsl:text>
<kwestia />
<motto />
<didaskalia />
<kwestia />
<motto />
<didaskalia />
</block>
<inline-elements element="span" mixed="true">
</block>
<inline-elements element="span" mixed="true">
<dlugi_cytat />
<poezja_cyt />
<dlugi_cytat />
<poezja_cyt />
<didaskalia />
</editable>
</config>
<didaskalia />
</editable>
</config>
+div.frame {
+ border: 1px darkgray solid;
+}
+
hr.spacer {
height: 3em;
visibility: hidden;
hr.spacer {
height: 3em;
visibility: hidden;
<dlugi_cytat><akap>Cytowany akapit powinien wyglądać jak cytowany akapit.
Znaczy, może mieć jakieś dodatkowe wcięcie, jakiś rodzaj wyróżnienia czy coś.</akap></dlugi_cytat>
<dlugi_cytat><akap>Cytowany akapit powinien wyglądać jak cytowany akapit.
Znaczy, może mieć jakieś dodatkowe wcięcie, jakiś rodzaj wyróżnienia czy coś.</akap></dlugi_cytat>
+<akap>[ramka/akap]</akap>
+
+<ramka><akap>To jest ramka. W ramce są akapity i inne takie.</akap></ramka>
+
<akap>[poezja_cyt/strofa]</akap>
<poezja_cyt><strofa>To jest poezja/
<akap>[poezja_cyt/strofa]</akap>
<poezja_cyt><strofa>To jest poezja/