curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-1952] [Mantis 1988] Punctuation Removal extension for punctuated titles is case-sensitive #132

Open curiousdannii-testing opened 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : billyzkid

Description :

The following two commands produce different output depending on the casing used (i.e. "mr." vs. "Mr.") The first output is desired/expected.

>x mr. Smith
You see nothing special about Mr. Smith.

>x Mr. Smith
You see nothing special about Mr. Smith.

That's not a verb I recognise.

Steps to reproduce :

"Abbreviation"

Include Punctuation Removal by Emily Short.

The Place is a room. Mr Smith is a man in Place. The printed name of Mr Smith is "Mr. Smith".

After reading a command: resolve punctuated titles.

Additional information :

It appears to be related to the following code in the extension:

! This is hackish, but our hearts are pure

if ((buffer->(i-1)=='r') && (buffer->(i-2)=='m') && ((buffer->(i-3)==' ') || ((i-3) < WORDSIZE))) flag = 1;
if ((buffer->(i-1)=='r') && (buffer->(i-2)=='d') && ((buffer->(i-3)==' ') || ((i-3) < WORDSIZE))) flag = 1;
if ((buffer->(i-1)=='t') && (buffer->(i-2)=='s') && ((buffer->(i-3)==' ') || ((i-3) < WORDSIZE))) flag = 1;
if ((buffer->(i-1)=='s') && (buffer->(i-2)=='r') && (buffer->(i-3)=='m') && ((buffer->(i-4)==' ') || ((i-4) < WORDSIZE))) flag = 1;
if ((buffer->(i-1)=='v') && (buffer->(i-2)=='e') && (buffer->(i-3)=='r') && ((buffer->(i-4)==' ') || ((i-4) < WORDSIZE))) flag = 1;
if ((buffer->(i-1)=='f') && (buffer->(i-2)=='o') && (buffer->(i-3)=='r') && (buffer->(i-4)=='p') && ((buffer->(i-5)==' ') || ((i-5) < WORDSIZE))) flag = 1;
if buffer->i = ' ';

imported from: [Mantis 1988] Punctuation Removal extension for punctuated titles is case-sensitive
  • status: Reported
  • resolution: Open
  • resolved: 2022-04-07T05:02:09+10:00
  • imported: 2022/01/10