Skip to content

Commit

Permalink
Use <code> instead of deprecated <tt>
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyx102 committed Sep 10, 2024
1 parent f60d11a commit 55a74ee
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 20 deletions.
4 changes: 1 addition & 3 deletions Scripts/Lib/epub_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ def _join_chapter_parts(self, chapter_number: int) -> list[list[str]]:
lines = (self.text_directory / filename).read_text().splitlines()

for line in lines:
stripped_line = (
line.strip().replace("<tt>", "<u>").replace("</tt>", "</u>")
)
stripped_line = line.strip()

if stripped_line:
new_line = self.process_line(stripped_line, state)
Expand Down
4 changes: 2 additions & 2 deletions Scripts/output_tex.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def span_replacement(start_command, end_command=""):
r"</em>": r"}",
r"<u>": r"\\ul{",
r"</u>": r"}",
r"<tt>": r"\\texttt{",
r"</tt>": r"}",
r"<code>": r"\\texttt{",
r"</code>": r"}",
r"<b>": r"\\textbf{",
r"</b>": r"}",
r"<strong>": r"\\textbf{",
Expand Down
2 changes: 1 addition & 1 deletion Volumes/Volume_01/Text/2.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ His wavy and dull silver colored hair was difficult to comb. His deep purple eye

He had no horns, fangs, or scales—the clear, unavoidable appearance of a featureless.

The featureless whose numbers included Feodor were hated by by most of Regule Aire’s inhabitants. The whole bunch was rotten to the core, and Feodor had on several occasions mused to himself half-seriously that it’d be considered a favor to the world if every last one of them were to disappear.
The featureless whose numbers included Feodor were hated by most of Regule Aire’s inhabitants. The whole bunch was rotten to the core, and Feodor had on several occasions mused to himself half-seriously that it’d be considered a favor to the world if every last one of them were to disappear.

Like many of those living in the cramped environment of Regule Aire, Feodor’s own race was mixed. His father’s great grandmother was a troll, and far up his mother’s side were ancestors who had been fox-semifers. However, Feodor’s blood didn’t appear to have done anything for him; his appearance and traits, like the majority of the Jessman family, were that of a typical imp.

Expand Down
28 changes: 14 additions & 14 deletions Volumes/Volume_01/Text/2.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ Once he was inside, he opened the envelope and removed its contents. It wasn’t

<br/>

<tt>427/6/15: Spirit Va captured on Island No. 23.</tt>
<code>427/6/15: Spirit Va captured on Island No. 23.</code>

<br/>

Expand All @@ -276,17 +276,17 @@ Putting aside his concerns, Feodor continued to read.

<br/>

<tt>427/6/16: Spirit Ur opens the gates to the faerie homeland during battle on Island No. 72. Disposed of.</tt>
<code>427/6/16: Spirit Ur opens the gates to the faerie homeland during battle on Island No. 72. Disposed of.</code>

<tt>427/6/19: Spirit Ro reaches maturity.</tt>
<code>427/6/19: Spirit Ro reaches maturity.</code>

<tt>427/7/08: Spirit We is tuned to Dug Weapon Insania.</tt>
<code>427/7/08: Spirit We is tuned to Dug Weapon Insania.</code>

<tt>427/7/11: Spirit We opens the gates to the faerie homeland during battle on Island No. 14. Disposed of.</tt>
<code>427/7/11: Spirit We opens the gates to the faerie homeland during battle on Island No. 14. Disposed of.</code>

<tt>427/8/15: Spirit Ro is tuned to Dug Weapon Insania.</tt>
<code>427/8/15: Spirit Ro is tuned to Dug Weapon Insania.</code>

<tt>427/8/22: Spirit Ti is captured on Island No. 47.</tt>
<code>427/8/22: Spirit Ti is captured on Island No. 47.</code>

<br/>

Expand All @@ -304,19 +304,19 @@ Although the information’s origin was unknown, if he could assemble the number

<br/>

<tt>437/12/16: Spirit Ti is tuned to Dug Weapon Ignareo.</tt>
<code>437/12/16: Spirit Ti is tuned to Dug Weapon Ignareo.</code>

<br/>

A familiar proper noun caught his eye.

<br/>

<tt>438/3/30: Spirit La is tuned to Dug Weapon Seniorious.</tt>
<code>438/3/30: Spirit La is tuned to Dug Weapon Seniorious.</code>

<tt>438/6/05: Spirit Pa is tuned to Dug Weapon Katena.</tt>
<code>438/6/05: Spirit Pa is tuned to Dug Weapon Katena.</code>

<tt>438/7/20: Spirit Co is tuned to Dug Weapon Purgatorio.</tt>
<code>438/7/20: Spirit Co is tuned to Dug Weapon Purgatorio.</code>

<br/>

Expand Down Expand Up @@ -352,8 +352,8 @@ One such paper fell on the floor at his feet. It was a page of the previously-ti

<br/>

<tt>443/5/11: Spirit Ti to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</tt>
<code>443/5/11: Spirit Ti to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</code>

<tt>443/5/11: Spirit Co to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</tt>
<code>443/5/11: Spirit Co to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</code>

<tt>443/5/11: Spirit Pa to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</tt>
<code>443/5/11: Spirit Pa to open the gates to the faerie homeland during battle on Island No. 39. Disposal planned.</code>

0 comments on commit 55a74ee

Please sign in to comment.