hanky 0.3.0.dev4__tar.gz → 0.3.0.dev5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hanky
3
- Version: 0.3.0.dev4
3
+ Version: 0.3.0.dev5
4
4
  Summary: Simple library and command line tool for loading flash cards into anki.
5
5
  Project-URL: Homepage, https://github.com/Haeata-Ash/hanky
6
6
  Project-URL: Issues, https://github.com/Haeata-Ash/hanky/issues
@@ -361,6 +361,13 @@ from simplest to most involved. Each demo lives in its own folder with a
361
361
  English→French pipeline that scrapes a translation from WordReference, asks
362
362
  Claude for an example sentence at a given CEFR level, then adds French audio
363
363
  for both the word and the sentence with AWS Polly.
364
+ - [`demo_highlight_words.py`](https://github.com/Haeata-Ash/hanky/blob/main/demo/highlight_words/demo_highlight_words.py) — A
365
+ computer-vision loader: photograph a printed French page you've marked with
366
+ a highlighter pen and every highlighted word or phrase becomes a card with
367
+ the sentence it appeared in as context, its dictionary form via spaCy
368
+ (`fr_core_news_sm`), and an English translation from the Google Cloud
369
+ Translation API. Highlighter ink is found with OpenCV colour segmentation
370
+ and read on-device with a small Latin-script OCR model.
364
371
 
365
372
  ## CLI Reference
366
373
 
@@ -425,7 +432,7 @@ you'd like to change. Please make sure tests pass (`uv run pytest`) before submi
425
432
  ## Development
426
433
 
427
434
  ```sh
428
- uv sync # install dependencies (incl. dev + demo groups)
435
+ uv sync # install dependencies (incl. dev group)
429
436
  uv run pytest # run tests (CI runs Python 3.11, 3.12, 3.13)
430
437
  uv run ruff format . # format
431
438
  uv run ruff check . # lint
@@ -343,6 +343,13 @@ from simplest to most involved. Each demo lives in its own folder with a
343
343
  English→French pipeline that scrapes a translation from WordReference, asks
344
344
  Claude for an example sentence at a given CEFR level, then adds French audio
345
345
  for both the word and the sentence with AWS Polly.
346
+ - [`demo_highlight_words.py`](https://github.com/Haeata-Ash/hanky/blob/main/demo/highlight_words/demo_highlight_words.py) — A
347
+ computer-vision loader: photograph a printed French page you've marked with
348
+ a highlighter pen and every highlighted word or phrase becomes a card with
349
+ the sentence it appeared in as context, its dictionary form via spaCy
350
+ (`fr_core_news_sm`), and an English translation from the Google Cloud
351
+ Translation API. Highlighter ink is found with OpenCV colour segmentation
352
+ and read on-device with a small Latin-script OCR model.
346
353
 
347
354
  ## CLI Reference
348
355
 
@@ -407,7 +414,7 @@ you'd like to change. Please make sure tests pass (`uv run pytest`) before submi
407
414
  ## Development
408
415
 
409
416
  ```sh
410
- uv sync # install dependencies (incl. dev + demo groups)
417
+ uv sync # install dependencies (incl. dev group)
411
418
  uv run pytest # run tests (CI runs Python 3.11, 3.12, 3.13)
412
419
  uv run ruff format . # format
413
420
  uv run ruff check . # lint
@@ -16,7 +16,7 @@ classifiers = [
16
16
  ]
17
17
 
18
18
  keywords = ["anki"]
19
- version = "0.3.0.dev4"
19
+ version = "0.3.0.dev5"
20
20
 
21
21
  dependencies = [
22
22
  "anki",
@@ -336,7 +336,7 @@ wheels = [
336
336
 
337
337
  [[package]]
338
338
  name = "hanky"
339
- version = "0.3.0.dev4"
339
+ version = "0.3.0.dev5"
340
340
  source = { editable = "." }
341
341
  dependencies = [
342
342
  { name = "anki" },
File without changes
File without changes
File without changes
File without changes