A2Z: Nabokov's Synaesthesia (week 1)
I took the opportunity this week to implement an idea that has been bouncing around in my head for a while: a program that colors text according to Vladimir Nabokov's synaesthesia. Nabokov claimed to see the shape of letters as colors; my program takes a plain text document and outputs an HTML fragment in which each character is colored according to Nabokov's reported impression. Here's some sample output (taken from the opening paragraphs of Lolita):
She was Lo, plain Lo, in the morning, standing four feet ten in one sock. She was Lola in slacks. She was Dolly at school. She was Dolores on the dotted line. But in my arms she was always Lolita.
Did she have a precursor? She did, indeed she did. In point of fact, there might have been no Lolita at all had I not loved, one summer, a certain initial girl-child. In a princedom by the sea. Oh when? About as many years before Lolita was born as my age was that summer. You can always count on a murderer for a fancy prose style.