Closed gilgamec closed 3 years ago
I think the problem is that spurious spaces are getting into the string literal somehow:
λ> raw1 = bimap id (filter (/=' ')) $ OCR.rawLetterforms1
λ> sort $ M.elems $ OCR.getLetterMap $ uncurry OCR.parseLetterMap raw1
"ABCEFGHIJKLOPRUYZ"
Maybe a problem with heredoc
?
Ah, thank you...this is definitely interesting, and concerning! I wonder what is going on here...it does sound like it could be a problem with the heredoc. I should probably also build some fuzz testing for this instead of relying on some built in forms.
I've added a filter to the heredocs, this seems to resolve the issue for now. But I do wonder what's happening.
Ah! It might be a locale thing, since checking defaultLettermap
on my machine gives the full alphabet. What OS are you using?
I'm on MacOS 10.13.
hm..definitely interesting.
i'm closing this issue because I've implemented the filtering change mentioned, but it would be interesting to investigate this further on the heredoc side. thanks opening!
As near as I can tell, there are quite a few letterforms missing from the
defaultLetterMap
.It looks like it's missing one of the Rs, the U, the Y, and both Zs.