-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move content from HTML format to XML format
In this commit, the content previously organized in HTML format has been converted to XML format. This conversion involved updating various files to replace the HTML-specific elements with their XML equivalents. The changes include modifying the Makefile to handle XML files instead of HTML, updating the chapters.sql file to adjust the structure for XML data, and refining the CSS styling in both print.css and screen.css for XML content presentation. The modifications in this commit encompass changing file extensions from .html to .xml in the .dockerignore and .gitignore files, adjusting file paths and content structures in the Makefile and chapters.sql, and updating CSS styling in print.css and creating a new screen.css file for XML content representation. These changes are essential for transitioning the project's content to XML format and ensuring consistency across the various components of the project.
- Loading branch information
Showing
8 changed files
with
124 additions
and
70 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.html | ||
*.xml | ||
*.zip | ||
*.SQLite3 | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.html | ||
*.xml | ||
*.zip | ||
*.SQLite3 | ||
|
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
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
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 |
---|---|---|
@@ -1 +1,45 @@ | ||
@page { marks: crop cross; bleed: 5mm; -prince-trim: 5mm; } | ||
:root { --size: 2vh; } | ||
|
||
@font-face { font-family: greek; src: url(fonts/newathu.ttf); } | ||
@font-face { font-family: mono; src: url(fonts/mono.ttf); } | ||
@font-face { font-family: f1; src: url(fonts/freeserif.ttf); } | ||
@font-face { font-family: f2; src: url(fonts/freesans.ttf); } | ||
|
||
@page { margin: 1.6em .8em .8em .8em; marks: crop cross; bleed: 5mm; -prince-trim: 5mm; } | ||
@page book:left { @top-left { content: string(book); font-family: mono; font-weight: 600; font-size: var(--size); } } | ||
@page book:right { @top-right { content: string(chapter); font-family: mono; font-weight: 600; font-size: var(--size); } } | ||
@page book:blank { @top-left { content: ""; } @top-right { content: ""; } } | ||
|
||
* { margin: 0; padding: 0; } | ||
body { font-size: var(--size); text-align: justify; font-family: greek, mono, f1, f2; line-height: 1.2; font-variant-ligatures: historical-ligatures; } | ||
|
||
info { display: flex; width: 100%; justify-content: space-between; } | ||
info name { font-family: mono; font-weight: 600; font-size: 6vh; margin: 46vh 0; padding: 0; text-align: center; display: block; } | ||
|
||
book { string-set: book attr(data-book); display: block; break-before: left; page: book; -prince-bookmark-level: 1; -prince-bookmark-label: attr(data-book); } | ||
|
||
column { display: block; padding: 0 .5em; hyphens: auto; } | ||
|
||
chapter { string-set: chapter attr(data-chapter); display: flex; -prince-bookmark-level: 2; -prince-bookmark-label: attr(data-chapter); } | ||
chapter:before { content: attr(data-chapter); font-family: mono; font-weight: 600; } | ||
chapter[data-chapter="1"]:before { display: none; } | ||
chapter[data-chapter="1"] verse[data-verse="1"] { padding-top: 1em; } | ||
chapter[data-chapter="1"] verse[data-verse="1"]::first-letter { font-size: 2.2em; float: left; line-height: 0.5em; } | ||
|
||
verse { display: inline; } | ||
verse[data-verse="1"] { display: inline-block; } | ||
verse[data-verse="1"]:before { display: none; } | ||
verse:before { content: attr(data-verse); font-family: mono; font-weight: 600; font-size: .6em; margin: 0 .5em; vertical-align: super; } | ||
|
||
reference { font-family: mono; font-size: .6em; margin: 0 .5em; vertical-align: baseline; display: inline; } | ||
|
||
reference[data-rate="1"], | ||
reference[data-rate="2"], | ||
reference[data-rate="3"], | ||
reference[data-rate="4"], | ||
reference[data-rate="5"], | ||
reference[data-rate="6"], | ||
reference[data-rate="7"], | ||
reference[data-rate="8"], | ||
reference[data-rate="9"] | ||
{ display: none; } |
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
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,51 @@ | ||
:root { --size: 2.1vh; } | ||
|
||
@font-face { font-family: greek; src: url(fonts/newathu.ttf); } | ||
@font-face { font-family: mono; src: url(fonts/mono.ttf); } | ||
@font-face { font-family: f1; src: url(fonts/freeserif.ttf); } | ||
@font-face { font-family: f2; src: url(fonts/freesans.ttf); } | ||
|
||
@page { margin: 7vh 5vh 5vh 5vh; } | ||
@page book:left { @top-left { content: string(book); font-family: mono; font-weight: 600; font-size: var(--size); } } | ||
@page book:right { @top-right-corner { content: string(chapter); font-family: mono; font-weight: 600; font-size: var(--size); } } | ||
@page book:blank { @top-left { content: ""; } @top-right { content: ""; } } | ||
|
||
* { margin: 0; padding: 0; } | ||
nt { font-size: var(--size); text-align: justify; font-family: greek, mono, f1, f2; line-height: 1.2; font-variant-ligatures: historical-ligatures; } | ||
|
||
info { width: 100%; justify-content: space-between; } | ||
info name { font-family: mono; font-weight: 600; font-size: 6vh; margin: 47vh 0; padding: 0; text-align: center; display: block; } | ||
|
||
book { string-set: book attr(name); display: block; break-before: left; page: book; -prince-bookmark-level: 1; -prince-bookmark-label: attr(name); } | ||
|
||
column, left, right { display: block; padding: 0 .5em; hyphens: auto; min-width: 45%; } | ||
|
||
chapter { display: flex; } | ||
chapter[number="1"] verse[number="1"] { padding-top: 1em; } | ||
|
||
number { string-set: chapter content(); -prince-bookmark-level: 2; -prince-bookmark-label: string(chapter); font-family: mono; font-weight: 600; -prince-float: outside; -prince-margin-outside: -1em; break-after: avoid; } | ||
chapter[number="1"] number { display: none; } | ||
|
||
book chapter:first-of-type verse[number="1"] { display: block; } | ||
book chapter:first-of-type verse[number="1"]::first-letter { font-size: 2.2em; float: left; line-height: 0.5em; } | ||
book chapter:first-of-type verse[number="1"]:before { display: none; } | ||
verse { display: inline; } | ||
verse:before { content: attr(number); font-family: mono; font-weight: 600; font-size: .6em; margin: 0 .5em; vertical-align: super; } | ||
|
||
reference { font-family: mono; font-size: .6em; margin: 0 .5em; vertical-align: baseline; display: inline; } | ||
|
||
reference[rate="1"], | ||
reference[rate="2"], | ||
reference[rate="3"], | ||
reference[rate="4"], | ||
reference[rate="5"], | ||
reference[rate="6"], | ||
reference[rate="7"], | ||
reference[rate="8"], | ||
reference[rate="9"], | ||
reference[rate="10"], | ||
reference[rate="11"], | ||
reference[rate="12"], | ||
reference[rate="13"], | ||
reference[rate="14"] | ||
{ display: none; } |