Sunday 16 February 2020

idea

colorful classics ?

there is a large pool of classic literature now available in public domain - thanks to Project Gutenberg .. has anyone tried to bring out the hidden 'colors' within such text? analyzing the string for presence of six digit 'valid' hex codes - and applying the 'style' of background color to that 'chunk' of text might make it interesting rendering ... should be not very tricky/difficult ... might try some day ..

UPDATE:
------------
some quick & easy JavaScript test showed there isn't much 'color' in classics :( ... at least the one i used as first sample 'Alice in Wonderland' from https://www.gutenberg.org/files/11/11-h/11-h.htm#link2HCH0001 had NOT a single hex-color pattern (assuming my logic & implementation is correct) in first 4 chapters ... the 5th chapter however showed first occurrence that too in the word 'succeeded' (what a coincidence!) .. this also reminds me of another thought/story i get inspired (another blog on mining 'gold' and getting 'dirt' and so on ..?)

No comments:

Post a Comment