From 917c65b227d608572c36667d3d0314779451fcc3 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 26 Mar 2024 13:42:53 -0500 Subject: [PATCH] Fix lint tests --- tests/lint/typography/t-001/golden/t-001-out.txt | 2 ++ .../typography/t-001/in/{ => src/epub/text}/chapter-1.xhtml | 0 tests/lint/typography/t-042/golden/t-042-out.txt | 5 +++++ .../typography/t-042/in/{ => src/epub/text}/chapter-1.xhtml | 0 tests/lint/typography/t-074/golden/t-074-out.txt | 3 +++ .../typography/t-074/in/{ => src/epub/text}/chapter-1.xhtml | 6 +++--- 6 files changed, 13 insertions(+), 3 deletions(-) rename tests/lint/typography/t-001/in/{ => src/epub/text}/chapter-1.xhtml (100%) rename tests/lint/typography/t-042/in/{ => src/epub/text}/chapter-1.xhtml (100%) rename tests/lint/typography/t-074/in/{ => src/epub/text}/chapter-1.xhtml (82%) diff --git a/tests/lint/typography/t-001/golden/t-001-out.txt b/tests/lint/typography/t-001/golden/t-001-out.txt index e69de29b..a294c64f 100644 --- a/tests/lint/typography/t-001/golden/t-001-out.txt +++ b/tests/lint/typography/t-001/golden/t-001-out.txt @@ -0,0 +1,2 @@ +t-001 [Error] chapter-1.xhtml Double spacing found. Sentences should be +single-spaced. (Note that double spaces might include Unicode no-break spaces!) diff --git a/tests/lint/typography/t-001/in/chapter-1.xhtml b/tests/lint/typography/t-001/in/src/epub/text/chapter-1.xhtml similarity index 100% rename from tests/lint/typography/t-001/in/chapter-1.xhtml rename to tests/lint/typography/t-001/in/src/epub/text/chapter-1.xhtml diff --git a/tests/lint/typography/t-042/golden/t-042-out.txt b/tests/lint/typography/t-042/golden/t-042-out.txt index e69de29b..cb654f8c 100644 --- a/tests/lint/typography/t-042/golden/t-042-out.txt +++ b/tests/lint/typography/t-042/golden/t-042-out.txt @@ -0,0 +1,5 @@ +t-042 [Error] chapter-1.xhtml `‘` used for Greek dasia or `’` used for Greek +psili, but expected the single precomposed Unicode character, or a combining +mark if a precomposed character doesn’t exist. + ’αποικα + ‘αποικα diff --git a/tests/lint/typography/t-042/in/chapter-1.xhtml b/tests/lint/typography/t-042/in/src/epub/text/chapter-1.xhtml similarity index 100% rename from tests/lint/typography/t-042/in/chapter-1.xhtml rename to tests/lint/typography/t-042/in/src/epub/text/chapter-1.xhtml diff --git a/tests/lint/typography/t-074/golden/t-074-out.txt b/tests/lint/typography/t-074/golden/t-074-out.txt index e69de29b..6b33c58a 100644 --- a/tests/lint/typography/t-074/golden/t-074-out.txt +++ b/tests/lint/typography/t-074/golden/t-074-out.txt @@ -0,0 +1,3 @@ +t-074 [Manual Review] chapter-1.xhtml Extended sound using hyphen-minus `-` +instead of non-breaking hyphen `‑`. + Bor-r-r-r-n! diff --git a/tests/lint/typography/t-074/in/chapter-1.xhtml b/tests/lint/typography/t-074/in/src/epub/text/chapter-1.xhtml similarity index 82% rename from tests/lint/typography/t-074/in/chapter-1.xhtml rename to tests/lint/typography/t-074/in/src/epub/text/chapter-1.xhtml index 8c7a46aa..5b294e02 100644 --- a/tests/lint/typography/t-074/in/chapter-1.xhtml +++ b/tests/lint/typography/t-074/in/src/epub/text/chapter-1.xhtml @@ -8,9 +8,9 @@

I

-

bon-bon

-

bor-r-r-r-n!

-

can this be the Seigneur du Vallon de Bracieux de Pierrefonds? Well-a-day! how he has shrunk since he gave up the name of Porthos!

+

Bon-bon.

+

Bor-r-r-r-n!

+

Can this be the Seigneur du Vallon de Bracieux de Pierrefonds? Well-a-day! how he has shrunk since he gave up the name of Porthos!