I'll keep looking out for an image of Q or Z then. The Z should be relatively common, there are even a few in the cryptics and emote clues I believe.
However Q only appears on a single clue (SEQUIN DIRGE / Queen Sigrid).
How does the OCR work if I may ask? Is it just a best pixel match or something more complicated?
I don't think a missing Q, or a Q being recognized as an O will be a huge problem for the text comparison.
This is the old input image for reference, i changed the precompile script so that it takes a raw image of the characters instead
I'll dive back into it after diner
]]>It seems Alt1 fails to read the third line (AHA JAR) at all, as indicated by the debug console only printing the first two lines: "This anagram reveals who to speak to next:" (from the clog at line 162 in runeapps.org/apps/clue/scripts.js).
Edit:
It seems that the coldiff threshold of 50 used in solvetextclue is too strict for recognizing the anti-aliased "A".
Adding an overlay for each matched pixel (line 148 of runeapps.org/apps/clue/scripts.js):
if (a < 50) {
linescore++;
alt1.overLayRect(a1lib.mixcolor(255,0,255),textinterface.pos.x+x,textinterface.pos.y+y,1,1,1500,1);
}
Shows that the 3rd, 6th and 9th row of pixels have no matches on the "A". The stems of the H, J and R are only good for a linescore of 5 or 4 pixels on rows 3 and 9, resulting in the entire line being discarded:
Increasing the threshold to 80 seems to do the trick to recognize the third line as text.
Despite this, alt1.bindReadColorString (line 155 of runeapps.org/apps/clue/scripts.js) still has a hard time reading the line, depending on where exactly the center of the text is placed:
At textinterface.pos.x+255 (on the stem of the J), it only finds a single character: " ! ".
At textinterface.pos.x+235 (on the H), it only recognizes the first word " AHA ", which is not enough for the text comparison to pick "Aha Jar" over "Snah".
At textinterface.pos.x+265 (on the A in JAR), it only recognizes the second word but mangles the J into a quote: " 'AR " (Wonderfully enough, this does make the text comparison pick "Aha Jar").