Code: Select all
bo$obo$obo$bo
Code: Select all
bo$obo$bo
Code: Select all
2o$2o
Code: Select all
2b2o$3bo$3o$o
Code: Select all
b2o$o2bo$bobo$2bo
Code: Select all
bo$obo$obo$bo
Code: Select all
bo$obo$bo
Code: Select all
2o$2o
Code: Select all
2b2o$3bo$3o$o
Code: Select all
b2o$o2bo$bobo$2bo
Little chunks of text are sometimes hard to guess, if there are no reasonably definitive markers present, like an exclamation point. Without looking at the parsing code, I'd guess that if there are no 0..9 digit characters in the text chunk, then the parser guesses that the text is an ASCII pattern.Scorbie wrote:With Golly 2.9b1 on 64bit Linux (Linux Mint), the one-line RLE of the hive is parsed as a string rather as an RLE.(Edit: the tub, too.)Code: Select all
bo$obo$obo$bo
Other patterns does not exhibit this behavior; Compare:Code: Select all
bo$obo$bo
Code: Select all
2o$2o
Code: Select all
2b2o$3bo$3o$o
Note: These RLEs have their !s at the end removed. I haven't tested it thoroughly, but all of them seem to work with the ! appended.Code: Select all
b2o$o2bo$bobo$2bo
The code says:dvgrn wrote:Little chunks of text are sometimes hard to guess, if there are no reasonably definitive markers present, like an exclamation point. Without looking at the parsing code, I'd guess that if there are no 0..9 digit characters in the text chunk, then the parser guesses that the text is an ASCII pattern.
It's a good guess in most cases. If you want it to guess better in other cases, add a ! ...
Code: Select all
// Everything seems parseable; assume this is RLE if either we saw some
// digits, or the pattern ends with a '!', both of which are unlikely to
// occur in plain text patterns:
Conversely, plaintext patterns tend to only contain .*o$ and newlines. Multiple dollars can occur in a single line, since Dean Hickerson used them to abbreviate ten spaces.BlinkerSpawn wrote:Digits and trailing exclamation points aren't too uncommon in plaintext.
Multiple dollar signs in a single line would be a telltale sign of RLE though.