Skip to content

Commit

Permalink
fix spaces at start of quotation #173
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Nov 17, 2024
1 parent 327b83c commit 8492780
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chapters/hpmor-chapter-101.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

“Perhaps,” the centaur said thoughtfully. His head lowered. “The others would strike you for saying such a thing, but I have ever sought to know what I do not know. Why the night sky can foretell the future—that I surely do not know. It is hard enough to grasp the skill itself. All I can say, son of Lily, is that even if what you are saying is true, it does not seem useful.”

Harry allowed himself to relax a little; being addressed as ‘son of Lily’ implied that the centaur thought of him as more than a random intruder in the forest. Besides, attacking a Hogwarts student would probably bring some kind of huge reprisal upon the non-wizard centaur tribe in the forests, and the centaur probably knew that…“ What Muggles have learned is that there is a power in the truth, in all the pieces of the truth which interact with each other, which you can only find by discovering as many truths as possible. To do that you can’t defend false beliefs in any way, not even by saying the false belief is useful. It might not seem to matter whether your predictions are really based on the stars or if it’s an innate talent being projected. But if you wanted to really understand Divination, or for that matter the stars, the real truth about centaur predictions would be a fact that matters to other truths.”
Harry allowed himself to relax a little; being addressed as ‘son of Lily’ implied that the centaur thought of him as more than a random intruder in the forest. Besides, attacking a Hogwarts student would probably bring some kind of huge reprisal upon the non-wizard centaur tribe in the forests, and the centaur probably knew that…“What Muggles have learned is that there is a power in the truth, in all the pieces of the truth which interact with each other, which you can only find by discovering as many truths as possible. To do that you can’t defend false beliefs in any way, not even by saying the false belief is useful. It might not seem to matter whether your predictions are really based on the stars or if it’s an innate talent being projected. But if you wanted to really understand Divination, or for that matter the stars, the real truth about centaur predictions would be a fact that matters to other truths.”

Slowly the centaur nodded. “So the wandless have become wiser than the wizards. What a joke! Tell me, son of Lily, do the Muggles in their wisdom say that soon the skies will be empty?”

Expand Down
2 changes: 1 addition & 1 deletion chapters/hpmor-chapter-107.tex
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@

Professor Quirrell nodded. “That is a plausible theory. Do you believe it yourself? Answer in Parseltongue.”

\parsel{Yes,}” Harry hissed. It might not be safe to withhold information, not even thoughts and ideas…“ Therefore, the point of this room is to delay Lord Voldemort for an hour. And if I wanted to kill you, believing what Dumbledore believes, the obvious thing to try would be a Dementor’s Kiss. I mean, they think you’re a disembodied soul—are you, by the way?”
\parsel{Yes,}” Harry hissed. It might not be safe to withhold information, not even thoughts and ideas…“Therefore, the point of this room is to delay Lord Voldemort for an hour. And if I wanted to kill you, believing what Dumbledore believes, the obvious thing to try would be a Dementor’s Kiss. I mean, they think you’re a disembodied soul—are you, by the way?”

Professor Quirrell was still. “Dumbledore would not think of that method,” the Defence Professor said after a time. “But Severus might.” Professor Quirrell began to tap a finger against his cheek, his gaze distant. “You have power over Dementors, boy, can you tell me if there are any nearby?”

Expand Down
10 changes: 8 additions & 2 deletions scripts/check_chapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,17 @@ def fix_quotations(s: str) -> str: # noqa: C901, PLR0912, PLR0915
if settings["lang"] == "DE":
s = re.sub(r"…„", r"… „", s)

# space at opening "
if settings["lang"] == "EN":
s = re.sub(r"“ +", r"“", s)
if settings["lang"] == "DE":
s = re.sub(r"„ +", r"„", s)

# space before closing “
if settings["lang"] == "EN":
s = re.sub(r" +”", r"” ", s)
s = re.sub(r" +”", r"”", s)
if settings["lang"] == "DE":
s = re.sub(r" +“", r"“ ", s)
s = re.sub(r" +“", r"“", s)

# space between "…" and "“"
# if settings["lang"] == "EN":
Expand Down

0 comments on commit 8492780

Please sign in to comment.