in reply to Re: Re: Re: VarStructor II -- Abbreviation tool
in thread VarStructor II -- Abbreviation tool
Line one
Line two
Line five
reduces to:
Line_o
Line_t
Line_f
and:
Lines end here not
Lines end here
Lines end here too
reduces to:
L1
L2
L3
The script is intended to create the shortest possible unique string, with a given maximum number of characters from the beginning of the string. When two strings are identical, a number must be appended and since the text is of no use in distinguishing those strings, and the shortest possible unique string contains just one (actually, zero) characters, that's how many characters are kept.
Whether sticking to that produces the most useful function is another issue, but it does produce the shortest string and puts value on the inclusion of text when the text isn't identical.
I will be adding an option to have identical text that's appended with a number contain the maximum number of characters instead of just one.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: VarStructor II -- Abbreviation tool
by jdporter (Paladin) on Jun 02, 2004 at 15:51 UTC |