Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .github/scripts/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,37 @@ set -Eeuo pipefail

mkdir -p target

is_installed () {
dpkg-query -l "$1" | grep '^ii' >/dev/null
}

echo "Installing JRE..."
sudo apt-get update
sudo apt-get install -y default-jre libegl1 libopengl0 libxcb-cursor0
if ! ((is_installed default-jre || is_installed default-jre-headless) \
&& is_installed libegl1 && is_installed libopengl0 && is_installed libxcb-cursor0); then
sudo apt-get update
sudo apt-get install -y default-jre libegl1 libopengl0 libxcb-cursor0
fi

echo "Installing Calibre..."
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
is_installed calibre || (wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin)

echo "Downloading epubcheck..."
curl -L "https://github.com/w3c/epubcheck/releases/download/v$EPUBCHECK_VERSION/epubcheck-$EPUBCHECK_VERSION.zip" -o "target/epubcheck-$EPUBCHECK_VERSION.zip"
unzip -o "./target/epubcheck-$EPUBCHECK_VERSION.zip" -d "./target"
mv "./target/epubcheck-$EPUBCHECK_VERSION" "./target/epubcheck"

echo "Downloading EB Garamond..."
curl -L "https://github.com/octaviopardo/EBGaramond12/archive/refs/heads/master.zip" -o "target/EB_Garamond.zip"
unzip -o "./target/EB_Garamond.zip" -d "./target/EB_Garamond"
EBGARAMOND_FONT_DIR="/usr/share/fonts/truetype/custom/EB_Garamond"
if [ -d "$EBGARAMOND_FONT_DIR" ]; then
echo "EB Garamond font already installed"
else
echo "Downloading EB Garamond..."
curl -L "https://github.com/octaviopardo/EBGaramond12/archive/refs/heads/master.zip" -o "target/EB_Garamond.zip"
unzip -o "./target/EB_Garamond.zip" -d "./target/EB_Garamond"

# echo "Installing EB Garamond..."
mkdir -p "/usr/share/fonts/truetype/custom/EB_Garamond"
find "./target/EB_Garamond" -name "*.ttf" -exec mv '{}' "/usr/share/fonts/truetype/custom/EB_Garamond" \;
fc-cache -f -v
echo "Installing EB Garamond..."
mkdir -p "$EBGARAMOND_FONT_DIR"
find "./target/EB_Garamond" -name "*.ttf" -exec mv '{}' "$EBGARAMOND_FONT_DIR" \;
fc-cache -f -v
fi

