Loading resources/styles/xml_2_html.css +52 −30 Changes for resources/styles/xml_2_html.css: 52 added lines, 30 removed lines. Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ section.back{ .left-contents h1 { font-size: 3.2rem; margin-bottom: 50px; margin-bottom: 20px; line-height: normal; padding-top: 25px;/*calc(var(--nav-height));*/ } Loading Loading @@ -207,30 +207,61 @@ section.front ol, section.front ol { } /***** section/h *******/ section.body p { margin-top:10px ; line-height: 150% ; word-wrap: break-word } section.body h2 { section.body p:first-child { margin-top:50px; } .title-trl { margin-top: 20px; margin-bottom: 15px; font-size: 3rem; font-style:italic; } .title-sub { font-size: 2.4rem; margin-top: 25px ; } section.body h2 { margin-top: 30px ; margin-bottom: 15px ; font-size: 3rem; /*line-height: 200%;*/ } section.body h3 { margin-top: 15px ; margin-top: 25px ; margin-bottom: 10px ; font-size: 2rem; font-size: 2.5rem; /*line-height: 100%;*/ } section.body h4 { margin-top: 10px ; margin-top: 15px ; margin-bottom: 5px ; font-size: 2rem; /*line-height: 15%;*/ } section.body h5 { margin-top: 15px ; margin-bottom: 5px ; font-size: 1.6rem; /*line-height: 15%;*/ } section.body h6 { margin-top: 15px ; margin-bottom: 5px ; font-size: 1.5rem; font-size: 1.4rem; /*line-height: 15%;*/ } Loading Loading @@ -288,7 +319,8 @@ div[id='figures'] figure { figure[class='fig-formula inline'] { display:inline; } /* tables */ /****** table ******/ table caption { font-size: 1.2rem; font-style: italic; Loading @@ -309,7 +341,6 @@ table[class='linguistic'] { td,th { border-bottom:1px solid #ccc; font-size:1.1rem; /* padding:5px;*/ } .fig-table label { Loading Loading @@ -358,22 +389,9 @@ section.body h3:not(div.boxed-text *){ section.body h4:not(div.boxed-text *){ counter-reset: subsubsubsection; } /* section.body h2:not(div.boxed-text *):before{ counter-increment: section; content: counter(section) ". "; } section.body h3:not(div.boxed-text *):before{ counter-increment: subsection; content: counter(section)"."counter(subsection)" "; } section.body h4:not(div.boxed-text *):before{ counter-increment: subsubsection; content: counter(section)"."counter(subsection)"."counter(subsubsection)" "; } */ /* biblio bas de page */ /* biblio end */ .bibliography { margin-top:4ex; border-top:1px solid #efefef; Loading @@ -395,7 +413,9 @@ section.bibliography ul { section.bibliography li.bibl { font-size:1.3rem; } /************/ /***** TOC *******/ #toc li { margin-top:5px; Loading Loading @@ -448,7 +468,8 @@ section.bibliography li.bibl { margin-left:20%; } /***********/ /***** INLINE ELEMENTS******/ span[class*="fn-call"], sup{ /** must not affect line height **/ font-size: .60em; vertical-align: 0.65em; Loading @@ -466,6 +487,7 @@ span.bibr-call{ cursor: pointer; } /***** FOOTNOTES ******/ div[id^="footnotes"] ul, div[id^="footnotes"] ul { list-style-type: none; Loading Loading @@ -520,7 +542,7 @@ div[id^="footnotes"] .label { border-bottom: 1px solid var(--dark-theme-txt); } /******************************************/ /*********** INDEX **********/ #index .index-level1 { list-style-type: none; margin-top: 3%; Loading Loading @@ -567,6 +589,7 @@ div[id^="footnotes"] .label { .collapsed .toggle-button::after { content: "[+]"; } /******************************************/ .journal-meta { padding: 10px; Loading Loading @@ -628,7 +651,7 @@ div[id^="footnotes"] .label { margin-bottom:2ex; } /******************************/ /********* BOXED TEXT **********/ div.boxed-text{ border: 1px solid var(--grey-color); padding: 15px; Loading @@ -650,7 +673,7 @@ div.item.galleys ul { list-style-type: none; } /******************************/ /*********** QUOTE *******************/ disp-quote { display: block; text-align:right; Loading @@ -661,7 +684,7 @@ blockquote { padding-left: 5%; } /******************************************/ /*************** DRAG-BAR ***************************/ ul, ol { margin-top:2ex; margin-bottom:2ex; Loading @@ -688,4 +711,3 @@ iframe { background-color: #ddd; z-index: 1000; } No newline at end of file tei2html.xsl +6 −16 Changes for tei2html.xsl: 6 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -71,11 +71,13 @@ <div class="left-contents" id="left"> <div class="article-wrap"> <h1> <xsl:apply-templates select=".//tei:p[@rend='title-main']"/> <xsl:apply-templates select=".//tei:p[@rend='title-main']/node()"/> </h1> <xsl:if test=".//tei:p[@rend='title-sub']"> <p class="{@rend}"><xsl:apply-templates select=".//tei:p[@rend='title-sub']"/></p> </xsl:if> <xsl:for-each select=".//tei:p[starts-with(@rend,'title-') and @rend!='title-main']"> <p class="{@rend}"> <xsl:if test="@xml:lang"><xsl:attribute name="lang" select="@xml:lang"/></xsl:if> <xsl:apply-templates/></p> </xsl:for-each> <xsl:apply-templates select=".//tei:body"/> </div> </div> Loading Loading @@ -456,18 +458,6 @@ </xsl:template> <xsl:template match="article-meta"> <div> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="journal-title"> <h1> <xsl:apply-templates/> </h1> </xsl:template> <xsl:template match="tei:div"> <section> <xsl:if test="@type"> Loading Loading
resources/styles/xml_2_html.css +52 −30 Changes for resources/styles/xml_2_html.css: 52 added lines, 30 removed lines. Original line number Diff line number Diff line Loading @@ -122,7 +122,7 @@ section.back{ .left-contents h1 { font-size: 3.2rem; margin-bottom: 50px; margin-bottom: 20px; line-height: normal; padding-top: 25px;/*calc(var(--nav-height));*/ } Loading Loading @@ -207,30 +207,61 @@ section.front ol, section.front ol { } /***** section/h *******/ section.body p { margin-top:10px ; line-height: 150% ; word-wrap: break-word } section.body h2 { section.body p:first-child { margin-top:50px; } .title-trl { margin-top: 20px; margin-bottom: 15px; font-size: 3rem; font-style:italic; } .title-sub { font-size: 2.4rem; margin-top: 25px ; } section.body h2 { margin-top: 30px ; margin-bottom: 15px ; font-size: 3rem; /*line-height: 200%;*/ } section.body h3 { margin-top: 15px ; margin-top: 25px ; margin-bottom: 10px ; font-size: 2rem; font-size: 2.5rem; /*line-height: 100%;*/ } section.body h4 { margin-top: 10px ; margin-top: 15px ; margin-bottom: 5px ; font-size: 2rem; /*line-height: 15%;*/ } section.body h5 { margin-top: 15px ; margin-bottom: 5px ; font-size: 1.6rem; /*line-height: 15%;*/ } section.body h6 { margin-top: 15px ; margin-bottom: 5px ; font-size: 1.5rem; font-size: 1.4rem; /*line-height: 15%;*/ } Loading Loading @@ -288,7 +319,8 @@ div[id='figures'] figure { figure[class='fig-formula inline'] { display:inline; } /* tables */ /****** table ******/ table caption { font-size: 1.2rem; font-style: italic; Loading @@ -309,7 +341,6 @@ table[class='linguistic'] { td,th { border-bottom:1px solid #ccc; font-size:1.1rem; /* padding:5px;*/ } .fig-table label { Loading Loading @@ -358,22 +389,9 @@ section.body h3:not(div.boxed-text *){ section.body h4:not(div.boxed-text *){ counter-reset: subsubsubsection; } /* section.body h2:not(div.boxed-text *):before{ counter-increment: section; content: counter(section) ". "; } section.body h3:not(div.boxed-text *):before{ counter-increment: subsection; content: counter(section)"."counter(subsection)" "; } section.body h4:not(div.boxed-text *):before{ counter-increment: subsubsection; content: counter(section)"."counter(subsection)"."counter(subsubsection)" "; } */ /* biblio bas de page */ /* biblio end */ .bibliography { margin-top:4ex; border-top:1px solid #efefef; Loading @@ -395,7 +413,9 @@ section.bibliography ul { section.bibliography li.bibl { font-size:1.3rem; } /************/ /***** TOC *******/ #toc li { margin-top:5px; Loading Loading @@ -448,7 +468,8 @@ section.bibliography li.bibl { margin-left:20%; } /***********/ /***** INLINE ELEMENTS******/ span[class*="fn-call"], sup{ /** must not affect line height **/ font-size: .60em; vertical-align: 0.65em; Loading @@ -466,6 +487,7 @@ span.bibr-call{ cursor: pointer; } /***** FOOTNOTES ******/ div[id^="footnotes"] ul, div[id^="footnotes"] ul { list-style-type: none; Loading Loading @@ -520,7 +542,7 @@ div[id^="footnotes"] .label { border-bottom: 1px solid var(--dark-theme-txt); } /******************************************/ /*********** INDEX **********/ #index .index-level1 { list-style-type: none; margin-top: 3%; Loading Loading @@ -567,6 +589,7 @@ div[id^="footnotes"] .label { .collapsed .toggle-button::after { content: "[+]"; } /******************************************/ .journal-meta { padding: 10px; Loading Loading @@ -628,7 +651,7 @@ div[id^="footnotes"] .label { margin-bottom:2ex; } /******************************/ /********* BOXED TEXT **********/ div.boxed-text{ border: 1px solid var(--grey-color); padding: 15px; Loading @@ -650,7 +673,7 @@ div.item.galleys ul { list-style-type: none; } /******************************/ /*********** QUOTE *******************/ disp-quote { display: block; text-align:right; Loading @@ -661,7 +684,7 @@ blockquote { padding-left: 5%; } /******************************************/ /*************** DRAG-BAR ***************************/ ul, ol { margin-top:2ex; margin-bottom:2ex; Loading @@ -688,4 +711,3 @@ iframe { background-color: #ddd; z-index: 1000; } No newline at end of file
tei2html.xsl +6 −16 Changes for tei2html.xsl: 6 added lines, 16 removed lines. Original line number Diff line number Diff line Loading @@ -71,11 +71,13 @@ <div class="left-contents" id="left"> <div class="article-wrap"> <h1> <xsl:apply-templates select=".//tei:p[@rend='title-main']"/> <xsl:apply-templates select=".//tei:p[@rend='title-main']/node()"/> </h1> <xsl:if test=".//tei:p[@rend='title-sub']"> <p class="{@rend}"><xsl:apply-templates select=".//tei:p[@rend='title-sub']"/></p> </xsl:if> <xsl:for-each select=".//tei:p[starts-with(@rend,'title-') and @rend!='title-main']"> <p class="{@rend}"> <xsl:if test="@xml:lang"><xsl:attribute name="lang" select="@xml:lang"/></xsl:if> <xsl:apply-templates/></p> </xsl:for-each> <xsl:apply-templates select=".//tei:body"/> </div> </div> Loading Loading @@ -456,18 +458,6 @@ </xsl:template> <xsl:template match="article-meta"> <div> <xsl:apply-templates/> </div> </xsl:template> <xsl:template match="journal-title"> <h1> <xsl:apply-templates/> </h1> </xsl:template> <xsl:template match="tei:div"> <section> <xsl:if test="@type"> Loading