Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up MAX_ABBREV_LENGTH #257

Closed
erkyrath opened this issue Jan 15, 2024 · 0 comments
Closed

Clean up MAX_ABBREV_LENGTH #257

erkyrath opened this issue Jan 15, 2024 · 0 comments

Comments

@erkyrath
Copy link
Contributor

This is currently a compiled limit both for the Abbreviate directive and the abbreviation optimizer. Note that other abbreviation optimizers can produce arbitrarily long abbreviations, which Inform then chokes on. (It doesn't throw an error; it just truncates the Abbreviate directive.) See thread: https://intfiction.org/t/zabbrevmaker-0-10-released/66589/11

We haven't thought about this, because if a long chunk of text is repeated, the author can spot it and define a string constant. We typically rely on the abbreviation optimizer to find small annoying repeated strings like "You are" or "e fo". However, it can find longer strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants