A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cdmoro/literature-clock below:

cdmoro/literature-clock: A clock for book lovers that tells the time using quotes from literature. Support for multiple languages, themes, and more!

A clock for book lovers that tells the time using quotes from literature. Support for multiple languages, themes, and more!

Based on the work of Johannes Enevoldsen (literature-clock) and Jaap Meijers (e-reader clock).

The clock can be controlled using URL parameters, these parameters will overwrite the existing configuration

Developer settings

There is support for the following languages (by default, it will try to use the system language):

Want to implement a new language? Sure thing, ping me and let's talk about it!

Translations

All translations were made from the original CSV English file, sometimes the translations are not accurate (I used Google Translate, yes, I know), but it's fine, this is something that can be fixed easily, just one quote at a time. :) So far, these are the times that don't have quotes:

If you want to help you can:

If you want to use this clock as a screensaver there are several ways to address this, although, it depends on the OS. I'm currently using the Mac OS solution and it worked like a charm. You can find more information here:

To run the project you need to have Python, Node and NPM installed on your system.

  1. Clone the project
  2. Install NPM dependencies
  3. Run npm run generate-times to generate all the quote files
  4. Run npm run dev and voila! The clock will be automatically opened in your favorite browser.

I used Python to generate the JSON files (one per time if the time has quotes) with the quotes. The script goes through all the CSV files (one per locale) and puts the files in the appropriate folders. Also, the script generates an additional JSON file with statistics per locale, such as the times with fewer quotes, the author with the most quotes, etc.

To generate the times, simply run python .\scripts\generate_times.py in the root folder. By default, the script will generate all the JSON files, if you want to generate the JSON files for a particular locale you can add it as a parameter, i.e. .\scripts\generate_times.py en-US.

This project is possible thanks to the following projects:

Hi! I'm Carlos, and you can find me here


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4