You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@siara-cc
Hi Arun
I wonder if you could advise, as to the application of this code
I need to compress short strings of between 40 and 80 characters
The dictionary is small in terms, for example
Always Upper case characters
Small set of non-alphanumeric
Small set of full words
There is a very small dictionary of words, of which many are used repetitively, so I want to be able to define substrings with a code, in addition to characters
The size of the dictionary itself, is not important the dictionary is pre-defined, and not provided with the compressed data. the dictionary is known to the encode and decode itself
The question is, if I have this pre-defined dictionary, can I embed this with your project ?
Thx
Lee
The text was updated successfully, but these errors were encountered:
Hi, you could change the code to accomplish this.
But you can use code from this library: https://github.com/siara-cc/Unishox_Arduino_Progmem_lib
to achieve what you want without changing anything.
It does not use a pre-defined dictionary, but it has all the short strings in an array and words that are re-used in subsequent lines are referred from the previous lines.
The library itself is for the Arduino platform, but you can get it working for C.
Compress using -G option in Unishox library (this repo)
Decompress using decodeRepeat() function in Unishox_Arduino_Progmem_lib
@siara-cc
Hi Arun
I wonder if you could advise, as to the application of this code
I need to compress short strings of between 40 and 80 characters
The dictionary is small in terms, for example
There is a very small dictionary of words, of which many are used repetitively, so I want to be able to define substrings with a code, in addition to characters
The size of the dictionary itself, is not important the dictionary is pre-defined, and not provided with the compressed data. the dictionary is known to the encode and decode itself
The question is, if I have this pre-defined dictionary, can I embed this with your project ?
Thx
Lee
The text was updated successfully, but these errors were encountered: