Skip to contentSkip to conversation

punctcheck.pl: Expand hint message on mid-line punctuation

PATCH In review Akira Yokosawa 2 participants 3 messages Sep 10, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 punctcheck.pl: Expand hint message on mid-line punctuation

Cover mid-sentence punctuation.

---
 utilities/punctcheck.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utilities/punctcheck.pl +1 -1
index 94cbafc9..317329b4 100755
@@ -83,7 +83,7 @@ sub check_line {
 		$line =~ /^(?=[\s]*+[^%])[^%]*.*[\.:][\)\}\']*\s+\\\\/ ) {
 		$ng -= 1;
 	    } else {
-		print "vvv Hint: end of sentence needs new line vvv\n";
+		print "Hint: Break at end of sentence or mark mid-sentence punct as such (xxx.\\@).\n";
 	    }
 	}
 	if ($line =~ /^(?=[\s]*+[^%])[^%]*[^~]\\cite/) {

base-commit: 4c0bf4331a91401672dda6d45a91e17f2a6ac944

Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 glossary: Fix warning from "make punctcheck"

"make checkpunct" says:
Hint: Break at end of sentence or mark mid-sentece punct as such (xxx.\@).
./glossary.tex:158: overlapping categories, for example, read misses vs. write misses

Fix it.

---
 glossary.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
glossary.tex +1 -1
index 1811c5cb..a7bc20cb 100644
@@ -155,7 +155,7 @@
 	in other CPUs' caches (``write'' miss).
 	\end{enumerate*}
 	Note that cache misses can be split into multiple partially
-	overlapping categories, for example, read misses vs. write misses
+	overlapping categories, for example, read misses vs.\@ write misses
 	as opposed to the above categorization.
 \item[\IXGalth{Capacity Miss}{capacity}{cache miss}:]
 	A cache miss incurred because the corresponding CPU has recently
Signature · 1 line
2.34.1
#2 lore raw
In reply to Akira Yokosawa
Quoted 3 lines · Akira Yokosawa

Cover mid-sentence punctuation.

Applied and pushed both, thank you!!!

Thanx, Paul

Quoted 22 lines
---
 utilities/punctcheck.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utilities/punctcheck.pl +1 -1
index 94cbafc9..317329b4 100755
@@ -83,7 +83,7 @@ sub check_line {
 		$line =~ /^(?=[\s]*+[^%])[^%]*.*[\.:][\)\}\']*\s+\\\\/ ) {
 		$ng -= 1;
 	    } else {
-		print "vvv Hint: end of sentence needs new line vvv\n";
+		print "Hint: Break at end of sentence or mark mid-sentence punct as such (xxx.\\@).\n";
 	    }
 	}
 	if ($line =~ /^(?=[\s]*+[^%])[^%]*[^~]\\cite/) {

base-commit: 4c0bf4331a91401672dda6d45a91e17f2a6ac944

Signature · 1 line
2.34.1