curiousdannii-testing / inform7-imported-bugs

0 stars 0 forks source link

[I7-2050] [Mantis 2087] Objects in tables can't start with a number #34

Closed curiousdannii-testing closed 2 years ago

curiousdannii-testing commented 2 years ago

Reported by : lizzard

Description :

While using Emily Short's Transit System extension, I realized that destinations defined in tables can't start with a number. Room names legitimately can start with a number, for example, 24th Street, but they don't work in a table. This seems to hold true for other uses of tables (it isn't something associated with the extension).

Steps to reproduce :

Sixteenth Street is a room.
24th Street is a room. 

Table of bus stops
transit time    destination
1 minute    Sixteenth Street
1 minute    24th Street

Additional information :

Here's the error message:

Problem. In 'Table of bus stops' , I'm reading the text '24th Street' in column 2 (destination) of row 2, but I don't know what this means.
This should usually be a value, like a number or a piece of text, or a blank entry marker '--', but in some circumstances it can also be an action (such as 'taking the box'), or a kind (such as 'a number') to show what sort of values will go into an otherwise blank row.

imported from: [Mantis 2087] Objects in tables can't start with a number
  • status: Closed
  • resolution: Resolved
  • resolved: 2022-04-10T04:28:36+10:00
  • imported: 2022/01/10
curiousdannii-testing commented 2 years ago

61eedb62875fc10070240916:

https://github.com/ganelson/inform/commit/45b53fca2218a6d9da707f47fec8d07ca336a7cf

Comment by Graham Nelson:
This was subtle, and nothing really to do with table cells. In certain situations, "24th Street" was being read as asking for the twenty-fourth "Street", and that was being (rightly) rejected, but the possibility of "24th" being part of the name itself and not used as a determiner was not always being checked.