Skip to content

Commit

Permalink
Chapter 85: Improve hyphenation in a long compound word
Browse files Browse the repository at this point in the history
The obvious solution to allowing discretionary hyphenation within an
already-hyphenated word (extdash with \-/) does not work, I am guessing
because of the customization we do of XeTeX character classes in
hp-format.tex (search for \dashClass).

So, use the hyphenat package, and its \hyp command.

Annoyingly, while this improves the spacing of the offending line, it still
leaves an over-large space.

See issue #176.
  • Loading branch information
rrthomas committed Dec 26, 2024
1 parent 60007ff commit 913f5cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chapters/hpmor-chapter-085.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Harry had seen Hermione safely off to bed.

He had lingered in the Ravenclaw common room long enough to collect a few signatures that might be useful to Hermione later. Not many students had signed; wizards hadn’t been trained to think in the put-up-or-shut-up, stick-your-neck-out-and-make-a-prediction-or-stop-pretending-to-believe-in-your-theory rules of Muggle science. Most of them hadn’t seen anything \emph{incongruent} about being too nervous to sign an agreement saying that Hermione got to hold it over them for the rest of their lives if they were wrong, while acting outwardly confident that she was guilty. But just having demanded the signatures would make the point after the truth came out, if anyone ever again suspected Hermione of anything Dark. She wouldn’t have to go through this \emph{twice}, at least.
He had lingered in the Ravenclaw common room long enough to collect a few signatures that might be useful to Hermione later. Not many students had signed; wizards hadn’t been trained to think in the put-up-or-shut-up, stick\hyp{}your\hyp{}neck\hyp{}out\hyp{}and\hyp{}make\hyp{}a\hyp{}prediction\hyp{}or\hyp{}stop\hyp{}pretending\hyp{}to\hyp{}believe\hyp{}in\hyp{}your\hyp{}theory rules of Muggle science. Most of them hadn’t seen anything \emph{incongruent} about being too nervous to sign an agreement saying that Hermione got to hold it over them for the rest of their lives if they were wrong, while acting outwardly confident that she was guilty. But just having demanded the signatures would make the point after the truth came out, if anyone ever again suspected Hermione of anything Dark. She wouldn’t have to go through this \emph{twice}, at least.

After that Harry had left the common room quickly, because all the kindly forgiving sentiments he’d reasoned out were getting harder and harder to remember. Sometimes Harry thought the deepest split in his personality wasn’t anything to do with his dark side; rather it was the divide between the altruistic and forgiving Abstract Reasoning Harry, versus the frustrated and angry Harry In The Moment.

Expand Down
1 change: 1 addition & 0 deletions layout/hp-format.tex
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,4 @@
\usepackage{gitinfo2}
\usepackage{hyphenat}
\usepackage{comment}
\usepackage{hyphenat}

0 comments on commit 913f5cc

Please sign in to comment.