Highlight specific strings of text in a PDF.
In order to use highlight, please make sure you have the rye tool installed on your machine.
Follow these steps to get started with Highlight.
- Clone this repository:
git clone <this repository>
- Change into the
highlight
directory:
cd highlight
- Sync using
rye
:
rye sync
- Make a copy of the
color_phrases.json
file:
cp color_phrases.json.sample color_phrases.json
- Customize your color and phrases:
You can customize the colors and phrases according to your preference. Please refer to the scripts/color_list.pdf for color options.
To start using highlight, run the following command:
rye run python src/highlight/main.py <pdf_path>
Replace <pdf_path>
with the path to your PDF file.