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

LZSS compression interactive not encoding text correctly #1271

Closed
courtneycb opened this issue May 26, 2020 · 1 comment · Fixed by #1273 or #1283
Closed

LZSS compression interactive not encoding text correctly #1271

courtneycb opened this issue May 26, 2020 · 1 comment · Fixed by #1273 or #1283
Assignees

Comments

@courtneycb
Copy link
Contributor

For the example below it should replace all but the first 2 characters with a pointer.

image

@eAlasdair
Copy link
Contributor

New version is an improvement but ignores text that hasn't yet been encoded when encoding the next bit of text. For example:
abababababababa is encoded as ab 0-2 0-4 0-7, but it should be ab 0-13

According to Tim:

It's might seem a bit odd, as the reference includes itself, but it all works out if you decode it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment