Double search possibility
April 9, 2018 at 4:56 pm #26128
This website idea is so great and you feel as lost as described by Borges in his short story.
I don’t have any computer knowledge so I don’t know what my suggestion would imply from a technical perspective.
Since when you look for a sentence you find it surrounded by non-sense it could be interesting to be able to look for two series of words together : you could see how the pages of the library connect both texts and see for example what might happen between Hamlet’s first and last lines on a single page.
I also agree with a suggestion posted 2 months ago : it would be so nice to have other “languagize” possibilities than English. I think Borges would have been the first to ask for it!
Congratulations and thanks for your work!April 9, 2018 at 7:24 pm #26130
It actually wouldn’t be too difficult to implement that feature, given how the Library currently works. Right now, the search term you type in is surrounded by random characters to fill in the rest of the page, and that page is used to mathematically find where it would be located.
I made a quick little mock up to show it in action. Copy the code from this page:
And then go to this page to run it:
First delete all of the code already there, it’s just a “Hello World” example, then paste what you copied. On the right, switch to the “Output HTML” tab, then click “Run Code” on the left. Give it a second or two and it will generate a page. I made the search terms all caps and surrounded by 3 spaces to make it easier to spot on the page. You can keep clicking “Run Code” to generate more pages. If you want to edit the search terms, just change the “ONCE UPON A TIME” and “THE END” at the top of the code. Make sure to leave it inside the quotes or you will get errors.April 10, 2018 at 4:15 pm #26145
Thank you very much Delengroth! It’s very usefulApril 10, 2018 at 7:02 pm #26149
You can find the code here:
Click the “Download” button near the top, or just click this link for the same file:
If HTML files are associated to your browser, you should be able to just double click the file to open it. If not, create a new tab and just drag the file into the webpage area.