Datasets:
wolne_lektury: check credits against the National Library's catalogue, drop 2 not-free translations, fix 3 translators (v2#109) (#190)
Browse files- wolne_lektury: BN catalogue check, drop 2 not-free translations, fix 3 translators (v2#109) (a2fa5fc9a27cbc62d298e47c838591d91020d811)
- artifacts/source_findings.md +59 -26
- data/wolne_lektury/wolne_lektury.attribution.jsonl +2 -2
- data/wolne_lektury/wolne_lektury.licences.tsv +0 -2
- data/wolne_lektury/wolne_lektury.license-evidence.json +201 -35
- data/wolne_lektury/wolne_lektury.md +7 -7
- data/wolne_lektury/wolne_lektury.notes.jsonl +0 -1
- data/wolne_lektury/wolne_lektury.parquet +2 -2
- data/wolne_lektury/wolne_lektury.stats.json +8 -7
- src/attribution_common.py +14 -4
- src/build_wolne_lektury_attribution.py +146 -7
- src/clean_wolne_lektury.py +15 -11
- src/sources.py +22 -8
- src/test_attribution_common.py +9 -0
- src/test_attribution_release.py +23 -5
- src/test_wolne_lektury_attribution.py +81 -5
- src/test_wolne_lektury_contract.py +12 -10
- src/test_wolne_lektury_licences.py +10 -0
- src/test_wolne_lektury_notes.py +11 -11
- src/wolne_lektury_licences.py +19 -0
- src/wolne_lektury_notes.py +5 -4
artifacts/source_findings.md
CHANGED
|
@@ -3605,55 +3605,57 @@ titles are staff or commissioned (the foundation's rights from them are not publ
|
|
| 3605 |
**Investigated** — whether every `wolne_lektury` row carries the author, translator and title Wolne Lektury (WL)
|
| 3606 |
gives, whether the full licence URL, the credits and the "Książka pochodzi z serwisu Wolne Lektury" line are
|
| 3607 |
recorded per document, and what the text and the edition behind it are. Results are in
|
| 3608 |
-
`data/wolne_lektury/wolne_lektury.attribution.jsonl` (6,
|
| 3609 |
`data/wolne_lektury/wolne_lektury.license-evidence.json`; `src/build_wolne_lektury_attribution.py` writes both.
|
| 3610 |
|
| 3611 |
-
**Verdict** — metadata filled and recorded; the text of
|
| 3612 |
end (see "Footnote check"), the rest is unchanged. The builder checks every row's SHA-1 and a whole-table digest of the
|
| 3613 |
-
text before the notes, and `src/test_attribution_release.py` re-checks both.
|
| 3614 |
-
"Flagged" need a maintainer
|
|
|
|
| 3615 |
|
| 3616 |
**Method** — the RDF header of each book was read from the top of its WL XML
|
| 3617 |
(`https://wolnelektury.pl/media/book/xml/<slug>.xml`, Range requests) for the 6,065 distinct first slugs of
|
| 3618 |
-
`wolne_lektury.licences.tsv`, plus 4 `/api/` calls (the book list, 5.1 MB, and 3 book records, one for the renamed
|
| 3619 |
book). 6,117 requests in all, one at a time at least 1.2 s apart, 41.2 MB, no 403, 429 or bot check; robots.txt
|
| 3620 |
(read first) does not disallow these paths. Headers are parsed as XML with DOCTYPE and entities refused. The
|
| 3621 |
corrected `author` column is the only change this step makes to the Parquet; the notes (below) are added by
|
| 3622 |
`src/clean_wolne_lektury.py`.
|
| 3623 |
|
| 3624 |
-
- **Fields** — `author` is 6,
|
| 3625 |
for a translation (the global_voices form), "Tłumaczenie: T" where WL names a translator and no author (6 rows).
|
| 3626 |
The 37 empty rows are WL placeholders ("Autor nieznany" 36, "Praca zbiorowa" 1) with no named translator.
|
| 3627 |
-
Translator
|
| 3628 |
Pseudonyms and cryptonyms stay as WL writes them; that this is the first-edition form is not established.
|
| 3629 |
-
- **Licences** — public domain 4,
|
| 3630 |
its full URL and version in `license_url`. WL's own link for all 34 "3.0 PL" documents names the Unported text
|
| 3631 |
(`/by-sa/3.0/`); the sidecar keeps WL's link in `wl_license_url` next to ours (the 3.0 PL URL, as the label says).
|
| 3632 |
-
The sidecar covers all 6,
|
| 3633 |
every line.
|
| 3634 |
- **Credits** — WL's editor, technical editor, funding and thanks lines and its credit notes are copied per row.
|
| 3635 |
WL's "editor" is the person who prepared the digital edition (239 distinct names), not the print edition's editor.
|
| 3636 |
- **Normalisation** — in this repository two steps change a text: trimming leading and trailing whitespace
|
| 3637 |
-
(`build_dynaword.py`) and adding the author's and translator's notes at the end of
|
| 3638 |
(`clean_wolne_lektury.py`); the length, language, OCR and duplicate gates dropped 0 rows; `clean_wolne_lektury.py`
|
| 3639 |
-
dropped 63 whole documents (ELTeC novels)
|
|
|
|
| 3640 |
removed anywhere (`paragraphs_removed_without_a_mark` 0). What SpeakLeash did before is not documented. WL's footer
|
| 3641 |
is not in any text (`strip_wl_footer` finds none, no text names WL); who removed it is not established.
|
| 3642 |
- **Notes and prefaces** — every row was scanned: no WL credit text, no `[przypis` marker. Section headings inside
|
| 3643 |
-
texts: Wstęp 73, Przedmowa
|
| 3644 |
Od wydawców and Uwagi wydawcy 1 each. A hand read of the first and last 450 characters of 40 random rows
|
| 3645 |
-
(`random.Random(109)`) found no WL credit or note and 3 rows with print-edition matter (a publisher's address, a
|
| 3646 |
-
list of editions, an introduction). WL's txt header lines open the text: ISBN in 1,
|
| 3647 |
-
- **Edition basis** — WL's print-edition field is `source_edition` (named for 6,
|
| 3648 |
to be WL's modernised versions of those editions; 239 rows keep period spelling by a heuristic (at least 5 old-
|
| 3649 |
spelling words per 1,000), so the modernisation is not uniform.
|
| 3650 |
|
| 3651 |
-
**Flagged
|
| 3652 |
-
- Public-domain rows only (a licensed row has its rightsholder's licence): 2,
|
| 3653 |
-
1,
|
| 3654 |
-
commentary, 802 name an editor or selector,
|
| 3655 |
-
two are in the evidence file. The editors'
|
| 3656 |
-
|
| 3657 |
- Precision, from 15 rows drawn by hand for each of the four flags: two patterns were too loose and are removed. "naukow"
|
| 3658 |
matched the printing house "Drukarnia Naukowa" (9 rows; critical 67 to 58) and "wyd." matched publishers (editor
|
| 3659 |
credit 1,850 to 802). "wybór" still matches a title word, so the editor flag stays broad. The fixed patterns were
|
|
@@ -3662,7 +3664,7 @@ corrected `author` column is the only change this step makes to the Parquet; the
|
|
| 3662 |
- Edition review, 2026-10-20 (`edition_review.reviewed` in the evidence file; pinned by a test): 98 rows read, the 58
|
| 3663 |
`critical` rows, the 10 "Komentarz" rows and the 30 public-domain rows with no WL public-domain date. No row cut or
|
| 3664 |
dropped. Details and the open points (3 Konopnicka rows that open with an unsigned prose note, 7 of the 30 less
|
| 3665 |
-
certain, 2 translations by an unnamed translator kept as anonymous) are in the evidence file. The 1,
|
| 3666 |
after 1955 were not checked for the print's editor.
|
| 3667 |
- WL's editors added glosses inside the author's and translator's notes (`[...; red. WL]`: a word explained in square
|
| 3668 |
brackets). By the maintainer's decision (2026-10-20) `strip_glosses()` in `src/wolne_lektury_notes.py` strips every
|
|
@@ -3683,11 +3685,11 @@ corrected `author` column is the only change this step makes to the Parquet; the
|
|
| 3683 |
released text.
|
| 3684 |
|
| 3685 |
**Footnote check — run, notes restored (2026-10-20).** `src/wolne_lektury_notes.py` read WL's book XML (6,064 files,
|
| 3686 |
-
one per
|
| 3687 |
-
(pinned by SHA-256; each XML file's hash is in it).
|
| 3688 |
-
8,
|
| 3689 |
at the end of each of those texts as "Przypisy autora" and "Przypisy tłumacza", numbered from 1 in each, in document
|
| 3690 |
-
order: 8,
|
| 3691 |
tokens. WL's editorial notes (`<pe>`, `<pr>`) are not restored, none of their text is inside a restored note, and WL's
|
| 3692 |
glosses inside the restored notes are stripped (above). Left out:
|
| 3693 |
2 empty notes and 3 author's notes that the export had kept in the text (`wolne_lektury_2371978`,
|
|
@@ -3695,6 +3697,37 @@ glosses inside the restored notes are stripped (above). Left out:
|
|
| 3695 |
the translator. Not checked: the Korczak row (no XML) and the second book of `wolne_lektury_2375260`. The ELTeC
|
| 3696 |
dedup scored the texts without the notes, so `wolne_lektury.eltec_pairs.tsv` is unchanged.
|
| 3697 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3698 |
**Not established** — the editors of the print editions and their death years; the first-edition form of any author
|
| 3699 |
name; what SpeakLeash changed and who removed the footer; whether
|
| 3700 |
`source_edition` is the edition the modernised text actually follows.
|
|
|
|
| 3605 |
**Investigated** — whether every `wolne_lektury` row carries the author, translator and title Wolne Lektury (WL)
|
| 3606 |
gives, whether the full licence URL, the credits and the "Książka pochodzi z serwisu Wolne Lektury" line are
|
| 3607 |
recorded per document, and what the text and the edition behind it are. Results are in
|
| 3608 |
+
`data/wolne_lektury/wolne_lektury.attribution.jsonl` (6,074 lines, one per row, in Parquet order) and
|
| 3609 |
`data/wolne_lektury/wolne_lektury.license-evidence.json`; `src/build_wolne_lektury_attribution.py` writes both.
|
| 3610 |
|
| 3611 |
+
**Verdict** — metadata filled and recorded; the text of 459 rows gets their author's and translator's notes at the
|
| 3612 |
end (see "Footnote check"), the rest is unchanged. The builder checks every row's SHA-1 and a whole-table digest of the
|
| 3613 |
+
text before the notes, and `src/test_attribution_release.py` re-checks both. 2 rows that WL marks public domain are dropped because
|
| 3614 |
+
their translation is not free (see "BN check"); no other row is excluded. The items under "Flagged" need a maintainer
|
| 3615 |
+
decision.
|
| 3616 |
|
| 3617 |
**Method** — the RDF header of each book was read from the top of its WL XML
|
| 3618 |
(`https://wolnelektury.pl/media/book/xml/<slug>.xml`, Range requests) for the 6,065 distinct first slugs of
|
| 3619 |
+
`wolne_lektury.licences.tsv` (then 6,076 rows), plus 4 `/api/` calls (the book list, 5.1 MB, and 3 book records, one for the renamed
|
| 3620 |
book). 6,117 requests in all, one at a time at least 1.2 s apart, 41.2 MB, no 403, 429 or bot check; robots.txt
|
| 3621 |
(read first) does not disallow these paths. Headers are parsed as XML with DOCTYPE and entities refused. The
|
| 3622 |
corrected `author` column is the only change this step makes to the Parquet; the notes (below) are added by
|
| 3623 |
`src/clean_wolne_lektury.py`.
|
| 3624 |
|
| 3625 |
+
- **Fields** — `author` is 6,037 of 6,074 rows: WL's `dc:creator` names, "Autorzy oryginału: A; Tłumaczenie: T"
|
| 3626 |
for a translation (the global_voices form), "Tłumaczenie: T" where WL names a translator and no author (6 rows).
|
| 3627 |
The 37 empty rows are WL placeholders ("Autor nieznany" 36, "Praca zbiorowa" 1) with no named translator.
|
| 3628 |
+
Translator 840 rows, original author 834, title 6,074. Original title 0: WL's header has no such field.
|
| 3629 |
Pseudonyms and cryptonyms stay as WL writes them; that this is the first-edition form is not established.
|
| 3630 |
+
- **Licences** — public domain 4,557 (no URL), LAL 1.3 1,467, CC BY-SA 3.0 PL 34, 3.0 Unported 5, 4.0 11, each with
|
| 3631 |
its full URL and version in `license_url`. WL's own link for all 34 "3.0 PL" documents names the Unported text
|
| 3632 |
(`/by-sa/3.0/`); the sidecar keeps WL's link in `wl_license_url` next to ours (the 3.0 PL URL, as the label says).
|
| 3633 |
+
The sidecar covers all 6,074 rows, not only the 1,517 under a licence; the credit line and processing note are on
|
| 3634 |
every line.
|
| 3635 |
- **Credits** — WL's editor, technical editor, funding and thanks lines and its credit notes are copied per row.
|
| 3636 |
WL's "editor" is the person who prepared the digital edition (239 distinct names), not the print edition's editor.
|
| 3637 |
- **Normalisation** — in this repository two steps change a text: trimming leading and trailing whitespace
|
| 3638 |
+
(`build_dynaword.py`) and adding the author's and translator's notes at the end of 459 texts
|
| 3639 |
(`clean_wolne_lektury.py`); the length, language, OCR and duplicate gates dropped 0 rows; `clean_wolne_lektury.py`
|
| 3640 |
+
dropped 63 whole documents (ELTeC novels), 2 (no usable licence) and 2 (translation not
|
| 3641 |
+
free, see "BN check"), and relabelled the rest. No paragraph is
|
| 3642 |
removed anywhere (`paragraphs_removed_without_a_mark` 0). What SpeakLeash did before is not documented. WL's footer
|
| 3643 |
is not in any text (`strip_wl_footer` finds none, no text names WL); who removed it is not established.
|
| 3644 |
- **Notes and prefaces** — every row was scanned: no WL credit text, no `[przypis` marker. Section headings inside
|
| 3645 |
+
texts: Wstęp 73, Przedmowa 49, Od tłumacza 43, Komentarz 10, Posłowie 10, Słowo wstępne 3, Przypisy 2, Od redakcji,
|
| 3646 |
Od wydawców and Uwagi wydawcy 1 each. A hand read of the first and last 450 characters of 40 random rows
|
| 3647 |
+
of the then 6,076 (`random.Random(109)`) found no WL credit or note and 3 rows with print-edition matter (a publisher's address, a
|
| 3648 |
+
list of editions, an introduction). WL's txt header lines open the text: ISBN in 1,118 rows, "tłum." in 837.
|
| 3649 |
+
- **Edition basis** — WL's print-edition field is `source_edition` (named for 6,030 of 6,074 rows). We take the texts
|
| 3650 |
to be WL's modernised versions of those editions; 239 rows keep period spelling by a heuristic (at least 5 old-
|
| 3651 |
spelling words per 1,000), so the modernisation is not uniform.
|
| 3652 |
|
| 3653 |
+
**Flagged**
|
| 3654 |
+
- Public-domain rows only (a licensed row has its rightsholder's licence): 2,419 have at least one flag.
|
| 3655 |
+
1,310 name a print edition published after 1955, 58 a critical or scholarly edition, 229 an introduction, notes or
|
| 3656 |
+
commentary, 802 name an editor or selector, 801 a translator, 1 a National Library edition. Row ids for the first
|
| 3657 |
+
two are in the evidence file. The editors' death years are in neither WL nor this repository, so editors who died
|
| 3658 |
+
after 1955 cannot be listed; the authors' and translators' were compared with BN's where BN gives one ("BN check").
|
| 3659 |
- Precision, from 15 rows drawn by hand for each of the four flags: two patterns were too loose and are removed. "naukow"
|
| 3660 |
matched the printing house "Drukarnia Naukowa" (9 rows; critical 67 to 58) and "wyd." matched publishers (editor
|
| 3661 |
credit 1,850 to 802). "wybór" still matches a title word, so the editor flag stays broad. The fixed patterns were
|
|
|
|
| 3664 |
- Edition review, 2026-10-20 (`edition_review.reviewed` in the evidence file; pinned by a test): 98 rows read, the 58
|
| 3665 |
`critical` rows, the 10 "Komentarz" rows and the 30 public-domain rows with no WL public-domain date. No row cut or
|
| 3666 |
dropped. Details and the open points (3 Konopnicka rows that open with an unsigned prose note, 7 of the 30 less
|
| 3667 |
+
certain, 2 translations by an unnamed translator kept as anonymous) are in the evidence file. The 1,310 rows printed
|
| 3668 |
after 1955 were not checked for the print's editor.
|
| 3669 |
- WL's editors added glosses inside the author's and translator's notes (`[...; red. WL]`: a word explained in square
|
| 3670 |
brackets). By the maintainer's decision (2026-10-20) `strip_glosses()` in `src/wolne_lektury_notes.py` strips every
|
|
|
|
| 3685 |
released text.
|
| 3686 |
|
| 3687 |
**Footnote check — run, notes restored (2026-10-20).** `src/wolne_lektury_notes.py` read WL's book XML (6,064 files,
|
| 3688 |
+
one per slug of the then 6,076 rows; WL serves none for the Korczak row, 404) and wrote `data/wolne_lektury/wolne_lektury.notes.jsonl`
|
| 3689 |
+
(pinned by SHA-256; each XML file's hash is in it). 459 rows have an author's (`<pa>`) or translator's (`<pt>`) note:
|
| 3690 |
+
8,104 and 10,838 notes. The export had dropped them. By the maintainer's decision `src/clean_wolne_lektury.py` adds them
|
| 3691 |
at the end of each of those texts as "Przypisy autora" and "Przypisy tłumacza", numbered from 1 in each, in document
|
| 3692 |
+
order: 8,099 author's notes (336 rows) and 10,838 translator's notes (168 rows), +3,909,359 characters and +1,497,118
|
| 3693 |
tokens. WL's editorial notes (`<pe>`, `<pr>`) are not restored, none of their text is inside a restored note, and WL's
|
| 3694 |
glosses inside the restored notes are stripped (above). Left out:
|
| 3695 |
2 empty notes and 3 author's notes that the export had kept in the text (`wolne_lektury_2371978`,
|
|
|
|
| 3697 |
the translator. Not checked: the Korczak row (no XML) and the second book of `wolne_lektury_2375260`. The ELTeC
|
| 3698 |
dedup scored the texts without the notes, so `wolne_lektury.eltec_pairs.tsv` is unchanged.
|
| 3699 |
|
| 3700 |
+
**BN check — run, 2 rows dropped (2026-10-20).** Run on the 6,076 rows of the time together with the 100
|
| 3701 |
+
`eltec_pol` novels. Each row's BN records (https://data.bn.org.pl, read only; WL's own
|
| 3702 |
+
e-book records left out as circular) were found by the author's surname and the title of the work and of its print
|
| 3703 |
+
edition; our author and translators were compared with BN's fields 100, 245$c and 700, and for public-domain rows BN's
|
| 3704 |
+
death years with 1955 and with WL's `date.pd`. Every row flagged for an author or translator was read by hand
|
| 3705 |
+
(translator not ours 112, translator missing in BN 53, author mismatch 31, death year after 1955 1), the other flags in
|
| 3706 |
+
samples (no record 50 of 503, pseudonym 50 of 76, other 48 of 120). Of these 345 row-flags (7 on `eltec_pol` rows), 41 are real errors,
|
| 3707 |
+
192 catalogue noise, 36 pseudonyms BN resolves to the same person and 76 cannot tell (1 on `eltec_pol`). `bn_check` in the evidence file has the
|
| 3708 |
+
details; by the maintainer's decisions of the same day:
|
| 3709 |
+
- Dropped as not free (`NOT_FREE` in `src/wolne_lektury_licences.py`), both marked public domain by WL: Nietzsche's
|
| 3710 |
+
"Wola mocy" (`wolne_lektury_2375754`) is a joint translation by Konrad Drzewiecki (d. 1922) and Stefan Frycz
|
| 3711 |
+
(d. 1960; BN record 1826277), protected to the end of 2030; Wells's "Wehikuł czasu" (`wolne_lektury_2371705`) follows
|
| 3712 |
+
the Ossolineum print of 1985, whose translation Juliusz K. Palczewski, born in 1932, revised (BN record 1216473). The
|
| 3713 |
+
Wells row had 1 restored author's note, hence 459 rows with notes, not 460.
|
| 3714 |
+
- Translators corrected (`TRANSLATOR_FIXES` in `src/build_wolne_lektury_attribution.py`): "Leon Urlich" to "Leon
|
| 3715 |
+
Ulrich" (`wolne_lektury_2374887`), Józef Nusbaum added next to Szymon Dickstein (`wolne_lektury_2373112`) and Aniela
|
| 3716 |
+
Zagórska added where WL's header names no translator (`wolne_lektury_2372990`), in the sidecar and in `author`. One
|
| 3717 |
+
print-edition note (`SOURCE_EDITION_NOTES`): for Hebbel's diaries (`wolne_lektury_2374125`) WL's `source_edition` is
|
| 3718 |
+
Hebbel's "Judyta" (BN record 1454550). These 4 rows carry a `metadata_note` in the sidecar.
|
| 3719 |
+
- Montaigne's "Próby": BN record 2293540 credits the Latin and Greek quotations of book 1 (PIW 1957) to Tadeusz Sinko
|
| 3720 |
+
(d. 1966) and Edmund Cięglewicz (d. 1928) jointly. Of the 466 translator's notes restored to Księga pierwsza
|
| 3721 |
+
(`wolne_lektury_2376515`), 336 end "tłum. Edmund Cięglewicz", 4 of them on a Greek quotation, and none names Sinko;
|
| 3722 |
+
the notes of books 2 and 3 (862 and 622) give a quotation's source and seldom a translation. Kept as WL credits them,
|
| 3723 |
+
with BN's joint credit recorded; which quotations it covers is not established.
|
| 3724 |
+
- `natural_order()` (`src/attribution_common.py`) now keeps a bracket after the name it follows: 21 rows read "Adam
|
| 3725 |
+
[Zofia Trzeszczkowska] M-ski", and all 22 rows with the bracket now read "Adam M-ski [Zofia Trzeszczkowska]".
|
| 3726 |
+
- Kept as WL wrote them, since none changes whether a row is free: 25 rows whose WL rights line gives a death year BN
|
| 3727 |
+
gives otherwise (for example "Wacław Rolicz-Lieder zm. 1940", BN 1912, 8 rows) and 6 rows whose WL `date.pd` is
|
| 3728 |
+
earlier than the translator's or author's death allows.
|
| 3729 |
+
- Open: 74 cannot-tell row-flags on 69 kept rows, left as WL gives them and listed in v2#109.
|
| 3730 |
+
|
| 3731 |
**Not established** — the editors of the print editions and their death years; the first-edition form of any author
|
| 3732 |
name; what SpeakLeash changed and who removed the footer; whether
|
| 3733 |
`source_edition` is the edition the modernised text actually follows.
|
data/wolne_lektury/wolne_lektury.attribution.jsonl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3492dae04dbc4793fb8eabca6ff2cf55c09dfa35493988a332d479aeaa925285
|
| 3 |
+
size 10649957
|
data/wolne_lektury/wolne_lektury.licences.tsv
CHANGED
|
@@ -118,7 +118,6 @@ wolne_lektury_2371701 weintraub-kolysanka-podziemna exact public-domain Domena p
|
|
| 118 |
wolne_lektury_2371702 weintraub-popiol exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
| 119 |
wolne_lektury_2371703 weintraub-rosniesz-nocy-kamienna-i-coraz-mi-ciezej exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
| 120 |
wolne_lektury_2371704 weintraub-wiersze-grudniowe exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
| 121 |
-
wolne_lektury_2371705 wells-wehikul-czasu exact public-domain Domena publiczna - Herbert George Wells zm. 1946
|
| 122 |
wolne_lektury_2371706 wergiliusz-eneida exact public-domain Domena publiczna - Tadeusz Karyłowski, zm. 1945.
|
| 123 |
wolne_lektury_2371707 wesele exact public-domain Domena publiczna - Stanisław Wyspiański zm. 1907
|
| 124 |
wolne_lektury_2371708 wesele-figara exact public-domain Domena publiczna - Tadeusz Boy-Żeleński zm. 1941
|
|
@@ -4124,7 +4123,6 @@ wolne_lektury_2375750 niestatek-oczy-sa-ogien-czolo-jest-zwierciadlem exact publ
|
|
| 4124 |
wolne_lektury_2375751 niestatek-predzej-kto-wiatr-w-wor-zamknie-predzej-i-promieni exact public-domain Domena publiczna - Jan Andrzej Morsztyn zm. 1693
|
| 4125 |
wolne_lektury_2375752 nietzsche-jutrzenka-mysli-o-przesadach-moralnych exact public-domain Domena publiczna - Stanisław Wyrzykowski zm. 1949
|
| 4126 |
wolne_lektury_2375753 nietzsche-wedrowiec-i-jego-cien exact public-domain Domena publiczna - Konrad Drzewiecki zm. 1922
|
| 4127 |
-
wolne_lektury_2375754 nietzsche-wola-mocy exact public-domain Domena publiczna - Konrad Drzewiecki zm. 1922
|
| 4128 |
wolne_lektury_2375755 nietzsche-zmierzch-bozyszcz exact public-domain Domena publiczna - Stanisław Wyrzykowski zm. 1949
|
| 4129 |
wolne_lektury_2375756 nie-udalo-sie exact public-domain Domena publiczna - Anton Czechow zm. 1904
|
| 4130 |
wolne_lektury_2375757 niewierny exact public-domain Domena publiczna - Kazimierz Przerwa-Tetmajer zm. 1940
|
|
|
|
| 118 |
wolne_lektury_2371702 weintraub-popiol exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
| 119 |
wolne_lektury_2371703 weintraub-rosniesz-nocy-kamienna-i-coraz-mi-ciezej exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
| 120 |
wolne_lektury_2371704 weintraub-wiersze-grudniowe exact public-domain Domena publiczna - Jerzy Kamil Weintraub zm. 1943
|
|
|
|
| 121 |
wolne_lektury_2371706 wergiliusz-eneida exact public-domain Domena publiczna - Tadeusz Karyłowski, zm. 1945.
|
| 122 |
wolne_lektury_2371707 wesele exact public-domain Domena publiczna - Stanisław Wyspiański zm. 1907
|
| 123 |
wolne_lektury_2371708 wesele-figara exact public-domain Domena publiczna - Tadeusz Boy-Żeleński zm. 1941
|
|
|
|
| 4123 |
wolne_lektury_2375751 niestatek-predzej-kto-wiatr-w-wor-zamknie-predzej-i-promieni exact public-domain Domena publiczna - Jan Andrzej Morsztyn zm. 1693
|
| 4124 |
wolne_lektury_2375752 nietzsche-jutrzenka-mysli-o-przesadach-moralnych exact public-domain Domena publiczna - Stanisław Wyrzykowski zm. 1949
|
| 4125 |
wolne_lektury_2375753 nietzsche-wedrowiec-i-jego-cien exact public-domain Domena publiczna - Konrad Drzewiecki zm. 1922
|
|
|
|
| 4126 |
wolne_lektury_2375755 nietzsche-zmierzch-bozyszcz exact public-domain Domena publiczna - Stanisław Wyrzykowski zm. 1949
|
| 4127 |
wolne_lektury_2375756 nie-udalo-sie exact public-domain Domena publiczna - Anton Czechow zm. 1904
|
| 4128 |
wolne_lektury_2375757 niewierny exact public-domain Domena publiczna - Kazimierz Przerwa-Tetmajer zm. 1940
|
data/wolne_lektury/wolne_lektury.license-evidence.json
CHANGED
|
@@ -1,14 +1,176 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"edition_review": {
|
| 4 |
"flags": {
|
| 5 |
"apparatus": 229,
|
| 6 |
"critical": 58,
|
| 7 |
"editor_credit": 802,
|
| 8 |
"national_library": 1,
|
| 9 |
-
"print_after_1955":
|
| 10 |
-
"translation":
|
| 11 |
-
"translator_credited":
|
| 12 |
},
|
| 13 |
"ids": {
|
| 14 |
"critical": [
|
|
@@ -101,7 +263,6 @@
|
|
| 101 |
"wolne_lektury_2371702",
|
| 102 |
"wolne_lektury_2371703",
|
| 103 |
"wolne_lektury_2371704",
|
| 104 |
-
"wolne_lektury_2371705",
|
| 105 |
"wolne_lektury_2371707",
|
| 106 |
"wolne_lektury_2371708",
|
| 107 |
"wolne_lektury_2371773",
|
|
@@ -1509,7 +1670,7 @@
|
|
| 1509 |
],
|
| 1510 |
"not_checked": {
|
| 1511 |
"reason": "the rows printed after 1955 (`edition_review.ids.print_after_1955`): the print's editor was not checked.",
|
| 1512 |
-
"rows":
|
| 1513 |
"wl_date_pd_wrong": {
|
| 1514 |
"wolne_lektury_2374660": "WL's date.pd 2012 is wrong (Konopnicka died 1910); the row is public domain either way."
|
| 1515 |
}
|
|
@@ -1518,7 +1679,7 @@
|
|
| 1518 |
"reviewed_at": "2026-10-20",
|
| 1519 |
"rows": 98
|
| 1520 |
},
|
| 1521 |
-
"rows_flagged":
|
| 1522 |
"scope": "public-domain rows; a licensed row has its rightsholder's licence",
|
| 1523 |
"wl_editor_credits": {
|
| 1524 |
"distinct_names": 239,
|
|
@@ -1526,7 +1687,7 @@
|
|
| 1526 |
"most_common": [
|
| 1527 |
[
|
| 1528 |
"Aleksandra Sekuła",
|
| 1529 |
-
|
| 1530 |
],
|
| 1531 |
[
|
| 1532 |
"Paweł Kozioł",
|
|
@@ -1534,11 +1695,11 @@
|
|
| 1534 |
],
|
| 1535 |
[
|
| 1536 |
"Wojciech Kotwica",
|
| 1537 |
-
|
| 1538 |
],
|
| 1539 |
[
|
| 1540 |
"Dorota Kowalska",
|
| 1541 |
-
|
| 1542 |
],
|
| 1543 |
[
|
| 1544 |
"Weronika Trzeciak",
|
|
@@ -1599,12 +1760,12 @@
|
|
| 1599 |
"wolne_lektury_2375260": "its second slug has no XML here; only the first book's XML was read"
|
| 1600 |
},
|
| 1601 |
"notes_file": "wolne_lektury.notes.jsonl",
|
| 1602 |
-
"notes_file_sha256": "
|
| 1603 |
"restored": {
|
| 1604 |
"pa": {
|
| 1605 |
-
"characters":
|
| 1606 |
-
"notes":
|
| 1607 |
-
"rows":
|
| 1608 |
},
|
| 1609 |
"pt": {
|
| 1610 |
"characters": 1923101,
|
|
@@ -1616,7 +1777,7 @@
|
|
| 1616 |
"pa": "\"Przypisy autora\", then the notes numbered from 1",
|
| 1617 |
"pt": "\"Przypisy tłumacza\", then the notes numbered from 1"
|
| 1618 |
},
|
| 1619 |
-
"rows_changed":
|
| 1620 |
"source": "Wolne Lektury's book XML, one file per row slug (https://wolnelektury.pl/media/book/xml/<slug>.xml), read 2026-10-20",
|
| 1621 |
"status": "restored",
|
| 1622 |
"wl_glosses_stripped": {
|
|
@@ -5478,6 +5639,12 @@
|
|
| 5478 |
"stage": "src/clean_wolne_lektury.py",
|
| 5479 |
"step": "drop a whole document for which Wolne Lektury gives no usable licence"
|
| 5480 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5481 |
{
|
| 5482 |
"changes_text": "no",
|
| 5483 |
"stage": "src/clean_wolne_lektury.py",
|
|
@@ -5496,7 +5663,7 @@
|
|
| 5496 |
],
|
| 5497 |
"notes_and_prefaces": {
|
| 5498 |
"hand_sample": {
|
| 5499 |
-
"draw": "random.Random(109).sample(ids, 40)",
|
| 5500 |
"read": "the first and last 450 characters of each text",
|
| 5501 |
"result": {
|
| 5502 |
"from_the_print_edition": {
|
|
@@ -5524,21 +5691,21 @@
|
|
| 5524 |
"source": "wolne_lektury",
|
| 5525 |
"summary": {
|
| 5526 |
"author_empty": 37,
|
| 5527 |
-
"author_filled":
|
| 5528 |
"author_missing_in_wl": 0,
|
| 5529 |
"author_placeholder": 37,
|
| 5530 |
-
"edition_flag_rows":
|
| 5531 |
"edition_flags": {
|
| 5532 |
"apparatus": 229,
|
| 5533 |
"critical": 58,
|
| 5534 |
"editor_credit": 802,
|
| 5535 |
"national_library": 1,
|
| 5536 |
-
"print_after_1955":
|
| 5537 |
-
"translation":
|
| 5538 |
-
"translator_credited":
|
| 5539 |
},
|
| 5540 |
"license_url_given_by_wl": {
|
| 5541 |
-
"":
|
| 5542 |
"Domena publiczna": 4,
|
| 5543 |
"Licencja Wolnej Sztuki 1.3.": 1,
|
| 5544 |
"http://artlibre.org/licence/lal/pl": 10,
|
|
@@ -5554,21 +5721,21 @@
|
|
| 5554 |
"CC-BY-SA-3.0-PL": 34,
|
| 5555 |
"CC-BY-SA-4.0": 11,
|
| 5556 |
"LAL-1.3": 1467,
|
| 5557 |
-
"public-domain":
|
| 5558 |
},
|
| 5559 |
-
"original_author_filled":
|
| 5560 |
"original_title_filled": 0,
|
| 5561 |
-
"print_after_1955_and_public_domain":
|
| 5562 |
-
"rows":
|
| 5563 |
-
"source_edition_filled":
|
| 5564 |
-
"title_filled":
|
| 5565 |
-
"translator_filled":
|
| 5566 |
"wl_url_names_another_version": 34
|
| 5567 |
},
|
| 5568 |
"text_checks": {
|
| 5569 |
"footer_found_by_strip_wl_footer": 0,
|
| 5570 |
-
"header_isbn_line":
|
| 5571 |
-
"header_translator_line":
|
| 5572 |
"leading_or_trailing_whitespace": 0,
|
| 5573 |
"period_spelling": {
|
| 5574 |
"ids": [
|
|
@@ -5815,7 +5982,7 @@
|
|
| 5815 |
"rows": 239,
|
| 5816 |
"words_per_1000_at_least": 5.0
|
| 5817 |
},
|
| 5818 |
-
"rows":
|
| 5819 |
"section_headings": {
|
| 5820 |
"komentarz": {
|
| 5821 |
"ids": [
|
|
@@ -5941,7 +6108,6 @@
|
|
| 5941 |
"wolne_lektury_2375693",
|
| 5942 |
"wolne_lektury_2375752",
|
| 5943 |
"wolne_lektury_2375753",
|
| 5944 |
-
"wolne_lektury_2375754",
|
| 5945 |
"wolne_lektury_2375755",
|
| 5946 |
"wolne_lektury_2375868",
|
| 5947 |
"wolne_lektury_2375870",
|
|
@@ -5960,7 +6126,7 @@
|
|
| 5960 |
"wolne_lektury_2377379",
|
| 5961 |
"wolne_lektury_2377381"
|
| 5962 |
],
|
| 5963 |
-
"rows":
|
| 5964 |
},
|
| 5965 |
"przypisy": {
|
| 5966 |
"ids": [
|
|
@@ -6089,7 +6255,7 @@
|
|
| 6089 |
"wolne_lektury_credit_text": 1,
|
| 6090 |
"wolne_lektury_footnote_markers": 5
|
| 6091 |
},
|
| 6092 |
-
"text_digest": "
|
| 6093 |
"wl_glosses_in_main_text": {
|
| 6094 |
"characters": 90,
|
| 6095 |
"glosses": 2,
|
|
|
|
| 1 |
{
|
| 2 |
+
"bn_check": {
|
| 3 |
+
"checked_at": "2026-10-20",
|
| 4 |
+
"decided_at": "2026-10-20",
|
| 5 |
+
"dropped_as_not_free": {
|
| 6 |
+
"wolne_lektury_2371705": "Wells, \"Wehikuł czasu\" (wells-wehikul-czasu): transcribed from the Ossolineum print (Wrocław 1985), whose translation was revised by an editor born in 1932 (BN record 1216473: \"przeł. [z ang.] Feliks Wermiński ; przekł. zweryfikował i oprac. Juliusz K. Palczewski\"; \"Palczewski, Juliusz K. (1932- )\"). Wolne Lektury credits Wermiński (d. 1917) only.",
|
| 7 |
+
"wolne_lektury_2375754": "Nietzsche, \"Wola mocy\" (nietzsche-wola-mocy): a joint translation by Stefan Frycz and Konrad Drzewiecki (BN record 1826277, Warszawa: J. Mortkowicz, 1911: \"przeł. Stefan Frycz i Konrad Drzewiecki\"; \"Frycz, Stefan (1876-1960)\"). Wolne Lektury counts Drzewiecki alone (d. 1922); a joint work is protected for 70 years after the last co-author's death, so to the end of 2030."
|
| 8 |
+
},
|
| 9 |
+
"joint_credit_kept": {
|
| 10 |
+
"counted": "translator's notes restored at the end of the text; crediting_cieglewicz: those that contain \"tłum. Edmund Cięglewicz\"; of_them_greek: those of them whose quotation WL marks \"(gr.)\"",
|
| 11 |
+
"finding": "BN record 2293540 (Próby, Ks. 1, Warszawa: PIW, 1957, the edition Wolne Lektury names for all three rows) reads \"[cytaty łac. i grec. przeł. Tadeusz Sinko i Edmund Cięglewicz]\", with \"Cięglewicz, Edmund (1862-1928)\" and \"Sinko, Tadeusz (1877-1966)\". Wolne Lektury's print edition for Księga pierwsza reads \"cytaty łac. tłum. Edmund Cięgielewicz\", its translator's notes end the citation of each quotation they translate with \"tłum. Edmund Cięglewicz\", and none names Sinko. The notes of the other two books give the source of a quotation and seldom a translation. Kept as Wolne Lektury credits them (maintainer decision 2026-10-20); which quotations BN's joint credit covers is not established.",
|
| 12 |
+
"rows": {
|
| 13 |
+
"wolne_lektury_2376514": {
|
| 14 |
+
"book": "Księga druga",
|
| 15 |
+
"crediting_cieglewicz": 0,
|
| 16 |
+
"greek_characters": 0,
|
| 17 |
+
"naming_sinko": 0,
|
| 18 |
+
"of_them_greek": 0,
|
| 19 |
+
"translator_notes": 862
|
| 20 |
+
},
|
| 21 |
+
"wolne_lektury_2376515": {
|
| 22 |
+
"book": "Księga pierwsza",
|
| 23 |
+
"crediting_cieglewicz": 336,
|
| 24 |
+
"greek_characters": 674,
|
| 25 |
+
"naming_sinko": 0,
|
| 26 |
+
"of_them_greek": 4,
|
| 27 |
+
"translator_notes": 466
|
| 28 |
+
},
|
| 29 |
+
"wolne_lektury_2376516": {
|
| 30 |
+
"book": "Księga trzecia",
|
| 31 |
+
"crediting_cieglewicz": 0,
|
| 32 |
+
"greek_characters": 0,
|
| 33 |
+
"naming_sinko": 0,
|
| 34 |
+
"of_them_greek": 0,
|
| 35 |
+
"translator_notes": 622
|
| 36 |
+
}
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
"kept_as_wolne_lektury_wrote": {
|
| 40 |
+
"death_year_in_wl_rights": {
|
| 41 |
+
"Bolesław Leśmian zm. 1938": {
|
| 42 |
+
"bn_death_year": 1937,
|
| 43 |
+
"ids": [
|
| 44 |
+
"wolne_lektury_2373317",
|
| 45 |
+
"wolne_lektury_2373354",
|
| 46 |
+
"wolne_lektury_2373355"
|
| 47 |
+
]
|
| 48 |
+
},
|
| 49 |
+
"Jan Kiliński zm. 1760": {
|
| 50 |
+
"bn_death_year": 1819,
|
| 51 |
+
"ids": [
|
| 52 |
+
"wolne_lektury_2374523"
|
| 53 |
+
]
|
| 54 |
+
},
|
| 55 |
+
"Jerzy Żuławski zm. 1914": {
|
| 56 |
+
"bn_death_year": 1915,
|
| 57 |
+
"ids": [
|
| 58 |
+
"wolne_lektury_2372125"
|
| 59 |
+
]
|
| 60 |
+
},
|
| 61 |
+
"Wacław Rolicz-Lieder zm. 1940": {
|
| 62 |
+
"bn_death_year": 1912,
|
| 63 |
+
"ids": [
|
| 64 |
+
"wolne_lektury_2376896",
|
| 65 |
+
"wolne_lektury_2376897",
|
| 66 |
+
"wolne_lektury_2376898",
|
| 67 |
+
"wolne_lektury_2376899",
|
| 68 |
+
"wolne_lektury_2376900",
|
| 69 |
+
"wolne_lektury_2376901",
|
| 70 |
+
"wolne_lektury_2376902",
|
| 71 |
+
"wolne_lektury_2376903"
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
+
"Władysław Witwicki zm. 1947": {
|
| 75 |
+
"bn_death_year": 1948,
|
| 76 |
+
"ids": [
|
| 77 |
+
"wolne_lektury_2376310",
|
| 78 |
+
"wolne_lektury_2376311",
|
| 79 |
+
"wolne_lektury_2376312",
|
| 80 |
+
"wolne_lektury_2376313",
|
| 81 |
+
"wolne_lektury_2376314",
|
| 82 |
+
"wolne_lektury_2376315",
|
| 83 |
+
"wolne_lektury_2376316",
|
| 84 |
+
"wolne_lektury_2376317",
|
| 85 |
+
"wolne_lektury_2376318",
|
| 86 |
+
"wolne_lektury_2376319",
|
| 87 |
+
"wolne_lektury_2376321",
|
| 88 |
+
"wolne_lektury_2376322"
|
| 89 |
+
]
|
| 90 |
+
}
|
| 91 |
+
},
|
| 92 |
+
"meaning": "the check found these and the maintainer left them as Wolne Lektury wrote them (2026-10-20); none changes whether a row is free",
|
| 93 |
+
"wl_date_pd_early": {
|
| 94 |
+
"wolne_lektury_2372974": "the translator Franciszek Mirandola died 1930 (BN): free from 2001, not 1903",
|
| 95 |
+
"wolne_lektury_2374125": "the translator Karol Irzykowski died 1944 (BN): free from 2015, not 1981",
|
| 96 |
+
"wolne_lektury_2374971": "the translator Antoni Lange died 1929 (BN): free from 2000, not 1938",
|
| 97 |
+
"wolne_lektury_2375897": "the translator Cyprian Bazylik died 1600 (BN): free from 1671, not 1643",
|
| 98 |
+
"wolne_lektury_2376199": "the author Arthur Conan Doyle died 1930 (BN): free from 2001, not 1994",
|
| 99 |
+
"wolne_lektury_2376940": "the translator Maria Cumft-Pieńkowska died 1920 (BN): free from 1991, not 1971"
|
| 100 |
+
}
|
| 101 |
+
},
|
| 102 |
+
"method": "each row's BN records found by the author's surname and the title of the work and of its print edition; our author and translators compared with BN's fields 100, 245$c and 700, and for public-domain rows BN's death years with 1955 and with WL's date.pd. Every row flagged for an author or translator was read by hand, the other flags in samples.",
|
| 103 |
+
"open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them; they are listed in polish-dynaword-v2#109",
|
| 104 |
+
"pseudonym_with_real_name": {
|
| 105 |
+
"meaning": "Zofia Trzeszczkowska wrote as Adam M-ski. Most of WL's headers give \"M-ski, Adam [Zofia Trzeszczkowska]\"; natural_order() keeps the bracket after the name.",
|
| 106 |
+
"rows": 22,
|
| 107 |
+
"translator": "Adam M-ski [Zofia Trzeszczkowska]"
|
| 108 |
+
},
|
| 109 |
+
"public_domain_rows_with_a_bn_death_after_1955": "one, \"Wola mocy\", dropped (dropped_as_not_free)",
|
| 110 |
+
"reviewed_by_hand": {
|
| 111 |
+
"in_full": {
|
| 112 |
+
"author_mismatch": 31,
|
| 113 |
+
"death_year_after_1955": 1,
|
| 114 |
+
"translator_missing_in_bn": 53,
|
| 115 |
+
"translator_not_ours": 112
|
| 116 |
+
},
|
| 117 |
+
"in_samples": {
|
| 118 |
+
"no_record": "50 of 503",
|
| 119 |
+
"other": "48 of 120",
|
| 120 |
+
"pseudonym": "50 of 76"
|
| 121 |
+
},
|
| 122 |
+
"labels": {
|
| 123 |
+
"cannot_tell": 76,
|
| 124 |
+
"catalogue_noise": 192,
|
| 125 |
+
"pseudonym_ok": 36,
|
| 126 |
+
"real_error": 41
|
| 127 |
+
},
|
| 128 |
+
"scope": "the check covered the 6,076 Wolne Lektury rows of the time (this table's and the 2 in NOT_FREE) and the 100 eltec_pol novels; 7 of the row-flags read are on eltec_pol rows (5 pseudonym_ok, 1 catalogue_noise, 1 cannot_tell)",
|
| 129 |
+
"unit": "a row and flag; a row can have several flags"
|
| 130 |
+
},
|
| 131 |
+
"source": "the National Library's catalogue, https://data.bn.org.pl (read only; WL's own e-book records left out as circular)",
|
| 132 |
+
"source_edition_notes": {
|
| 133 |
+
"wolne_lektury_2374125": "Wolne Lektury's print edition (`source_edition`) is Hebbel's play \"Judyta\" in Kazimierz Kaszewski's translation (BN record 1454550, Warszawa 1881), not this book, Hebbel's diaries in Karol Irzykowski's translation (Wolne Lektury's rights line: \"Karol Irzykowski zm. 1944\"). Which print the text follows is not established."
|
| 134 |
+
},
|
| 135 |
+
"translators_fixed": {
|
| 136 |
+
"wolne_lektury_2372990": {
|
| 137 |
+
"evidence": "Wolne Lektury's print edition reads \"tłum. Aniela Zagórska\" and its rights line \"Aniela Zagórska zm. 1943\"; BN record 1902875 (Warszawa: PIW, 1957), \"przeł. Aniela Zagórska\", \"Zagórska, Aniela (1881-1943)\".",
|
| 138 |
+
"ours": [
|
| 139 |
+
"Aniela Zagórska"
|
| 140 |
+
],
|
| 141 |
+
"wolne_lektury": []
|
| 142 |
+
},
|
| 143 |
+
"wolne_lektury_2373112": {
|
| 144 |
+
"evidence": "Wolne Lektury's print edition reads \"tłum. Szymon Dickstein i Józef Nusbaum\"; BN record 2114549 (Warszawa 1885), \"przeł. Szymon Dickstein i Józef Nusbaum\", \"Nusbaum-Hilarowicz, Józef (1859-1917)\".",
|
| 145 |
+
"ours": [
|
| 146 |
+
"Szymon Dickstein",
|
| 147 |
+
"Józef Nusbaum"
|
| 148 |
+
],
|
| 149 |
+
"wolne_lektury": [
|
| 150 |
+
"Szymon Dickstein"
|
| 151 |
+
]
|
| 152 |
+
},
|
| 153 |
+
"wolne_lektury_2374887": {
|
| 154 |
+
"evidence": "Wolne Lektury's own rights line reads \"Leon Ulrich zm. 1885\"; BN record 1504075 (Kraków: Gebethner, 1895), \"przekład J. Ulricha\", \"Ulrich, Leon (1811-1885)\".",
|
| 155 |
+
"ours": [
|
| 156 |
+
"Leon Ulrich"
|
| 157 |
+
],
|
| 158 |
+
"wolne_lektury": [
|
| 159 |
+
"Leon Urlich"
|
| 160 |
+
]
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
},
|
| 164 |
+
"built_from_parquet_sha256": "cae78e0ea34138934839225c39bbb895c151a22a4be0f5b11ddd29d56df2d568",
|
| 165 |
"edition_review": {
|
| 166 |
"flags": {
|
| 167 |
"apparatus": 229,
|
| 168 |
"critical": 58,
|
| 169 |
"editor_credit": 802,
|
| 170 |
"national_library": 1,
|
| 171 |
+
"print_after_1955": 1310,
|
| 172 |
+
"translation": 585,
|
| 173 |
+
"translator_credited": 801
|
| 174 |
},
|
| 175 |
"ids": {
|
| 176 |
"critical": [
|
|
|
|
| 263 |
"wolne_lektury_2371702",
|
| 264 |
"wolne_lektury_2371703",
|
| 265 |
"wolne_lektury_2371704",
|
|
|
|
| 266 |
"wolne_lektury_2371707",
|
| 267 |
"wolne_lektury_2371708",
|
| 268 |
"wolne_lektury_2371773",
|
|
|
|
| 1670 |
],
|
| 1671 |
"not_checked": {
|
| 1672 |
"reason": "the rows printed after 1955 (`edition_review.ids.print_after_1955`): the print's editor was not checked.",
|
| 1673 |
+
"rows": 1310,
|
| 1674 |
"wl_date_pd_wrong": {
|
| 1675 |
"wolne_lektury_2374660": "WL's date.pd 2012 is wrong (Konopnicka died 1910); the row is public domain either way."
|
| 1676 |
}
|
|
|
|
| 1679 |
"reviewed_at": "2026-10-20",
|
| 1680 |
"rows": 98
|
| 1681 |
},
|
| 1682 |
+
"rows_flagged": 2419,
|
| 1683 |
"scope": "public-domain rows; a licensed row has its rightsholder's licence",
|
| 1684 |
"wl_editor_credits": {
|
| 1685 |
"distinct_names": 239,
|
|
|
|
| 1687 |
"most_common": [
|
| 1688 |
[
|
| 1689 |
"Aleksandra Sekuła",
|
| 1690 |
+
2210
|
| 1691 |
],
|
| 1692 |
[
|
| 1693 |
"Paweł Kozioł",
|
|
|
|
| 1695 |
],
|
| 1696 |
[
|
| 1697 |
"Wojciech Kotwica",
|
| 1698 |
+
668
|
| 1699 |
],
|
| 1700 |
[
|
| 1701 |
"Dorota Kowalska",
|
| 1702 |
+
573
|
| 1703 |
],
|
| 1704 |
[
|
| 1705 |
"Weronika Trzeciak",
|
|
|
|
| 1760 |
"wolne_lektury_2375260": "its second slug has no XML here; only the first book's XML was read"
|
| 1761 |
},
|
| 1762 |
"notes_file": "wolne_lektury.notes.jsonl",
|
| 1763 |
+
"notes_file_sha256": "da18d6a7eebf88f63efbe1e082d5e2cdc387bf9bbf808cc9d0a6411dbf14d8e1",
|
| 1764 |
"restored": {
|
| 1765 |
"pa": {
|
| 1766 |
+
"characters": 1854631,
|
| 1767 |
+
"notes": 8099,
|
| 1768 |
+
"rows": 336
|
| 1769 |
},
|
| 1770 |
"pt": {
|
| 1771 |
"characters": 1923101,
|
|
|
|
| 1777 |
"pa": "\"Przypisy autora\", then the notes numbered from 1",
|
| 1778 |
"pt": "\"Przypisy tłumacza\", then the notes numbered from 1"
|
| 1779 |
},
|
| 1780 |
+
"rows_changed": 459,
|
| 1781 |
"source": "Wolne Lektury's book XML, one file per row slug (https://wolnelektury.pl/media/book/xml/<slug>.xml), read 2026-10-20",
|
| 1782 |
"status": "restored",
|
| 1783 |
"wl_glosses_stripped": {
|
|
|
|
| 5639 |
"stage": "src/clean_wolne_lektury.py",
|
| 5640 |
"step": "drop a whole document for which Wolne Lektury gives no usable licence"
|
| 5641 |
},
|
| 5642 |
+
{
|
| 5643 |
+
"changes_text": "no",
|
| 5644 |
+
"rows_dropped": 2,
|
| 5645 |
+
"stage": "src/clean_wolne_lektury.py",
|
| 5646 |
+
"step": "drop a whole document that Wolne Lektury marks public domain although its translation is not free (bn_check below)"
|
| 5647 |
+
},
|
| 5648 |
{
|
| 5649 |
"changes_text": "no",
|
| 5650 |
"stage": "src/clean_wolne_lektury.py",
|
|
|
|
| 5663 |
],
|
| 5664 |
"notes_and_prefaces": {
|
| 5665 |
"hand_sample": {
|
| 5666 |
+
"draw": "random.Random(109).sample(ids, 40), ids: the 6,076 rows of the time in id order (this table's and the 2 in NOT_FREE, neither drawn)",
|
| 5667 |
"read": "the first and last 450 characters of each text",
|
| 5668 |
"result": {
|
| 5669 |
"from_the_print_edition": {
|
|
|
|
| 5691 |
"source": "wolne_lektury",
|
| 5692 |
"summary": {
|
| 5693 |
"author_empty": 37,
|
| 5694 |
+
"author_filled": 6037,
|
| 5695 |
"author_missing_in_wl": 0,
|
| 5696 |
"author_placeholder": 37,
|
| 5697 |
+
"edition_flag_rows": 2419,
|
| 5698 |
"edition_flags": {
|
| 5699 |
"apparatus": 229,
|
| 5700 |
"critical": 58,
|
| 5701 |
"editor_credit": 802,
|
| 5702 |
"national_library": 1,
|
| 5703 |
+
"print_after_1955": 1310,
|
| 5704 |
+
"translation": 585,
|
| 5705 |
+
"translator_credited": 801
|
| 5706 |
},
|
| 5707 |
"license_url_given_by_wl": {
|
| 5708 |
+
"": 4575,
|
| 5709 |
"Domena publiczna": 4,
|
| 5710 |
"Licencja Wolnej Sztuki 1.3.": 1,
|
| 5711 |
"http://artlibre.org/licence/lal/pl": 10,
|
|
|
|
| 5721 |
"CC-BY-SA-3.0-PL": 34,
|
| 5722 |
"CC-BY-SA-4.0": 11,
|
| 5723 |
"LAL-1.3": 1467,
|
| 5724 |
+
"public-domain": 4557
|
| 5725 |
},
|
| 5726 |
+
"original_author_filled": 834,
|
| 5727 |
"original_title_filled": 0,
|
| 5728 |
+
"print_after_1955_and_public_domain": 1310,
|
| 5729 |
+
"rows": 6074,
|
| 5730 |
+
"source_edition_filled": 6030,
|
| 5731 |
+
"title_filled": 6074,
|
| 5732 |
+
"translator_filled": 840,
|
| 5733 |
"wl_url_names_another_version": 34
|
| 5734 |
},
|
| 5735 |
"text_checks": {
|
| 5736 |
"footer_found_by_strip_wl_footer": 0,
|
| 5737 |
+
"header_isbn_line": 1118,
|
| 5738 |
+
"header_translator_line": 837,
|
| 5739 |
"leading_or_trailing_whitespace": 0,
|
| 5740 |
"period_spelling": {
|
| 5741 |
"ids": [
|
|
|
|
| 5982 |
"rows": 239,
|
| 5983 |
"words_per_1000_at_least": 5.0
|
| 5984 |
},
|
| 5985 |
+
"rows": 6074,
|
| 5986 |
"section_headings": {
|
| 5987 |
"komentarz": {
|
| 5988 |
"ids": [
|
|
|
|
| 6108 |
"wolne_lektury_2375693",
|
| 6109 |
"wolne_lektury_2375752",
|
| 6110 |
"wolne_lektury_2375753",
|
|
|
|
| 6111 |
"wolne_lektury_2375755",
|
| 6112 |
"wolne_lektury_2375868",
|
| 6113 |
"wolne_lektury_2375870",
|
|
|
|
| 6126 |
"wolne_lektury_2377379",
|
| 6127 |
"wolne_lektury_2377381"
|
| 6128 |
],
|
| 6129 |
+
"rows": 49
|
| 6130 |
},
|
| 6131 |
"przypisy": {
|
| 6132 |
"ids": [
|
|
|
|
| 6255 |
"wolne_lektury_credit_text": 1,
|
| 6256 |
"wolne_lektury_footnote_markers": 5
|
| 6257 |
},
|
| 6258 |
+
"text_digest": "9fcc2c3e8e5a7bb3b80bc61fcb086a7148613144bde1adfc067bb6e92afa2b23",
|
| 6259 |
"wl_glosses_in_main_text": {
|
| 6260 |
"characters": 90,
|
| 6261 |
"glosses": 2,
|
data/wolne_lektury/wolne_lektury.md
CHANGED
|
@@ -11,30 +11,30 @@ Wolne Lektury (school readings)
|
|
| 11 |
- **Added:** 2026-06-15
|
| 12 |
|
| 13 |
## Licensing — traceable basis
|
| 14 |
-
Each document's `license` is the one its own Wolne Lektury book states in dc:rights / dc:rights.license, never its parent collection's (src/wolne_lektury_licences.py, polish-dynaword-v2#57). Documents are matched to books by text: the same head and tail, or, where Wolne Lektury has edited a text since the scrape, a 5-word-shingle share of at least 0.6 at both ends; 17 were matched by hand. A label is set only when the rights text is unambiguous: a public-domain statement with no year after 1955, or one licence with its version. wolne_lektury.licences.tsv lists each document's book (its slug on wolnelektury.pl), the Wolne Lektury rights text and the label. wolne_lektury.attribution.jsonl has one line per document, in the order of the Parquet: title, author, translator, the link to the work on wolnelektury.pl, the full licence URL with its version (CC BY-SA 3.0 PL, 3.0 Unported and 4.0 are kept apart; Wolne Lektury's own link for each of the 34 "3.0 PL" documents names the Unported text and is kept next to ours), every person and note Wolne Lektury credits, the print edition and publisher it names, the line "Książka pochodzi z serwisu Wolne Lektury" and a note on how the text was processed. The released text is Wolne Lektury's plain-text export without its footer, with the author's and translator's notes of the book added at the end where it has them; the footer's content is restored in the sidecar. Our assessment is that these are Wolne Lektury's modernised versions of the print editions, not the editions as first printed. The edition a text follows is the one in Wolne Lektury's print-edition field, kept in the sidecar as `source_edition` (named for 6,
|
| 15 |
|
| 16 |
## Provenance
|
| 17 |
-
Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key `wolne_lektury_corpus`) of Wolne Lektury's plain-text export. What SpeakLeash did to the text is not documented, and who removed the export's footer is not established. In this repository a text is changed in two ways: leading and trailing whitespace is trimmed, and the
|
| 18 |
|
| 19 |
## Statistics
|
| 20 |
| documents | characters | tokens (tiktoken proxy) |
|
| 21 |
|---:|---:|---:|
|
| 22 |
-
| 6,
|
| 23 |
|
| 24 |
|
| 25 |
## Per-document license metadata
|
| 26 |
| license | documents |
|
| 27 |
|---|---:|
|
| 28 |
-
| `public-domain` | 4,
|
| 29 |
| `LAL-1.3` | 1,467 |
|
| 30 |
| `CC-BY-SA-3.0-PL` | 34 |
|
| 31 |
| `CC-BY-SA-4.0` | 11 |
|
| 32 |
| `CC-BY-SA-3.0` | 5 |
|
| 33 |
|
| 34 |
-
Author metadata present for **6,
|
| 35 |
|
| 36 |
## Legal scope note
|
| 37 |
-
For v0.2.6, 63 documents whose text is an eltec_pol novel are dropped (share of a document's 5-word shingles found in one ELTeC novel >= 0.9; src/clean_wolne_lektury.py, polish-dynaword-v2#72). eltec_pol keeps those 50 novels whole under CC BY 4.0. Three documents only partly in an ELTeC novel are kept: both tomes of Mniszek's Trędowata (the ELTeC text is shorter) and Kochanowski's Pieśń IX, quoted in Łoziński's Oko proroka. Every pair is listed in wolne_lektury.eltec_pairs.tsv. 2 documents are also dropped because Wolne Lektury gives them no usable licence: two Horace odes translated by Paweł Kozioł, one marked only "CC BY-SA" with no version, the other public domain for Marceli Motty's translation and "CC BY-SA" for Kozioł's (polish-dynaword-v2#57).
|
| 38 |
|
| 39 |
Statistics were recomputed directly from the released parquet file.
|
| 40 |
|
|
@@ -44,7 +44,7 @@ Minimal, per Dynaword guidelines (heavy filtering left to downstream use):
|
|
| 44 |
- drop non-Polish (diacritic ratio): **0**
|
| 45 |
- exact cross-source dedup (sha1): **0**
|
| 46 |
- OCR alpha-ratio < 0.70 (OCR sources only): **0**
|
| 47 |
-
- read 6,141 → kept 6,
|
| 48 |
|
| 49 |
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 50 |
Llama-3 count is computed at release.
|
|
|
|
| 11 |
- **Added:** 2026-06-15
|
| 12 |
|
| 13 |
## Licensing — traceable basis
|
| 14 |
+
Each document's `license` is the one its own Wolne Lektury book states in dc:rights / dc:rights.license, never its parent collection's (src/wolne_lektury_licences.py, polish-dynaword-v2#57). Documents are matched to books by text: the same head and tail, or, where Wolne Lektury has edited a text since the scrape, a 5-word-shingle share of at least 0.6 at both ends; 17 were matched by hand. A label is set only when the rights text is unambiguous: a public-domain statement with no year after 1955, or one licence with its version. wolne_lektury.licences.tsv lists each document's book (its slug on wolnelektury.pl), the Wolne Lektury rights text and the label. wolne_lektury.attribution.jsonl has one line per document, in the order of the Parquet: title, author, translator, the link to the work on wolnelektury.pl, the full licence URL with its version (CC BY-SA 3.0 PL, 3.0 Unported and 4.0 are kept apart; Wolne Lektury's own link for each of the 34 "3.0 PL" documents names the Unported text and is kept next to ours), every person and note Wolne Lektury credits, the print edition and publisher it names, the line "Książka pochodzi z serwisu Wolne Lektury" and a note on how the text was processed. The released text is Wolne Lektury's plain-text export without its footer, with the author's and translator's notes of the book added at the end where it has them; the footer's content is restored in the sidecar. Our assessment is that these are Wolne Lektury's modernised versions of the print editions, not the editions as first printed. The edition a text follows is the one in Wolne Lektury's print-edition field, kept in the sidecar as `source_edition` (named for 6,030 of the 6,074 documents). Wolne Lektury's editorial notes are not taken over (see the scope note).
|
| 15 |
|
| 16 |
## Provenance
|
| 17 |
+
Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key `wolne_lektury_corpus`) of Wolne Lektury's plain-text export. What SpeakLeash did to the text is not documented, and who removed the export's footer is not established. In this repository a text is changed in two ways: leading and trailing whitespace is trimmed, and the 459 texts whose Wolne Lektury book has author's or translator's notes get those notes as sections at the end ("Przypisy autora", "Przypisy tłumacza"; Wolne Lektury's editorial notes are not included; src/wolne_lektury_notes.py). No paragraph is removed, and 63 whole documents were dropped as eltec_pol novels, 2 for want of a usable licence and 2 whose translation is not free (src/clean_wolne_lektury.py). Wolne Lektury's metadata, fetched from its public API and book XML, fills `author` ("Autorzy oryginału: A; Tłumaczenie: T" for a translation) and the sidecar; src/build_wolne_lektury_attribution.py writes both and wolne_lektury.license-evidence.json, and checks every text against its SHA-1.
|
| 18 |
|
| 19 |
## Statistics
|
| 20 |
| documents | characters | tokens (tiktoken proxy) |
|
| 21 |
|---:|---:|---:|
|
| 22 |
+
| 6,074 | 233,812,331 | 91,823,395 |
|
| 23 |
|
| 24 |
|
| 25 |
## Per-document license metadata
|
| 26 |
| license | documents |
|
| 27 |
|---|---:|
|
| 28 |
+
| `public-domain` | 4,557 |
|
| 29 |
| `LAL-1.3` | 1,467 |
|
| 30 |
| `CC-BY-SA-3.0-PL` | 34 |
|
| 31 |
| `CC-BY-SA-4.0` | 11 |
|
| 32 |
| `CC-BY-SA-3.0` | 5 |
|
| 33 |
|
| 34 |
+
Author metadata present for **6,037** documents. Empty values mean the upstream record did not expose a machine-readable author field.
|
| 35 |
|
| 36 |
## Legal scope note
|
| 37 |
+
For v0.2.6, 63 documents whose text is an eltec_pol novel are dropped (share of a document's 5-word shingles found in one ELTeC novel >= 0.9; src/clean_wolne_lektury.py, polish-dynaword-v2#72). eltec_pol keeps those 50 novels whole under CC BY 4.0. Three documents only partly in an ELTeC novel are kept: both tomes of Mniszek's Trędowata (the ELTeC text is shorter) and Kochanowski's Pieśń IX, quoted in Łoziński's Oko proroka. Every pair is listed in wolne_lektury.eltec_pairs.tsv. 2 documents are also dropped because Wolne Lektury gives them no usable licence: two Horace odes translated by Paweł Kozioł, one marked only "CC BY-SA" with no version, the other public domain for Marceli Motty's translation and "CC BY-SA" for Kozioł's (polish-dynaword-v2#57). 2 more are dropped after a check of Wolne Lektury's credits against the National Library's catalogue (polish-dynaword-v2#109): Wolne Lektury marks both public domain, but Nietzsche's "Wola mocy" is a joint translation by Konrad Drzewiecki and Stefan Frycz (d. 1960), and Wells's "Wehikuł czasu" follows a 1985 print whose translation an editor born in 1932 revised. The same check corrected the translators of 3 documents and found that the print edition named for a fourth (Hebbel's diaries) is another book; these 4 carry a `metadata_note` in the sidecar. In Montaigne's Próby (3 documents) Wolne Lektury's translator's notes credit the translated quotations to Edmund Cięglewicz, while the National Library's record of the print edition credits Tadeusz Sinko (d. 1966) and Cięglewicz jointly; which quotations each translated is not established. Wrong death years in the rights lines of 25 documents and early public-domain dates of 6 are kept as Wolne Lektury gives them; none changes whether a document is free. Otherwise flagged, nothing more excluded (polish-dynaword-v2#109). `author` is Wolne Lektury's name form (pseudonyms and cryptonyms as Wolne Lektury gives them); the first-edition form of a name is not established. 37 documents have no author because Wolne Lektury gives only "Autor nieznany" or "Praca zbiorowa"; Wolne Lektury has no field for the original title of a translation. Of the public-domain documents, 1,310 name a print edition published after 1955, 58 a critical edition and 229 an introduction, notes or commentary; the editors of those editions and their death years are not established. 239 documents keep period spelling by our heuristic count, so the modernisation is not uniform. The text of 10 documents (all under LAL 1.3, no print edition named) has a "Komentarz" heading, which we read as Wolne Lektury's own commentary. In a hand check of 40 random documents, 3 carried matter from the print edition (a publisher's address, a list of editions, an introduction) and none carried Wolne Lektury's credits or notes. The export had no footnotes. From Wolne Lektury's book XML (read 2026-10-20) the author's and translator's notes are restored at the end of the 459 texts that have them: 8,099 author's notes under "Przypisy autora" in 336 texts and 10,838 translator's notes under "Przypisy tłumacza" in 168 texts. Wolne Lektury's editorial notes are not restored, and the 668 glosses its editors added inside 632 of the restored notes (in square brackets, signed "red. WL", "WL" or the like; 131 texts, 77,065 characters) are stripped from them; brackets without that signature are kept. The two such glosses in the main text of two documents (90 characters) are stripped too. Two empty notes and three that the export had kept in the text are left out. Wolne Lektury serves no XML for one document (Korczak) and the second book of one merged document was not read, so their notes are not checked. Every public-domain document with translator's notes has its book's public-domain date, which counts the translator.
|
| 38 |
|
| 39 |
Statistics were recomputed directly from the released parquet file.
|
| 40 |
|
|
|
|
| 44 |
- drop non-Polish (diacritic ratio): **0**
|
| 45 |
- exact cross-source dedup (sha1): **0**
|
| 46 |
- OCR alpha-ratio < 0.70 (OCR sources only): **0**
|
| 47 |
+
- read 6,141 → kept 6,074
|
| 48 |
|
| 49 |
Token counts are a fast tiktoken (cl100k) proxy (~1% off Llama-3); the canonical
|
| 50 |
Llama-3 count is computed at release.
|
data/wolne_lektury/wolne_lektury.notes.jsonl
CHANGED
|
@@ -21,7 +21,6 @@
|
|
| 21 |
{"date_pd": "1946", "id": "wolne_lektury_2371680", "pa": ["com w tym samym przedmiocie mówiąc o ludach germańskich, uważanych w spełnianiu dziejowego posłannictwa swego przed trzydziestu laty powiedział --- zob. [Karol Libelt,] Pisma pomniejsze tom III strona 101.", "Jeżeli nas poznaki nie mylą, a wskazują na nie zewsząd mężowie, przenikający czas rozumem i natchnieniem, to nowa idea się rodzi i wstępuje w świat --- zob. Ojcze Nasz Augusta Cieszkowskiego."], "pt": [], "slug": "wcielajace-sie-idee-czasu", "xml_sha256": "eec9efb01e69d70cb94402abb1eb5486600b9b86949c203320aa9e2d06185c12"}
|
| 22 |
{"date_pd": "1995", "id": "wolne_lektury_2371692", "pa": [], "pt": ["prefekt Worms-Clavelin administrował powściągliwie, z placem Beauvau korespondował zwięźle --- przy placu Beauvau w Paryżu mieściło się ministerstwo spraw wewnętrznych."], "slug": "w-cieniu-wiazow", "xml_sha256": "641927b2273a106c8e14c38f88eaf4e749196c4ce2e9219275bcdfa98e3c8a62"}
|
| 23 |
{"date_pd": "2012", "id": "wolne_lektury_2371694", "pa": [], "pt": ["księżnej (...) diuszessy --- polski język nie ma terminów na odróżnienie tytułów duc i prince, które trzeba nam tłumaczyć jednakowo przez książę. Toteż w dalszym ciągu nieraz przyjdzie nam się spotkać z dwoma książętami de Guermantes: Błażejem (duc de Guermantes) i Gilbertem (prince de Guermantes), oraz z dwiema księżnymi: Błażejową (Oriona) i Gilbertową (Maria). Na ogół duc stoi wyżej w hierarchii tytułów, poza paroma rodami, w których tytuł prince posiadał szczególne dostojeństwo, oraz poza ,,książętami krwi\", członkami panujących domów, którym również daje się ogólnie tytuł prince, ale barwiący się wówczas innym odcieniem. Książę Orleański, duc de Chartres, hrabia Paryża, potomkowie francuskiej rodziny panującej, wciąż przez rojalistów uznawanej za królewską, mają inny porządek tytułów, wsparty na tradycji. Nazwiska i tytuły arystokratyczne wędrują wedle specjalnych praw: i tak prince des Laumes zaczął się tytułować od śmierci swego ojca duc de Guermantes, podczas gdy jego rodzony brat zowie się baron de Charlus itd."], "slug": "w-cieniu-zakwitajacych-dziewczat-tom-pierwszy", "xml_sha256": "ef1e30963eb916f68bd4886dd1d0beb9c4fa1e65c2206485cb48f28d35a86041"}
|
| 24 |
-
{"date_pd": "2017", "id": "wolne_lektury_2371705", "pa": ["nie zauważyłbym chyba owego pochylenia podłogi --- być może podłoga nie była pochyła, lecz samo muzeum zbudowane zostało na zboczu wzgórza."], "pt": [], "slug": "wells-wehikul-czasu", "xml_sha256": "3b8a28b1811a635a74da6aebc347372ea5a2206de17f4d98f676b7e2ec544831"}
|
| 25 |
{"date_pd": "2012", "id": "wolne_lektury_2371708", "pa": [], "pt": ["do Hiszpanii (...) sprawy rodzinne --- chodziło o siostrę pisarza uwiedzioną przyrzeczeniem małżeństwa przez niejakiego Clavijo. Beaumarchais opisał później w swoich Memoriałach całe zdarzenie i swoją interwencję w sposób tak żywy i dramatyczny, iż opis ten stał się natchnieniem Wolfganga Goethego (1749--1832) do jego tragedii Clavigo.", "Grimm --- tu: Fryderyk (1723--1807), niem. pisarz i krytyk literacki, piszący po francusku.", "Charles Collé (1709--1783) --- piosenkarz francuski.", "Trianon --- nazwa dwóch pałaców w Wersalu, tu mowa o Petit Trianon (Małym Trianon).", "Scribe (...) Sardou, Caillavet i Flers --- Eugéne Scribe (1791--1861): autor wielu komedii i librett operowych; Victorien Sardou (1831--1908): dramaturg francuski, autor m.in. Toski; Gaston Caillavet (1869--1915), Robert Flers (1872--1927): autorzy wspólnie pisanych komedii, jak np. wspomniany Król.", "Marivaux, Pierre (1688--1763) --- dramaturg francuski, którego komedie odznaczają się subtelną analizą psychologiczną i zdumiewającą lekkością stylu; pisał także powieści realistyczne jak np. Życie Marianny czy Kariera wieśniaka.", "Plautus (ur. ok. 254, zm. 184 p.n.e.) --- słynny komediopisarz rzymski, którego utwory jak np. Kupiec czy Żołnierz fanfaron wywarły duży wpływ na późniejszych dramaturgów z Molierem na czele.", "Sarcey, Francisque (1827--1899) --- francuski krytyk teatralny.", "Rabelaisowska figura sędziego --- postać komiczna z powieści Gargantua i Pantagruel Rabelais'go (1495--1553).", "ustęp apoteozujący szlachectwo, który sam [Beaumarche] z własnych Memoriałów cytuje w przedmowie --- ,,Nie iżby trzeba było zapominać (powiedział pewien poważny pisarz, i tym chętniej go cytuję, ile że jestem w tym jego zdania), nie iżby trzeba było zapominać, mówi, o tym, co się jest winnym wysokim stanowiskom; słuszna jest, przeciwnie, aby przywilej urodzenia najmniej ze wszystkich podawany był w wątpliwość. To darmo otrzymane dobrodziejstwo dziedzictwa, owoc czynów, cnót i przymiotów przodków, po których bierze się je w spadku, nie może zgoła ranić miłości własnej tych, którym go los odmówił. W monarchii, gdyby się usunęło pośrednie stopnie, byłoby za daleko od monarchy do poddanych; niebawem ujrzałoby się jedynie despotę i niewolników. Utrzymanie stopniowej drabinki, od pracującego na roli aż do potentata, leży w jednakim stopniu w interesie wszystkich stanów i jest może najsilniejszą podporą monarchii\".", "Grzegorz Dyndała --- postać z komedii Moliera pod tym samym tytułem; Dyndała, z pochodzenia chłop, poślubia szlachciankę, która go zdradza i ośmiesza przy każdej okazji. Powiedzenie Dyndały: ,,Ha, sam chciałeś, sam chciałeś, Grzegorzu!\", stało się we Francji przysłowiowe.", "pojawiły się w polskim przekładzie niemal bezpośrednio po ich ogłoszeniu drukiem w języku francuskim --- Cyrulik, sewilski, Warszawa 1780; Wesele Figara, Warszawa 1786.", "piosenka Cherubina --- przekład Edwarda Leszczyńskiego.", "w 1783 r. książę de Nassau przebywał w Hiszpanii, Paryżu i Wiedniu, a żona jego w Paryżu --- porównaj: D'Aragon, Un paladin au XVIII-e siècle. Le prince Charles de Nassau-Siegen, Paris 1893."], "slug": "wesele-figara", "xml_sha256": "5639b2bd69d7109e67e0c9ecde8ee6589e62940391df480461a3c9d210d2d1c1"}
|
| 26 |
{"date_pd": "1981", "id": "wolne_lektury_2371714", "pa": ["głębokie poręczowe krzesło --- łac. cathedra. Guhl i Koner Das Leben der Griechen und Römer etc. Berlin, 1882, str. 568.", "owijająca głowę zasłona --- łac. suffibulum. Zawój westalki, patrz Guhl i Koner str. 722.", "w mętnem zwierciedle zmysłów ludzkich --- Zwierciadła u rzymian. Guhl i Kohner, str. 656--658. fig. 490. Metalowe ręczne i stojące, małe i wielkości człowieka dosięgające. Ze spodu złocone. Etruskie z Prenesty.", "za połowę obrotu wodnego zegara --- obrót wodnego zegara rzymian trwał minut dwadzieścia. Pliniusz młodszy Listy.", "uczta śmiesznego Trymalchiona --- Uczta Trimalchiona, w Satyrykonie, utworze Petroniusza, napisanym za panowania Nerona.", "dziewice Westy --- łac. Virgines Vestae.", "Przebaczenie dla skazańca, któremu na spotkanie wyszły dziewice Westy! Niech wolny odejdzie --- skazaniec, wiedziony na śmierć, jeżeli trafem spotkał westalkę, to według praw rzymskich, otrzymywał wolność. Guhl i Koner, str. 723.", "Gdy z szyi mi zdejmą tę złotą kulę --- do lat 17-u młodzi rzymianie nosili na szyi kulę złotą, na łańcuszku zawieszoną, jako znak wieku dziecinnego. Po skończeniu lat 17-u oblekano ich w t. zw. togę dojrzałości. O zwyczaju tym wiele wzmianek w poezyach Marcyalisa.", "dekada --- dni dziesięć. Miesiąc u rzymian dzielił się na trzy dekady.", "sophos! --- po grecku: brawo!", "latiklawa --- łac. laticlavia tunica, tunika bramowana purpurą, noszona tylko przez senatorów i patrycyuszów.", "Cieniu Owidyuszowy, natchnij mię (...) bez Owidyuszowego nauczania --- Owidyusz był twórcą dzieła p. t. Sztuka kochania (Ars amandi).", "edylowie rzymscy --- edylowie pełnili w Rzymie czynność dzisiejszéj policyi.", "tron --- łac. thronus. Guhl i Koner, str. 569.", "Gemonie --- łac. scalae gemoniae, wschody wykute w skale, z których trupy śmiercią karanych przestępców wrzucano do Tybru. Valer. Maximus, Dio Cassius.", "jakby na widok Meduzy w posąg się przemieniła --- podług mitów greckich, widok głowy Meduzy przemieniał człowieka w posąg. Owidyusz: Metamorfozy. Meduza, jedna z Gorgon, strasznych istot z wężami na głowie.", "jest nas sześć --- westalek było jednocześnie zawsze sześć. Tytus Liwiusz 1, 20.", "do źródła Egeryi (...) zaopatrywanie świątyni w wodę jest jej świętą powinnością --- świątynia Westy powinna była codziennie być skrapiana wodą, czerpaną ze źródła Egeryi, znajdującego się w lasku tegoż imienia, w pobliżu Rzymu. Guhl i Koner, str. 723.", "plac Łotrów --- łac. campus sceleratus, Guhl i Koner, str. 724; Lübker Reallexicon des classischen Alterthums, str. 517.", "arcykapłan --- łac. Pontifex Maximus.", "Usuńcie widoki trupów, oręża, więzów i wszystkiego, co nieczyste --- wzbronienie powyższych widoków stosowało się szczególnie do wielkiego ofiarnika, noszącego tytuł: Flamen dialis, w części jednak i do arcykapłana. Guhl i Koner, str. 720.", "kolegium kapłańskie --- łac. collegium pontificum. Członkowie kolegium kapłańskiego nosili tytuły: pullarii, victimarii, tibicines, calatores, etc. etc.", "przedmiot święty --- łac. res sacra.", "świętość publiczna (...) narodu --- łac. sacra popularia, albo sacra populi Romani."], "pt": [], "slug": "westalka", "xml_sha256": "ddc8ac92d22b0b0283f75dec3c2b53be460842bb07e298129cd81cac2a9b00a0"}
|
| 27 |
{"date_pd": "2012", "id": "wolne_lektury_2371770", "pa": [], "pt": ["Tybota, pana Ossyńskiego... --- Thibaut d'Auxigny, biskup Orleański, który trzymał Villona w ciężkim więzieniu w Meung.", "Na cnego Kotra mistrza... --- mistrz Jan Cotard, prokurator, świeżo zmarły; w dalszym ciągu Villon poświęca mu wspomnienie, a nawet osobną balladę.", "Pikardzki --- Pikardami nazywano heretyków, którzy nie uznawali modłów za zmarłych [Pikardowie --- grupa religijna, głosząca bliski koniec świata, funkcjonująca w XIV-XV w. w Europie Zachodniej, a następnie w Czechach - Red.WL].", "Psalm: Deus laudem... --- Psalm 108: Deus laudem meam, etc. Siódmy werset, który służy Villonowi jako modlitwa za biskupa Orleańskiego, opiewa: ,,Niechaj dni jego będą skrócone do najmniejszej liczby, a biskupstwo jego niech przejdzie w inne ręce\" [przytoczony przez Boya werset jest dokładnym cytatem z Wulgaty, to jest łacińskiej wersji Biblii; ,,biskupstwo\" trzeba tam jednak rozumieć jako ,,władzę (kapłańską)\"; Red.WL].", "Y cnemu królu Ludwikowi... --- Ludwik XI, którego przejazdowi przez Meung Villon zawdzięczał uwolnienie.", "Nad Arystotem Awerresa... --- Averroes, szanowany w średniowieczu lekarz i filozof arabski z XII w., komentator Arystotelesa.", "Romans Róży --- Roman de la Rose, ulubiony poemat średniowiecza [poemat alegoryczny o miłości, rozpoczęty przez Guillaume'a de Lorris (ok. 1235), a dokończony przez Jeana de Meung; Red.WL].", "Za Alexandra króla... --- Aleksander Wielki.", "Walery --- Valerianus Maximus; ale Villon, cytując z pamięci, przypisuje temu pisarzowi anegdotkę, którą prawdopodobnie zaczerpnął gdzie indziej, w Salisburym lub Janie de Vignay.", "Żałuię czasu mey młodości... --- Villon, pisząc testament, miał lat trzydzieści!", "Różnie los sadza ludzkie syny --- Hiob 7, 6.", "iako Dawid prawi... --- Quaesivi eum et non est inventus locus eius (Ps. 36) [Tekst łac. tłumaczy się jako: Szukałem go, lecz nie znalazłem miejsca, gdzie by był --- Red.WL].", "Refren tej ballady: Mais ou sont les neiges d'antan? należy do najsłynniejszych wierszy w literaturze francuskiej [współczesne tłumaczenie brzmi raczej: Ach, gdzie są niegdysiejsze śniegi --- Red.WL].", "Podobnież, gdzie ta monarchini... --- królowa Nawarry, która, wedle legendy, topiła swoich kochanków [Małgorzata Burgundzka (1290--1315) przyłapana na cudzołóstwie i uwięziona, a następnie uduszona na rozkaz męża, Ludwika Kłótliwego --- Red.WL].", "Berta --- legendarna matka Karola Wielkiego.", "Żale piękney płatnerki --- Owa płatnerka była historyczną osobistością: niegdyś głośna piękność paryska, za czasu Villona już zgrzybiała staruszka, nasunęła mu widokiem swoim te strofy, jedne z najlepiej odlanych w całym jego dziele [płatnerz --- handlarz broni i rynsztunku wojennego; Red.WL].", "Y ty, szewczycho Wilhelmino... --- w owych czasach wiele kobiet lekkiego obyczaju uprawiało rzekomo rozmaite rzemiosła, pod których godłem były znane, a które służyły im jako płaszczyk do bezpiecznego i tym zyskowniejszego praktykowania nierządu.", "Fremin --- ów Fremin, którego Villon nazywa żartobliwie ,,swoim klerkiem\" (sekretarzem), spisuje jakoby testament za dyktandem mistrza.", "Sardana, xiążę niezbyt słabe... --- prawdopodobnie Sardanapal.", "Kasia --- Katarzyna de Vauselles, jedyna postać kobieca, która znaczy się głębszym śladem w poezji Villona. W jakich okolicznościach odbyło się to ,,bicie\" --- nie wiadomo; słowa ,,na goło\" pozwalałyby się domyślać, iż Villon może został z urzędu oćwiczony: kara, na jaką skazywano wówczas żaków, gdy mścili się za srogość damy za pomocą zelżywych piosenek.", "Legacik mały tam spisałem... --- pierwszy znany utwór Villona pt. Les Lais (Legaty), zwany też Małym Testamentem.", "Moro, Proweniec, Roben, Trygam --- właściciele gospód, którym prawdopodobnie Villon został dłużny.", "Spadek zacnego imć bękarta... --- Piotr Marchant, zwany bękartem de la Barre, jeden z dwunastu sierżantów więzienia królewskiego w Châtelet.", "Item, dobremu oćcu --- więcey! ---/ Mistrzu Wilhelmu Wilonowi... --- przybrany ojciec i opiekun poety, kanonik przy klasztorze św. Benedykta, który widocznie wielokrotnie ratował wychowanka z ,,opressyi\".", "Powieść o dyabelskiey bździnie --- zaginiony poemat Villona, który miał za treść tragikomiczną walkę o kamień nazwany Pet-du-Diable.", "Tabaryn --- jeden z uczestników kradzieży w kolegium Nawarskim, który gadulstwem swoim sprawił, iż rzecz wyszła na jaw, a później, na torturze wodnej, wydał wspólników. Stąd prawdopodobnie ironiczna aluzja do jego ,,prawdomówności\".", "Ythier Marchant --- młodzieniec z zamożnego mieszczaństwa, towarzysz zabaw młodości Villona. Rondo, jakie Villon mu zapisuje, daje pojęcie o smaku ówczesnej dwornej poezji, takiej jaką uprawiali najcelniej Alain Chartier i Karol Orleański.", "Mistrzowi Rogatemu Ianowi... --- Jean le Cornu, bogaty mieszczanin i sekretarz królewski, który prawdopodobnie okazał się w potrzebie mało uczynnym dla poety. W ogrodzie, który mu ironicznie ,,zapisuje\", Villon, zdaje się, zmuszony był przespać nieraz noc.", "Saint-Amant --- urzędnik Skarbu; w oryg. legat ten zawiera aluzje do godeł sklepowych, jak Biały koń itd.; rodzaj żartu bardzo Villonowi ulubiony i powtarzany często.", "Ragier --- znany opój; ,,Wielki kubek\" --- oberża pod tym godłem.", ",,pod Szyszką\" --- Pomme du Pin, głośna oberża współczesna.", "Item, co Marbof, abo zgoła/ Mikołaj Luwier, z tymi bieda --- aluzje do dwóch znanych mieszczan, nadających sobie szlacheckie tony.", "Turgis --- właściciel głośnej traktierni Pomme du Pin.", "To iest, strażnicy, myślę, piesi... --- Villona obchodzili tylko strażnicy piesi, nie konni, ponieważ ci tylko odbywali ronty w mieście [ront --- patrol; Red.WL].", "Mistrz Jan Pulieński --- Jan de Poulieu, doktor uniwersytetu, który zwalczał zakony żebrzące i później musiał odwołać swoje zarzuty. Za czasu Villona istniała bardzo silna opozycja świeckiego kleru przeciw groźnej konkurencji zakonów żebrzących.", "Mistrz Jan Mehuński --- Jan de Meung, autor drugiej części Romansu Róży (1277).", "Zasię Matyska z Orleanu... --- Macé d'Orléans był to sędzia prowincjonalny, którego Villon, prawdopodobnie dla jego gadulstwa i drobiazgowości, przechrzcił na kobietę. Kobietom nierządnego życia nie wolno było, pod grzywną, nosić niektórych ozdób, np. pasków ze srebra.", "mistrzowi Lorensowi... --- mistrz Lorenz, promotor, który prowadził śledztwo w sprawie kradzieży nawarskiej, przy tym tęgi bibuła [bibuła --- pijak; Red.WL].", "mistrzowi Ianu Kotru... --- Jan Cotard, prokurator, również tęgi pijak, wówczas świeżo zmarły.", "Szpaczek młodszy --- syn bogatego bankiera, prawdopodobnie towarzysz uciech młodości Villona.", "biedne trzy sieroty --- trzej starzy lichwiarze, którym Villon poświęcił już aluzje w Legatach (Marcel, Gassouyn i Laurens).", "donatem --- gra słów na czasowniku dawać i tytule znanej gramatyki łacińskiej [łac. dono znaczy dawać; Red.WL].", "Credo --- gra słów na wyrazie Credo i kredycie [Credo --- modlitwa ,,Wierzę w Boga Ojca\", wyznanie wiary; Red.WL].", "Kupcie im ciastek... --- w oryg. gra słów na słowie flaon, ciastko, a także forma do bicia monety.", "Oto mi dziatki dobrey woley! --- ,,enfants de lieu de bien\", wyrażenie, którym określano najgorszych hultai i oszustów.", "mym biednym klerykusiom --- dwaj starzy kanonicy przy kościele Notre-Dame, z którym to kościołem klasztor św. Benedykta był w zajadłej nieprzyjaźni.", "Na domu Giedryia Wilhelma... --- osobistość znana z niewypłacalności.", "By zacną bursę biedne żaczki... --- właśnie ci dwaj kanonicy rozdzielali miejsca w bursie, którymi ich Villon ironicznie obdarza.", "Nie śpią tak, iako owe szpaczki... --- prawdopodobnie właśnie rzecz miała się odwrotnie.", "Item, imć Kuldu Michałowi,/ Y Karlotowi imć Taranie --- dwaj bogaci mieszczanie paryscy. Żółte buty były wówczas cechą wysokiej elegancji.", "imć panu Grynieńskiemu... --- Filip Brunei de Grigny, człowiek zrujnowany i wiecznie goniący za pieniędzmi.", "Bassanier --- rejent i pisarz w trybunale. Pierniczkami nazywano, w języku ówczesnej palestry, kubany dawane urzędnikom [,,kuban\" oznacza łapówkę; Red.WL].", "Zacnemu panu prefektowi... --- Robert d'Estouteville, ożeniony z córką poprzedniego prefekta Ambrozją Delore; swego czasu Villon, zaszczycany łaskami prefekta, napisał dlań balladę, którą tutaj pomieścił.", "W turnieiu króla Reneusa... --- René, książę Prowansji i król Sycylii.", "Ni Franciszkowi, bratu iego... --- prawdopodobnie obaj bracia okazali się nieużytymi dla poety; prócz tego Franciszek oddał mu jakąś złą przysługę wobec młodego arcybiskupa z Bourges.", "Ieśli na rozdział w Taiawencie... --- głośna ówczesna książka kucharska.", "Przeciwrzeczenia Fran-Gontirowe --- biskup z Meaux, Filip de Vitry, napisał głośną współcześnie sielankę, której bohaterem jest ubogi drwal Franc-Gontier i żona jego Helena, a treścią apoteoza szczęścia w ubóstwie. Sielanka ta stworzyła mnóstwo naśladownictw i cały styl: opływający w dostatki panowie, nawet René, książę Prowansji i król Neapolu, rozczulali się nad rozkoszami ubóstwa, co widocznie podrażniło Villona, który z gorzkiego doświadczenia wiedział, co o tym szczęściu myśleć. Ballada, która następuje, jest odpowiedzią na te niewczesne zachwyty; a poświęcona jest mistrzowi Couraud, który był pełnomocnikiem sielankowego króla René w Paryżu. Być może, iż Villon szukał za jego pośrednictwem poparcia u księcia Prowansji i, zamiast spodziewanej pomocy, otrzymał tylko zbawienne rady. Do tego odnosiłaby się też wzmianka o ,,tyranie\".", "Pani de Bruier --- pani de Bruyeres, pobożna wdowa paryska, trudniąca się propagandą cnoty.", "Z Małego Mostu... --- murowany most na Sekwanie, cały zabudowany i będący najbardziej ożywionym punktem handlowym Paryża.", "Makrob --- pisarz z V w., autor Saturnalii, w których ks. VII, p. 7, mieści się rozprawa o tym, dlaczego natura kobiet gorętsza jest niż mężczyzn: ,,Quid plura? Nonne videmus mulieres, quando nimium frigus est, mediocri veste contentas, nec ita operimentis plurimis involutas, ut viri solent, scilicet naturali calore, contra frigus, quod aer ingerit, repugnante? [Cóż więcej? Czyż nie widzieliście kobiet, które, chociaż jest zimno, zadowalają się skromną odzieżą, jak to czynią mężczyźni, jak gdyby zwalczały chłód, jaki przynosi powietrze, naturalnym ciepłem? --- tłum. Red.WL]", "Ten klasztor... --- klasztor żeński na Montmartre, znany ze swobody obyczajów i łatwego dostępu dla mężczyzn.", "Brelar Bigod! --- przekleństwo w zepsutej niemczyźnie: Verloren, bey Gott!", "Wyiąwszy ieno kaźń Mehyńską... --- więzienie, które Villon dopiero co opuścił.", "Gładkiemu Noelowi... --- Noël Jolis, który, jak się zdaje, odegrał dwuznaczną rolę w czasie amorów poety dla Katarzyny de Vausselles i ich smutnego końca.", "Z ręki Henryka... --- Henry Cousin, kat miasta Paryża.", "Żebrzącym Braciom... --- nie pierwsza to aluzja w Testamencie, wymierzona przeciw zakonom żebrzącym: Villon był w tym wiernym echem poglądów i antypatii uniwersyteckiego duchowieństwa paryskiego.", "Item, moiemu balwierzowi, Tuż wpodle Angla herborysty, Imieniem Mrozik Kolinowi, Sopelek lodu... --- dość prostoduszna igraszka słów z nazwiska Colin Galerne, znanego balwierza paryskiego.", "Do Montpippeau y do Ruclu... --- miejscowości opodal Paryża.", "Koleń Kaieński --- Colin de Cayeux, niepoprawny włamywacz, należący do jednej szajki z Villonem, powieszony z wyroku sądowego.", "Dydona --- królowa Kartaginy, bohaterka Eneidy, uchodziła w średnich wiekach za najwyższe wcielenie powabów niewieścich.", "Co wnet po śmierci ludzi czerni... --- aluzja do szubienicy [i/lub do zarazy nazywanej Czarną Śmiercią; Red.WL].", "Osobno grześć u Niewiniątek --- ociemniali miasta Paryża mieli przywilej kwestowania w dnie świąteczne na cmentarzu Niewiniątek.", "Kiedy na one patrzę głowy... --- cmentarz ten służył Paryżanom za miejsce przechadzek i zabaw. Często zachodziła potrzeba rozkopywania grobów dla zyskania miejsca, przy czym zesypywano kości na jedną kupę, tak iż w istocie przechadzająca się publiczność ocierała się o ,,kopice\" czaszek ludzkich, wszelakiego stanu i kondycji.", "Chciwości wrogi y zakały... --- wyrażenie oczywiście ironiczne, tak jak i dalsze zestawienie św. Dominika z Panem Bogiem co do potęgi.", "mistrzowi Lomerowi... --- mistrz Lomer d'Airaines, zakonnik; warunki stawiane przez testatora czynią prawo mistrza Lomera dość problematycznym zwłaszcza wobec pojęć Villona o interesowności kobiecej.", "rycerz Ogier Wielki --- legendarny rycerz Ogier le Danois, słynny ze swej dzielności w turniejach miłosnych.", "Z Szartierowego kwartą mleczka... --- Alain Chartier, poeta współczesny, autor czułych pieśni miłosnych; w oryg. gra słów lait, mleko i lais, piosenka.", "Żemsowi Iakobowi... --- mistrz Jakob James, skąpiec i właściciel licznych domów, nie cieszących się zbyt dobrą reputacją.", "dla imci Seneszala... --- być może Piotr de Brezé, wielki pan a zarazem poeta, wielki seneszal Normandii, uwięziony przez Ludwika XI w Loches.", "Ianowi Kale... --- Jean de Calais, notariusz Châtelet, w istocie piastujący funkcje interpretatora testamentów.", "Pogrzebią u Iadwigi świętey... --- klasztor stanowiący schronienie dla starych niezamężnych kobiet.", "By nie obciążać zbyt podłogi... --- kaplica tego klasztoru mieściła się na pierwszym piętrze.", "Srogim wyrokiem przepędzony... --- ten ,,srogi wyrok\", wydany ,,wbrew apelacji\", można odnosić do srogości damy serca Villona, którą już poprzednio czynił sprawczynią swojej tułaczki.", "W dzwon znaczny... --- wielki dzwon na wieży kościoła Notre-Dame.", "Legatu cne exekutory... --- egzekutorów [wykonawców; Red.WL] tych wyszczególnia Villon w kilku strofkach, które w przekładzie opuszczono.", "List do przyiacioł, w formie ballady --- list, pisany z więzienia w Meungs, do towarzyszy życia i zabaw w Paryżu.", "Weźrzyicie, ieśli wola, na sierotę! (...) W onem wygnaniu, kędy w żalu trawię --- bogate określenie na ,,obywateli świeżego powietrza\".", "Niech nikt z naszego nieszczęścia nie szydzi... --- wisielcy stanowili ulubiony temat popularnych żartów i konceptów.", "Stefan Garnier --- osobistość wielce wątpliwej moralności, prawdopodobnie dobry znajomy Villona.", "Kapetowie --- królewski ród Kapetów wiódł się, wedle popularnej gadki, od rzeźnika.", "Rozumiesz te figielki?... --- aluzja do tortury wodnej, jakiej poddano Villona w śledztwie.", "Rozprawa serca y ciała Wilonowego w kształcie ballady --- tego rodzaju ,,rozprawy\" między ciałem a duszą istniały już i przedtem w literaturze średniowiecza.", "druga część --- autorem pierwszej, wcześniejszej o jakie pół wieku, jest Wilhelm de Lorris.", "Tradycję tę utrwalił poemacik p. t. Repues franches (Daremne biesiady), którego bohaterem jest Villon i którego autorstwo przypisywano nawet długo jemu samemu.", "napisał w złodziejskim narzeczu szajki szereg ballad o treści zaczerpniętej z życia włóczęgów.", "Katarzyna de Vausselles --- poszukiwania co do osoby Katarzyny de Vauselles pozostały daremne. Tyle wykryto, że istniała rodzina tego nazwiska i że mieszkała, za czasów Villona, w pobliżu klasztoru św. Benedykta, który służył za dom poecie.", "Pośmiertne losy spuścizny Villona znaczą się nader interesującą linią... --- Warto zauważyć, iż Montaigne, wśród swojej, obejmującej tyle tematów gawędy, nie zdradza ani słowem znajomości Villona; Rabelais znał go niewątpliwie i wspomina w wielu miejscach, lecz raczej w duchu pospolitej legendy, już utworzonej o pisarzu, bez głębszego wniknięcia w jego treść.", "Teofil Gautier --- znakomity krytyk, który nie przeoczył chyba ani jednego momentu literatury francuskiej, Sainte-Beuve, poświęca, w r. 1859, Villonowi jeden ze swych poniedziałków, z mniejszym jednak niż zazwyczaj odczuciem i wżyciem się w indywidualność pisarza.", "wilonologia --- twórcą nowoczesnej ,,Wilonologii\" jest August Longnon, który opracował pierwsze krytyczne wydanie dzieł poety (Paris, A. Lemerre, 1892), jak również wykrył cały szereg danych biograficznych; dalej autor licznych prac tyczących poety i znakomity jego monografista (Les grands écrivains français, 1901), Gaston Paris; dalej niestrudzony badacz Marceli Schwob; wreszcie towarzysz jego prac, Piotr Champion, który dotychczasową wiedzę o Villonie zamknął w pomnikowym wydawnictwie: François Villon, sa vie et son temps (Paris, II. Champion, 1913). Na podstawie wszystkich tych prac oparłem moje przypisy. W ostatnich latach ukazały się duże urojone biografie Villona, stylizowane dzisiejszą modą w formie powieści: Pierre d'Allheim, La Passion de maitre François Villon (1924) i Francis Carco Le roman de François Villon (1926)."], "slug": "wielki-testament", "xml_sha256": "beb00a6cec7d23fc1cdd73a336d081fcbffa07f6f7fd3d458f2ccdd2f62b5ab2"}
|
|
|
|
| 21 |
{"date_pd": "1946", "id": "wolne_lektury_2371680", "pa": ["com w tym samym przedmiocie mówiąc o ludach germańskich, uważanych w spełnianiu dziejowego posłannictwa swego przed trzydziestu laty powiedział --- zob. [Karol Libelt,] Pisma pomniejsze tom III strona 101.", "Jeżeli nas poznaki nie mylą, a wskazują na nie zewsząd mężowie, przenikający czas rozumem i natchnieniem, to nowa idea się rodzi i wstępuje w świat --- zob. Ojcze Nasz Augusta Cieszkowskiego."], "pt": [], "slug": "wcielajace-sie-idee-czasu", "xml_sha256": "eec9efb01e69d70cb94402abb1eb5486600b9b86949c203320aa9e2d06185c12"}
|
| 22 |
{"date_pd": "1995", "id": "wolne_lektury_2371692", "pa": [], "pt": ["prefekt Worms-Clavelin administrował powściągliwie, z placem Beauvau korespondował zwięźle --- przy placu Beauvau w Paryżu mieściło się ministerstwo spraw wewnętrznych."], "slug": "w-cieniu-wiazow", "xml_sha256": "641927b2273a106c8e14c38f88eaf4e749196c4ce2e9219275bcdfa98e3c8a62"}
|
| 23 |
{"date_pd": "2012", "id": "wolne_lektury_2371694", "pa": [], "pt": ["księżnej (...) diuszessy --- polski język nie ma terminów na odróżnienie tytułów duc i prince, które trzeba nam tłumaczyć jednakowo przez książę. Toteż w dalszym ciągu nieraz przyjdzie nam się spotkać z dwoma książętami de Guermantes: Błażejem (duc de Guermantes) i Gilbertem (prince de Guermantes), oraz z dwiema księżnymi: Błażejową (Oriona) i Gilbertową (Maria). Na ogół duc stoi wyżej w hierarchii tytułów, poza paroma rodami, w których tytuł prince posiadał szczególne dostojeństwo, oraz poza ,,książętami krwi\", członkami panujących domów, którym również daje się ogólnie tytuł prince, ale barwiący się wówczas innym odcieniem. Książę Orleański, duc de Chartres, hrabia Paryża, potomkowie francuskiej rodziny panującej, wciąż przez rojalistów uznawanej za królewską, mają inny porządek tytułów, wsparty na tradycji. Nazwiska i tytuły arystokratyczne wędrują wedle specjalnych praw: i tak prince des Laumes zaczął się tytułować od śmierci swego ojca duc de Guermantes, podczas gdy jego rodzony brat zowie się baron de Charlus itd."], "slug": "w-cieniu-zakwitajacych-dziewczat-tom-pierwszy", "xml_sha256": "ef1e30963eb916f68bd4886dd1d0beb9c4fa1e65c2206485cb48f28d35a86041"}
|
|
|
|
| 24 |
{"date_pd": "2012", "id": "wolne_lektury_2371708", "pa": [], "pt": ["do Hiszpanii (...) sprawy rodzinne --- chodziło o siostrę pisarza uwiedzioną przyrzeczeniem małżeństwa przez niejakiego Clavijo. Beaumarchais opisał później w swoich Memoriałach całe zdarzenie i swoją interwencję w sposób tak żywy i dramatyczny, iż opis ten stał się natchnieniem Wolfganga Goethego (1749--1832) do jego tragedii Clavigo.", "Grimm --- tu: Fryderyk (1723--1807), niem. pisarz i krytyk literacki, piszący po francusku.", "Charles Collé (1709--1783) --- piosenkarz francuski.", "Trianon --- nazwa dwóch pałaców w Wersalu, tu mowa o Petit Trianon (Małym Trianon).", "Scribe (...) Sardou, Caillavet i Flers --- Eugéne Scribe (1791--1861): autor wielu komedii i librett operowych; Victorien Sardou (1831--1908): dramaturg francuski, autor m.in. Toski; Gaston Caillavet (1869--1915), Robert Flers (1872--1927): autorzy wspólnie pisanych komedii, jak np. wspomniany Król.", "Marivaux, Pierre (1688--1763) --- dramaturg francuski, którego komedie odznaczają się subtelną analizą psychologiczną i zdumiewającą lekkością stylu; pisał także powieści realistyczne jak np. Życie Marianny czy Kariera wieśniaka.", "Plautus (ur. ok. 254, zm. 184 p.n.e.) --- słynny komediopisarz rzymski, którego utwory jak np. Kupiec czy Żołnierz fanfaron wywarły duży wpływ na późniejszych dramaturgów z Molierem na czele.", "Sarcey, Francisque (1827--1899) --- francuski krytyk teatralny.", "Rabelaisowska figura sędziego --- postać komiczna z powieści Gargantua i Pantagruel Rabelais'go (1495--1553).", "ustęp apoteozujący szlachectwo, który sam [Beaumarche] z własnych Memoriałów cytuje w przedmowie --- ,,Nie iżby trzeba było zapominać (powiedział pewien poważny pisarz, i tym chętniej go cytuję, ile że jestem w tym jego zdania), nie iżby trzeba było zapominać, mówi, o tym, co się jest winnym wysokim stanowiskom; słuszna jest, przeciwnie, aby przywilej urodzenia najmniej ze wszystkich podawany był w wątpliwość. To darmo otrzymane dobrodziejstwo dziedzictwa, owoc czynów, cnót i przymiotów przodków, po których bierze się je w spadku, nie może zgoła ranić miłości własnej tych, którym go los odmówił. W monarchii, gdyby się usunęło pośrednie stopnie, byłoby za daleko od monarchy do poddanych; niebawem ujrzałoby się jedynie despotę i niewolników. Utrzymanie stopniowej drabinki, od pracującego na roli aż do potentata, leży w jednakim stopniu w interesie wszystkich stanów i jest może najsilniejszą podporą monarchii\".", "Grzegorz Dyndała --- postać z komedii Moliera pod tym samym tytułem; Dyndała, z pochodzenia chłop, poślubia szlachciankę, która go zdradza i ośmiesza przy każdej okazji. Powiedzenie Dyndały: ,,Ha, sam chciałeś, sam chciałeś, Grzegorzu!\", stało się we Francji przysłowiowe.", "pojawiły się w polskim przekładzie niemal bezpośrednio po ich ogłoszeniu drukiem w języku francuskim --- Cyrulik, sewilski, Warszawa 1780; Wesele Figara, Warszawa 1786.", "piosenka Cherubina --- przekład Edwarda Leszczyńskiego.", "w 1783 r. książę de Nassau przebywał w Hiszpanii, Paryżu i Wiedniu, a żona jego w Paryżu --- porównaj: D'Aragon, Un paladin au XVIII-e siècle. Le prince Charles de Nassau-Siegen, Paris 1893."], "slug": "wesele-figara", "xml_sha256": "5639b2bd69d7109e67e0c9ecde8ee6589e62940391df480461a3c9d210d2d1c1"}
|
| 25 |
{"date_pd": "1981", "id": "wolne_lektury_2371714", "pa": ["głębokie poręczowe krzesło --- łac. cathedra. Guhl i Koner Das Leben der Griechen und Römer etc. Berlin, 1882, str. 568.", "owijająca głowę zasłona --- łac. suffibulum. Zawój westalki, patrz Guhl i Koner str. 722.", "w mętnem zwierciedle zmysłów ludzkich --- Zwierciadła u rzymian. Guhl i Kohner, str. 656--658. fig. 490. Metalowe ręczne i stojące, małe i wielkości człowieka dosięgające. Ze spodu złocone. Etruskie z Prenesty.", "za połowę obrotu wodnego zegara --- obrót wodnego zegara rzymian trwał minut dwadzieścia. Pliniusz młodszy Listy.", "uczta śmiesznego Trymalchiona --- Uczta Trimalchiona, w Satyrykonie, utworze Petroniusza, napisanym za panowania Nerona.", "dziewice Westy --- łac. Virgines Vestae.", "Przebaczenie dla skazańca, któremu na spotkanie wyszły dziewice Westy! Niech wolny odejdzie --- skazaniec, wiedziony na śmierć, jeżeli trafem spotkał westalkę, to według praw rzymskich, otrzymywał wolność. Guhl i Koner, str. 723.", "Gdy z szyi mi zdejmą tę złotą kulę --- do lat 17-u młodzi rzymianie nosili na szyi kulę złotą, na łańcuszku zawieszoną, jako znak wieku dziecinnego. Po skończeniu lat 17-u oblekano ich w t. zw. togę dojrzałości. O zwyczaju tym wiele wzmianek w poezyach Marcyalisa.", "dekada --- dni dziesięć. Miesiąc u rzymian dzielił się na trzy dekady.", "sophos! --- po grecku: brawo!", "latiklawa --- łac. laticlavia tunica, tunika bramowana purpurą, noszona tylko przez senatorów i patrycyuszów.", "Cieniu Owidyuszowy, natchnij mię (...) bez Owidyuszowego nauczania --- Owidyusz był twórcą dzieła p. t. Sztuka kochania (Ars amandi).", "edylowie rzymscy --- edylowie pełnili w Rzymie czynność dzisiejszéj policyi.", "tron --- łac. thronus. Guhl i Koner, str. 569.", "Gemonie --- łac. scalae gemoniae, wschody wykute w skale, z których trupy śmiercią karanych przestępców wrzucano do Tybru. Valer. Maximus, Dio Cassius.", "jakby na widok Meduzy w posąg się przemieniła --- podług mitów greckich, widok głowy Meduzy przemieniał człowieka w posąg. Owidyusz: Metamorfozy. Meduza, jedna z Gorgon, strasznych istot z wężami na głowie.", "jest nas sześć --- westalek było jednocześnie zawsze sześć. Tytus Liwiusz 1, 20.", "do źródła Egeryi (...) zaopatrywanie świątyni w wodę jest jej świętą powinnością --- świątynia Westy powinna była codziennie być skrapiana wodą, czerpaną ze źródła Egeryi, znajdującego się w lasku tegoż imienia, w pobliżu Rzymu. Guhl i Koner, str. 723.", "plac Łotrów --- łac. campus sceleratus, Guhl i Koner, str. 724; Lübker Reallexicon des classischen Alterthums, str. 517.", "arcykapłan --- łac. Pontifex Maximus.", "Usuńcie widoki trupów, oręża, więzów i wszystkiego, co nieczyste --- wzbronienie powyższych widoków stosowało się szczególnie do wielkiego ofiarnika, noszącego tytuł: Flamen dialis, w części jednak i do arcykapłana. Guhl i Koner, str. 720.", "kolegium kapłańskie --- łac. collegium pontificum. Członkowie kolegium kapłańskiego nosili tytuły: pullarii, victimarii, tibicines, calatores, etc. etc.", "przedmiot święty --- łac. res sacra.", "świętość publiczna (...) narodu --- łac. sacra popularia, albo sacra populi Romani."], "pt": [], "slug": "westalka", "xml_sha256": "ddc8ac92d22b0b0283f75dec3c2b53be460842bb07e298129cd81cac2a9b00a0"}
|
| 26 |
{"date_pd": "2012", "id": "wolne_lektury_2371770", "pa": [], "pt": ["Tybota, pana Ossyńskiego... --- Thibaut d'Auxigny, biskup Orleański, który trzymał Villona w ciężkim więzieniu w Meung.", "Na cnego Kotra mistrza... --- mistrz Jan Cotard, prokurator, świeżo zmarły; w dalszym ciągu Villon poświęca mu wspomnienie, a nawet osobną balladę.", "Pikardzki --- Pikardami nazywano heretyków, którzy nie uznawali modłów za zmarłych [Pikardowie --- grupa religijna, głosząca bliski koniec świata, funkcjonująca w XIV-XV w. w Europie Zachodniej, a następnie w Czechach - Red.WL].", "Psalm: Deus laudem... --- Psalm 108: Deus laudem meam, etc. Siódmy werset, który służy Villonowi jako modlitwa za biskupa Orleańskiego, opiewa: ,,Niechaj dni jego będą skrócone do najmniejszej liczby, a biskupstwo jego niech przejdzie w inne ręce\" [przytoczony przez Boya werset jest dokładnym cytatem z Wulgaty, to jest łacińskiej wersji Biblii; ,,biskupstwo\" trzeba tam jednak rozumieć jako ,,władzę (kapłańską)\"; Red.WL].", "Y cnemu królu Ludwikowi... --- Ludwik XI, którego przejazdowi przez Meung Villon zawdzięczał uwolnienie.", "Nad Arystotem Awerresa... --- Averroes, szanowany w średniowieczu lekarz i filozof arabski z XII w., komentator Arystotelesa.", "Romans Róży --- Roman de la Rose, ulubiony poemat średniowiecza [poemat alegoryczny o miłości, rozpoczęty przez Guillaume'a de Lorris (ok. 1235), a dokończony przez Jeana de Meung; Red.WL].", "Za Alexandra króla... --- Aleksander Wielki.", "Walery --- Valerianus Maximus; ale Villon, cytując z pamięci, przypisuje temu pisarzowi anegdotkę, którą prawdopodobnie zaczerpnął gdzie indziej, w Salisburym lub Janie de Vignay.", "Żałuię czasu mey młodości... --- Villon, pisząc testament, miał lat trzydzieści!", "Różnie los sadza ludzkie syny --- Hiob 7, 6.", "iako Dawid prawi... --- Quaesivi eum et non est inventus locus eius (Ps. 36) [Tekst łac. tłumaczy się jako: Szukałem go, lecz nie znalazłem miejsca, gdzie by był --- Red.WL].", "Refren tej ballady: Mais ou sont les neiges d'antan? należy do najsłynniejszych wierszy w literaturze francuskiej [współczesne tłumaczenie brzmi raczej: Ach, gdzie są niegdysiejsze śniegi --- Red.WL].", "Podobnież, gdzie ta monarchini... --- królowa Nawarry, która, wedle legendy, topiła swoich kochanków [Małgorzata Burgundzka (1290--1315) przyłapana na cudzołóstwie i uwięziona, a następnie uduszona na rozkaz męża, Ludwika Kłótliwego --- Red.WL].", "Berta --- legendarna matka Karola Wielkiego.", "Żale piękney płatnerki --- Owa płatnerka była historyczną osobistością: niegdyś głośna piękność paryska, za czasu Villona już zgrzybiała staruszka, nasunęła mu widokiem swoim te strofy, jedne z najlepiej odlanych w całym jego dziele [płatnerz --- handlarz broni i rynsztunku wojennego; Red.WL].", "Y ty, szewczycho Wilhelmino... --- w owych czasach wiele kobiet lekkiego obyczaju uprawiało rzekomo rozmaite rzemiosła, pod których godłem były znane, a które służyły im jako płaszczyk do bezpiecznego i tym zyskowniejszego praktykowania nierządu.", "Fremin --- ów Fremin, którego Villon nazywa żartobliwie ,,swoim klerkiem\" (sekretarzem), spisuje jakoby testament za dyktandem mistrza.", "Sardana, xiążę niezbyt słabe... --- prawdopodobnie Sardanapal.", "Kasia --- Katarzyna de Vauselles, jedyna postać kobieca, która znaczy się głębszym śladem w poezji Villona. W jakich okolicznościach odbyło się to ,,bicie\" --- nie wiadomo; słowa ,,na goło\" pozwalałyby się domyślać, iż Villon może został z urzędu oćwiczony: kara, na jaką skazywano wówczas żaków, gdy mścili się za srogość damy za pomocą zelżywych piosenek.", "Legacik mały tam spisałem... --- pierwszy znany utwór Villona pt. Les Lais (Legaty), zwany też Małym Testamentem.", "Moro, Proweniec, Roben, Trygam --- właściciele gospód, którym prawdopodobnie Villon został dłużny.", "Spadek zacnego imć bękarta... --- Piotr Marchant, zwany bękartem de la Barre, jeden z dwunastu sierżantów więzienia królewskiego w Châtelet.", "Item, dobremu oćcu --- więcey! ---/ Mistrzu Wilhelmu Wilonowi... --- przybrany ojciec i opiekun poety, kanonik przy klasztorze św. Benedykta, który widocznie wielokrotnie ratował wychowanka z ,,opressyi\".", "Powieść o dyabelskiey bździnie --- zaginiony poemat Villona, który miał za treść tragikomiczną walkę o kamień nazwany Pet-du-Diable.", "Tabaryn --- jeden z uczestników kradzieży w kolegium Nawarskim, który gadulstwem swoim sprawił, iż rzecz wyszła na jaw, a później, na torturze wodnej, wydał wspólników. Stąd prawdopodobnie ironiczna aluzja do jego ,,prawdomówności\".", "Ythier Marchant --- młodzieniec z zamożnego mieszczaństwa, towarzysz zabaw młodości Villona. Rondo, jakie Villon mu zapisuje, daje pojęcie o smaku ówczesnej dwornej poezji, takiej jaką uprawiali najcelniej Alain Chartier i Karol Orleański.", "Mistrzowi Rogatemu Ianowi... --- Jean le Cornu, bogaty mieszczanin i sekretarz królewski, który prawdopodobnie okazał się w potrzebie mało uczynnym dla poety. W ogrodzie, który mu ironicznie ,,zapisuje\", Villon, zdaje się, zmuszony był przespać nieraz noc.", "Saint-Amant --- urzędnik Skarbu; w oryg. legat ten zawiera aluzje do godeł sklepowych, jak Biały koń itd.; rodzaj żartu bardzo Villonowi ulubiony i powtarzany często.", "Ragier --- znany opój; ,,Wielki kubek\" --- oberża pod tym godłem.", ",,pod Szyszką\" --- Pomme du Pin, głośna oberża współczesna.", "Item, co Marbof, abo zgoła/ Mikołaj Luwier, z tymi bieda --- aluzje do dwóch znanych mieszczan, nadających sobie szlacheckie tony.", "Turgis --- właściciel głośnej traktierni Pomme du Pin.", "To iest, strażnicy, myślę, piesi... --- Villona obchodzili tylko strażnicy piesi, nie konni, ponieważ ci tylko odbywali ronty w mieście [ront --- patrol; Red.WL].", "Mistrz Jan Pulieński --- Jan de Poulieu, doktor uniwersytetu, który zwalczał zakony żebrzące i później musiał odwołać swoje zarzuty. Za czasu Villona istniała bardzo silna opozycja świeckiego kleru przeciw groźnej konkurencji zakonów żebrzących.", "Mistrz Jan Mehuński --- Jan de Meung, autor drugiej części Romansu Róży (1277).", "Zasię Matyska z Orleanu... --- Macé d'Orléans był to sędzia prowincjonalny, którego Villon, prawdopodobnie dla jego gadulstwa i drobiazgowości, przechrzcił na kobietę. Kobietom nierządnego życia nie wolno było, pod grzywną, nosić niektórych ozdób, np. pasków ze srebra.", "mistrzowi Lorensowi... --- mistrz Lorenz, promotor, który prowadził śledztwo w sprawie kradzieży nawarskiej, przy tym tęgi bibuła [bibuła --- pijak; Red.WL].", "mistrzowi Ianu Kotru... --- Jan Cotard, prokurator, również tęgi pijak, wówczas świeżo zmarły.", "Szpaczek młodszy --- syn bogatego bankiera, prawdopodobnie towarzysz uciech młodości Villona.", "biedne trzy sieroty --- trzej starzy lichwiarze, którym Villon poświęcił już aluzje w Legatach (Marcel, Gassouyn i Laurens).", "donatem --- gra słów na czasowniku dawać i tytule znanej gramatyki łacińskiej [łac. dono znaczy dawać; Red.WL].", "Credo --- gra słów na wyrazie Credo i kredycie [Credo --- modlitwa ,,Wierzę w Boga Ojca\", wyznanie wiary; Red.WL].", "Kupcie im ciastek... --- w oryg. gra słów na słowie flaon, ciastko, a także forma do bicia monety.", "Oto mi dziatki dobrey woley! --- ,,enfants de lieu de bien\", wyrażenie, którym określano najgorszych hultai i oszustów.", "mym biednym klerykusiom --- dwaj starzy kanonicy przy kościele Notre-Dame, z którym to kościołem klasztor św. Benedykta był w zajadłej nieprzyjaźni.", "Na domu Giedryia Wilhelma... --- osobistość znana z niewypłacalności.", "By zacną bursę biedne żaczki... --- właśnie ci dwaj kanonicy rozdzielali miejsca w bursie, którymi ich Villon ironicznie obdarza.", "Nie śpią tak, iako owe szpaczki... --- prawdopodobnie właśnie rzecz miała się odwrotnie.", "Item, imć Kuldu Michałowi,/ Y Karlotowi imć Taranie --- dwaj bogaci mieszczanie paryscy. Żółte buty były wówczas cechą wysokiej elegancji.", "imć panu Grynieńskiemu... --- Filip Brunei de Grigny, człowiek zrujnowany i wiecznie goniący za pieniędzmi.", "Bassanier --- rejent i pisarz w trybunale. Pierniczkami nazywano, w języku ówczesnej palestry, kubany dawane urzędnikom [,,kuban\" oznacza łapówkę; Red.WL].", "Zacnemu panu prefektowi... --- Robert d'Estouteville, ożeniony z córką poprzedniego prefekta Ambrozją Delore; swego czasu Villon, zaszczycany łaskami prefekta, napisał dlań balladę, którą tutaj pomieścił.", "W turnieiu króla Reneusa... --- René, książę Prowansji i król Sycylii.", "Ni Franciszkowi, bratu iego... --- prawdopodobnie obaj bracia okazali się nieużytymi dla poety; prócz tego Franciszek oddał mu jakąś złą przysługę wobec młodego arcybiskupa z Bourges.", "Ieśli na rozdział w Taiawencie... --- głośna ówczesna książka kucharska.", "Przeciwrzeczenia Fran-Gontirowe --- biskup z Meaux, Filip de Vitry, napisał głośną współcześnie sielankę, której bohaterem jest ubogi drwal Franc-Gontier i żona jego Helena, a treścią apoteoza szczęścia w ubóstwie. Sielanka ta stworzyła mnóstwo naśladownictw i cały styl: opływający w dostatki panowie, nawet René, książę Prowansji i król Neapolu, rozczulali się nad rozkoszami ubóstwa, co widocznie podrażniło Villona, który z gorzkiego doświadczenia wiedział, co o tym szczęściu myśleć. Ballada, która następuje, jest odpowiedzią na te niewczesne zachwyty; a poświęcona jest mistrzowi Couraud, który był pełnomocnikiem sielankowego króla René w Paryżu. Być może, iż Villon szukał za jego pośrednictwem poparcia u księcia Prowansji i, zamiast spodziewanej pomocy, otrzymał tylko zbawienne rady. Do tego odnosiłaby się też wzmianka o ,,tyranie\".", "Pani de Bruier --- pani de Bruyeres, pobożna wdowa paryska, trudniąca się propagandą cnoty.", "Z Małego Mostu... --- murowany most na Sekwanie, cały zabudowany i będący najbardziej ożywionym punktem handlowym Paryża.", "Makrob --- pisarz z V w., autor Saturnalii, w których ks. VII, p. 7, mieści się rozprawa o tym, dlaczego natura kobiet gorętsza jest niż mężczyzn: ,,Quid plura? Nonne videmus mulieres, quando nimium frigus est, mediocri veste contentas, nec ita operimentis plurimis involutas, ut viri solent, scilicet naturali calore, contra frigus, quod aer ingerit, repugnante? [Cóż więcej? Czyż nie widzieliście kobiet, które, chociaż jest zimno, zadowalają się skromną odzieżą, jak to czynią mężczyźni, jak gdyby zwalczały chłód, jaki przynosi powietrze, naturalnym ciepłem? --- tłum. Red.WL]", "Ten klasztor... --- klasztor żeński na Montmartre, znany ze swobody obyczajów i łatwego dostępu dla mężczyzn.", "Brelar Bigod! --- przekleństwo w zepsutej niemczyźnie: Verloren, bey Gott!", "Wyiąwszy ieno kaźń Mehyńską... --- więzienie, które Villon dopiero co opuścił.", "Gładkiemu Noelowi... --- Noël Jolis, który, jak się zdaje, odegrał dwuznaczną rolę w czasie amorów poety dla Katarzyny de Vausselles i ich smutnego końca.", "Z ręki Henryka... --- Henry Cousin, kat miasta Paryża.", "Żebrzącym Braciom... --- nie pierwsza to aluzja w Testamencie, wymierzona przeciw zakonom żebrzącym: Villon był w tym wiernym echem poglądów i antypatii uniwersyteckiego duchowieństwa paryskiego.", "Item, moiemu balwierzowi, Tuż wpodle Angla herborysty, Imieniem Mrozik Kolinowi, Sopelek lodu... --- dość prostoduszna igraszka słów z nazwiska Colin Galerne, znanego balwierza paryskiego.", "Do Montpippeau y do Ruclu... --- miejscowości opodal Paryża.", "Koleń Kaieński --- Colin de Cayeux, niepoprawny włamywacz, należący do jednej szajki z Villonem, powieszony z wyroku sądowego.", "Dydona --- królowa Kartaginy, bohaterka Eneidy, uchodziła w średnich wiekach za najwyższe wcielenie powabów niewieścich.", "Co wnet po śmierci ludzi czerni... --- aluzja do szubienicy [i/lub do zarazy nazywanej Czarną Śmiercią; Red.WL].", "Osobno grześć u Niewiniątek --- ociemniali miasta Paryża mieli przywilej kwestowania w dnie świąteczne na cmentarzu Niewiniątek.", "Kiedy na one patrzę głowy... --- cmentarz ten służył Paryżanom za miejsce przechadzek i zabaw. Często zachodziła potrzeba rozkopywania grobów dla zyskania miejsca, przy czym zesypywano kości na jedną kupę, tak iż w istocie przechadzająca się publiczność ocierała się o ,,kopice\" czaszek ludzkich, wszelakiego stanu i kondycji.", "Chciwości wrogi y zakały... --- wyrażenie oczywiście ironiczne, tak jak i dalsze zestawienie św. Dominika z Panem Bogiem co do potęgi.", "mistrzowi Lomerowi... --- mistrz Lomer d'Airaines, zakonnik; warunki stawiane przez testatora czynią prawo mistrza Lomera dość problematycznym zwłaszcza wobec pojęć Villona o interesowności kobiecej.", "rycerz Ogier Wielki --- legendarny rycerz Ogier le Danois, słynny ze swej dzielności w turniejach miłosnych.", "Z Szartierowego kwartą mleczka... --- Alain Chartier, poeta współczesny, autor czułych pieśni miłosnych; w oryg. gra słów lait, mleko i lais, piosenka.", "Żemsowi Iakobowi... --- mistrz Jakob James, skąpiec i właściciel licznych domów, nie cieszących się zbyt dobrą reputacją.", "dla imci Seneszala... --- być może Piotr de Brezé, wielki pan a zarazem poeta, wielki seneszal Normandii, uwięziony przez Ludwika XI w Loches.", "Ianowi Kale... --- Jean de Calais, notariusz Châtelet, w istocie piastujący funkcje interpretatora testamentów.", "Pogrzebią u Iadwigi świętey... --- klasztor stanowiący schronienie dla starych niezamężnych kobiet.", "By nie obciążać zbyt podłogi... --- kaplica tego klasztoru mieściła się na pierwszym piętrze.", "Srogim wyrokiem przepędzony... --- ten ,,srogi wyrok\", wydany ,,wbrew apelacji\", można odnosić do srogości damy serca Villona, którą już poprzednio czynił sprawczynią swojej tułaczki.", "W dzwon znaczny... --- wielki dzwon na wieży kościoła Notre-Dame.", "Legatu cne exekutory... --- egzekutorów [wykonawców; Red.WL] tych wyszczególnia Villon w kilku strofkach, które w przekładzie opuszczono.", "List do przyiacioł, w formie ballady --- list, pisany z więzienia w Meungs, do towarzyszy życia i zabaw w Paryżu.", "Weźrzyicie, ieśli wola, na sierotę! (...) W onem wygnaniu, kędy w żalu trawię --- bogate określenie na ,,obywateli świeżego powietrza\".", "Niech nikt z naszego nieszczęścia nie szydzi... --- wisielcy stanowili ulubiony temat popularnych żartów i konceptów.", "Stefan Garnier --- osobistość wielce wątpliwej moralności, prawdopodobnie dobry znajomy Villona.", "Kapetowie --- królewski ród Kapetów wiódł się, wedle popularnej gadki, od rzeźnika.", "Rozumiesz te figielki?... --- aluzja do tortury wodnej, jakiej poddano Villona w śledztwie.", "Rozprawa serca y ciała Wilonowego w kształcie ballady --- tego rodzaju ,,rozprawy\" między ciałem a duszą istniały już i przedtem w literaturze średniowiecza.", "druga część --- autorem pierwszej, wcześniejszej o jakie pół wieku, jest Wilhelm de Lorris.", "Tradycję tę utrwalił poemacik p. t. Repues franches (Daremne biesiady), którego bohaterem jest Villon i którego autorstwo przypisywano nawet długo jemu samemu.", "napisał w złodziejskim narzeczu szajki szereg ballad o treści zaczerpniętej z życia włóczęgów.", "Katarzyna de Vausselles --- poszukiwania co do osoby Katarzyny de Vauselles pozostały daremne. Tyle wykryto, że istniała rodzina tego nazwiska i że mieszkała, za czasów Villona, w pobliżu klasztoru św. Benedykta, który służył za dom poecie.", "Pośmiertne losy spuścizny Villona znaczą się nader interesującą linią... --- Warto zauważyć, iż Montaigne, wśród swojej, obejmującej tyle tematów gawędy, nie zdradza ani słowem znajomości Villona; Rabelais znał go niewątpliwie i wspomina w wielu miejscach, lecz raczej w duchu pospolitej legendy, już utworzonej o pisarzu, bez głębszego wniknięcia w jego treść.", "Teofil Gautier --- znakomity krytyk, który nie przeoczył chyba ani jednego momentu literatury francuskiej, Sainte-Beuve, poświęca, w r. 1859, Villonowi jeden ze swych poniedziałków, z mniejszym jednak niż zazwyczaj odczuciem i wżyciem się w indywidualność pisarza.", "wilonologia --- twórcą nowoczesnej ,,Wilonologii\" jest August Longnon, który opracował pierwsze krytyczne wydanie dzieł poety (Paris, A. Lemerre, 1892), jak również wykrył cały szereg danych biograficznych; dalej autor licznych prac tyczących poety i znakomity jego monografista (Les grands écrivains français, 1901), Gaston Paris; dalej niestrudzony badacz Marceli Schwob; wreszcie towarzysz jego prac, Piotr Champion, który dotychczasową wiedzę o Villonie zamknął w pomnikowym wydawnictwie: François Villon, sa vie et son temps (Paris, II. Champion, 1913). Na podstawie wszystkich tych prac oparłem moje przypisy. W ostatnich latach ukazały się duże urojone biografie Villona, stylizowane dzisiejszą modą w formie powieści: Pierre d'Allheim, La Passion de maitre François Villon (1924) i Francis Carco Le roman de François Villon (1926)."], "slug": "wielki-testament", "xml_sha256": "beb00a6cec7d23fc1cdd73a336d081fcbffa07f6f7fd3d458f2ccdd2f62b5ab2"}
|
data/wolne_lektury/wolne_lektury.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d223859e1f81f7dceb9269856077e4c265dda7d061a05b81576d85916f81606b
|
| 3 |
+
size 114516870
|
data/wolne_lektury/wolne_lektury.stats.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
| 1 |
{
|
| 2 |
"read": 6141,
|
| 3 |
-
"kept":
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 0,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
-
"chars":
|
| 9 |
-
"tokens":
|
| 10 |
"licenses": {
|
| 11 |
"CC-BY-SA-3.0": 5,
|
| 12 |
"CC-BY-SA-3.0-PL": 34,
|
| 13 |
"CC-BY-SA-4.0": 11,
|
| 14 |
"LAL-1.3": 1467,
|
| 15 |
-
"public-domain":
|
| 16 |
},
|
| 17 |
-
"authors_with_value":
|
| 18 |
"license": "per-record Wolne Lektury licence (public domain, LAL 1.3, CC BY-SA 3.0 PL/3.0/4.0)",
|
| 19 |
"stats_recomputed_from_parquet": true,
|
| 20 |
"drop_eltec_dup": 63,
|
| 21 |
"input_sha256": "5833c25db296f2479b3c09745ebedd550b2425dd6ebaf021f0095e684a0221a1",
|
| 22 |
"eltec_sha256": "ba40061741dff11165149f6c2cf3d5526e1b6c759e7ce1e03ccc164d58838325",
|
| 23 |
"drop_rights": 2,
|
| 24 |
-
"notes_rows":
|
| 25 |
-
"notes_sha256": "
|
|
|
|
| 26 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"read": 6141,
|
| 3 |
+
"kept": 6074,
|
| 4 |
"drop_short": 0,
|
| 5 |
"drop_lang": 0,
|
| 6 |
"drop_dup": 0,
|
| 7 |
"drop_ocr": 0,
|
| 8 |
+
"chars": 233812331,
|
| 9 |
+
"tokens": 91823395,
|
| 10 |
"licenses": {
|
| 11 |
"CC-BY-SA-3.0": 5,
|
| 12 |
"CC-BY-SA-3.0-PL": 34,
|
| 13 |
"CC-BY-SA-4.0": 11,
|
| 14 |
"LAL-1.3": 1467,
|
| 15 |
+
"public-domain": 4557
|
| 16 |
},
|
| 17 |
+
"authors_with_value": 6037,
|
| 18 |
"license": "per-record Wolne Lektury licence (public domain, LAL 1.3, CC BY-SA 3.0 PL/3.0/4.0)",
|
| 19 |
"stats_recomputed_from_parquet": true,
|
| 20 |
"drop_eltec_dup": 63,
|
| 21 |
"input_sha256": "5833c25db296f2479b3c09745ebedd550b2425dd6ebaf021f0095e684a0221a1",
|
| 22 |
"eltec_sha256": "ba40061741dff11165149f6c2cf3d5526e1b6c759e7ce1e03ccc164d58838325",
|
| 23 |
"drop_rights": 2,
|
| 24 |
+
"notes_rows": 459,
|
| 25 |
+
"notes_sha256": "da18d6a7eebf88f63efbe1e082d5e2cdc387bf9bbf808cc9d0a6411dbf14d8e1",
|
| 26 |
+
"drop_not_free": 2
|
| 27 |
}
|
src/attribution_common.py
CHANGED
|
@@ -93,13 +93,23 @@ def text_checks(table: pa.Table) -> dict:
|
|
| 93 |
}
|
| 94 |
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
def natural_order(name: str) -> str:
|
| 97 |
-
"""'Sienkiewicz, Henryk' -> 'Henryk Sienkiewicz'
|
| 98 |
-
|
|
|
|
|
|
|
|
|
|
| 99 |
family, comma, given = (part.strip() for part in name.partition(","))
|
| 100 |
if not comma or not family or not given or "," in given or "(" in name:
|
| 101 |
-
return
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
def write_sidecar(path: Path, records: list[dict]) -> None:
|
|
|
|
| 93 |
}
|
| 94 |
|
| 95 |
|
| 96 |
+
# A bracket closing the given names: the real name behind a pseudonym, as in 'M-ski, Adam [Zofia Trzeszczkowska]'.
|
| 97 |
+
TRAILING_BRACKET = re.compile(r"(.*?)\s*(\[[^\[\]]*\])")
|
| 98 |
+
|
| 99 |
+
|
| 100 |
def natural_order(name: str) -> str:
|
| 101 |
+
"""'Sienkiewicz, Henryk' -> 'Henryk Sienkiewicz', with runs of white space made one space. A bracket after the given
|
| 102 |
+
names stays last ('M-ski, Adam [Zofia Trzeszczkowska]' -> 'Adam M-ski [Zofia Trzeszczkowska]'). A name without
|
| 103 |
+
exactly one comma, with a parenthesis (a qualifier such as '(ojciec)') or with only a bracket after the comma stays
|
| 104 |
+
as the source gives it."""
|
| 105 |
+
name = " ".join(name.split())
|
| 106 |
family, comma, given = (part.strip() for part in name.partition(","))
|
| 107 |
if not comma or not family or not given or "," in given or "(" in name:
|
| 108 |
+
return name
|
| 109 |
+
bracket = TRAILING_BRACKET.fullmatch(given)
|
| 110 |
+
if not bracket:
|
| 111 |
+
return f"{given} {family}"
|
| 112 |
+
return f"{bracket[1]} {family} {bracket[2]}" if bracket[1] else name
|
| 113 |
|
| 114 |
|
| 115 |
def write_sidecar(path: Path, records: list[dict]) -> None:
|
src/build_wolne_lektury_attribution.py
CHANGED
|
@@ -8,13 +8,15 @@ src/wolne_lektury_licences.py as <cache>/hdr/<slug>.rdf) and writes
|
|
| 8 |
data/wolne_lektury/wolne_lektury.attribution.jsonl one line per Parquet row, same order, sorted keys:
|
| 9 |
id, slug, work_url, title, author, authors, translators, credits, source_edition, source_url,
|
| 10 |
publisher, credit_notes, credit_line, license, license_url, wl_rights, wl_license_url, wl_match,
|
| 11 |
-
wl_date_pd, modification_note, modified, text_sha1
|
| 12 |
data/wolne_lektury/wolne_lektury.parquet `author` filled from the sidecar; nothing else changes
|
| 13 |
data/wolne_lektury/wolne_lektury.stats.json `authors_with_value`
|
| 14 |
data/wolne_lektury/wolne_lektury.license-evidence.json counts, normalisation steps and check results
|
| 15 |
|
| 16 |
Names are WL's own credits turned from "Family, Given" into "Given Family"; WL's pseudonyms and cryptonyms
|
| 17 |
-
stay as WL gives them.
|
|
|
|
|
|
|
| 18 |
that the maintainer asked for is NOT established here. `author` is the authors, and "Autorzy oryginału: A;
|
| 19 |
Tłumaczenie: T" for a translation, the form the global_voices sidecar uses. The placeholders WL puts in
|
| 20 |
dc:creator for an unknown or collective author ("Autor nieznany", "Praca zbiorowa") are not credited in
|
|
@@ -52,15 +54,15 @@ from attribution_common import (BUILD_DYNAWORD_STEPS, natural_order, steps_with_
|
|
| 52 |
from sejm_api_common import check_pin, sha256_file # noqa: E402
|
| 53 |
from shingle_containment import strip_wl_footer # noqa: E402
|
| 54 |
from wolne_lektury_licences import (CC_BY_SA_3, CC_BY_SA_3_PL, CC_BY_SA_4, DATA, LABELS, LAL, # noqa: E402
|
| 55 |
-
LICENCES, PUBLIC_DOMAIN, SOURCE, classify, read_licences)
|
| 56 |
from wolne_lektury_notes import (HEADINGS, NOTES, NOTES_SHA256, OWNER, TEXT_GLOSSES, read_notes, # noqa: E402
|
| 57 |
restoration)
|
| 58 |
|
| 59 |
SIDECAR = f"{SOURCE}.attribution.jsonl"
|
| 60 |
EVIDENCE = f"{SOURCE}.license-evidence.json"
|
| 61 |
-
INPUT_SHA256 = "
|
| 62 |
-
TEXT_DIGEST = "
|
| 63 |
-
OUTPUT_SHA256 = "
|
| 64 |
DC = "{http://purl.org/dc/elements/1.1/}"
|
| 65 |
CREDIT_LINE = "Książka pochodzi z serwisu Wolne Lektury"
|
| 66 |
# The full URL of each licence version, as named in WL's rights text. LAL is WL's own link (http).
|
|
@@ -141,6 +143,80 @@ EDITION_REVIEWED = {
|
|
| 141 |
"wl_date_pd_wrong": {"wolne_lektury_2374660": "WL's date.pd 2012 is wrong (Konopnicka died 1910); the row is "
|
| 142 |
"public domain either way."},
|
| 143 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 144 |
# The steps between SpeakLeash's file and the released text, from the build code. Only the first two and the
|
| 145 |
# notes step can change a text; every other step keeps or drops whole documents.
|
| 146 |
NORMALISATION_STEPS = [
|
|
@@ -153,6 +229,8 @@ NORMALISATION_STEPS = [
|
|
| 153 |
"eltec_pol novel (5-word-shingle containment of at least 0.9)", "stat": "drop_eltec_dup"},
|
| 154 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "no", "step": "drop a whole document for which Wolne "
|
| 155 |
"Lektury gives no usable licence", "stat": "drop_rights"},
|
|
|
|
|
|
|
| 156 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "no", "step": "set `license` from the document's own "
|
| 157 |
"Wolne Lektury book"},
|
| 158 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "yes, for the rows whose book has them",
|
|
@@ -249,6 +327,17 @@ def make_record(row_id: str, text: str, licence: dict, header: dict, kinds: list
|
|
| 249 |
raise SystemExit(f"{row_id}: the header's work URL {header['work_url']!r} is not book {slugs[0]}")
|
| 250 |
authors = [natural_order(a) for a in header["creators"]]
|
| 251 |
translators = [natural_order(t) for t in header["contributors"].get("translator", [])]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 252 |
credits = {role: [natural_order(n) for n in names] for role, names in header["contributors"].items()
|
| 253 |
if role != "translator" and names}
|
| 254 |
return {
|
|
@@ -260,6 +349,7 @@ def make_record(row_id: str, text: str, licence: dict, header: dict, kinds: list
|
|
| 260 |
"id": row_id,
|
| 261 |
"license": label,
|
| 262 |
"license_url": LICENCE_URLS[label],
|
|
|
|
| 263 |
"modification_note": modification_note(kinds, glossed, text_glosses),
|
| 264 |
"modified": True,
|
| 265 |
"publisher": header["publisher"],
|
|
@@ -402,6 +492,53 @@ def edition_reviewed(records: list[dict], headings: dict) -> dict:
|
|
| 402 |
}
|
| 403 |
|
| 404 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 405 |
def wl_commentary(records: list[dict], headings: dict) -> dict:
|
| 406 |
"""The rows with a `Komentarz` heading: all are WL's own teaching material, with its commentary in the text."""
|
| 407 |
ids = set(headings.get("komentarz", {}).get("ids", []))
|
|
@@ -477,12 +614,14 @@ def build_evidence(table, records: list[dict], stats: dict, chosen: dict[str, di
|
|
| 477 |
"notes_and_prefaces": {
|
| 478 |
"scan_of_every_row": "text_checks above",
|
| 479 |
"hand_sample": {"rows": NOTES_SAMPLE_SIZE, "draw": f"random.Random({NOTES_SAMPLE_SEED}).sample(ids, "
|
| 480 |
-
f"{NOTES_SAMPLE_SIZE})
|
|
|
|
| 481 |
"of each text", "result": NOTES_SAMPLE_RESULT},
|
| 482 |
"wl_commentary": wl_commentary(records, checks["section_headings"]),
|
| 483 |
},
|
| 484 |
"footnote_check": footnote_check(chosen, left_out, stripped),
|
| 485 |
"wl_glosses_in_main_text": text_glosses_check(),
|
|
|
|
| 486 |
}
|
| 487 |
|
| 488 |
|
|
|
|
| 8 |
data/wolne_lektury/wolne_lektury.attribution.jsonl one line per Parquet row, same order, sorted keys:
|
| 9 |
id, slug, work_url, title, author, authors, translators, credits, source_edition, source_url,
|
| 10 |
publisher, credit_notes, credit_line, license, license_url, wl_rights, wl_license_url, wl_match,
|
| 11 |
+
wl_date_pd, modification_note, modified, text_sha1, and on a few rows metadata_note
|
| 12 |
data/wolne_lektury/wolne_lektury.parquet `author` filled from the sidecar; nothing else changes
|
| 13 |
data/wolne_lektury/wolne_lektury.stats.json `authors_with_value`
|
| 14 |
data/wolne_lektury/wolne_lektury.license-evidence.json counts, normalisation steps and check results
|
| 15 |
|
| 16 |
Names are WL's own credits turned from "Family, Given" into "Given Family"; WL's pseudonyms and cryptonyms
|
| 17 |
+
stay as WL gives them. The check of WL's credits against the National Library's catalogue (BN; `bn_check` in the
|
| 18 |
+
evidence file) changed the translators of three rows (TRANSLATOR_FIXES) and annotated a fourth (SOURCE_EDITION_NOTES);
|
| 19 |
+
these rows say so in `metadata_note`. WL does not say which edition a name or title follows, so the first-edition form
|
| 20 |
that the maintainer asked for is NOT established here. `author` is the authors, and "Autorzy oryginału: A;
|
| 21 |
Tłumaczenie: T" for a translation, the form the global_voices sidecar uses. The placeholders WL puts in
|
| 22 |
dc:creator for an unknown or collective author ("Autor nieznany", "Praca zbiorowa") are not credited in
|
|
|
|
| 54 |
from sejm_api_common import check_pin, sha256_file # noqa: E402
|
| 55 |
from shingle_containment import strip_wl_footer # noqa: E402
|
| 56 |
from wolne_lektury_licences import (CC_BY_SA_3, CC_BY_SA_3_PL, CC_BY_SA_4, DATA, LABELS, LAL, # noqa: E402
|
| 57 |
+
LICENCES, NOT_FREE, PUBLIC_DOMAIN, SOURCE, classify, read_licences)
|
| 58 |
from wolne_lektury_notes import (HEADINGS, NOTES, NOTES_SHA256, OWNER, TEXT_GLOSSES, read_notes, # noqa: E402
|
| 59 |
restoration)
|
| 60 |
|
| 61 |
SIDECAR = f"{SOURCE}.attribution.jsonl"
|
| 62 |
EVIDENCE = f"{SOURCE}.license-evidence.json"
|
| 63 |
+
INPUT_SHA256 = "cae78e0ea34138934839225c39bbb895c151a22a4be0f5b11ddd29d56df2d568" # src/clean_wolne_lektury.py's output
|
| 64 |
+
TEXT_DIGEST = "9fcc2c3e8e5a7bb3b80bc61fcb086a7148613144bde1adfc067bb6e92afa2b23" # text_digest of both Parquets
|
| 65 |
+
OUTPUT_SHA256 = "d223859e1f81f7dceb9269856077e4c265dda7d061a05b81576d85916f81606b" # the Parquet this script writes; test_attribution_release.py checks it
|
| 66 |
DC = "{http://purl.org/dc/elements/1.1/}"
|
| 67 |
CREDIT_LINE = "Książka pochodzi z serwisu Wolne Lektury"
|
| 68 |
# The full URL of each licence version, as named in WL's rights text. LAL is WL's own link (http).
|
|
|
|
| 143 |
"wl_date_pd_wrong": {"wolne_lektury_2374660": "WL's date.pd 2012 is wrong (Konopnicka died 1910); the row is "
|
| 144 |
"public domain either way."},
|
| 145 |
}
|
| 146 |
+
# The check of WL's author and translator credits against the National Library's catalogue (BN, data.bn.org.pl), and
|
| 147 |
+
# what the maintainer decided on it (polish-dynaword-v2#109). The rows it showed are not free are dropped upstream
|
| 148 |
+
# (NOT_FREE in src/wolne_lektury_licences.py); bn_check() puts all of it in the evidence file.
|
| 149 |
+
BN_CHECK = {
|
| 150 |
+
"checked_at": "2026-10-20",
|
| 151 |
+
"decided_at": "2026-10-20",
|
| 152 |
+
"source": "the National Library's catalogue, https://data.bn.org.pl (read only; WL's own e-book records left out "
|
| 153 |
+
"as circular)",
|
| 154 |
+
"method": "each row's BN records found by the author's surname and the title of the work and of its print "
|
| 155 |
+
"edition; our author and translators compared with BN's fields 100, 245$c and 700, and for public-domain "
|
| 156 |
+
"rows BN's death years with 1955 and with WL's date.pd. Every row flagged for an author or translator "
|
| 157 |
+
"was read by hand, the other flags in samples.",
|
| 158 |
+
"reviewed_by_hand": {
|
| 159 |
+
"in_full": {"translator_not_ours": 112, "translator_missing_in_bn": 53, "author_mismatch": 31,
|
| 160 |
+
"death_year_after_1955": 1},
|
| 161 |
+
"in_samples": {"no_record": "50 of 503", "pseudonym": "50 of 76", "other": "48 of 120"},
|
| 162 |
+
"labels": {"real_error": 41, "catalogue_noise": 192, "pseudonym_ok": 36, "cannot_tell": 76},
|
| 163 |
+
"unit": "a row and flag; a row can have several flags",
|
| 164 |
+
"scope": "the check covered the 6,076 Wolne Lektury rows of the time (this table's and the 2 in NOT_FREE) and "
|
| 165 |
+
"the 100 eltec_pol novels; 7 of the row-flags read are on eltec_pol rows (5 pseudonym_ok, 1 "
|
| 166 |
+
"catalogue_noise, 1 cannot_tell)",
|
| 167 |
+
},
|
| 168 |
+
"public_domain_rows_with_a_bn_death_after_1955": "one, \"Wola mocy\", dropped (dropped_as_not_free)",
|
| 169 |
+
"open": "the cannot_tell rows not named in this section are left as Wolne Lektury gives them; they are listed in "
|
| 170 |
+
"polish-dynaword-v2#109",
|
| 171 |
+
}
|
| 172 |
+
# Rows whose translators in WL's header are wrong (maintainer decision 2026-10-20): WL's translators after
|
| 173 |
+
# natural_order, ours, and the evidence. The build fails if WL's header stops giving the first list.
|
| 174 |
+
TRANSLATOR_FIXES = {
|
| 175 |
+
"wolne_lektury_2374887": (["Leon Urlich"], ["Leon Ulrich"],
|
| 176 |
+
"Wolne Lektury's own rights line reads \"Leon Ulrich zm. 1885\"; BN record 1504075 "
|
| 177 |
+
"(Kraków: Gebethner, 1895), \"przekład J. Ulricha\", \"Ulrich, Leon (1811-1885)\"."),
|
| 178 |
+
"wolne_lektury_2373112": (["Szymon Dickstein"], ["Szymon Dickstein", "Józef Nusbaum"],
|
| 179 |
+
"Wolne Lektury's print edition reads \"tłum. Szymon Dickstein i Józef Nusbaum\"; BN "
|
| 180 |
+
"record 2114549 (Warszawa 1885), \"przeł. Szymon Dickstein i Józef Nusbaum\", "
|
| 181 |
+
"\"Nusbaum-Hilarowicz, Józef (1859-1917)\"."),
|
| 182 |
+
"wolne_lektury_2372990": ([], ["Aniela Zagórska"],
|
| 183 |
+
"Wolne Lektury's print edition reads \"tłum. Aniela Zagórska\" and its rights line "
|
| 184 |
+
"\"Aniela Zagórska zm. 1943\"; BN record 1902875 (Warszawa: PIW, 1957), \"przeł. Aniela "
|
| 185 |
+
"Zagórska\", \"Zagórska, Aniela (1881-1943)\"."),
|
| 186 |
+
}
|
| 187 |
+
# Rows whose print edition in WL's header (dc:source) is not the book of the text; the sidecar keeps WL's value.
|
| 188 |
+
SOURCE_EDITION_NOTES = {
|
| 189 |
+
"wolne_lektury_2374125": "Wolne Lektury's print edition (`source_edition`) is Hebbel's play \"Judyta\" in Kazimierz "
|
| 190 |
+
"Kaszewski's translation (BN record 1454550, Warszawa 1881), not this book, Hebbel's "
|
| 191 |
+
"diaries in Karol Irzykowski's translation (Wolne Lektury's rights line: \"Karol Irzykowski "
|
| 192 |
+
"zm. 1944\"). Which print the text follows is not established.",
|
| 193 |
+
}
|
| 194 |
+
# Montaigne's "Próby": Wolne Lektury credits Edmund Cięglewicz note by note for the translated Latin and Greek
|
| 195 |
+
# quotations; BN credits Tadeusz Sinko (d. 1966) and Cięglewicz jointly. Kept (maintainer decision 2026-10-20).
|
| 196 |
+
MONTAIGNE = {"wolne_lektury_2376515": "Księga pierwsza", "wolne_lektury_2376514": "Księga druga",
|
| 197 |
+
"wolne_lektury_2376516": "Księga trzecia"}
|
| 198 |
+
MONTAIGNE_CREDIT = "tłum. Edmund Cięglewicz"
|
| 199 |
+
MONTAIGNE_FINDING = (
|
| 200 |
+
"BN record 2293540 (Próby, Ks. 1, Warszawa: PIW, 1957, the edition Wolne Lektury names for all three rows) reads "
|
| 201 |
+
"\"[cytaty łac. i grec. przeł. Tadeusz Sinko i Edmund Cięglewicz]\", with \"Cięglewicz, Edmund (1862-1928)\" and "
|
| 202 |
+
"\"Sinko, Tadeusz (1877-1966)\". Wolne Lektury's print edition for Księga pierwsza reads \"cytaty łac. tłum. Edmund "
|
| 203 |
+
"Cięgielewicz\", its translator's notes end the citation of each quotation they translate with \"tłum. Edmund "
|
| 204 |
+
"Cięglewicz\", and none names Sinko. The notes of the other two books give the source of a quotation and seldom a "
|
| 205 |
+
"translation. Kept as Wolne Lektury credits them (maintainer decision 2026-10-20); which quotations BN's joint "
|
| 206 |
+
"credit covers is not established.")
|
| 207 |
+
# What the check found and the maintainer left as Wolne Lektury wrote it (2026-10-20): none changes a row's status.
|
| 208 |
+
WL_RIGHTS_DEATH_YEARS = { # text in WL's rights line: the death year BN gives
|
| 209 |
+
"Jerzy Żuławski zm. 1914": 1915, "Bolesław Leśmian zm. 1938": 1937, "Jan Kiliński zm. 1760": 1819,
|
| 210 |
+
"Władysław Witwicki zm. 1947": 1948, "Wacław Rolicz-Lieder zm. 1940": 1912,
|
| 211 |
+
}
|
| 212 |
+
WL_DATE_PD_EARLY = { # WL's date.pd is earlier than BN's death years give; every row is free today
|
| 213 |
+
"wolne_lektury_2372974": "the translator Franciszek Mirandola died 1930 (BN): free from 2001, not 1903",
|
| 214 |
+
"wolne_lektury_2374125": "the translator Karol Irzykowski died 1944 (BN): free from 2015, not 1981",
|
| 215 |
+
"wolne_lektury_2374971": "the translator Antoni Lange died 1929 (BN): free from 2000, not 1938",
|
| 216 |
+
"wolne_lektury_2375897": "the translator Cyprian Bazylik died 1600 (BN): free from 1671, not 1643",
|
| 217 |
+
"wolne_lektury_2376199": "the author Arthur Conan Doyle died 1930 (BN): free from 2001, not 1994",
|
| 218 |
+
"wolne_lektury_2376940": "the translator Maria Cumft-Pieńkowska died 1920 (BN): free from 1991, not 1971",
|
| 219 |
+
}
|
| 220 |
# The steps between SpeakLeash's file and the released text, from the build code. Only the first two and the
|
| 221 |
# notes step can change a text; every other step keeps or drops whole documents.
|
| 222 |
NORMALISATION_STEPS = [
|
|
|
|
| 229 |
"eltec_pol novel (5-word-shingle containment of at least 0.9)", "stat": "drop_eltec_dup"},
|
| 230 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "no", "step": "drop a whole document for which Wolne "
|
| 231 |
"Lektury gives no usable licence", "stat": "drop_rights"},
|
| 232 |
+
{"stage": "src/clean_wolne_lektury.py", "changes_text": "no", "step": "drop a whole document that Wolne Lektury "
|
| 233 |
+
"marks public domain although its translation is not free (bn_check below)", "stat": "drop_not_free"},
|
| 234 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "no", "step": "set `license` from the document's own "
|
| 235 |
"Wolne Lektury book"},
|
| 236 |
{"stage": "src/clean_wolne_lektury.py", "changes_text": "yes, for the rows whose book has them",
|
|
|
|
| 327 |
raise SystemExit(f"{row_id}: the header's work URL {header['work_url']!r} is not book {slugs[0]}")
|
| 328 |
authors = [natural_order(a) for a in header["creators"]]
|
| 329 |
translators = [natural_order(t) for t in header["contributors"].get("translator", [])]
|
| 330 |
+
notes = []
|
| 331 |
+
if row_id in TRANSLATOR_FIXES:
|
| 332 |
+
wl, fixed, evidence = TRANSLATOR_FIXES[row_id]
|
| 333 |
+
if translators != wl:
|
| 334 |
+
raise SystemExit(f"{row_id}: WL's header gives the translators {translators}, not {wl}; review "
|
| 335 |
+
"TRANSLATOR_FIXES")
|
| 336 |
+
given = "; ".join(f"\"{name}\"" for name in wl) or "none"
|
| 337 |
+
notes.append(f"`translators` corrected from Wolne Lektury's header, which gives {given}. {evidence}")
|
| 338 |
+
translators = fixed
|
| 339 |
+
if row_id in SOURCE_EDITION_NOTES:
|
| 340 |
+
notes.append(SOURCE_EDITION_NOTES[row_id])
|
| 341 |
credits = {role: [natural_order(n) for n in names] for role, names in header["contributors"].items()
|
| 342 |
if role != "translator" and names}
|
| 343 |
return {
|
|
|
|
| 349 |
"id": row_id,
|
| 350 |
"license": label,
|
| 351 |
"license_url": LICENCE_URLS[label],
|
| 352 |
+
**({"metadata_note": " ".join(notes)} if notes else {}),
|
| 353 |
"modification_note": modification_note(kinds, glossed, text_glosses),
|
| 354 |
"modified": True,
|
| 355 |
"publisher": header["publisher"],
|
|
|
|
| 492 |
}
|
| 493 |
|
| 494 |
|
| 495 |
+
def bn_check(records: list[dict], chosen: dict[str, dict]) -> dict:
|
| 496 |
+
"""The check against BN's catalogue (BN_CHECK) and what came of it. The ids and counts are computed; the build
|
| 497 |
+
fails if a row it names is not in the table or a dropped one is."""
|
| 498 |
+
ids = {r["id"] for r in records}
|
| 499 |
+
named = TRANSLATOR_FIXES.keys() | SOURCE_EDITION_NOTES.keys() | MONTAIGNE.keys() | WL_DATE_PD_EARLY.keys()
|
| 500 |
+
if named - ids or NOT_FREE.keys() & ids:
|
| 501 |
+
raise SystemExit(f"bn_check names rows that are not in the table: {sorted(named - ids)}, or a NOT_FREE row is "
|
| 502 |
+
f"kept: {sorted(NOT_FREE.keys() & ids)}")
|
| 503 |
+
death_years = {text: {"bn_death_year": year, "ids": [r["id"] for r in records if text in r["wl_rights"]]}
|
| 504 |
+
for text, year in WL_RIGHTS_DEATH_YEARS.items()}
|
| 505 |
+
if not all(found["ids"] for found in death_years.values()):
|
| 506 |
+
raise SystemExit("a WL_RIGHTS_DEATH_YEARS text is in no row's rights line")
|
| 507 |
+
pseudonym = "Adam M-ski [Zofia Trzeszczkowska]"
|
| 508 |
+
|
| 509 |
+
def montaigne(row_id: str) -> dict:
|
| 510 |
+
notes = chosen.get(row_id, {}).get("pt", [])
|
| 511 |
+
credited = [n for n in notes if MONTAIGNE_CREDIT in n]
|
| 512 |
+
greek = [n for n in credited if "(gr.) ---" in n]
|
| 513 |
+
return {"book": MONTAIGNE[row_id], "translator_notes": len(notes), "crediting_cieglewicz": len(credited),
|
| 514 |
+
"of_them_greek": len(greek), "greek_characters": sum(map(len, greek)),
|
| 515 |
+
"naming_sinko": sum("Sinko" in n for n in notes)}
|
| 516 |
+
|
| 517 |
+
return {
|
| 518 |
+
**BN_CHECK,
|
| 519 |
+
"dropped_as_not_free": NOT_FREE,
|
| 520 |
+
"translators_fixed": {row_id: {"wolne_lektury": wl, "ours": fixed, "evidence": evidence}
|
| 521 |
+
for row_id, (wl, fixed, evidence) in TRANSLATOR_FIXES.items()},
|
| 522 |
+
"source_edition_notes": SOURCE_EDITION_NOTES,
|
| 523 |
+
"pseudonym_with_real_name": {
|
| 524 |
+
"translator": pseudonym, "rows": sum(pseudonym in r["translators"] for r in records),
|
| 525 |
+
"meaning": "Zofia Trzeszczkowska wrote as Adam M-ski. Most of WL's headers give \"M-ski, Adam [Zofia "
|
| 526 |
+
"Trzeszczkowska]\"; natural_order() keeps the bracket after the name."},
|
| 527 |
+
"joint_credit_kept": {
|
| 528 |
+
"finding": MONTAIGNE_FINDING,
|
| 529 |
+
"counted": f"translator's notes restored at the end of the text; crediting_cieglewicz: those that contain "
|
| 530 |
+
f"\"{MONTAIGNE_CREDIT}\"; of_them_greek: those of them whose quotation WL marks \"(gr.)\"",
|
| 531 |
+
"rows": {row_id: montaigne(row_id) for row_id in MONTAIGNE},
|
| 532 |
+
},
|
| 533 |
+
"kept_as_wolne_lektury_wrote": {
|
| 534 |
+
"meaning": "the check found these and the maintainer left them as Wolne Lektury wrote them (2026-10-20); "
|
| 535 |
+
"none changes whether a row is free",
|
| 536 |
+
"death_year_in_wl_rights": death_years,
|
| 537 |
+
"wl_date_pd_early": WL_DATE_PD_EARLY,
|
| 538 |
+
},
|
| 539 |
+
}
|
| 540 |
+
|
| 541 |
+
|
| 542 |
def wl_commentary(records: list[dict], headings: dict) -> dict:
|
| 543 |
"""The rows with a `Komentarz` heading: all are WL's own teaching material, with its commentary in the text."""
|
| 544 |
ids = set(headings.get("komentarz", {}).get("ids", []))
|
|
|
|
| 614 |
"notes_and_prefaces": {
|
| 615 |
"scan_of_every_row": "text_checks above",
|
| 616 |
"hand_sample": {"rows": NOTES_SAMPLE_SIZE, "draw": f"random.Random({NOTES_SAMPLE_SEED}).sample(ids, "
|
| 617 |
+
f"{NOTES_SAMPLE_SIZE}), ids: the 6,076 rows of the time in id order (this table's and the "
|
| 618 |
+
"2 in NOT_FREE, neither drawn)", "read": f"the first and last {NOTES_SAMPLE_CHARS} characters "
|
| 619 |
"of each text", "result": NOTES_SAMPLE_RESULT},
|
| 620 |
"wl_commentary": wl_commentary(records, checks["section_headings"]),
|
| 621 |
},
|
| 622 |
"footnote_check": footnote_check(chosen, left_out, stripped),
|
| 623 |
"wl_glosses_in_main_text": text_glosses_check(),
|
| 624 |
+
"bn_check": bn_check(records, chosen),
|
| 625 |
}
|
| 626 |
|
| 627 |
|
src/clean_wolne_lektury.py
CHANGED
|
@@ -21,7 +21,9 @@ Both groups are written to wolne_lektury.eltec_pairs.tsv.
|
|
| 21 |
The `license` of each kept row comes from wolne_lektury.licences.tsv, which
|
| 22 |
src/wolne_lektury_licences.py writes from Wolne Lektury's metadata; the build stops unless that file
|
| 23 |
labels exactly the kept rows. The rows in that module's UNLICENSED, whose metadata gives no usable
|
| 24 |
-
licence, are dropped first (stats `drop_rights`)
|
|
|
|
|
|
|
| 25 |
|
| 26 |
The notes come from the committed wolne_lektury.notes.jsonl (pinned by SHA-256; see src/wolne_lektury_notes.py for the
|
| 27 |
format, what is left out, and how to rebuild it from Wolne Lektury's book XML). They are added after the dedup, so the
|
|
@@ -59,7 +61,7 @@ from attribution_common import text_digest
|
|
| 59 |
from sejm_api_common import check_pin
|
| 60 |
from shingle_containment import best_containment, strip_wl_footer
|
| 61 |
from sources import SOURCES
|
| 62 |
-
from wolne_lektury_licences import LABELS, LICENCES, UNLICENSED, read_licences
|
| 63 |
from wolne_lektury_notes import (NOTES_SHA256, TEXT_DIGEST_BEFORE, TEXT_DIGEST_WITHOUT_GLOSSES, add_notes, read_notes,
|
| 64 |
restoration, strip_text_glosses)
|
| 65 |
|
|
@@ -96,12 +98,12 @@ def relabel(table: pa.Table, licences_path: Path) -> pa.Table:
|
|
| 96 |
pa.array([labels[i] for i in ids], pa.string()))
|
| 97 |
|
| 98 |
|
| 99 |
-
def
|
| 100 |
-
"""`table` without the
|
| 101 |
-
|
| 102 |
-
if pc.sum(
|
| 103 |
-
raise SystemExit("an
|
| 104 |
-
return table.filter(pc.invert(
|
| 105 |
|
| 106 |
|
| 107 |
def build(input_path: Path, eltec_path: Path, licences_path: Path, out_dir: Path) -> dict:
|
|
@@ -122,8 +124,9 @@ def build(input_path: Path, eltec_path: Path, licences_path: Path, out_dir: Path
|
|
| 122 |
"action": "drop" if score >= DROP_AT else "keep_partial",
|
| 123 |
"wl_title": wl_title(text)})
|
| 124 |
deduped = table.filter(pa.array(keep))
|
| 125 |
-
licensed =
|
| 126 |
-
|
|
|
|
| 127 |
if text_digest(labelled) != TEXT_DIGEST_BEFORE:
|
| 128 |
raise SystemExit("the text before the notes is not the text the notes step was written for")
|
| 129 |
unglossed = strip_text_glosses(labelled)
|
|
@@ -139,6 +142,7 @@ def build(input_path: Path, eltec_path: Path, licences_path: Path, out_dir: Path
|
|
| 139 |
kept=kept.num_rows,
|
| 140 |
drop_eltec_dup=table.num_rows - deduped.num_rows,
|
| 141 |
drop_rights=deduped.num_rows - licensed.num_rows,
|
|
|
|
| 142 |
chars=pc.sum(pc.utf8_length(kept.column("text"))).as_py(),
|
| 143 |
tokens=pc.sum(kept.column("token_count")).as_py(),
|
| 144 |
licenses=dict(sorted(Counter(kept.column("license").to_pylist()).items())),
|
|
@@ -149,7 +153,7 @@ def build(input_path: Path, eltec_path: Path, licences_path: Path, out_dir: Path
|
|
| 149 |
input_sha256=INPUT_SHA256,
|
| 150 |
eltec_sha256=ELTEC_SHA256,
|
| 151 |
)
|
| 152 |
-
drops = ("drop_short", "drop_lang", "drop_dup", "drop_ocr", "drop_eltec_dup", "drop_rights")
|
| 153 |
if stats["read"] - sum(stats[k] for k in drops) != stats["kept"]:
|
| 154 |
raise SystemExit("stats drop counts do not add up to the kept rows")
|
| 155 |
|
|
|
|
| 21 |
The `license` of each kept row comes from wolne_lektury.licences.tsv, which
|
| 22 |
src/wolne_lektury_licences.py writes from Wolne Lektury's metadata; the build stops unless that file
|
| 23 |
labels exactly the kept rows. The rows in that module's UNLICENSED, whose metadata gives no usable
|
| 24 |
+
licence, are dropped first (stats `drop_rights`), then the rows in its NOT_FREE, which Wolne Lektury marks public
|
| 25 |
+
domain although the check against the National Library's catalogue showed their translation is not free (stats
|
| 26 |
+
`drop_not_free`).
|
| 27 |
|
| 28 |
The notes come from the committed wolne_lektury.notes.jsonl (pinned by SHA-256; see src/wolne_lektury_notes.py for the
|
| 29 |
format, what is left out, and how to rebuild it from Wolne Lektury's book XML). They are added after the dedup, so the
|
|
|
|
| 61 |
from sejm_api_common import check_pin
|
| 62 |
from shingle_containment import best_containment, strip_wl_footer
|
| 63 |
from sources import SOURCES
|
| 64 |
+
from wolne_lektury_licences import LABELS, LICENCES, NOT_FREE, UNLICENSED, read_licences
|
| 65 |
from wolne_lektury_notes import (NOTES_SHA256, TEXT_DIGEST_BEFORE, TEXT_DIGEST_WITHOUT_GLOSSES, add_notes, read_notes,
|
| 66 |
restoration, strip_text_glosses)
|
| 67 |
|
|
|
|
| 98 |
pa.array([labels[i] for i in ids], pa.string()))
|
| 99 |
|
| 100 |
|
| 101 |
+
def drop_listed(table: pa.Table, ids, name: str) -> pa.Table:
|
| 102 |
+
"""`table` without the rows in `ids` (the list called `name`), every one of which must be in it."""
|
| 103 |
+
listed = pc.is_in(table.column("id"), pa.array(sorted(ids)))
|
| 104 |
+
if pc.sum(listed).as_py() != len(ids):
|
| 105 |
+
raise SystemExit(f"an id in {name} is not among the deduplicated rows")
|
| 106 |
+
return table.filter(pc.invert(listed))
|
| 107 |
|
| 108 |
|
| 109 |
def build(input_path: Path, eltec_path: Path, licences_path: Path, out_dir: Path) -> dict:
|
|
|
|
| 124 |
"action": "drop" if score >= DROP_AT else "keep_partial",
|
| 125 |
"wl_title": wl_title(text)})
|
| 126 |
deduped = table.filter(pa.array(keep))
|
| 127 |
+
licensed = drop_listed(deduped, UNLICENSED, "UNLICENSED")
|
| 128 |
+
free = drop_listed(licensed, NOT_FREE, "NOT_FREE")
|
| 129 |
+
labelled = relabel(free, licences_path)
|
| 130 |
if text_digest(labelled) != TEXT_DIGEST_BEFORE:
|
| 131 |
raise SystemExit("the text before the notes is not the text the notes step was written for")
|
| 132 |
unglossed = strip_text_glosses(labelled)
|
|
|
|
| 142 |
kept=kept.num_rows,
|
| 143 |
drop_eltec_dup=table.num_rows - deduped.num_rows,
|
| 144 |
drop_rights=deduped.num_rows - licensed.num_rows,
|
| 145 |
+
drop_not_free=licensed.num_rows - free.num_rows,
|
| 146 |
chars=pc.sum(pc.utf8_length(kept.column("text"))).as_py(),
|
| 147 |
tokens=pc.sum(kept.column("token_count")).as_py(),
|
| 148 |
licenses=dict(sorted(Counter(kept.column("license").to_pylist()).items())),
|
|
|
|
| 153 |
input_sha256=INPUT_SHA256,
|
| 154 |
eltec_sha256=ELTEC_SHA256,
|
| 155 |
)
|
| 156 |
+
drops = ("drop_short", "drop_lang", "drop_dup", "drop_ocr", "drop_eltec_dup", "drop_rights", "drop_not_free")
|
| 157 |
if stats["read"] - sum(stats[k] for k in drops) != stats["kept"]:
|
| 158 |
raise SystemExit("stats drop counts do not add up to the kept rows")
|
| 159 |
|
src/sources.py
CHANGED
|
@@ -554,20 +554,20 @@ SOURCES = {
|
|
| 554 |
"these are Wolne Lektury's modernised versions of the print editions, not the "
|
| 555 |
"editions as first printed. The edition a text follows is the one in Wolne "
|
| 556 |
"Lektury's print-edition field, kept in the sidecar as `source_edition` (named "
|
| 557 |
-
"for 6,
|
| 558 |
"taken over (see the scope note).",
|
| 559 |
"upstream": "https://wolnelektury.pl/api/books/",
|
| 560 |
"provenance": "Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key "
|
| 561 |
"`wolne_lektury_corpus`) of Wolne Lektury's plain-text export. What SpeakLeash "
|
| 562 |
"did to the text is not documented, and who removed the export's footer is "
|
| 563 |
"not established. In this repository a text is changed in two ways: leading "
|
| 564 |
-
"and trailing whitespace is trimmed, and the
|
| 565 |
"book has author's or translator's notes get those notes as sections at the "
|
| 566 |
"end (\"Przypisy autora\", \"Przypisy tłumacza\"; Wolne Lektury's editorial "
|
| 567 |
"notes are not included; src/wolne_lektury_notes.py). No paragraph is "
|
| 568 |
"removed, and 63 whole "
|
| 569 |
-
"documents were dropped as eltec_pol novels
|
| 570 |
-
"licence (src/clean_wolne_lektury.py). Wolne Lektury's metadata, fetched from "
|
| 571 |
"its public API and book XML, fills `author` (\"Autorzy oryginału: A; "
|
| 572 |
"Tłumaczenie: T\" for a translation) and the sidecar; "
|
| 573 |
"src/build_wolne_lektury_attribution.py writes both and "
|
|
@@ -585,12 +585,26 @@ SOURCES = {
|
|
| 585 |
"translated by Paweł Kozioł, one marked only \"CC BY-SA\" with no version, the "
|
| 586 |
"other public domain for Marceli Motty's translation and \"CC BY-SA\" for "
|
| 587 |
"Kozioł's (polish-dynaword-v2#57). "
|
| 588 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 589 |
"name form (pseudonyms and cryptonyms as Wolne Lektury gives them); the first-"
|
| 590 |
"edition form of a name is not established. 37 documents have no author "
|
| 591 |
"because Wolne Lektury gives only \"Autor nieznany\" or \"Praca zbiorowa\"; "
|
| 592 |
"Wolne Lektury has no field for the original title of a translation. Of the "
|
| 593 |
-
"public-domain documents, 1,
|
| 594 |
"58 a critical edition and 229 an introduction, notes or commentary; the "
|
| 595 |
"editors of those editions and their death years are not established. 239 "
|
| 596 |
"documents keep period spelling by our heuristic count, so the modernisation "
|
|
@@ -600,8 +614,8 @@ SOURCES = {
|
|
| 600 |
"print edition (a publisher's address, a list of editions, an introduction) "
|
| 601 |
"and none carried Wolne Lektury's credits or notes. The export had no "
|
| 602 |
"footnotes. From Wolne Lektury's book XML (read 2026-10-20) the author's "
|
| 603 |
-
"and translator's notes are restored at the end of the
|
| 604 |
-
"them: 8,
|
| 605 |
"10,838 translator's notes under \"Przypisy tłumacza\" in 168 texts. "
|
| 606 |
"Wolne Lektury's editorial notes are not restored, and the 668 glosses its "
|
| 607 |
"editors added inside 632 of the restored notes (in square brackets, signed "
|
|
|
|
| 554 |
"these are Wolne Lektury's modernised versions of the print editions, not the "
|
| 555 |
"editions as first printed. The edition a text follows is the one in Wolne "
|
| 556 |
"Lektury's print-edition field, kept in the sidecar as `source_edition` (named "
|
| 557 |
+
"for 6,030 of the 6,074 documents). Wolne Lektury's editorial notes are not "
|
| 558 |
"taken over (see the scope note).",
|
| 559 |
"upstream": "https://wolnelektury.pl/api/books/",
|
| 560 |
"provenance": "Pulled from SpeakLeash's public redistribution (`speakleash-ds-pub`, key "
|
| 561 |
"`wolne_lektury_corpus`) of Wolne Lektury's plain-text export. What SpeakLeash "
|
| 562 |
"did to the text is not documented, and who removed the export's footer is "
|
| 563 |
"not established. In this repository a text is changed in two ways: leading "
|
| 564 |
+
"and trailing whitespace is trimmed, and the 459 texts whose Wolne Lektury "
|
| 565 |
"book has author's or translator's notes get those notes as sections at the "
|
| 566 |
"end (\"Przypisy autora\", \"Przypisy tłumacza\"; Wolne Lektury's editorial "
|
| 567 |
"notes are not included; src/wolne_lektury_notes.py). No paragraph is "
|
| 568 |
"removed, and 63 whole "
|
| 569 |
+
"documents were dropped as eltec_pol novels, 2 for want of a usable "
|
| 570 |
+
"licence and 2 whose translation is not free (src/clean_wolne_lektury.py). Wolne Lektury's metadata, fetched from "
|
| 571 |
"its public API and book XML, fills `author` (\"Autorzy oryginału: A; "
|
| 572 |
"Tłumaczenie: T\" for a translation) and the sidecar; "
|
| 573 |
"src/build_wolne_lektury_attribution.py writes both and "
|
|
|
|
| 585 |
"translated by Paweł Kozioł, one marked only \"CC BY-SA\" with no version, the "
|
| 586 |
"other public domain for Marceli Motty's translation and \"CC BY-SA\" for "
|
| 587 |
"Kozioł's (polish-dynaword-v2#57). "
|
| 588 |
+
"2 more are dropped after a check of Wolne Lektury's credits against the "
|
| 589 |
+
"National Library's catalogue (polish-dynaword-v2#109): Wolne Lektury marks "
|
| 590 |
+
"both public domain, but Nietzsche's \"Wola mocy\" is a joint translation by "
|
| 591 |
+
"Konrad Drzewiecki and Stefan Frycz (d. 1960), and Wells's \"Wehikuł czasu\" "
|
| 592 |
+
"follows a 1985 print whose translation an editor born in 1932 revised. The "
|
| 593 |
+
"same check corrected the translators of 3 documents and found that the print "
|
| 594 |
+
"edition named for a fourth (Hebbel's diaries) is another book; these 4 carry a "
|
| 595 |
+
"`metadata_note` in the sidecar. In Montaigne's Próby (3 documents) Wolne "
|
| 596 |
+
"Lektury's translator's notes credit the translated quotations to Edmund "
|
| 597 |
+
"Cięglewicz, while the National Library's record of the print edition credits "
|
| 598 |
+
"Tadeusz Sinko (d. 1966) and Cięglewicz jointly; which quotations each "
|
| 599 |
+
"translated is not established. Wrong death years in the rights lines of 25 "
|
| 600 |
+
"documents and early public-domain dates of 6 are kept as Wolne Lektury gives "
|
| 601 |
+
"them; none changes whether a document is free. "
|
| 602 |
+
"Otherwise flagged, nothing more excluded (polish-dynaword-v2#109). `author` is Wolne Lektury's "
|
| 603 |
"name form (pseudonyms and cryptonyms as Wolne Lektury gives them); the first-"
|
| 604 |
"edition form of a name is not established. 37 documents have no author "
|
| 605 |
"because Wolne Lektury gives only \"Autor nieznany\" or \"Praca zbiorowa\"; "
|
| 606 |
"Wolne Lektury has no field for the original title of a translation. Of the "
|
| 607 |
+
"public-domain documents, 1,310 name a print edition published after 1955, "
|
| 608 |
"58 a critical edition and 229 an introduction, notes or commentary; the "
|
| 609 |
"editors of those editions and their death years are not established. 239 "
|
| 610 |
"documents keep period spelling by our heuristic count, so the modernisation "
|
|
|
|
| 614 |
"print edition (a publisher's address, a list of editions, an introduction) "
|
| 615 |
"and none carried Wolne Lektury's credits or notes. The export had no "
|
| 616 |
"footnotes. From Wolne Lektury's book XML (read 2026-10-20) the author's "
|
| 617 |
+
"and translator's notes are restored at the end of the 459 texts that have "
|
| 618 |
+
"them: 8,099 author's notes under \"Przypisy autora\" in 336 texts and "
|
| 619 |
"10,838 translator's notes under \"Przypisy tłumacza\" in 168 texts. "
|
| 620 |
"Wolne Lektury's editorial notes are not restored, and the 668 glosses its "
|
| 621 |
"editors added inside 632 of the restored notes (in square brackets, signed "
|
src/test_attribution_common.py
CHANGED
|
@@ -26,6 +26,15 @@ from attribution_common import (BUILD_DYNAWORD_STEPS, PERIOD_SPELLING_AT, natura
|
|
| 26 |
(", Henryk", ", Henryk"),
|
| 27 |
("Sienkiewicz,", "Sienkiewicz,"),
|
| 28 |
("", ""),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
])
|
| 30 |
def test_natural_order_changes_only_family_comma_given(name, expected):
|
| 31 |
assert natural_order(name) == expected
|
|
|
|
| 26 |
(", Henryk", ", Henryk"),
|
| 27 |
("Sienkiewicz,", "Sienkiewicz,"),
|
| 28 |
("", ""),
|
| 29 |
+
("Czechowicz,\nJózef", "Józef Czechowicz"),
|
| 30 |
+
("Dumas, Aleksander (ojciec)", "Dumas, Aleksander (ojciec)"),
|
| 31 |
+
# the real name behind a pseudonym stays after it, wherever WL puts the bracket
|
| 32 |
+
("M-ski, Adam [Zofia Trzeszczkowska]", "Adam M-ski [Zofia Trzeszczkowska]"),
|
| 33 |
+
("M-ski, Adam [Zofia Trzeszczkowska]", "Adam M-ski [Zofia Trzeszczkowska]"),
|
| 34 |
+
("M-ski, Adam[Zofia Trzeszczkowska]", "Adam M-ski [Zofia Trzeszczkowska]"),
|
| 35 |
+
("M-ski [Zofia Trzeszczkowska], Adam", "Adam M-ski [Zofia Trzeszczkowska]"),
|
| 36 |
+
("M-ski, [Zofia Trzeszczkowska]", "M-ski, [Zofia Trzeszczkowska]"), # only a bracket: unchanged
|
| 37 |
+
("Kowalski, Jan [?] Maria", "Jan [?] Maria Kowalski"), # a bracket inside the given names is not moved
|
| 38 |
])
|
| 39 |
def test_natural_order_changes_only_family_comma_given(name, expected):
|
| 40 |
assert natural_order(name) == expected
|
src/test_attribution_release.py
CHANGED
|
@@ -26,7 +26,7 @@ from sources import SOURCES
|
|
| 26 |
ROOT = Path(__file__).resolve().parents[1]
|
| 27 |
Release = namedtuple("Release", "name build table records evidence stats")
|
| 28 |
BUILDS = {"wolne_lektury": wl, "eltec_pol": eltec}
|
| 29 |
-
ROWS = {"wolne_lektury":
|
| 30 |
CREDIT_LINE = "Książka pochodzi z serwisu Wolne Lektury"
|
| 31 |
# The full URL of each licence version, written out here and not imported, so that changing the builder's table fails.
|
| 32 |
LICENCE_URLS = {
|
|
@@ -37,7 +37,7 @@ LICENCE_URLS = {
|
|
| 37 |
"CC-BY-SA-4.0": "https://creativecommons.org/licenses/by-sa/4.0/",
|
| 38 |
"CC-BY-4.0": "https://creativecommons.org/licenses/by/4.0/",
|
| 39 |
}
|
| 40 |
-
WL_LICENCES = {"public-domain":
|
| 41 |
FORBIDDEN_WORDS = re.compile(r"lawyer|legal advis|solicitor|counsel", re.I) # we write "our assessment"
|
| 42 |
|
| 43 |
|
|
@@ -163,14 +163,15 @@ def test_wl_metadata_is_filled_wherever_wl_has_it(wl_release):
|
|
| 163 |
assert ("Tłumaczenie: " in record["author"]) == bool(record["translators"]), record["id"]
|
| 164 |
assert ("Autorzy oryginału: " in record["author"]) == bool(people and record["translators"]), record["id"]
|
| 165 |
summary = wl_release.evidence["summary"]
|
| 166 |
-
assert summary["title_filled"] == summary["rows"] ==
|
| 167 |
assert summary["translator_filled"] == sum(bool(r["translators"]) for r in wl_release.records)
|
| 168 |
assert summary["original_title_filled"] == 0
|
| 169 |
|
| 170 |
|
| 171 |
def test_the_hand_read_of_the_notes_and_prefaces_sample_refers_to_rows_in_the_sample(wl_release):
|
| 172 |
-
ids = [r["id"] for r in wl_release.records]
|
| 173 |
sample = set(wl.notes_sample(ids))
|
|
|
|
| 174 |
result = wl_release.evidence["notes_and_prefaces"]["hand_sample"]["result"]
|
| 175 |
assert len(sample) == wl_release.evidence["notes_and_prefaces"]["hand_sample"]["rows"] == 40
|
| 176 |
assert set(result["from_the_print_edition"]) <= sample and result["wl_credit_or_note_text"] == 0
|
|
@@ -208,7 +209,7 @@ def test_the_edition_review_of_2026_10_20_covers_98_rows_in_three_disjoint_group
|
|
| 208 |
unnamed = reviewed["no_pd_date_translator_not_named"]
|
| 209 |
assert sorted(by_id[i]["title"] for i in unnamed) == ["Cicha noc", "Opowieść wigilijna"] and set(unnamed) <= set(no_date)
|
| 210 |
after_1955 = evidence["edition_review"]["ids"]["print_after_1955"]
|
| 211 |
-
assert reviewed["not_checked"]["rows"] == len(after_1955) == evidence["edition_review"]["flags"]["print_after_1955"] ==
|
| 212 |
assert list(reviewed["not_checked"]["wl_date_pd_wrong"]) == ["wolne_lektury_2374660"] and "wolne_lektury_2374660" in critical
|
| 213 |
|
| 214 |
|
|
@@ -219,6 +220,23 @@ def test_wl_licensed_records_list_the_people_and_notes_wl_credits(wl_release):
|
|
| 219 |
assert record["credit_notes"] and any(record["credits"].values()), record["id"]
|
| 220 |
|
| 221 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
# eltec_pol
|
| 223 |
|
| 224 |
def test_every_eltec_record_names_the_eltec_record_the_licence_url_and_the_collection(eltec_release):
|
|
|
|
| 26 |
ROOT = Path(__file__).resolve().parents[1]
|
| 27 |
Release = namedtuple("Release", "name build table records evidence stats")
|
| 28 |
BUILDS = {"wolne_lektury": wl, "eltec_pol": eltec}
|
| 29 |
+
ROWS = {"wolne_lektury": 6074, "eltec_pol": 100}
|
| 30 |
CREDIT_LINE = "Książka pochodzi z serwisu Wolne Lektury"
|
| 31 |
# The full URL of each licence version, written out here and not imported, so that changing the builder's table fails.
|
| 32 |
LICENCE_URLS = {
|
|
|
|
| 37 |
"CC-BY-SA-4.0": "https://creativecommons.org/licenses/by-sa/4.0/",
|
| 38 |
"CC-BY-4.0": "https://creativecommons.org/licenses/by/4.0/",
|
| 39 |
}
|
| 40 |
+
WL_LICENCES = {"public-domain": 4557, "LAL-1.3": 1467, "CC-BY-SA-3.0-PL": 34, "CC-BY-SA-3.0": 5, "CC-BY-SA-4.0": 11}
|
| 41 |
FORBIDDEN_WORDS = re.compile(r"lawyer|legal advis|solicitor|counsel", re.I) # we write "our assessment"
|
| 42 |
|
| 43 |
|
|
|
|
| 163 |
assert ("Tłumaczenie: " in record["author"]) == bool(record["translators"]), record["id"]
|
| 164 |
assert ("Autorzy oryginału: " in record["author"]) == bool(people and record["translators"]), record["id"]
|
| 165 |
summary = wl_release.evidence["summary"]
|
| 166 |
+
assert summary["title_filled"] == summary["rows"] == 6074
|
| 167 |
assert summary["translator_filled"] == sum(bool(r["translators"]) for r in wl_release.records)
|
| 168 |
assert summary["original_title_filled"] == 0
|
| 169 |
|
| 170 |
|
| 171 |
def test_the_hand_read_of_the_notes_and_prefaces_sample_refers_to_rows_in_the_sample(wl_release):
|
| 172 |
+
ids = sorted([r["id"] for r in wl_release.records] + list(wl.NOT_FREE)) # the rows when the sample was read
|
| 173 |
sample = set(wl.notes_sample(ids))
|
| 174 |
+
assert not sample & wl.NOT_FREE.keys()
|
| 175 |
result = wl_release.evidence["notes_and_prefaces"]["hand_sample"]["result"]
|
| 176 |
assert len(sample) == wl_release.evidence["notes_and_prefaces"]["hand_sample"]["rows"] == 40
|
| 177 |
assert set(result["from_the_print_edition"]) <= sample and result["wl_credit_or_note_text"] == 0
|
|
|
|
| 209 |
unnamed = reviewed["no_pd_date_translator_not_named"]
|
| 210 |
assert sorted(by_id[i]["title"] for i in unnamed) == ["Cicha noc", "Opowieść wigilijna"] and set(unnamed) <= set(no_date)
|
| 211 |
after_1955 = evidence["edition_review"]["ids"]["print_after_1955"]
|
| 212 |
+
assert reviewed["not_checked"]["rows"] == len(after_1955) == evidence["edition_review"]["flags"]["print_after_1955"] == 1310
|
| 213 |
assert list(reviewed["not_checked"]["wl_date_pd_wrong"]) == ["wolne_lektury_2374660"] and "wolne_lektury_2374660" in critical
|
| 214 |
|
| 215 |
|
|
|
|
| 220 |
assert record["credit_notes"] and any(record["credits"].values()), record["id"]
|
| 221 |
|
| 222 |
|
| 223 |
+
def test_the_bn_check_of_2026_10_20_is_in_the_evidence_and_in_the_sidecar(wl_release):
|
| 224 |
+
evidence, by_id = wl_release.evidence["bn_check"], {r["id"]: r for r in wl_release.records}
|
| 225 |
+
chosen = wl.restoration(wl.read_notes(), wl_release.table)[0]
|
| 226 |
+
assert evidence == json.loads(json.dumps(wl.bn_check(wl_release.records, chosen)))
|
| 227 |
+
assert not wl.NOT_FREE.keys() & by_id.keys() and len(evidence["dropped_as_not_free"]) == 2
|
| 228 |
+
noted = {i for i, r in by_id.items() if "metadata_note" in r}
|
| 229 |
+
assert noted == wl.TRANSLATOR_FIXES.keys() | wl.SOURCE_EDITION_NOTES.keys() and len(noted) == 4
|
| 230 |
+
for row_id, (_, fixed, _) in wl.TRANSLATOR_FIXES.items():
|
| 231 |
+
assert by_id[row_id]["translators"] == fixed and fixed[-1] in by_id[row_id]["author"], row_id
|
| 232 |
+
montaigne = evidence["joint_credit_kept"]["rows"]
|
| 233 |
+
assert [[montaigne[i][k] for k in ("translator_notes", "crediting_cieglewicz", "of_them_greek", "greek_characters",
|
| 234 |
+
"naming_sinko")] for i in sorted(montaigne)] == [
|
| 235 |
+
[862, 0, 0, 0, 0], [466, 336, 4, 674, 0], [622, 0, 0, 0, 0]]
|
| 236 |
+
assert evidence["pseudonym_with_real_name"]["rows"] == 22
|
| 237 |
+
assert not any("Adam [" in t for r in wl_release.records for t in r["translators"])
|
| 238 |
+
|
| 239 |
+
|
| 240 |
# eltec_pol
|
| 241 |
|
| 242 |
def test_every_eltec_record_names_the_eltec_record_the_licence_url_and_the_collection(eltec_release):
|
src/test_wolne_lektury_attribution.py
CHANGED
|
@@ -169,6 +169,33 @@ def test_make_record_fails_closed():
|
|
| 169 |
make_record("x", "t", licence(slug="other"), good)
|
| 170 |
|
| 171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
def test_build_records_needs_every_row_and_header():
|
| 173 |
table = pa.table({"id": ["a", "b"], "text": ["x", "y"]})
|
| 174 |
rows = [licence(row_id="a"), licence(row_id="b", slug="lalka-2")]
|
|
@@ -360,9 +387,11 @@ def test_wl_commentary_counts_the_rows_under_a_komentarz_heading():
|
|
| 360 |
assert wl_commentary(records, {})["rows"] == 0
|
| 361 |
|
| 362 |
|
| 363 |
-
def test_the_hand_sample_result_is_recorded_in_the_evidence():
|
| 364 |
table = pa.table({"id": ["a"], "text": ["Autor\n\nTytuł\n\nTekst."]})
|
| 365 |
-
stats = {"drop_short": 0, "drop_lang": 0, "drop_ocr": 0, "drop_dup": 0, "drop_eltec_dup": 63, "drop_rights": 2
|
|
|
|
|
|
|
| 366 |
hand = build_evidence(table, [record()], stats, *NO_NOTES)["notes_and_prefaces"]["hand_sample"]
|
| 367 |
assert hand["rows"] == NOTES_SAMPLE_SIZE == 40 and hand["result"] == build.NOTES_SAMPLE_RESULT
|
| 368 |
assert "450" in hand["read"] and build.NOTES_SAMPLE_RESULT["wl_credit_or_note_text"] == 0
|
|
@@ -384,13 +413,15 @@ def test_summary_counts_authors_translators_and_licences():
|
|
| 384 |
assert counts["wl_url_names_another_version"] == 1
|
| 385 |
|
| 386 |
|
| 387 |
-
def test_build_evidence_lists_the_steps_with_their_drop_counts():
|
| 388 |
table = pa.table({"id": ["a"], "text": ["Autor\n\nTytuł\n\nTekst."]})
|
| 389 |
-
stats = {"drop_short": 0, "drop_lang": 0, "drop_ocr": 0, "drop_dup": 0, "drop_eltec_dup": 63, "drop_rights": 2
|
|
|
|
|
|
|
| 390 |
evidence = build_evidence(table, [record()], stats, *NO_NOTES)
|
| 391 |
steps = evidence["normalisation_steps"]
|
| 392 |
assert len(steps) == len(NORMALISATION_STEPS) and all("stat" not in step for step in steps)
|
| 393 |
-
assert sorted(s["rows_dropped"] for s in steps if "rows_dropped" in s) == [0, 0, 0, 0, 2, 63]
|
| 394 |
assert [s["changes_text"] for s in steps if s["changes_text"] != "no"] == [
|
| 395 |
"not known", "leading and trailing whitespace only", "yes, for the rows whose book has them"]
|
| 396 |
assert "notes" in [s for s in steps if s["changes_text"].startswith("yes")][0]["step"]
|
|
@@ -398,9 +429,54 @@ def test_build_evidence_lists_the_steps_with_their_drop_counts():
|
|
| 398 |
assert evidence["footnote_check"] == footnote_check(*NO_NOTES)
|
| 399 |
assert evidence["wl_glosses_in_main_text"] == text_glosses_check()
|
| 400 |
assert evidence["text_digest"] == build.TEXT_DIGEST and evidence["summary"]["rows"] == 1
|
|
|
|
| 401 |
json.dumps(evidence) # serialisable
|
| 402 |
|
| 403 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 404 |
def test_footnote_check_counts_what_was_restored_and_lists_what_was_left_out():
|
| 405 |
chosen = {"a": {"pa": ["Jeden.", "Dwa."]}, "b": {"pa": ["Trzy."], "pt": ["Cztery."]}}
|
| 406 |
left_out = {"empty": [("c", "pa", 0)], "in_text": [], "translator_without_pd_date": [("d", "pt", 3)],
|
|
|
|
| 169 |
make_record("x", "t", licence(slug="other"), good)
|
| 170 |
|
| 171 |
|
| 172 |
+
def test_make_record_corrects_the_translators_in_translator_fixes_and_says_so(monkeypatch):
|
| 173 |
+
monkeypatch.setattr(build, "TRANSLATOR_FIXES", {"x": (["Leon Urlich"], ["Leon Ulrich"], "BN record 1."),
|
| 174 |
+
"y": ([], ["Aniela Zagórska"], "BN record 2.")})
|
| 175 |
+
fixed = make_record("x", "t", licence(), parse_header(rdf(translators=("Urlich, Leon",))))
|
| 176 |
+
assert fixed["translators"] == ["Leon Ulrich"]
|
| 177 |
+
assert fixed["author"] == "Autorzy oryginału: Bolesław Prus; Tłumaczenie: Leon Ulrich"
|
| 178 |
+
assert fixed["metadata_note"] == ("`translators` corrected from Wolne Lektury's header, which gives \"Leon Urlich\". "
|
| 179 |
+
"BN record 1.")
|
| 180 |
+
added = make_record("y", "t", licence(), parse_header(rdf()))
|
| 181 |
+
assert added["translators"] == ["Aniela Zagórska"]
|
| 182 |
+
assert added["metadata_note"].startswith("`translators` corrected from Wolne Lektury's header, which gives none.")
|
| 183 |
+
other = make_record("z", "t", licence(), parse_header(rdf(translators=("Urlich, Leon",))))
|
| 184 |
+
assert other["translators"] == ["Leon Urlich"] and "metadata_note" not in other
|
| 185 |
+
# WL's header no longer gives the translators the fix was written for
|
| 186 |
+
with pytest.raises(SystemExit, match="review TRANSLATOR_FIXES"):
|
| 187 |
+
make_record("x", "t", licence(), parse_header(rdf(translators=("Ulrich, Leon",))))
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
def test_make_record_notes_a_wrong_print_edition_and_joins_it_to_a_translator_fix(monkeypatch):
|
| 191 |
+
monkeypatch.setattr(build, "SOURCE_EDITION_NOTES", {"x": "Another book.", "y": "Another book."})
|
| 192 |
+
monkeypatch.setattr(build, "TRANSLATOR_FIXES", {"y": ([], ["Anna Nowak"], "BN record 3.")})
|
| 193 |
+
noted = make_record("x", "t", licence(), parse_header(rdf()))
|
| 194 |
+
assert noted["metadata_note"] == "Another book." and noted["source_edition"] == "Bolesław Prus, Lalka, Warszawa 1890."
|
| 195 |
+
both = make_record("y", "t", licence(), parse_header(rdf()))
|
| 196 |
+
assert both["metadata_note"].endswith("BN record 3. Another book.")
|
| 197 |
+
|
| 198 |
+
|
| 199 |
def test_build_records_needs_every_row_and_header():
|
| 200 |
table = pa.table({"id": ["a", "b"], "text": ["x", "y"]})
|
| 201 |
rows = [licence(row_id="a"), licence(row_id="b", slug="lalka-2")]
|
|
|
|
| 387 |
assert wl_commentary(records, {})["rows"] == 0
|
| 388 |
|
| 389 |
|
| 390 |
+
def test_the_hand_sample_result_is_recorded_in_the_evidence(monkeypatch):
|
| 391 |
table = pa.table({"id": ["a"], "text": ["Autor\n\nTytuł\n\nTekst."]})
|
| 392 |
+
stats = {"drop_short": 0, "drop_lang": 0, "drop_ocr": 0, "drop_dup": 0, "drop_eltec_dup": 63, "drop_rights": 2,
|
| 393 |
+
"drop_not_free": 2}
|
| 394 |
+
monkeypatch.setattr(build, "bn_check", lambda records, chosen: {}) # it names rows of the released table
|
| 395 |
hand = build_evidence(table, [record()], stats, *NO_NOTES)["notes_and_prefaces"]["hand_sample"]
|
| 396 |
assert hand["rows"] == NOTES_SAMPLE_SIZE == 40 and hand["result"] == build.NOTES_SAMPLE_RESULT
|
| 397 |
assert "450" in hand["read"] and build.NOTES_SAMPLE_RESULT["wl_credit_or_note_text"] == 0
|
|
|
|
| 413 |
assert counts["wl_url_names_another_version"] == 1
|
| 414 |
|
| 415 |
|
| 416 |
+
def test_build_evidence_lists_the_steps_with_their_drop_counts(monkeypatch):
|
| 417 |
table = pa.table({"id": ["a"], "text": ["Autor\n\nTytuł\n\nTekst."]})
|
| 418 |
+
stats = {"drop_short": 0, "drop_lang": 0, "drop_ocr": 0, "drop_dup": 0, "drop_eltec_dup": 63, "drop_rights": 2,
|
| 419 |
+
"drop_not_free": 2}
|
| 420 |
+
monkeypatch.setattr(build, "bn_check", lambda records, chosen: {}) # it names rows of the released table
|
| 421 |
evidence = build_evidence(table, [record()], stats, *NO_NOTES)
|
| 422 |
steps = evidence["normalisation_steps"]
|
| 423 |
assert len(steps) == len(NORMALISATION_STEPS) and all("stat" not in step for step in steps)
|
| 424 |
+
assert sorted(s["rows_dropped"] for s in steps if "rows_dropped" in s) == [0, 0, 0, 0, 2, 2, 63]
|
| 425 |
assert [s["changes_text"] for s in steps if s["changes_text"] != "no"] == [
|
| 426 |
"not known", "leading and trailing whitespace only", "yes, for the rows whose book has them"]
|
| 427 |
assert "notes" in [s for s in steps if s["changes_text"].startswith("yes")][0]["step"]
|
|
|
|
| 429 |
assert evidence["footnote_check"] == footnote_check(*NO_NOTES)
|
| 430 |
assert evidence["wl_glosses_in_main_text"] == text_glosses_check()
|
| 431 |
assert evidence["text_digest"] == build.TEXT_DIGEST and evidence["summary"]["rows"] == 1
|
| 432 |
+
assert evidence["bn_check"] == {}
|
| 433 |
json.dumps(evidence) # serialisable
|
| 434 |
|
| 435 |
|
| 436 |
+
def bn_rows(monkeypatch, **named):
|
| 437 |
+
"""Records a, b and c (b translated by Adam M-ski) and BN_CHECK's dicts emptied, except `named`."""
|
| 438 |
+
for name in ("TRANSLATOR_FIXES", "SOURCE_EDITION_NOTES", "MONTAIGNE", "WL_DATE_PD_EARLY", "WL_RIGHTS_DEATH_YEARS"):
|
| 439 |
+
monkeypatch.setattr(build, name, named.get(name, {}))
|
| 440 |
+
monkeypatch.setattr(build, "NOT_FREE", named.get("NOT_FREE", {"gone": "why"}))
|
| 441 |
+
records = [record(row_id="a"), record(translators=("M-ski, Adam [Zofia Trzeszczkowska]",), row_id="b"),
|
| 442 |
+
record(row_id="c")]
|
| 443 |
+
records[0]["wl_rights"] = "Domena publiczna - Jerzy Żuławski zm. 1914"
|
| 444 |
+
return records
|
| 445 |
+
|
| 446 |
+
|
| 447 |
+
def test_bn_check_counts_the_montaigne_credits_and_the_pseudonym(monkeypatch):
|
| 448 |
+
records = bn_rows(monkeypatch, MONTAIGNE={"a": "Księga pierwsza", "c": "Księga trzecia"},
|
| 449 |
+
WL_RIGHTS_DEATH_YEARS={"Jerzy Żuławski zm. 1914": 1915})
|
| 450 |
+
credit = build.MONTAIGNE_CREDIT
|
| 451 |
+
chosen = {"a": {"pa": [f"x {credit}"], "pt": [f"Horacy, tłum. {credit}", f"(gr.) --- y; {credit}", "Sinko",
|
| 452 |
+
"Cicero"]}}
|
| 453 |
+
check = build.bn_check(records, chosen)
|
| 454 |
+
assert check["dropped_as_not_free"] == {"gone": "why"}
|
| 455 |
+
assert check["joint_credit_kept"]["rows"] == {
|
| 456 |
+
"a": {"book": "Księga pierwsza", "translator_notes": 4, "crediting_cieglewicz": 2, "of_them_greek": 1,
|
| 457 |
+
"greek_characters": len(f"(gr.) --- y; {credit}"), "naming_sinko": 1},
|
| 458 |
+
"c": {"book": "Księga trzecia", "translator_notes": 0, "crediting_cieglewicz": 0, "of_them_greek": 0,
|
| 459 |
+
"greek_characters": 0, "naming_sinko": 0}}
|
| 460 |
+
assert check["pseudonym_with_real_name"]["rows"] == 1
|
| 461 |
+
assert check["kept_as_wolne_lektury_wrote"]["death_year_in_wl_rights"] == {
|
| 462 |
+
"Jerzy Żuławski zm. 1914": {"bn_death_year": 1915, "ids": ["a"]}}
|
| 463 |
+
json.dumps(check)
|
| 464 |
+
|
| 465 |
+
|
| 466 |
+
@pytest.mark.parametrize("named", [
|
| 467 |
+
{"TRANSLATOR_FIXES": {"gone": ([], [], "")}}, {"SOURCE_EDITION_NOTES": {"gone": ""}},
|
| 468 |
+
{"MONTAIGNE": {"gone": ""}}, {"WL_DATE_PD_EARLY": {"gone": ""}}, {"NOT_FREE": {"a": "why"}}])
|
| 469 |
+
def test_bn_check_fails_on_a_row_not_in_the_table_or_a_kept_not_free_row(monkeypatch, named):
|
| 470 |
+
with pytest.raises(SystemExit, match="bn_check names rows"):
|
| 471 |
+
build.bn_check(bn_rows(monkeypatch, **named), {})
|
| 472 |
+
|
| 473 |
+
|
| 474 |
+
def test_bn_check_fails_on_a_death_year_text_in_no_rights_line(monkeypatch):
|
| 475 |
+
records = bn_rows(monkeypatch, WL_RIGHTS_DEATH_YEARS={"Jerzy Żuławski zm. 1914": 1915, "Nikt zm. 1900": 1901})
|
| 476 |
+
with pytest.raises(SystemExit, match="WL_RIGHTS_DEATH_YEARS"):
|
| 477 |
+
build.bn_check(records, {})
|
| 478 |
+
|
| 479 |
+
|
| 480 |
def test_footnote_check_counts_what_was_restored_and_lists_what_was_left_out():
|
| 481 |
chosen = {"a": {"pa": ["Jeden.", "Dwa."]}, "b": {"pa": ["Trzy."], "pt": ["Cztery."]}}
|
| 482 |
left_out = {"empty": [("c", "pa", 0)], "in_text": [], "translator_without_pd_date": [("d", "pt", 3)],
|
src/test_wolne_lektury_contract.py
CHANGED
|
@@ -16,11 +16,10 @@ sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
| 16 |
|
| 17 |
from attribution_common import text_digest
|
| 18 |
from build_eltec_pol_attribution import TEXT_DIGEST as ELTEC_TEXT_DIGEST
|
| 19 |
-
from clean_wolne_lektury import
|
| 20 |
-
relabel, wl_title)
|
| 21 |
from shingle_containment import best_containment, strip_wl_footer
|
| 22 |
from sources import SOURCES
|
| 23 |
-
from wolne_lektury_licences import LABELS, LICENCES, MANUAL, PUBLIC_DOMAIN, UNLICENSED
|
| 24 |
|
| 25 |
# Hand-checked: only part of each is in its ELTeC novel, so they stay (see the findings entry).
|
| 26 |
PARTIAL_IDS = {"wolne_lektury_2375475", "wolne_lektury_2375476", "wolne_lektury_2376242"}
|
|
@@ -47,15 +46,16 @@ def test_release_has_no_eltec_duplicates_and_matches_stats():
|
|
| 47 |
dropped = {p["wl_id"] for p in pairs if p["action"] == "drop"}
|
| 48 |
partial = {p["wl_id"] for p in pairs if p["action"] == "keep_partial"}
|
| 49 |
|
| 50 |
-
assert table.num_rows == len(ids) == stats["kept"] ==
|
| 51 |
assert len(dropped) == stats["drop_eltec_dup"] == 63
|
| 52 |
assert len(UNLICENSED) == stats["drop_rights"] == 2 and not UNLICENSED & ids
|
|
|
|
| 53 |
assert partial == PARTIAL_IDS
|
| 54 |
assert not dropped & ids and partial <= ids
|
| 55 |
assert all(float(p["score"]) >= DROP_AT for p in pairs if p["action"] == "drop")
|
| 56 |
assert all(REPORT_AT <= float(p["score"]) < DROP_AT for p in pairs if p["action"] == "keep_partial")
|
| 57 |
assert all(p["eltec_id"].startswith("eltec_pol_") for p in pairs)
|
| 58 |
-
drops = ("drop_short", "drop_lang", "drop_dup", "drop_ocr", "drop_eltec_dup", "drop_rights")
|
| 59 |
assert stats["read"] - sum(stats[k] for k in drops) == stats["kept"]
|
| 60 |
assert pc.sum(table.column("token_count")).as_py() == stats["tokens"]
|
| 61 |
assert pc.sum(pc.utf8_length(table.column("text"))).as_py() == stats["chars"]
|
|
@@ -111,11 +111,12 @@ def test_every_row_carries_its_own_wolne_lektury_licence():
|
|
| 111 |
assert tome["license"] == PUBLIC_DOMAIN and "Boy-Żeleński" in tome["wl_rights"]
|
| 112 |
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
|
|
|
| 119 |
|
| 120 |
|
| 121 |
def test_relabel_fails_closed(tmp_path):
|
|
@@ -138,6 +139,7 @@ def test_datasheet_counts_match_stats():
|
|
| 138 |
assert f"| {stats['kept']:,} | {stats['chars']:,} | {stats['tokens']:,} |" in card
|
| 139 |
assert f"{stats['drop_eltec_dup']} " in card and "eltec_pol" in card
|
| 140 |
assert f"{stats['drop_rights']} documents" in card and "Kozioł" in card
|
|
|
|
| 141 |
assert f"; {len(MANUAL)} were matched by hand" in card
|
| 142 |
for label, count in stats["licenses"].items():
|
| 143 |
assert f"| `{label}` | {count:,} |" in card
|
|
|
|
| 16 |
|
| 17 |
from attribution_common import text_digest
|
| 18 |
from build_eltec_pol_attribution import TEXT_DIGEST as ELTEC_TEXT_DIGEST
|
| 19 |
+
from clean_wolne_lektury import DATA, DROP_AT, ELTEC, PAIRS, REPORT_AT, build, drop_listed, relabel, wl_title
|
|
|
|
| 20 |
from shingle_containment import best_containment, strip_wl_footer
|
| 21 |
from sources import SOURCES
|
| 22 |
+
from wolne_lektury_licences import LABELS, LICENCES, MANUAL, NOT_FREE, PUBLIC_DOMAIN, UNLICENSED
|
| 23 |
|
| 24 |
# Hand-checked: only part of each is in its ELTeC novel, so they stay (see the findings entry).
|
| 25 |
PARTIAL_IDS = {"wolne_lektury_2375475", "wolne_lektury_2375476", "wolne_lektury_2376242"}
|
|
|
|
| 46 |
dropped = {p["wl_id"] for p in pairs if p["action"] == "drop"}
|
| 47 |
partial = {p["wl_id"] for p in pairs if p["action"] == "keep_partial"}
|
| 48 |
|
| 49 |
+
assert table.num_rows == len(ids) == stats["kept"] == 6_074
|
| 50 |
assert len(dropped) == stats["drop_eltec_dup"] == 63
|
| 51 |
assert len(UNLICENSED) == stats["drop_rights"] == 2 and not UNLICENSED & ids
|
| 52 |
+
assert len(NOT_FREE) == stats["drop_not_free"] == 2 and not NOT_FREE.keys() & ids
|
| 53 |
assert partial == PARTIAL_IDS
|
| 54 |
assert not dropped & ids and partial <= ids
|
| 55 |
assert all(float(p["score"]) >= DROP_AT for p in pairs if p["action"] == "drop")
|
| 56 |
assert all(REPORT_AT <= float(p["score"]) < DROP_AT for p in pairs if p["action"] == "keep_partial")
|
| 57 |
assert all(p["eltec_id"].startswith("eltec_pol_") for p in pairs)
|
| 58 |
+
drops = ("drop_short", "drop_lang", "drop_dup", "drop_ocr", "drop_eltec_dup", "drop_rights", "drop_not_free")
|
| 59 |
assert stats["read"] - sum(stats[k] for k in drops) == stats["kept"]
|
| 60 |
assert pc.sum(table.column("token_count")).as_py() == stats["tokens"]
|
| 61 |
assert pc.sum(pc.utf8_length(table.column("text"))).as_py() == stats["chars"]
|
|
|
|
| 111 |
assert tome["license"] == PUBLIC_DOMAIN and "Boy-Żeleński" in tome["wl_rights"]
|
| 112 |
|
| 113 |
|
| 114 |
+
@pytest.mark.parametrize("ids, name", [(UNLICENSED, "UNLICENSED"), (NOT_FREE, "NOT_FREE")])
|
| 115 |
+
def test_drop_listed_fails_closed(ids, name):
|
| 116 |
+
rows = pa.table({"id": ["a", *sorted(ids)]})
|
| 117 |
+
assert drop_listed(rows, ids, name).column("id").to_pylist() == ["a"]
|
| 118 |
+
with pytest.raises(SystemExit, match=name):
|
| 119 |
+
drop_listed(rows.slice(0, 2), ids, name) # one listed id is missing
|
| 120 |
|
| 121 |
|
| 122 |
def test_relabel_fails_closed(tmp_path):
|
|
|
|
| 139 |
assert f"| {stats['kept']:,} | {stats['chars']:,} | {stats['tokens']:,} |" in card
|
| 140 |
assert f"{stats['drop_eltec_dup']} " in card and "eltec_pol" in card
|
| 141 |
assert f"{stats['drop_rights']} documents" in card and "Kozioł" in card
|
| 142 |
+
assert f"{stats['drop_not_free']} more are dropped" in card and "Frycz (d. 1960)" in card and "born in 1932" in card
|
| 143 |
assert f"; {len(MANUAL)} were matched by hand" in card
|
| 144 |
for label, count in stats["licenses"].items():
|
| 145 |
assert f"| `{label}` | {count:,} |" in card
|
src/test_wolne_lektury_licences.py
CHANGED
|
@@ -170,6 +170,16 @@ def test_unlicensed_rows_are_left_out_until_they_label_cleanly(tmp_path, monkeyp
|
|
| 170 |
assert problems == ["now-clean: in UNLICENSED but labels as {'public-domain'}"]
|
| 171 |
|
| 172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
def test_fetch_takes_media_urls_from_the_api_entry(tmp_path, monkeypatch):
|
| 174 |
for part in ("hdr", "head", "tail"):
|
| 175 |
(tmp_path / part).mkdir()
|
|
|
|
| 170 |
assert problems == ["now-clean: in UNLICENSED but labels as {'public-domain'}"]
|
| 171 |
|
| 172 |
|
| 173 |
+
def test_not_free_rows_are_left_out_while_they_label_public_domain(tmp_path, monkeypatch):
|
| 174 |
+
cache = _cache(tmp_path, {"to-lubie": (PART, "Domena publiczna - Adam Mickiewicz zm. 1855"),
|
| 175 |
+
"ballady": (COLLECTION, "Licencja Wolnej Sztuki 1.3")})
|
| 176 |
+
monkeypatch.setattr(wolne_lektury_licences, "NOT_FREE", {"joint": "why", "relicensed": "why"})
|
| 177 |
+
rows = [{"id": "joint", "text": PART}, {"id": "relicensed", "text": COLLECTION}]
|
| 178 |
+
out, problems = label_rows(rows, cache)
|
| 179 |
+
assert out == []
|
| 180 |
+
assert problems == ["relicensed: in NOT_FREE but labels as {'LAL-1.3'}"]
|
| 181 |
+
|
| 182 |
+
|
| 183 |
def test_fetch_takes_media_urls_from_the_api_entry(tmp_path, monkeypatch):
|
| 184 |
for part in ("hdr", "head", "tail"):
|
| 185 |
(tmp_path / part).mkdir()
|
src/test_wolne_lektury_notes.py
CHANGED
|
@@ -481,11 +481,11 @@ def test_the_notes_file_is_the_pinned_one_and_lf_json_lines_sorted_by_licences_o
|
|
| 481 |
assert all(re.fullmatch(r"[0-9a-f]{64}", r["xml_sha256"]) and (r["pa"] or r["pt"]) for r in rows)
|
| 482 |
|
| 483 |
|
| 484 |
-
def
|
| 485 |
_, notes = table_and_notes
|
| 486 |
-
assert len(notes) ==
|
| 487 |
-
assert sum(len(r["pa"]) for r in notes.values()) ==
|
| 488 |
-
assert sum(bool(r["pa"]) for r in notes.values()) ==
|
| 489 |
|
| 490 |
|
| 491 |
def test_the_notes_file_holds_the_licences_slug_of_each_row_and_wl_s_public_domain_date():
|
|
@@ -503,7 +503,7 @@ def test_the_released_text_minus_the_appended_sections_is_the_text_before_the_no
|
|
| 503 |
texts = released_table.column("text").to_pylist()
|
| 504 |
before = [t[:appended_start(t)] if i in chosen else t for i, t in zip(ids, texts, strict=True)]
|
| 505 |
assert text_digest(released_table.set_column(1, "text", pa.array(before, pa.string()))) == TEXT_DIGEST_WITHOUT_GLOSSES
|
| 506 |
-
# the digest covers the 5,
|
| 507 |
# the notes (TEXT_DIGEST_BEFORE, minus the two glosses of TEXT_GLOSSES; src/clean_wolne_lektury.py checks both)
|
| 508 |
|
| 509 |
|
|
@@ -522,7 +522,7 @@ def test_each_changed_row_ends_with_exactly_its_sections_and_no_row_has_a_footer
|
|
| 522 |
chosen, _, _ = restoration(notes, released_table)
|
| 523 |
ids = released_table.column("id").to_pylist()
|
| 524 |
texts = dict(zip(ids, released_table.column("text").to_pylist(), strict=True))
|
| 525 |
-
assert len(chosen) ==
|
| 526 |
for row_id, kinds in chosen.items():
|
| 527 |
text = texts[row_id]
|
| 528 |
assert text.endswith("\n\n" + sections(kinds)), row_id
|
|
@@ -556,7 +556,7 @@ def test_each_section_is_numbered_from_one_and_holds_the_notes_of_the_notes_file
|
|
| 556 |
parsed[tag].append(note)
|
| 557 |
assert parsed == expected, row_id
|
| 558 |
changed += 1
|
| 559 |
-
assert changed ==
|
| 560 |
|
| 561 |
|
| 562 |
def test_a_section_heading_is_not_added_for_a_kind_a_row_has_no_notes_of(table_and_notes):
|
|
@@ -586,9 +586,9 @@ def test_the_token_counts_of_the_changed_rows_are_recounted_and_the_stats_add_up
|
|
| 586 |
tokens = released_table.column("token_count").to_pylist()
|
| 587 |
ids = released_table.column("id").to_pylist()
|
| 588 |
changed = [k for k, i in enumerate(ids) if i in notes or i in TEXT_GLOSSES]
|
| 589 |
-
assert len(changed) == stats["notes_rows"] + len(TEXT_GLOSSES) ==
|
| 590 |
-
# ponytail: the other 5,
|
| 591 |
-
# all 6,
|
| 592 |
assert wn.token_counts([texts[k] for k in changed]) == [tokens[k] for k in changed]
|
| 593 |
assert sum(map(len, texts)) == stats["chars"] and sum(tokens) == stats["tokens"]
|
| 594 |
assert stats["notes_sha256"] == NOTES_SHA256 and stats["kept"] == len(ids)
|
|
@@ -602,7 +602,7 @@ def test_the_evidence_footnote_check_is_what_the_notes_file_and_the_table_give(t
|
|
| 602 |
assert evidence["footnote_check"] == json.loads(json.dumps(build.footnote_check(chosen, left_out, stripped)))
|
| 603 |
check = evidence["footnote_check"]
|
| 604 |
assert check["status"] == "restored" and check["notes_file_sha256"] == NOTES_SHA256 == sha256_file(NOTES)
|
| 605 |
-
assert check["restored"] == {"pa": {"rows":
|
| 606 |
"pt": {"rows": 168, "notes": 10838, "characters": 1923101}}
|
| 607 |
assert [len(check["left_out"][k]["notes"]) for k in ("empty", "in_text", "translator_without_pd_date",
|
| 608 |
"wl_gloss_only")] == [2, 3, 0, 0]
|
|
|
|
| 481 |
assert all(re.fullmatch(r"[0-9a-f]{64}", r["xml_sha256"]) and (r["pa"] or r["pt"]) for r in rows)
|
| 482 |
|
| 483 |
|
| 484 |
+
def test_the_notes_file_has_459_rows_and_the_notes_counted_in_the_evidence(table_and_notes):
|
| 485 |
_, notes = table_and_notes
|
| 486 |
+
assert len(notes) == 459
|
| 487 |
+
assert sum(len(r["pa"]) for r in notes.values()) == 8104 and sum(len(r["pt"]) for r in notes.values()) == 10838
|
| 488 |
+
assert sum(bool(r["pa"]) for r in notes.values()) == 336 + 0 and sum(bool(r["pt"]) for r in notes.values()) == 168
|
| 489 |
|
| 490 |
|
| 491 |
def test_the_notes_file_holds_the_licences_slug_of_each_row_and_wl_s_public_domain_date():
|
|
|
|
| 503 |
texts = released_table.column("text").to_pylist()
|
| 504 |
before = [t[:appended_start(t)] if i in chosen else t for i, t in zip(ids, texts, strict=True)]
|
| 505 |
assert text_digest(released_table.set_column(1, "text", pa.array(before, pa.string()))) == TEXT_DIGEST_WITHOUT_GLOSSES
|
| 506 |
+
# the digest covers the 5,615 rows without notes too: they are byte-identical to the text the cleaning had before
|
| 507 |
# the notes (TEXT_DIGEST_BEFORE, minus the two glosses of TEXT_GLOSSES; src/clean_wolne_lektury.py checks both)
|
| 508 |
|
| 509 |
|
|
|
|
| 522 |
chosen, _, _ = restoration(notes, released_table)
|
| 523 |
ids = released_table.column("id").to_pylist()
|
| 524 |
texts = dict(zip(ids, released_table.column("text").to_pylist(), strict=True))
|
| 525 |
+
assert len(chosen) == 459 and set(chosen) <= set(notes)
|
| 526 |
for row_id, kinds in chosen.items():
|
| 527 |
text = texts[row_id]
|
| 528 |
assert text.endswith("\n\n" + sections(kinds)), row_id
|
|
|
|
| 556 |
parsed[tag].append(note)
|
| 557 |
assert parsed == expected, row_id
|
| 558 |
changed += 1
|
| 559 |
+
assert changed == 459
|
| 560 |
|
| 561 |
|
| 562 |
def test_a_section_heading_is_not_added_for_a_kind_a_row_has_no_notes_of(table_and_notes):
|
|
|
|
| 586 |
tokens = released_table.column("token_count").to_pylist()
|
| 587 |
ids = released_table.column("id").to_pylist()
|
| 588 |
changed = [k for k, i in enumerate(ids) if i in notes or i in TEXT_GLOSSES]
|
| 589 |
+
assert len(changed) == stats["notes_rows"] + len(TEXT_GLOSSES) == 459 + 2
|
| 590 |
+
# ponytail: the other 5,613 token counts are those of v0.2.5, whose texts the digest test pins; recounting
|
| 591 |
+
# all 6,074 texts takes minutes
|
| 592 |
assert wn.token_counts([texts[k] for k in changed]) == [tokens[k] for k in changed]
|
| 593 |
assert sum(map(len, texts)) == stats["chars"] and sum(tokens) == stats["tokens"]
|
| 594 |
assert stats["notes_sha256"] == NOTES_SHA256 and stats["kept"] == len(ids)
|
|
|
|
| 602 |
assert evidence["footnote_check"] == json.loads(json.dumps(build.footnote_check(chosen, left_out, stripped)))
|
| 603 |
check = evidence["footnote_check"]
|
| 604 |
assert check["status"] == "restored" and check["notes_file_sha256"] == NOTES_SHA256 == sha256_file(NOTES)
|
| 605 |
+
assert check["restored"] == {"pa": {"rows": 336, "notes": 8099, "characters": 1854631},
|
| 606 |
"pt": {"rows": 168, "notes": 10838, "characters": 1923101}}
|
| 607 |
assert [len(check["left_out"][k]["notes"]) for k in ("empty", "in_text", "translator_without_pd_date",
|
| 608 |
"wl_gloss_only")] == [2, 3, 0, 0]
|
src/wolne_lektury_licences.py
CHANGED
|
@@ -86,6 +86,21 @@ UNLICENSED = {
|
|
| 86 |
# Horace, tr. Paweł Kozioł: "CC BY-SA" with no version or URL; its WL footer says public domain
|
| 87 |
"wolne_lektury_2373208", # do-taliarcha
|
| 88 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
|
| 91 |
def normalise(text: str) -> str:
|
|
@@ -248,6 +263,10 @@ def label_rows(rows: list[dict], cache: Path) -> tuple[list[dict], list[str]]:
|
|
| 248 |
found[slug] = (classify(rights, urls), rights, " ".join(urls))
|
| 249 |
labels = {label for label, _, _ in found.values()}
|
| 250 |
unusable = not hits or None in labels or len(labels) > 1 # identical texts must agree on the licence
|
|
|
|
|
|
|
|
|
|
|
|
|
| 251 |
if row["id"] in UNLICENSED:
|
| 252 |
if not unusable:
|
| 253 |
problems.append(f"{row['id']}: in UNLICENSED but labels as {labels}")
|
|
|
|
| 86 |
# Horace, tr. Paweł Kozioł: "CC BY-SA" with no version or URL; its WL footer says public domain
|
| 87 |
"wolne_lektury_2373208", # do-taliarcha
|
| 88 |
}
|
| 89 |
+
# Rows that Wolne Lektury marks public domain although their translation is not free, found by the check against the
|
| 90 |
+
# National Library's catalogue (BN) and dropped by the maintainer's decision of 2026-10-20 (polish-dynaword-v2#109).
|
| 91 |
+
# They are left out like UNLICENSED, and src/clean_wolne_lektury.py drops them. A row here that no longer labels public
|
| 92 |
+
# domain fails the run, so the drop is reviewed again.
|
| 93 |
+
NOT_FREE = {
|
| 94 |
+
"wolne_lektury_2375754": "Nietzsche, \"Wola mocy\" (nietzsche-wola-mocy): a joint translation by Stefan Frycz and "
|
| 95 |
+
"Konrad Drzewiecki (BN record 1826277, Warszawa: J. Mortkowicz, 1911: \"przeł. Stefan Frycz "
|
| 96 |
+
"i Konrad Drzewiecki\"; \"Frycz, Stefan (1876-1960)\"). Wolne Lektury counts Drzewiecki "
|
| 97 |
+
"alone (d. 1922); a joint work is protected for 70 years after the last co-author's death, "
|
| 98 |
+
"so to the end of 2030.",
|
| 99 |
+
"wolne_lektury_2371705": "Wells, \"Wehikuł czasu\" (wells-wehikul-czasu): transcribed from the Ossolineum print "
|
| 100 |
+
"(Wrocław 1985), whose translation was revised by an editor born in 1932 (BN record 1216473: "
|
| 101 |
+
"\"przeł. [z ang.] Feliks Wermiński ; przekł. zweryfikował i oprac. Juliusz K. Palczewski\"; "
|
| 102 |
+
"\"Palczewski, Juliusz K. (1932- )\"). Wolne Lektury credits Wermiński (d. 1917) only.",
|
| 103 |
+
}
|
| 104 |
|
| 105 |
|
| 106 |
def normalise(text: str) -> str:
|
|
|
|
| 263 |
found[slug] = (classify(rights, urls), rights, " ".join(urls))
|
| 264 |
labels = {label for label, _, _ in found.values()}
|
| 265 |
unusable = not hits or None in labels or len(labels) > 1 # identical texts must agree on the licence
|
| 266 |
+
if row["id"] in NOT_FREE:
|
| 267 |
+
if labels != {PUBLIC_DOMAIN}:
|
| 268 |
+
problems.append(f"{row['id']}: in NOT_FREE but labels as {labels}")
|
| 269 |
+
continue
|
| 270 |
if row["id"] in UNLICENSED:
|
| 271 |
if not unusable:
|
| 272 |
problems.append(f"{row['id']}: in UNLICENSED but labels as {labels}")
|
src/wolne_lektury_notes.py
CHANGED
|
@@ -63,7 +63,7 @@ from shingle_containment import strip_wl_footer # noqa: E402
|
|
| 63 |
from wolne_lektury_licences import DATA, PUBLIC_DOMAIN, read_licences # noqa: E402
|
| 64 |
|
| 65 |
NOTES = DATA / "wolne_lektury.notes.jsonl"
|
| 66 |
-
NOTES_SHA256 = "
|
| 67 |
HEADINGS = {"pa": "Przypisy autora", "pt": "Przypisy tłumacza"} # in this order
|
| 68 |
OWNER = {"pa": "author's", "pt": "translator's"}
|
| 69 |
LEFT_OUT = {"pe", "pr", "extra", "uwaga"} # WL's editorial notes and remarks, never part of a note
|
|
@@ -71,14 +71,15 @@ DC_DATE_PD = "{http://purl.org/dc/elements/1.1/}date.pd"
|
|
| 71 |
PARAGRAPH = "\n\n"
|
| 72 |
NO_XML = {"korczak-jak-kochac-dziecko-dziecko-w-rodzinie"} # WL serves no XML for this book (404, 2026-10-20)
|
| 73 |
# text_digest of the wolne_lektury table before the glosses and the notes: the clean output of the v0.2.5 Parquet at
|
| 74 |
-
# 6b7886e
|
| 75 |
-
|
|
|
|
| 76 |
# The glosses of WL's editors in the main text: what without_glosses() finds in the table above (2026-10-20).
|
| 77 |
# strip_text_glosses() fails unless it finds exactly these.
|
| 78 |
TEXT_GLOSSES = {"wolne_lektury_2372131": ["[słońce – przyp. WL]"],
|
| 79 |
"wolne_lektury_2377006": ["[mówi jednocześnie z dalszymi kwestiami Millera i Ferdynanda — Red.WL]"]}
|
| 80 |
# text_digest of that table after strip_text_glosses(): the text the notes are added to
|
| 81 |
-
TEXT_DIGEST_WITHOUT_GLOSSES = "
|
| 82 |
# (row id, tag, position among the book's notes of that tag) of the notes the export kept in the text: the whole note
|
| 83 |
# is in the row's text and not in the book's text outside its notes (2026-10-20). A note that the main text only
|
| 84 |
# quotes, or paraphrases in brackets (the four Lithuanian glosses of wolne_lektury_2376761), is not the note: restored.
|
|
|
|
| 63 |
from wolne_lektury_licences import DATA, PUBLIC_DOMAIN, read_licences # noqa: E402
|
| 64 |
|
| 65 |
NOTES = DATA / "wolne_lektury.notes.jsonl"
|
| 66 |
+
NOTES_SHA256 = "da18d6a7eebf88f63efbe1e082d5e2cdc387bf9bbf808cc9d0a6411dbf14d8e1"
|
| 67 |
HEADINGS = {"pa": "Przypisy autora", "pt": "Przypisy tłumacza"} # in this order
|
| 68 |
OWNER = {"pa": "author's", "pt": "translator's"}
|
| 69 |
LEFT_OUT = {"pe", "pr", "extra", "uwaga"} # WL's editorial notes and remarks, never part of a note
|
|
|
|
| 71 |
PARAGRAPH = "\n\n"
|
| 72 |
NO_XML = {"korczak-jak-kochac-dziecko-dziecko-w-rodzinie"} # WL serves no XML for this book (404, 2026-10-20)
|
| 73 |
# text_digest of the wolne_lektury table before the glosses and the notes: the clean output of the v0.2.5 Parquet at
|
| 74 |
+
# 6b7886e (f4973619094cd415a9a49f44b381ed6c45d5c390f4c58d999819957cf2f25f88) without the two NOT_FREE rows of
|
| 75 |
+
# src/wolne_lektury_licences.py
|
| 76 |
+
TEXT_DIGEST_BEFORE = "578bd139e7c4a064713aeaf5a7d7a283a08814f57cb25214e5c0f775d715d433"
|
| 77 |
# The glosses of WL's editors in the main text: what without_glosses() finds in the table above (2026-10-20).
|
| 78 |
# strip_text_glosses() fails unless it finds exactly these.
|
| 79 |
TEXT_GLOSSES = {"wolne_lektury_2372131": ["[słońce – przyp. WL]"],
|
| 80 |
"wolne_lektury_2377006": ["[mówi jednocześnie z dalszymi kwestiami Millera i Ferdynanda — Red.WL]"]}
|
| 81 |
# text_digest of that table after strip_text_glosses(): the text the notes are added to
|
| 82 |
+
TEXT_DIGEST_WITHOUT_GLOSSES = "45fe3369c6b7f509e2c84cfff161ce251da3963ee9f972cd38da861f7e409eb7"
|
| 83 |
# (row id, tag, position among the book's notes of that tag) of the notes the export kept in the text: the whole note
|
| 84 |
# is in the row's text and not in the book's text outside its notes (2026-10-20). A note that the main text only
|
| 85 |
# quotes, or paraphrases in brackets (the four Lithuanian glosses of wolne_lektury_2376761), is not the note: restored.
|