echo "Done."
1 change: 1 addition & 0 deletions src/OEBPS/Chapter10.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>10</h1>
<h2><em>Worst Birthday Ever</em></h2>
<h3>aka <em>A situation out of control</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">I</span>t was with great reluctance that Harry returned to Number Four, Privet Drive. He was really tempted to just take the Knight Bus back to Diagon Alley and get a room at the Leaky Cauldron. On the other hand, there were still people out there, not to mention Voldemort, who’d like nothing more than his head on a stick. The wards around the Dursley home would keep him safe, at least from outsiders.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter12.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>12</h1>
<h2><em>Doing the Mungo Shuffle</em></h2>
<h3>aka <em>Mending at Mungo’s</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">W</span>hen Harry awoke, he was asked to drink several potions in quick succession. The fact that he could now safely drink normal restorative potions would accelerate his recovery, Healer Stanhope informed him cheerfully.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter13.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>13</h1>
<h2><em>A Granger Interlude</em></h2>
<h3>aka <em>Hermione’s Research and Unwholesomely Clever Muggles</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>ermione Granger was a clever girl.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter14.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>14</h1>
<h2><em>A Dish Best Served Cold</em></h2>
<h3>aka <em>A Trip to Diagon Alley</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>edwig returned before they retired for the night. Goldfarb was noncommittal in his reply, but said that Harry could meet with him any time tomorrow. Ron was in the process of obliterating Harry at wizarding chess when the snowy owl landed on the board, scattering the pieces.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/OEBPS/Chapter15.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</head>
<body>
<h1>15</h1>
<h2><em>Moonlight Discussions</em></h2>
<h2><em>Moonlit Discussions, Occlumency Lessons, and a Guardianship Hearing</em></h2>
<h3>aka <em>Birthdays and Court Days</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">A</span>fter lunch, Mrs. Weasley put the boys to work degnoming the garden while Mr. Weasley puttered around in his shed. Ginny and her mother were going to the village to finish their shopping. Before they left, Harry made a trip to the bathroom and then ran up to his room. Before stowing the moneybag he extracted a handful of coins. When he came back down, Mrs. Weasley was alone, putting away the last of the dishes.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter17.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>17</h1>
<h2><em>A Summer Seen Through Brown Eyes</em></h2>
<h3>aka <em>Ginny’s very odd year</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">T</span>his was the strangest summer of Ginevra Weasley’s life.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/OEBPS/Chapter18.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</head>
<body>
<h1>18</h1>
<h2><em>A Visit from the Eldest</em></h2>
<h2><em>A Visit from the Eldest…</em></h2>
<h3>aka <em>Last Weekend at the Burrow</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">F</span>riday morning dawned bright and clear, and even the twins joined Harry, Ron, and Ginny on their morning run. With the five of them, the sparring was more interesting as well. By the time they were done, everyone was tired, lightly bruised, and starving for breakfast. Molly clucked her tongue as they filed into the kitchen. She stopped dead in her tracks and stared at her daughter.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/OEBPS/Chapter19.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</head>
<body>
<h1>19</h1>
<h2><em>An Interesting Start of Term</em></h2>
<h2><em>A Most Interesting Start of Term</em></h2>
<h3>aka <em>Back at Hogwarts!</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">F</span>eeling like they were actually doing something about Sirius gave Harry enough peace of mind for a good night’s sleep. Though he woke as soon as Molly began knocking on doors, he was feeling refreshed. Bouncing out of bed, Harry grabbed a quick shower while the rest of the Weasleys were starting to stir. Remembering the chaos of the Weasley departure the first time around, Harry made a point of packing his trunk both rapidly and systematically. Truth be told, he’d never fully unpacked it. He got it locked and carried down to the back door while Ron was still in the bathroom.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter2.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>2</h1>
<h2><em>Back to Privet Drive</em></h2>
<h3>aka <em>Welcome to Sunny Surrey</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>arry woke from his nightmare, screaming at the top of his lungs.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter20.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>20</h1>
<h2><em>Dumbledore’s Office</em></h2>
<h2><em>An Interlude in Dumbledore’s Office — and Draco Receives his Due…</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">B</span>eing the headmaster of Hogwarts School of Witchcraft and Wizardry was not an easy job. Neither was leading the Order of the Phoenix during the first war against Voldemort. But both jobs entailed fewer headaches than being the sole person aware of the entire Prophecy.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter21.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>21</h1>
<h2><em>Sirius &amp; A Quidditch Spectacle</em></h2>
<h2><em>Sirius, Spectacles, and a Quidditch Spectacle</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">T</span>hat evening Neville received a hero’s welcome in the Gryffindor common room, which rather embarrassed him. Percy, however, proved to be the exception to the rule. The Weasley prefect seemed to revel in his role as the official killjoy and began berating Neville in front of everyone. This earned Percy some mutinous glares from his housemates, which he ignored.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter23.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>23</h1>
<h2><em>The Christmas Express</em></h2>
<h2><em>The Christmas Express and a Large Surprise</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">R</span>on and Hermione were starting to stir as Harry and Ginny returned to the compartment. Harry could tell they awoke simultaneously, because they both visibly cringed and immediately sat up, ramrod straight on the bench. The shuffling and coughing awoke Neville as well. The normally shy boy couldn’t react as the others, because Luna was still curled up on his lap, dead to the world. His face became a bit pink as he waited for someone to say something. Fortunately, Ron and Hermione were a little distracted by their own embarrassment, while Harry just shrugged and returned to his seat.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter25.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>25</h1>
<h2><em>Mistletoe &amp; Misshapen Messengers</em></h2>
<h2><em>Mistletoe and Misshapen Musical Messengers</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">F</span>or Harry, this was one of the most abnormal holiday seasons he’d ever experienced. No looming threat of war, no one murdered yet, staying with people that were actually glad to have him there; it was utterly bizarre and without precedent. Even in his younger memories, Harry didn’t have many happy holidays. Aside from the Dursleys competing to make him miserable as they spoiled their own child, he’d always spent most of the Christmas season wondering how things would have been if his parents were still alive.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter27.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>27</h1>
<h2><em>All Hell Breaks Loose</em></h2>
<h2><em>All Hell Breaks Loose!</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>arry slowly became aware. It was a very gradual process, hampered by the fact that he seemed to be floating in absolute darkness. Of course, ‘floating’ was his best guess, because he couldn’t feel his body either.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/OEBPS/Chapter28.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<h1>28</h1>
<h2><em>Conversations &amp; Confrontations</em></h2>
<h2><em>Conversations, Confrontations, and Quidditch!</em></h2>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">L</span>una gave them a knowing look when Harry and Ginny came in from outdoors and sat down for lunch in the Great Hall. Even though Ginny’s cheeks were a little pink and her eyes were red, she managed to give her friend a small smile.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter3.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>3</h1>
<h2><em>Making Waves</em></h2>
<h3>aka <em>Back to Hogwarts</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>arry relaxed a bit as he and Ron talked about safer topics: Charlie and Bill’s careers, the attempted break-in at Gringotts, and, inevitably, Quidditch. Hearing his friend talk about their favourite sport was like coming home again after a long journey, and Harry didn’t have to feign a happy smile.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter4.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>4</h1>
<h2><em>The Letters of Autumn</em></h2>
<h3>aka <em>Owl Post and Broomsticks</em></h3>
<div class="storytext">
<div class="storyparagraph letter">
<p><span class="raisedcaps">…A</span>nd then Ron and Neville went with me to visit Hagrid after lunch. He’s quite possibly the largest man I have ever seen, but he’s really a good bloke. I’ve only ever seen him get mad once, and that was at my uncle who was being really awful at the time. He’s the groundskeeper here at Hogwarts and he really loves animals. He took a look at Trevor, Neville’s toad, and said the reason that Trevor was always getting lost is that he was hungry. Seems like the dried food pellets they sold Nev at Magical Menagerie don’t have everything a toad needs, so he was always scampering off looking for a bug or two. Hagrid gave him a little bottle of fish oil and said a drop or two in Trevor’s food each day should make a difference.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/OEBPS/Chapter5.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</head>
<body>
<h1>5</h1>
<h2><em>A Changed Halloween</em></h2>
<h2><em>Ch-ch-changes…and a decidedly different Halloween</em></h2>
<h3>aka <em>Quidditch is life</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>arry kept a low profile with his meddling after that. He enjoyed Oliver’s enthusiasm for the game and their prospects for the new season. The congratulations from Fred and George particularly warmed his heart. He hadn’t seen much of the twins lately — they were no doubt up to the eyebrows in some mischief — but that would change once they started practising together. He concentrated on the here and now, and not on what he knew was coming.</p>
Expand Down
3 changes: 2 additions & 1 deletion src/OEBPS/Chapter6.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
</head>
<body>
<h1>6</h1>
<h2><em>Christmas at Hogwarts</em></h2>
<h2><em>Christmas at Hogwarts and a Draconian Solution</em></h2>
<h3>aka <em>Christmas, Confrontations, and a Cunning Plan…</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">T</span>hings calmed down a bit after the match. The school was abuzz the following Monday of course, but the upset of the feared Slytherin house team seemed to have deflated them considerably. Even Draco Malfoy had pulled in his horns, to Harry’s silent relief. He wasn’t afraid of the pureblood boy so much as alarmed at how quickly their antagonism had heated up, even compared to their past history. Harry wasn’t as easily confused or intimidated as he was before, and his refusal to back down at all seemed to infuriate the boy.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter8.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>8</h1>
<h2><em>The Leaving Feast</em></h2>
<h3>aka <em>Back to Life, Back to Reality…</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">H</span>arry’s stomach lurched and he almost let go of the snitch as he remembered the Triwizard Cup and the port-key that whisked him and Cedric to Little Hangleton.</p>
Expand Down
1 change: 1 addition & 0 deletions src/OEBPS/Chapter9.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<body>
<h1>9</h1>
<h2><em>A Word with the Weasleys</em></h2>
<h3>aka <em>Interlude with Molly</em></h3>
<div class="storytext">
<div class="storyparagraph">
<p><span class="raisedcaps">M</span>olly Weasley was concerned.</p>
Expand Down
22 changes: 11 additions & 11 deletions src/OEBPS/TOC.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<li><a href="Chapter2.xhtml">Back to Privet Drive</a></li>
<li><a href="Chapter3.xhtml">Making Waves</a></li>
<li><a href="Chapter4.xhtml">The Letters of Autumn</a></li>
<li><a href="Chapter5.xhtml">A Changed Halloween</a></li>
<li><a href="Chapter6.xhtml">Christmas at Hogwarts</a></li>
<li><a href="Chapter5.xhtml">Ch-ch-changes…and a decidedly different Halloween</a></li>
<li><a href="Chapter6.xhtml">Christmas at Hogwarts and a Draconian Solution</a></li>
<li><a href="Chapter7.xhtml">A Quarrel with Quirrell</a></li>
<li><a href="Chapter8.xhtml">The Leaving Feast</a></li>
<li><a href="Chapter9.xhtml">A Word with the Weasleys</a></li>
Expand All @@ -28,20 +28,20 @@
<li><a href="Chapter12.xhtml">Doing the Mungo Shuffle</a></li>
<li><a href="Chapter13.xhtml">A Granger Interlude</a></li>
<li><a href="Chapter14.xhtml">A Dish Best Served Cold</a></li>
<li><a href="Chapter15.xhtml">Moonlight Discussions</a></li>
<li><a href="Chapter15.xhtml">Moonlit Discussions, Occlumency Lessons, and a Guardianship Hearing</a></li>
<li><a href="Chapter16.xhtml">A Visit to Sunny Azkaban</a></li>
<li><a href="Chapter17.xhtml">A Summer Seen Through Brown Eyes</a></li>
<li><a href="Chapter18.xhtml">A Visit from the Eldest</a></li>
<li><a href="Chapter19.xhtml">An Interesting Start of Term</a></li>
<li><a href="Chapter20.xhtml">Dumbledore’s Office</a></li>
<li><a href="Chapter21.xhtml">Sirius &amp; a Quidditch Spectacle</a></li>
<li><a href="Chapter18.xhtml">A Visit from the Eldest</a></li>
<li><a href="Chapter19.xhtml">A Most Interesting Start of Term</a></li>
<li><a href="Chapter20.xhtml">An Interlude in Dumbledore’s Office — and Draco Receives his Due…</a></li>
<li><a href="Chapter21.xhtml">Sirius, Spectacles, and a Quidditch Spectacle</a></li>
<li><a href="Chapter22.xhtml">The Dueling Club</a></li>
<li><a href="Chapter23.xhtml">The Christmas Express</a></li>
<li><a href="Chapter23.xhtml">The Christmas Express and a Large Surprise</a></li>
<li><a href="Chapter24.xhtml">Christmas at The Burrow</a></li>
<li><a href="Chapter25.xhtml">Mistletoe &amp; Misshapen Messengers</a></li>
<li><a href="Chapter25.xhtml">Mistletoe and Misshapen Musical Messengers</a></li>
<li><a href="Chapter26.xhtml">Miserable Uncertainties</a></li>
<li><a href="Chapter27.xhtml">All Hell Breaks Loose</a></li>
<li><a href="Chapter28.xhtml">Conversations &amp; Confrontations</a></li>
<li><a href="Chapter27.xhtml">All Hell Breaks Loose!</a></li>
<li><a href="Chapter28.xhtml">Conversations, Confrontations, and Quidditch!</a></li>
<li class="toc-heading"><a href="Year3.xhtml">Year 3</a></li>
<li><a href="Chapter29.xhtml">A Relatively Pleasant Start</a></li>
<li><a href="Chapter30.xhtml">A Busy Summer</a></li>
Expand Down