--- a/liblouis/lou_translateString.c	2026-11-28 18:43:44.262069630 -0500
+++ b/liblouis/lou_translateString.c	2026-11-28 18:58:10.186930328 -0500
@@ -2016,6 +2016,8 @@
 				}
 
 				/* check this rule */
+				int spanNC = 0;
+				if (typebuf) { int q; for (q = pos; q < pos + *transCharslen && q < input->length; q++) if (typebuf[q] & no_contract) spanNC = 1; }
 				setAfter(*transCharslen, table, pos, input, &afterAttributes);
 				if ((!((*transRule)->after & ~CTC_EmpMatch) ||
 							(beforeAttributes & (*transRule)->after)) &&
@@ -2039,14 +2041,14 @@
 						case CTO_CompBrl:
 							return;
 						case CTO_Repeated:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((mode & (compbrlAtCursor | compbrlLeftCursor)) &&
 									pos >= compbrlStart && pos <= compbrlEnd)
 								break;
 							return;
 						case CTO_RepWord:
 						case CTO_RepEndWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (isRepeatedWord(table, pos, input, emphasisBuffer,
 										output.length, posMapping, *transCharslen,
 										repwordLength)) {
@@ -2060,14 +2062,14 @@
 							}
 							break;
 						case CTO_NoCont:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							return;
 						case CTO_Syllable:
 							*transOpcode = CTO_Always;
 						case CTO_Always:
 							if (checkEmphasisChange(pos, *transCharslen, emphasisBuffer))
 								break;
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							return;
 						case CTO_ExactDots:
 							return;
@@ -2081,7 +2083,7 @@
 								break;
 							return;
 						case CTO_LargeSign:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (!((beforeAttributes & (CTC_Space | CTC_Punctuation)) ||
 										onlyLettersBehind(
 												table, pos, input, beforeAttributes)) ||
@@ -2093,7 +2095,7 @@
 								*transOpcode = CTO_Always;
 							return;
 						case CTO_WholeWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (checkEmphasisChange(pos, *transCharslen, emphasisBuffer))
 								break;
 						case CTO_Contraction:
@@ -2106,13 +2108,13 @@
 							}
 							break;
 						case CTO_PartWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes & CTC_Letter) ||
 									(afterAttributes & CTC_Letter))
 								return;
 							break;
 						case CTO_JoinNum:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes & (CTC_Space | CTC_Punctuation)) &&
 									(afterAttributes & CTC_Space) &&
 									(output.length + (*transRule)->dotslen <
@@ -2131,14 +2133,14 @@
 							}
 							break;
 						case CTO_LowWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes & CTC_Space) &&
 									(afterAttributes & CTC_Space) &&
 									(prevTransOpcode != CTO_JoinableWord))
 								return;
 							break;
 						case CTO_JoinableWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (beforeAttributes & (CTC_Space | CTC_Punctuation) &&
 									onlyLettersAhead(table, pos, input, *transCharslen,
 											afterAttributes) &&
@@ -2147,7 +2149,7 @@
 								return;
 							break;
 						case CTO_SuffixableWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes &
 										(CTC_Space | CTC_Punctuation |
 												CTC_SeqDelimiter)) &&
@@ -2157,7 +2159,7 @@
 								return;
 							break;
 						case CTO_PrefixableWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes &
 										(CTC_Space | CTC_Letter | CTC_Punctuation |
 												CTC_SeqDelimiter)) &&
@@ -2167,33 +2169,33 @@
 								return;
 							break;
 						case CTO_BegWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes & (CTC_Space | CTC_Punctuation)) &&
 									(afterAttributes & CTC_Letter))
 								return;
 							break;
 						case CTO_BegMidWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if ((beforeAttributes &
 										(CTC_Letter | CTC_Space | CTC_Punctuation)) &&
 									(afterAttributes & CTC_Letter))
 								return;
 							break;
 						case CTO_MidWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (beforeAttributes & CTC_Letter &&
 									afterAttributes & CTC_Letter)
 								return;
 							break;
 						case CTO_MidEndWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (beforeAttributes & CTC_Letter &&
 									afterAttributes &
 											(CTC_Letter | CTC_Space | CTC_Punctuation))
 								return;
 							break;
 						case CTO_EndWord:
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (beforeAttributes & CTC_Letter &&
 									afterAttributes & (CTC_Space | CTC_Punctuation))
 								return;
@@ -2252,7 +2254,7 @@
 						case CTO_Match: {
 							widechar *patterns, *pattern;
 
-							if (dontContract || (mode & noContractions)) break;
+							if (dontContract || spanNC || (mode & noContractions)) break;
 							if (checkEmphasisChange(pos, *transCharslen, emphasisBuffer))
 								break;
 
@@ -3669,7 +3671,7 @@
 		setBefore(table, pos, input, &beforeAttributes);
 		if (pos >= input->length) break;
 
-		if (!dontContract) dontContract = typebuf[pos] & no_contract;
+		/* Interliner patch: no_contract applies per character (see for_selectRule) */
 		if (typebuf[pos] & no_translate) {
 			if (!warnedForNoTranslate) {
 				_lou_logMessage(LOU_LOG_WARN,
