Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| def colorize(value, color) | |
| case color | |
| when :black then "\e[30m" + value.to_s + "\e[0m" | |
| when :red then "\e[31m" + value.to_s + "\e[0m" | |
| when :green then "\e[32m" + value.to_s + "\e[0m" | |
| when :yellow then "\e[33m" + value.to_s + "\e[0m" | |
| when :blue then "\e[34m" + value.to_s + "\e[0m" | |
| when :magenta then "\e[35m" + value.to_s + "\e[0m" | |
| when :cyan then "\e[36m" + value.to_s + "\e[0m" | |
| when :white then "\e[37m" + value.to_s + "\e[0m" |
| -- see https://github.com/ankidroid/Anki-Android/wiki/Database-Structure for a more maintained version of this | |
| -- cards are what you review. easy! | |
| CREATE TABLE cards ( | |
| id integer primary key, | |
| -- the epoch milliseconds of when the card was created | |
| nid integer not null, | |
| -- notes.id | |
| did integer not null, | |
| -- deck id (available in col table) |
| description "Mailcatcher" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| pre-start script | |
| bash << "EOF" | |
| mkdir -p /var/log/mailcatcher |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.