strom-research 1.31.1-beta.3 → 1.32.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.cs.md +23 -2
- package/CHANGELOG.de.md +24 -2
- package/CHANGELOG.md +23 -2
- package/CHANGELOG.pl.md +23 -2
- package/assets/lang/cs.json +24 -0
- package/assets/lang/de.json +24 -0
- package/assets/lang/pl.json +24 -0
- package/assets/terms/occupations.json +48 -0
- package/dist/agents/files.js +17 -1
- package/dist/agents/global.js +10 -1
- package/dist/cli/execute.js +13 -0
- package/dist/cli/help.js +2 -2
- package/dist/cli/human.js +4 -0
- package/dist/cli/ui.js +24 -0
- package/dist/commands/analysis.js +5 -23
- package/dist/commands/guide.js +14 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/query.js +381 -0
- package/dist/commands/start.js +29 -5
- package/dist/core/house.js +17 -0
- package/dist/core/occupations.js +83 -0
- package/dist/core/query.js +385 -0
- package/dist/core/relation.js +444 -0
- package/dist/core/searchtext.js +23 -0
- package/dist/core/tree.js +1 -1
- package/dist/core/widget.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.cs.md
CHANGED
|
@@ -5,9 +5,30 @@
|
|
|
5
5
|
Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou na
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (anglicky).
|
|
7
7
|
|
|
8
|
-
## 1.
|
|
8
|
+
## 1.32.0
|
|
9
|
+
|
|
10
|
+
*Připravuje se: bety do 1.32.0-beta.2. Oddíl bude úplný s vydáním.*
|
|
11
|
+
|
|
12
|
+
- **Otázky nad rodokmenem jedním voláním: `strom query`.** Kolik mlynářů je v rodu, kdo žil v čísle 12, kdo se
|
|
13
|
+
narodil ve Lhotě v 18. století: řádek za každý údaj osoby s hodnotou, místem, číslem popisným, datem, jistotou
|
|
14
|
+
a prameny. Filtry podle druhu, povolání, hodnoty, místa, čísla, let, příjmení (i jeho dalších tvarů), pramene a stavu;
|
|
15
|
+
čí údaje: přímá linie, pokrevní příbuzní (výchozí, i boční větve), i s partnery, nebo celý strom. `--count`
|
|
16
|
+
a `--by generation|kin|place|decade|surname` je spočítají. Odvolané osoby a údaje nikdy, vyvrácené jen na požádání;
|
|
17
|
+
neznámý `--kind` odmítne se seznamem platných druhů.
|
|
18
|
+
- **Jak je každá osoba příbuzná výchozí osobě, slovy:** v jazyce výzkumu, se stranou (otcova, matčina) a generací,
|
|
19
|
+
jak to říká kalkulačka vztahů aplikace Strom.
|
|
20
|
+
- **Povolání i v českých, německých, latinských a polských tvarech:** mlynar najde i Müller a molitor; osoby se slovem
|
|
21
|
+
jen ve jméně nebo poznámce se počítají zvlášť, se `strom find`, který je najde.
|
|
22
|
+
- **I vyprávění: `strom query --story <slovo>`** vypíše osoby a páry, v jejichž vyprávění slovo je, každou s větou
|
|
23
|
+
a prameny, o které se opírá, se stejnými filtry, počty i skupinami.
|
|
24
|
+
- **Agent odpovídá na otázky nad rodokmenem příkazem `strom query`,** se jménem a ID osoby v závorce (aby šla otevřít v
|
|
25
|
+
aplikaci Strom), celým vztahem a pramenem jeho názvem, a říká, jak jistý je každý údaj: vodítko ani pravděpodobný údaj
|
|
26
|
+
nikdy jako fakt. Vyprávění jen ukazuje, kde hledat; čí je zápis, kdo je kdo a ověřování údajů jde dál jako dosud, z
|
|
27
|
+
pramenů.
|
|
28
|
+
- **Číslo domu zapsané i se slovem** (č. 7, Nr. 7) už nemá slovo dvakrát, ani na kartě osoby.
|
|
29
|
+
- **`strom app --person P…`** otevře aplikaci Strom na této osobě stromu (aplikace před 3.21 otevře strom).
|
|
9
30
|
|
|
10
|
-
|
|
31
|
+
## 1.31.1
|
|
11
32
|
|
|
12
33
|
- **Nastavení pro prohlížeče archivů, které prohlížeč vykresluje pomalu.** Kde prohlížeč vykreslí kartu jen zhruba
|
|
13
34
|
jednou za sekundu (kreslení bez grafické karty, vzdálená plocha), potřebuje prohlížeč snímků archivu (ACTA PUBLICA)
|
package/CHANGELOG.de.md
CHANGED
|
@@ -5,9 +5,31 @@
|
|
|
5
5
|
Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Installationszeilen stehen bei
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (auf Englisch).
|
|
7
7
|
|
|
8
|
-
## 1.
|
|
8
|
+
## 1.32.0
|
|
9
|
+
|
|
10
|
+
*In Vorbereitung: die Betas bis 1.32.0-beta.2. Der Abschnitt ist mit dem Release vollständig.*
|
|
11
|
+
|
|
12
|
+
- **Fragen an den Stammbaum mit einem Aufruf: `strom query`.** Wie viele Müller es in der Familie gibt, wer im Haus 12
|
|
13
|
+
wohnte, wer im 18. Jahrhundert in Lhota geboren wurde: eine Zeile je Angabe einer Person mit Wert, Ort, Hausnummer,
|
|
14
|
+
Datum, Sicherheit und Quellen. Filter nach Art, Beruf, Wert, Ort, Hausnummer, Jahren, Nachname (auch seinen anderen
|
|
15
|
+
Formen), Quelle und Status; wessen Angaben: die direkte Linie, die Blutsverwandten (Standard, auch Seitenlinien), mit
|
|
16
|
+
ihren Partnern, oder der ganze Baum. `--count` und `--by generation|kin|place|decade|surname` zählen sie. Widerrufene
|
|
17
|
+
Personen und Angaben nie, widerlegte nur auf Wunsch; ein unbekanntes `--kind` wird mit den gültigen Arten abgelehnt.
|
|
18
|
+
- **Wie jede Person mit der Hauptperson verwandt ist, in Worten:** in der Sprache der Forschung, mit der Seite
|
|
19
|
+
(väterlich, mütterlich) und der Generation, wie es der Verwandtschaftsrechner der Strom-App sagt.
|
|
20
|
+
- **Berufe auch in ihren tschechischen, deutschen, lateinischen und polnischen Formen:** mlynar findet auch Müller und
|
|
21
|
+
molitor; Personen mit dem Wort nur im Namen oder in einer Notiz werden getrennt gezählt, mit dem `strom find`, das sie
|
|
22
|
+
findet.
|
|
23
|
+
- **Auch die Erzählungen: `strom query --story <Wort>`** nennt die Personen und Paare, in deren Erzählung das Wort
|
|
24
|
+
steht, jede mit dem Satz und den Quellen, auf die er sich stützt, mit denselben Filtern, Zählungen und Gruppen.
|
|
25
|
+
- **Der Agent beantwortet Fragen an den Stammbaum mit `strom query`,** mit dem Namen und der ID jeder Person in Klammern
|
|
26
|
+
(zum Öffnen in der Strom-App), der ganzen Verwandtschaft und der Quelle mit ihrem Titel, und sagt, wie sicher jede
|
|
27
|
+
Angabe ist: ein Hinweis oder eine wahrscheinliche Angabe nie als Tatsache. Eine Erzählung zeigt nur, wo zu suchen ist;
|
|
28
|
+
wem ein Eintrag gehört, wer wer ist und das Prüfen der Angaben geht weiter wie bisher, aus den Quellen.
|
|
29
|
+
- **Eine Hausnummer mit eigenem Wort** (č. 7, Nr. 7) zeigt das Wort nicht mehr doppelt, auch auf der Karte einer Person.
|
|
30
|
+
- **`strom app --person P…`** öffnet die Strom-App bei dieser Person des Baums (eine App vor 3.21 öffnet den Baum).
|
|
9
31
|
|
|
10
|
-
|
|
32
|
+
## 1.31.1
|
|
11
33
|
|
|
12
34
|
- **Eine Einstellung für Archiv-Viewer, die ein Browser langsam zeichnet.** Wo der Browser einen Tab nur etwa einmal
|
|
13
35
|
pro Sekunde zeichnet (Zeichnen ohne Grafikkarte, ein Remote-Desktop), braucht der Viewer des Archivs (ACTA PUBLICA)
|
package/CHANGELOG.md
CHANGED
|
@@ -5,9 +5,30 @@ English · [Čeština](CHANGELOG.cs.md) · [Deutsch](CHANGELOG.de.md) · [Polski
|
|
|
5
5
|
The changes of each version in short. The full notes and the install lines are on
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases).
|
|
7
7
|
|
|
8
|
-
## 1.
|
|
8
|
+
## 1.32.0
|
|
9
|
+
|
|
10
|
+
*In preparation: the betas up to 1.32.0-beta.2. The section is complete with the release.*
|
|
11
|
+
|
|
12
|
+
- **Questions over the family tree in one call: `strom query`.** How many millers in the family, who lived at house 12,
|
|
13
|
+
who was born in Lhota in the 18th century: one row per fact of a person with its value, place, house, date, how sure
|
|
14
|
+
it is and its sources. Filters by kind, occupation, value, place, house, years, surname (its other forms too), source
|
|
15
|
+
and status; whose facts: the direct line, the blood relatives (the default, side branches too), with their partners,
|
|
16
|
+
or the whole tree. `--count` and `--by generation|kin|place|decade|surname` count them. Retracted people and facts
|
|
17
|
+
never come, disproven ones only when asked for; an unknown `--kind` is refused with the kinds it takes.
|
|
18
|
+
- **How each person is related to the main person, in words:** in the research's language, with the side (the
|
|
19
|
+
father's, the mother's) and the generation, as the Strom app's relationship finder says it.
|
|
20
|
+
- **Occupations in their Czech, German, Latin and Polish forms:** mlynar finds Müller and molitor too; people with the
|
|
21
|
+
word only in a name or a note are counted apart, with the `strom find` that finds them.
|
|
22
|
+
- **The stories too: `strom query --story <word>`** gives the people and couples whose story holds the word, each with
|
|
23
|
+
the sentence and the sources it rests on, with the same filters, counts and groups.
|
|
24
|
+
- **The agent answers questions over the tree with `strom query`,** with each person's name and ID in brackets (to open
|
|
25
|
+
them in the Strom app), the relation whole and the source by its title, and says how sure each fact is: a lead or a
|
|
26
|
+
probable one never as a fact. A story only shows where to look; whose a record is, who a person is and verifying facts
|
|
27
|
+
go on as before, from the records.
|
|
28
|
+
- **A house written with its own word** (č. 7, Nr. 7) no longer shows the word twice, on a person's card too.
|
|
29
|
+
- **`strom app --person P…`** opens the Strom app on that person of the tree (an app before 3.21 opens the tree).
|
|
9
30
|
|
|
10
|
-
|
|
31
|
+
## 1.31.1
|
|
11
32
|
|
|
12
33
|
- **A setting for archive viewers a browser draws slowly.** Where the browser draws a tab only about once a second
|
|
13
34
|
(drawing without the graphics card, a remote desktop), the archive's viewer (ACTA PUBLICA) needs minutes for one
|
package/CHANGELOG.pl.md
CHANGED
|
@@ -5,9 +5,30 @@
|
|
|
5
5
|
Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia instalacji są na
|
|
6
6
|
[GitHub Releases](https://github.com/ACiDekCZ/strom-research/releases) (po angielsku).
|
|
7
7
|
|
|
8
|
-
## 1.
|
|
8
|
+
## 1.32.0
|
|
9
|
+
|
|
10
|
+
*W przygotowaniu: bety do 1.32.0-beta.2. Sekcja będzie kompletna z wydaniem.*
|
|
11
|
+
|
|
12
|
+
- **Pytania o drzewo jednym wywołaniem: `strom query`.** Ilu młynarzy jest w rodzie, kto mieszkał pod numerem 12, kto
|
|
13
|
+
urodził się w Lhocie w XVIII wieku: wiersz na każdą daną osoby z wartością, miejscem, numerem domu, datą, pewnością
|
|
14
|
+
i źródłami. Filtry według rodzaju, zawodu, wartości, miejsca, numeru domu, lat, nazwiska (także jego innych form),
|
|
15
|
+
źródła i stanu; czyje dane: linia prosta, krewni (domyślnie, także linie boczne), z ich partnerami, albo całe drzewo.
|
|
16
|
+
`--count` i `--by generation|kin|place|decade|surname` je liczą. Osoby i dane wycofane nigdy, obalone tylko na
|
|
17
|
+
życzenie; nieznany `--kind` zostaje odrzucony z listą prawidłowych rodzajów.
|
|
18
|
+
- **Jak każda osoba jest spokrewniona z osobą główną, słowami:** w języku badania, ze stroną (ojca, matki)
|
|
19
|
+
i pokoleniem, tak jak mówi kalkulator pokrewieństwa aplikacji Strom.
|
|
20
|
+
- **Zawody także w formach czeskich, niemieckich, łacińskich i polskich:** mlynar znajduje też Müller i molitor; osoby
|
|
21
|
+
ze słowem tylko w nazwisku lub notatce liczone są osobno, z `strom find`, który je znajduje.
|
|
22
|
+
- **Także opowieści: `strom query --story <słowo>`** podaje osoby i pary, w których opowieści jest to słowo, każdą
|
|
23
|
+
ze zdaniem i źródłami, na których się opiera, z tymi samymi filtrami, liczeniem i grupami.
|
|
24
|
+
- **Agent odpowiada na pytania o drzewo poleceniem `strom query`,** z imieniem i ID osoby w nawiasie (by otworzyć ją w
|
|
25
|
+
aplikacji Strom), pełnym pokrewieństwem i źródłem z jego tytułem, i mówi, jak pewna jest każda dana: wskazówka ani
|
|
26
|
+
dana prawdopodobna nigdy jako fakt. Opowieść pokazuje tylko, gdzie szukać; czyj jest zapis, kto jest kim i sprawdzanie
|
|
27
|
+
danych idą dalej jak dotąd, ze źródeł.
|
|
28
|
+
- **Numer domu zapisany z własnym słowem** (č. 7, Nr. 7) nie ma już słowa dwa razy, także na karcie osoby.
|
|
29
|
+
- **`strom app --person P…`** otwiera aplikację Strom na tej osobie drzewa (aplikacja przed 3.21 otwiera drzewo).
|
|
9
30
|
|
|
10
|
-
|
|
31
|
+
## 1.31.1
|
|
11
32
|
|
|
12
33
|
- **Ustawienie dla przeglądarek archiwów, które przeglądarka rysuje powoli.** Gdy przeglądarka rysuje kartę tylko mniej
|
|
13
34
|
więcej raz na sekundę (rysowanie bez karty graficznej, zdalny pulpit), przeglądarka skanów archiwum (ACTA PUBLICA)
|
package/assets/lang/cs.json
CHANGED
|
@@ -1274,6 +1274,27 @@
|
|
|
1274
1274
|
"ui.show.removed.mark": "(odebráno)",
|
|
1275
1275
|
"ui.show.relof": "{rel} u {who}",
|
|
1276
1276
|
"ui.show.eventOf": "{id} – {who} (celý záznam: strom {type} show {owner})",
|
|
1277
|
+
"ui.query.kin.ancestors": "{of} a předkové",
|
|
1278
|
+
"ui.query.kin.blood": "pokrevní příbuzní osoby {of}",
|
|
1279
|
+
"ui.query.kin.family": "příbuzní osoby {of} a jejich partneři",
|
|
1280
|
+
"ui.query.kin.all": "celý strom, vztahy k osobě {of}",
|
|
1281
|
+
"ui.query.place": "místo {place}",
|
|
1282
|
+
"ui.query.house": "čp. {house}",
|
|
1283
|
+
"ui.query.surname": "příjmení {surname}",
|
|
1284
|
+
"ui.query.source": "pramen {source}",
|
|
1285
|
+
"ui.query.count": "{people, plural, one {# osoba} few {# osoby} many {# osoby} other {# osob}}, {facts, plural, one {# údaj} few {# údaje} many {# údaje} other {# údajů}}",
|
|
1286
|
+
"ui.query.self": "výchozí osoba",
|
|
1287
|
+
"ui.query.unrelated": "bez příbuzenského vztahu",
|
|
1288
|
+
"ui.query.unknown": "neznámo",
|
|
1289
|
+
"ui.query.side": "boční větve",
|
|
1290
|
+
"ui.query.elsewhere": "+{n, plural, one {# osoba} few {# osoby} many {# osoby} other {# osob}} se slovem jen jinde (jméno, poznámka…): {command}",
|
|
1291
|
+
"ui.query.none": "nic nenalezeno: {query}",
|
|
1292
|
+
"ui.query.try": "dál zkusit: {commands}",
|
|
1293
|
+
"ui.query.story": "vyprávění {words}",
|
|
1294
|
+
"ui.query.count.stories": "{people, plural, one {# osoba} few {# osoby} many {# osoby} other {# osob}}, {stories, plural, one {# vyprávění} few {# vyprávění} many {# vyprávění} other {# vyprávění}}",
|
|
1295
|
+
"ui.query.story.snippet": "vyprávění: „{text}“",
|
|
1296
|
+
"ui.query.story.draft": "koncept",
|
|
1297
|
+
"ui.query.story.all": "prameny celého vyprávění: {list}",
|
|
1277
1298
|
"ui.event.edited": "upraveno: {line}",
|
|
1278
1299
|
"ui.show.sex.M": "muž",
|
|
1279
1300
|
"ui.show.sex.F": "žena",
|
|
@@ -1366,6 +1387,7 @@
|
|
|
1366
1387
|
"ui.help.cmd.person.list": "Osoby v rodokmenu",
|
|
1367
1388
|
"ui.help.cmd.pedigree": "Předkové osoby jako strom",
|
|
1368
1389
|
"ui.help.cmd.find": "Najít osobu, záznam nebo místo podle jména",
|
|
1390
|
+
"ui.help.cmd.query": "Kolik, kdo, kde, kdy: údaje rodu podle povolání, místa, let nebo pramene, i s příbuzenským vztahem každé osoby",
|
|
1369
1391
|
"ui.help.cmd.doc": "Jak Strom funguje: pravidla výzkumu a aplikace podle čísla nebo slov",
|
|
1370
1392
|
"ui.help.cmd.app": "Otevřít výzkum v aplikaci Strom",
|
|
1371
1393
|
"ui.help.cmd.app.install": "Nainstalovat aplikaci Strom z prohlížeče",
|
|
@@ -3070,6 +3092,8 @@
|
|
|
3070
3092
|
"ui.error.command.unknown.hint": "strom help (všechny příkazy)",
|
|
3071
3093
|
"ui.error.command.unknown.person": "neznámý příkaz „strom {cmd}“",
|
|
3072
3094
|
"ui.error.command.unknown.person.hint": "strom help --human – nebo jen {strom}: menu",
|
|
3095
|
+
"ui.error.command.renamed": "„strom {old}“ je teď „strom {now}“ (stejné přepínače)",
|
|
3096
|
+
"ui.error.command.renamed.hint": "{call}",
|
|
3073
3097
|
"ui.error.option.near": "neznámá volba {opt} u {cmd}",
|
|
3074
3098
|
"ui.error.option.near.hint": "podobná volba: {near}",
|
|
3075
3099
|
"ui.conflict.none": "žádné otevřené rozpory",
|
package/assets/lang/de.json
CHANGED
|
@@ -1274,6 +1274,27 @@
|
|
|
1274
1274
|
"ui.show.removed.mark": "(entfernt)",
|
|
1275
1275
|
"ui.show.relof": "{rel} bei {who}",
|
|
1276
1276
|
"ui.show.eventOf": "{id} – {who} (der ganze Eintrag: strom {type} show {owner})",
|
|
1277
|
+
"ui.query.kin.ancestors": "{of} und die Vorfahren",
|
|
1278
|
+
"ui.query.kin.blood": "Blutsverwandte von {of}",
|
|
1279
|
+
"ui.query.kin.family": "Verwandte von {of} und ihre Partner",
|
|
1280
|
+
"ui.query.kin.all": "der ganze Stammbaum, Beziehungen zu {of}",
|
|
1281
|
+
"ui.query.place": "Ort {place}",
|
|
1282
|
+
"ui.query.house": "Haus Nr. {house}",
|
|
1283
|
+
"ui.query.surname": "Nachname {surname}",
|
|
1284
|
+
"ui.query.source": "Quelle {source}",
|
|
1285
|
+
"ui.query.count": "{people, plural, one {# Person} other {# Personen}}, {facts, plural, one {# Angabe} other {# Angaben}}",
|
|
1286
|
+
"ui.query.self": "Ausgangsperson",
|
|
1287
|
+
"ui.query.unrelated": "nicht verwandt",
|
|
1288
|
+
"ui.query.unknown": "unbekannt",
|
|
1289
|
+
"ui.query.side": "Seitenlinien",
|
|
1290
|
+
"ui.query.elsewhere": "+{n, plural, one {# Person} other {# Personen}} mit dem Wort nur anderswo (Name, Notiz …): {command}",
|
|
1291
|
+
"ui.query.none": "nichts gefunden: {query}",
|
|
1292
|
+
"ui.query.try": "weiter: {commands}",
|
|
1293
|
+
"ui.query.story": "Erzählung {words}",
|
|
1294
|
+
"ui.query.count.stories": "{people, plural, one {# Person} other {# Personen}}, {stories, plural, one {# Erzählung} other {# Erzählungen}}",
|
|
1295
|
+
"ui.query.story.snippet": "Erzählung: „{text}“",
|
|
1296
|
+
"ui.query.story.draft": "Entwurf",
|
|
1297
|
+
"ui.query.story.all": "Quellen der ganzen Erzählung: {list}",
|
|
1277
1298
|
"ui.event.edited": "geändert: {line}",
|
|
1278
1299
|
"ui.show.sex.M": "Mann",
|
|
1279
1300
|
"ui.show.sex.F": "Frau",
|
|
@@ -1366,6 +1387,7 @@
|
|
|
1366
1387
|
"ui.help.cmd.person.list": "Die Personen des Stammbaums",
|
|
1367
1388
|
"ui.help.cmd.pedigree": "Die Vorfahren einer Person als Baum",
|
|
1368
1389
|
"ui.help.cmd.find": "Eine Person, einen Eintrag oder einen Ort nach dem Namen finden",
|
|
1390
|
+
"ui.help.cmd.query": "Wie viele, wer, wo, wann: die Angaben der Familie nach Beruf, Ort, Jahren oder Quelle, mit dem Verwandtschaftsgrad jeder Person",
|
|
1369
1391
|
"ui.help.cmd.doc": "Wie Strom funktioniert: die Regeln der Forschung und der App, nach Nummer oder Wörtern",
|
|
1370
1392
|
"ui.help.cmd.app": "Die Forschung in der Strom-App öffnen",
|
|
1371
1393
|
"ui.help.cmd.app.install": "Die Strom-App aus dem Browser installieren",
|
|
@@ -3070,6 +3092,8 @@
|
|
|
3070
3092
|
"ui.error.command.unknown.hint": "strom help (alle Befehle)",
|
|
3071
3093
|
"ui.error.command.unknown.person": "unbekannter Befehl „strom {cmd}“",
|
|
3072
3094
|
"ui.error.command.unknown.person.hint": "strom help --human – oder nur {strom}: das Menü",
|
|
3095
|
+
"ui.error.command.renamed": "„strom {old}“ heißt jetzt „strom {now}“ (dieselben Optionen)",
|
|
3096
|
+
"ui.error.command.renamed.hint": "{call}",
|
|
3073
3097
|
"ui.error.option.near": "unbekannte Option {opt} für {cmd}",
|
|
3074
3098
|
"ui.error.option.near.hint": "ähnliche Option: {near}",
|
|
3075
3099
|
"ui.conflict.none": "keine offenen Widersprüche",
|
package/assets/lang/pl.json
CHANGED
|
@@ -1274,6 +1274,27 @@
|
|
|
1274
1274
|
"ui.show.removed.mark": "(usunięte)",
|
|
1275
1275
|
"ui.show.relof": "{rel} przy {who}",
|
|
1276
1276
|
"ui.show.eventOf": "{id} – {who} (cały zapis: strom {type} show {owner})",
|
|
1277
|
+
"ui.query.kin.ancestors": "{of} i przodkowie",
|
|
1278
|
+
"ui.query.kin.blood": "krewni osoby {of}",
|
|
1279
|
+
"ui.query.kin.family": "krewni osoby {of} i ich partnerzy",
|
|
1280
|
+
"ui.query.kin.all": "całe drzewo, pokrewieństwo z {of}",
|
|
1281
|
+
"ui.query.place": "miejscowość {place}",
|
|
1282
|
+
"ui.query.house": "nr domu {house}",
|
|
1283
|
+
"ui.query.surname": "nazwisko {surname}",
|
|
1284
|
+
"ui.query.source": "źródło {source}",
|
|
1285
|
+
"ui.query.count": "{people, plural, one {# osoba} few {# osoby} many {# osób} other {# osoby}}, {facts, plural, one {# fakt} few {# fakty} many {# faktów} other {# faktu}}",
|
|
1286
|
+
"ui.query.self": "osoba wyjściowa",
|
|
1287
|
+
"ui.query.unrelated": "bez pokrewieństwa",
|
|
1288
|
+
"ui.query.unknown": "nieznane",
|
|
1289
|
+
"ui.query.side": "linie boczne",
|
|
1290
|
+
"ui.query.elsewhere": "+{n, plural, one {# osoba} few {# osoby} many {# osób} other {# osoby}} ze słowem tylko gdzie indziej (nazwisko, notatka…): {command}",
|
|
1291
|
+
"ui.query.none": "nic nie znaleziono: {query}",
|
|
1292
|
+
"ui.query.try": "dalej: {commands}",
|
|
1293
|
+
"ui.query.story": "opowieść {words}",
|
|
1294
|
+
"ui.query.count.stories": "{people, plural, one {# osoba} few {# osoby} many {# osób} other {# osoby}}, {stories, plural, one {# opowieść} few {# opowieści} many {# opowieści} other {# opowieści}}",
|
|
1295
|
+
"ui.query.story.snippet": "opowieść: „{text}”",
|
|
1296
|
+
"ui.query.story.draft": "szkic",
|
|
1297
|
+
"ui.query.story.all": "źródła całej opowieści: {list}",
|
|
1277
1298
|
"ui.event.edited": "zmieniono: {line}",
|
|
1278
1299
|
"ui.show.sex.M": "mężczyzna",
|
|
1279
1300
|
"ui.show.sex.F": "kobieta",
|
|
@@ -1366,6 +1387,7 @@
|
|
|
1366
1387
|
"ui.help.cmd.person.list": "Osoby w drzewie",
|
|
1367
1388
|
"ui.help.cmd.pedigree": "Przodkowie osoby w formie drzewa",
|
|
1368
1389
|
"ui.help.cmd.find": "Znaleźć osobę, zapis albo miejsce według nazwy",
|
|
1390
|
+
"ui.help.cmd.query": "Ilu, kto, gdzie, kiedy: dane rodu według zawodu, miejsca, lat lub źródła, z pokrewieństwem każdej osoby",
|
|
1369
1391
|
"ui.help.cmd.doc": "Jak działa Strom: zasady badania i aplikacji według numeru albo słów",
|
|
1370
1392
|
"ui.help.cmd.app": "Otworzyć badanie w aplikacji Strom",
|
|
1371
1393
|
"ui.help.cmd.app.install": "Zainstalować aplikację Strom z przeglądarki",
|
|
@@ -3070,6 +3092,8 @@
|
|
|
3070
3092
|
"ui.error.command.unknown.hint": "strom help (wszystkie polecenia)",
|
|
3071
3093
|
"ui.error.command.unknown.person": "nieznane polecenie „strom {cmd}”",
|
|
3072
3094
|
"ui.error.command.unknown.person.hint": "strom help --human – albo po prostu {strom}: menu",
|
|
3095
|
+
"ui.error.command.renamed": "„strom {old}” to teraz „strom {now}” (te same opcje)",
|
|
3096
|
+
"ui.error.command.renamed.hint": "{call}",
|
|
3073
3097
|
"ui.error.option.near": "nieznana opcja {opt} przy {cmd}",
|
|
3074
3098
|
"ui.error.option.near.hint": "podobna opcja: {near}",
|
|
3075
3099
|
"ui.conflict.none": "brak otwartych sprzeczności",
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"about": "Occupations as old records name them, each group one occupation in Czech, German, Latin and Polish (a miller: mlynář = Müller = molitor = młynarz). A word of a group finds the others. Compared folded (no accents, lower case) and by the start of a word: a form ending in a vowel or in -us is also its stem (děvečka finds děvečky, colonus coloni); a form that changes inside as it declines is listed as well (švec, ševce). German spellings with ue, oe, ae for ü, ö, ä are listed as forms of their own, never made up: puer, poena and the like must stay what they are. One word per form.",
|
|
3
|
+
"groups": [
|
|
4
|
+
{ "cs": ["mlynář", "mlynářka", "mlynářský"], "de": ["Müller", "Mueller", "Müllner", "Mühlner"], "la": ["molitor", "molinarius", "molendinator"], "pl": ["młynarz"] },
|
|
5
|
+
{ "cs": ["sedlák", "selka", "selský", "rolník", "rolnický", "gruntovník", "láník", "půlláník", "čtvrtláník"], "de": ["Bauer", "Bäuerin", "Landwirt", "Halbbauer", "Viertelbauer", "Ganzbauer"], "la": ["colonus", "agricola", "rusticus"], "pl": ["gospodarz", "rolnik", "kmieć", "chłop", "włościanin"] },
|
|
6
|
+
{ "cs": ["chalupník", "chalupnice", "chalupnický"], "de": ["Chalupner", "Kleinbauer"], "pl": ["chałupnik", "zagrodnik"] },
|
|
7
|
+
{ "cs": ["domkář", "domkářka", "baráčník"], "de": ["Häusler", "Haeusler", "Kleinhäusler"] },
|
|
8
|
+
{ "cs": ["podruh", "podruhyně", "nájemník"], "de": ["Inwohner", "Inwohnerin", "Inmann", "Inleute", "Hausgenosse"], "la": ["inquilinus", "inquilina"], "pl": ["komornik", "lokator"] },
|
|
9
|
+
{ "cs": ["kovář", "kovářský"], "de": ["Schmied", "Schmid", "Hufschmied"], "la": ["faber", "fabri", "ferrarius"], "pl": ["kowal"] },
|
|
10
|
+
{ "cs": ["krejčí", "krejčovský", "švadlena"], "de": ["Schneider", "Schneiderin"], "la": ["sartor", "sartrix"], "pl": ["krawiec", "krawcowa"] },
|
|
11
|
+
{ "cs": ["švec", "ševce", "obuvník"], "de": ["Schuster", "Schuhmacher"], "la": ["sutor", "calceator", "calcearius"], "pl": ["szewc"] },
|
|
12
|
+
{ "cs": ["tkadlec", "tkalce", "tkalcovský"], "de": ["Weber", "Leinweber"], "la": ["textor"], "pl": ["tkacz"] },
|
|
13
|
+
{ "cs": ["tesař", "tesařský"], "de": ["Zimmermann", "Zimmerer"], "la": ["lignarius"], "pl": ["cieśla"] },
|
|
14
|
+
{ "cs": ["zedník", "zednický"], "de": ["Maurer"], "la": ["murarius", "caementarius"], "pl": ["murarz"] },
|
|
15
|
+
{ "cs": ["řezník", "řeznický"], "de": ["Fleischer", "Fleischhauer", "Fleischhacker", "Metzger"], "la": ["lanio", "macellarius", "carnifex"], "pl": ["rzeźnik"] },
|
|
16
|
+
{ "cs": ["pekař", "pekařka"], "de": ["Bäcker", "Baecker", "Becker"], "la": ["pistor"], "pl": ["piekarz"] },
|
|
17
|
+
{ "cs": ["hostinský", "šenkýř", "krčmář", "výčepník"], "de": ["Wirt", "Gastwirt", "Schenk", "Kretschmer"], "la": ["caupo", "tabernarius"], "pl": ["karczmarz", "oberżysta", "szynkarz"] },
|
|
18
|
+
{ "cs": ["kupec", "kupce", "obchodník", "kramář"], "de": ["Kaufmann", "Händler", "Krämer", "Kraemer"], "la": ["mercator", "institor"], "pl": ["kupiec", "handlarz", "kramarz"] },
|
|
19
|
+
{ "cs": ["učitel", "učitelka", "řídící"], "de": ["Lehrer", "Lehrerin", "Schullehrer", "Schulmeister"], "la": ["ludimagister", "ludirector", "praeceptor"], "pl": ["nauczyciel", "nauczycielka"] },
|
|
20
|
+
{ "cs": ["kantor", "varhaník", "regenschori"], "de": ["Kantor", "Organist"], "la": ["cantor", "organista"], "pl": ["kantor", "organista"] },
|
|
21
|
+
{ "cs": ["rychtář", "rychtáře", "fojt", "starosta"], "de": ["Richter", "Ortsrichter", "Dorfrichter", "Vogt", "Bürgermeister"], "la": ["iudex", "judex", "praetor"], "pl": ["sołtys", "wójt"] },
|
|
22
|
+
{ "cs": ["myslivec", "myslivce", "myslivecký"], "de": ["Jäger"], "la": ["venator"], "pl": ["myśliwy", "łowczy"] },
|
|
23
|
+
{ "cs": ["hajný", "porybný"], "de": ["Heger", "Waldheger", "Forstheger"], "pl": ["gajowy"] },
|
|
24
|
+
{ "cs": ["lesník", "fořt", "polesný"], "de": ["Förster", "Revierförster", "Oberförster"], "la": ["forestarius"], "pl": ["leśniczy", "leśnik"] },
|
|
25
|
+
{ "cs": ["ovčák", "ovčácký"], "de": ["Schäfer", "Schaefer", "Schafhirt"], "la": ["opilio"], "pl": ["owczarz"] },
|
|
26
|
+
{ "cs": ["pastýř", "pastýřka", "pasák"], "de": ["Hirt", "Hirte", "Viehhirt"], "la": ["pastor", "bubulcus"], "pl": ["pasterz", "pastuch"] },
|
|
27
|
+
{ "cs": ["kočí", "forman", "vozka"], "de": ["Kutscher", "Fuhrmann"], "la": ["auriga"], "pl": ["woźnica", "furman"] },
|
|
28
|
+
{ "cs": ["zahradník", "zahradnice", "zahradnický"], "de": ["Gärtner", "Gaertner", "Gärtler"], "la": ["hortulanus"], "pl": ["ogrodnik"] },
|
|
29
|
+
{ "cs": ["nádeník", "nádenice", "nádenický", "dělník"], "de": ["Tagelöhner", "Taglöhner", "Arbeiter"], "la": ["operarius", "mercenarius"], "pl": ["wyrobnik", "robotnik", "najemnik"] },
|
|
30
|
+
{ "cs": ["čeledín", "pacholek", "sluha"], "de": ["Knecht", "Hausknecht", "Diener"], "la": ["famulus", "servus"], "pl": ["parobek", "sługa"] },
|
|
31
|
+
{ "cs": ["děvečka", "služka", "služebná", "čeledínka"], "de": ["Magd", "Dienstmagd", "Dienstmädchen"], "la": ["ancilla"], "pl": ["służąca", "dziewka"] },
|
|
32
|
+
{ "cs": ["výměnkář", "výminkář", "výměnice"], "de": ["Ausnehmer", "Auszügler", "Altenteiler"], "pl": ["wymownik", "dożywotnik"] },
|
|
33
|
+
{ "cs": ["bednář", "bednářský"], "de": ["Binder", "Böttcher", "Fassbinder", "Faßbinder"], "la": ["vietor", "doliarius"], "pl": ["bednarz"] },
|
|
34
|
+
{ "cs": ["kolář", "kolářský"], "de": ["Wagner", "Stellmacher"], "la": ["rotarius", "carpentarius"], "pl": ["kołodziej", "stelmach"] },
|
|
35
|
+
{ "cs": ["sládek", "sládka", "pivovarník", "pivovarský"], "de": ["Brauer", "Bräuer", "Braumeister"], "la": ["braxator", "pandoxator", "cerevisiarius"], "pl": ["piwowar"] },
|
|
36
|
+
{ "cs": ["truhlář", "truhlářský", "stolař"], "de": ["Tischler", "Schreiner"], "la": ["arcularius", "scrinarius"], "pl": ["stolarz"] },
|
|
37
|
+
{ "cs": ["hrnčíř", "hrnčířský"], "de": ["Töpfer", "Hafner", "Häfner"], "la": ["figulus"], "pl": ["garncarz"] },
|
|
38
|
+
{ "cs": ["sklář", "sklářský"], "de": ["Glaser", "Glasmacher", "Glasmeister"], "la": ["vitrarius", "vitriarius"], "pl": ["szklarz"] },
|
|
39
|
+
{ "cs": ["farář", "kaplan", "kněz", "děkan"], "de": ["Pfarrer", "Kaplan", "Priester", "Dechant"], "la": ["parochus", "plebanus", "sacerdos", "presbyter", "capellanus"], "pl": ["proboszcz", "ksiądz", "wikary"] },
|
|
40
|
+
{ "cs": ["voják", "vojín", "vojenský", "dragoun", "mušketýr", "granátník"], "de": ["Soldat", "Dragoner", "Musketier", "Grenadier"], "la": ["miles", "militis", "militaris"], "pl": ["żołnierz"] },
|
|
41
|
+
{ "cs": ["horník", "hornický", "havíř"], "de": ["Bergmann", "Häuer", "Hauer", "Knappe"], "la": ["metallicus", "fossor", "minerarius"], "pl": ["górnik"] },
|
|
42
|
+
{ "cs": ["zámečník", "zámečnický"], "de": ["Schlosser", "Schloßer"], "la": ["claustrarius", "serarius"], "pl": ["ślusarz"] },
|
|
43
|
+
{ "cs": ["porodní"], "de": ["Hebamme", "Wehmutter"], "la": ["obstetrix"], "pl": ["akuszerka", "położna"] },
|
|
44
|
+
{ "cs": ["měšťan", "měšťanka", "měšťanský"], "de": ["Bürger", "Bürgerin", "Buerger"], "la": ["civis"], "pl": ["mieszczanin", "mieszczka"] },
|
|
45
|
+
{ "cs": ["rybář", "rybníkář"], "de": ["Fischer", "Teichwärter"], "la": ["piscator"], "pl": ["rybak"] },
|
|
46
|
+
{ "cs": ["vinař", "vinařský"], "de": ["Winzer", "Weinhauer", "Weingärtner"], "la": ["vinitor", "vinicola"], "pl": ["winiarz"] }
|
|
47
|
+
]
|
|
48
|
+
}
|
package/dist/agents/files.js
CHANGED
|
@@ -132,7 +132,8 @@ the researcher; \`strom\` is your only way to read and change the research.
|
|
|
132
132
|
|
|
133
133
|
The user watches this conversation and is usually not technical. Talk in
|
|
134
134
|
${lang}, plainly: say "the baptism of Karel in 1782", not record IDs, unless
|
|
135
|
-
they ask
|
|
135
|
+
they ask, or ask a question over the data (below: the ID in brackets after
|
|
136
|
+
each name). (Working alone — a session of strom run — nobody watches: this
|
|
136
137
|
section is a conversation's; nothing there is said to the user, and its brief
|
|
137
138
|
says how it ends.)
|
|
138
139
|
|
|
@@ -175,6 +176,21 @@ ${hypotheses}
|
|
|
175
176
|
\`strom review P… P…\`; those no record of their own proves ("who has no
|
|
176
177
|
source?"): \`strom person list --unproven\`, then \`strom review --unproven\`
|
|
177
178
|
(a batch at a time).
|
|
179
|
+
- **Questions over the data** ("how many millers were in the family?", "who
|
|
180
|
+
lived at house 12?"): one \`strom query\` call with filters
|
|
181
|
+
(\`--occupation mlynar --count --by generation\`; the stories holding a
|
|
182
|
+
word: \`--story mlyn\`), never \`find\` and \`show\` person by person for
|
|
183
|
+
such a question; answer with each person's name and their ID in brackets
|
|
184
|
+
after it (Karel Lhoták (P0012) — so it opens in the app: \`strom app
|
|
185
|
+
--person P…\`), the relation in words whole as \`strom query\` gives it,
|
|
186
|
+
never shortened, the source by its title with its S… in brackets, and how
|
|
187
|
+
sure each fact is: only a proven one is told as a fact;
|
|
188
|
+
probable, possible and a lead are not proven — say so, never as a fact. A
|
|
189
|
+
story retells the facts: answer from the facts and sources, a story only
|
|
190
|
+
shows where to look. \`strom query\` answers them and shows where to look;
|
|
191
|
+
whose a record is, who a person is, verifying and writing facts go as ever
|
|
192
|
+
(\`strom person show\`, the sources, the method) — a row of it is not
|
|
193
|
+
enough for that.
|
|
178
194
|
- **Their edits in the Strom app** ("I fixed grandma's birthday in the
|
|
179
195
|
app", a .ged or .json they exported): \`strom sync <file>\` shows what it
|
|
180
196
|
would take — tell them, write it on their yes (\`--apply\`); a sync is
|
package/dist/agents/global.js
CHANGED
|
@@ -85,7 +85,16 @@ mentions strom, a family tree or the Strom app.
|
|
|
85
85
|
from ${app} (\`strom app install\` opens it there; it
|
|
86
86
|
then works offline); \`strom app\` opens it — with the research, followed
|
|
87
87
|
live while you work, when the app can take it. Without it, the user can ask
|
|
88
|
-
you about anyone in the tree: answer from \`strom person show\` and the like
|
|
88
|
+
you about anyone in the tree: answer from \`strom person show\` and the like;
|
|
89
|
+
how many, who, where, when (millers in the family): \`strom query\` with
|
|
90
|
+
filters; each person's name with their ID in brackets after it, the
|
|
91
|
+
relation in words whole as query gives it, never shortened, the source by
|
|
92
|
+
its title with its S… in brackets; only a
|
|
93
|
+
proven fact is told as a fact, probable, possible and a lead are said to
|
|
94
|
+
be unproven; a story (\`--story <word>\`) retells the facts, only shows
|
|
95
|
+
where to look — \`strom app --person P…\` opens one in the app. It
|
|
96
|
+
answers; whose a record is, verifying and writing facts go as ever
|
|
97
|
+
(\`strom person show\`, the sources, the method).
|
|
89
98
|
`;
|
|
90
99
|
/**
|
|
91
100
|
* The rules that let the agent run strom without asking, in its own settings' words.
|
package/dist/cli/execute.js
CHANGED
|
@@ -88,6 +88,10 @@ export function resolveCommand(argv) {
|
|
|
88
88
|
const leftover = found ? words.slice(found.used) : words;
|
|
89
89
|
// Words that are not options — the values of global options (--lang en) are no stray words.
|
|
90
90
|
const extra = rest.filter((r, i) => !r.startsWith("-") && !VALUE_GLOBALS.has(rest[i - 1] ?? ""));
|
|
91
|
+
// a command strom renamed, called by its old name (rules an agent read before, a conversation older than the update):
|
|
92
|
+
// the same call under its new name, never run for it
|
|
93
|
+
if (words.length === 0 && extra[0] !== undefined && Object.hasOwn(RENAMED, extra[0]))
|
|
94
|
+
throw renamedCommand(argv, extra[0]);
|
|
91
95
|
if (found && leftover.length === 0) {
|
|
92
96
|
if (found.def.path.length === 0 && extra.length && rest[0] !== "--")
|
|
93
97
|
throw unknownCommand(extra.slice(0, 2));
|
|
@@ -105,6 +109,15 @@ export function resolveCommand(argv) {
|
|
|
105
109
|
}
|
|
106
110
|
throw unknownCommand([...words, ...extra].slice(0, Math.max(words.length + 1, 2)));
|
|
107
111
|
}
|
|
112
|
+
/** Commands strom renamed: the old name → the new one, which takes the same options. */
|
|
113
|
+
const RENAMED = { facts: "query" };
|
|
114
|
+
/** A renamed command called by its old name: the same call under the new name, to run as it is. */
|
|
115
|
+
function renamedCommand(argv, old) {
|
|
116
|
+
const now = RENAMED[old];
|
|
117
|
+
const at = argv.indexOf(old);
|
|
118
|
+
const call = ["strom", ...argv.map((a, i) => (i === at ? now : shellArg(a)))].join(" ");
|
|
119
|
+
return new UsageError(`"strom ${old}" is now "strom ${now}" (the same options)`, { hint: call, code: "command.renamed", params: { old, now, call } });
|
|
120
|
+
}
|
|
108
121
|
/** Signal: a group name alone — the caller prints the group's short help. */
|
|
109
122
|
export class GroupOnly extends Error {
|
|
110
123
|
group;
|
package/dist/cli/help.js
CHANGED
|
@@ -30,7 +30,7 @@ const ARCHIVE_COMMANDS = new Set([
|
|
|
30
30
|
"init", "trees", "trees use", "trees remove", "trees forget", "mode", "lang", "pack", "unpack", "seal adopt", "seal accept", "backup", "sync", "sync undo", "sync discard",
|
|
31
31
|
"intake", "input list", "input show", "conflict list", "conflict show", "conflict resolve",
|
|
32
32
|
"person list", "person show", "person card", "family show", "source list", "source show", "media list", "media show",
|
|
33
|
-
"find", "stats", "pedigree", "recent", "history", "history back", "doc",
|
|
33
|
+
"find", "query", "stats", "pedigree", "recent", "history", "history back", "doc",
|
|
34
34
|
"export gedcom", "gedcom validate", "app", "app install", "live", "live start", "live stop",
|
|
35
35
|
"check", "verify", "repair", "repair undo", "seal adopt", "seal accept", "fixes", "fixes show", "fixes run", "fixes decline", "fixes reopen", "fixes undo",
|
|
36
36
|
"phone", "phone status", "phone on", "phone qr", "phone off", "phone list", "phone remove",
|
|
@@ -230,7 +230,7 @@ export const HUMAN_COMMANDS = [
|
|
|
230
230
|
"chat", "run", "session finish", "research new", "research pause", "research resume", "research done", "research edit", "research order", "research move", "review", "verify bulk", "verify stop",
|
|
231
231
|
"intake", "sync", "sync undo", "sync discard", "conflict list", "conflict resolve", "conflict leave", "event revert", "person revert", "hypothesis decide", "task list", "task wake", "task order", "story approve", "story discard",
|
|
232
232
|
"offline list", "offline show", "offline set", "offline answer",
|
|
233
|
-
"stats", "recent", "plan", "history", "history back", "person card", "person list", "pedigree", "find", "doc",
|
|
233
|
+
"stats", "recent", "plan", "history", "history back", "person card", "person list", "pedigree", "find", "query", "doc",
|
|
234
234
|
"app", "app install", "live", "live start", "live stop", "phone", "phone on", "phone qr", "phone off", "export gedcom", "pack", "unpack", "seal adopt", "seal accept", "repair undo", "backup", "tidy", "check",
|
|
235
235
|
"fixes", "fixes show", "fixes run", "fixes decline", "fixes reopen", "fixes undo", "fixes review", "media calibrate",
|
|
236
236
|
"surname accept", "surname reject", "surname group", "surname ungroup", "surname unreject", "quality dismiss", "quality undo", "place answer", "place undo", "source split",
|
package/dist/cli/human.js
CHANGED
|
@@ -6,6 +6,7 @@ import { MONTHS } from "../core/gdate.js";
|
|
|
6
6
|
import { ui } from "./ui.js";
|
|
7
7
|
import { displayName } from "../core/people.js";
|
|
8
8
|
import { foldText } from "../core/text.js";
|
|
9
|
+
import { houseHasWord } from "../core/house.js";
|
|
9
10
|
const MONTH_PL = {
|
|
10
11
|
nom: ["styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"],
|
|
11
12
|
gen: ["stycznia", "lutego", "marca", "kwietnia", "maja", "czerwca", "lipca", "sierpnia", "września", "października", "listopada", "grudnia"],
|
|
@@ -138,6 +139,9 @@ export function generationName(g, lang) {
|
|
|
138
139
|
export function humanPlace(place, house, lang) {
|
|
139
140
|
if (!house)
|
|
140
141
|
return place ?? "";
|
|
142
|
+
// a house written with its own word ("č. 7", "Nr. 12") as it is: never "č. č. 7"
|
|
143
|
+
if (houseHasWord(house))
|
|
144
|
+
return [place, house].filter(Boolean).join(" ");
|
|
141
145
|
return ui(lang, "ui.card.house", { place: place ?? "", house }).replace(/^[,\s]+/, "");
|
|
142
146
|
}
|
|
143
147
|
/** The words of a person's name, folded: what a text that names them may decline ("Václava" for Václav). */
|
package/dist/cli/ui.js
CHANGED
|
@@ -1016,6 +1016,27 @@ export const UI = {
|
|
|
1016
1016
|
"ui.show.removed.mark": "(retracted)",
|
|
1017
1017
|
"ui.show.relof": "{rel} of {who}",
|
|
1018
1018
|
"ui.show.eventOf": "{id} of {who} (the whole record: strom {type} show {owner})",
|
|
1019
|
+
"ui.query.kin.ancestors": "{of} and the ancestors",
|
|
1020
|
+
"ui.query.kin.blood": "blood relatives of {of}",
|
|
1021
|
+
"ui.query.kin.family": "relatives of {of} and their partners",
|
|
1022
|
+
"ui.query.kin.all": "everyone in the tree, related to {of}",
|
|
1023
|
+
"ui.query.place": "place {place}",
|
|
1024
|
+
"ui.query.house": "house {house}",
|
|
1025
|
+
"ui.query.surname": "surname {surname}",
|
|
1026
|
+
"ui.query.source": "source {source}",
|
|
1027
|
+
"ui.query.count": "{people, plural, one {# person} other {# people}}, {facts, plural, one {# fact} other {# facts}}",
|
|
1028
|
+
"ui.query.self": "self",
|
|
1029
|
+
"ui.query.unrelated": "not related",
|
|
1030
|
+
"ui.query.unknown": "unknown",
|
|
1031
|
+
"ui.query.side": "side branches",
|
|
1032
|
+
"ui.query.elsewhere": "+{n, plural, one {# person} other {# people}} with the word only elsewhere (a name, a note, …): {command}",
|
|
1033
|
+
"ui.query.none": "nothing found: {query}",
|
|
1034
|
+
"ui.query.try": "try: {commands}",
|
|
1035
|
+
"ui.query.story": "story {words}",
|
|
1036
|
+
"ui.query.count.stories": "{people, plural, one {# person} other {# people}}, {stories, plural, one {# story} other {# stories}}",
|
|
1037
|
+
"ui.query.story.snippet": "story: “{text}”",
|
|
1038
|
+
"ui.query.story.draft": "draft",
|
|
1039
|
+
"ui.query.story.all": "the story's sources: {list}",
|
|
1019
1040
|
"ui.event.edited": "edited: {line}",
|
|
1020
1041
|
"ui.show.sex.M": "man",
|
|
1021
1042
|
"ui.show.sex.F": "woman",
|
|
@@ -1108,6 +1129,7 @@ export const UI = {
|
|
|
1108
1129
|
"ui.help.cmd.person.list": "The people of the family tree",
|
|
1109
1130
|
"ui.help.cmd.pedigree": "The ancestors of a person as a tree",
|
|
1110
1131
|
"ui.help.cmd.find": "Find a person, a record or a place by its name",
|
|
1132
|
+
"ui.help.cmd.query": "How many, who, where, when: the facts of the family by occupation, place, years or source, with how each person is related",
|
|
1111
1133
|
"ui.help.cmd.doc": "How Strom works: the rules of the research and the app, by number or by words",
|
|
1112
1134
|
"ui.help.cmd.app": "Open the research in the Strom app",
|
|
1113
1135
|
"ui.help.cmd.app.install": "Install the Strom app from the browser",
|
|
@@ -2915,6 +2937,8 @@ export const UI = {
|
|
|
2915
2937
|
"ui.error.command.unknown.hint": "strom help (all commands)",
|
|
2916
2938
|
"ui.error.command.unknown.person": "unknown command \"strom {cmd}\"",
|
|
2917
2939
|
"ui.error.command.unknown.person.hint": "strom help --human — or just {strom}: the menu",
|
|
2940
|
+
"ui.error.command.renamed": "\"strom {old}\" is now \"strom {now}\" (the same options)",
|
|
2941
|
+
"ui.error.command.renamed.hint": "{call}",
|
|
2918
2942
|
"ui.error.option.near": "unknown option {opt} for {cmd}",
|
|
2919
2943
|
"ui.error.option.near.hint": "similar option: {near}",
|
|
2920
2944
|
"ui.conflict.none": "no open conflicts",
|
|
@@ -12,6 +12,7 @@ import { sameFamily } from "../core/surnames.js";
|
|
|
12
12
|
import { changeLines } from "../core/changelog.js";
|
|
13
13
|
import { isAgent } from "../core/which.js";
|
|
14
14
|
import { foldText, unfoldIndex } from "../core/text.js";
|
|
15
|
+
import { searchText } from "../core/searchtext.js";
|
|
15
16
|
import { makeNote, makeNotes, splitText } from "../core/actions.js";
|
|
16
17
|
import { takeSide } from "../core/sync.js";
|
|
17
18
|
import { againAllowed, claimOf, isEditConflict, weighedSources } from "../core/conflicts.js";
|
|
@@ -1240,28 +1241,8 @@ register({
|
|
|
1240
1241
|
},
|
|
1241
1242
|
});
|
|
1242
1243
|
// ── find and gaps ──────────────────────────────────────────────────────────
|
|
1243
|
-
/** Searchable text of a record, for `strom find
|
|
1244
|
-
|
|
1245
|
-
const NOT_SEARCHED = new Set(["retractedNames", "retractedNotes", "edits", "noteEdits"]);
|
|
1246
|
-
function haystack(r) {
|
|
1247
|
-
const parts = [];
|
|
1248
|
-
const add = (v) => {
|
|
1249
|
-
if (typeof v === "string")
|
|
1250
|
-
parts.push(v);
|
|
1251
|
-
else if (Array.isArray(v))
|
|
1252
|
-
v.forEach(add);
|
|
1253
|
-
else if (v && typeof v === "object")
|
|
1254
|
-
for (const [k, x] of Object.entries(v))
|
|
1255
|
-
if (!NOT_SEARCHED.has(k))
|
|
1256
|
-
add(x);
|
|
1257
|
-
};
|
|
1258
|
-
const { id: _i, type: _t, created: _c, updated: _u, ...rest } = r;
|
|
1259
|
-
// a person's titles ("Ing.", "ml.") are never searched as their name — the Strom app finds nobody by them either
|
|
1260
|
-
if (r.type === "person")
|
|
1261
|
-
rest.names = r.names.map(({ prefix: _p, suffix: _s, ...n }) => n);
|
|
1262
|
-
add(rest);
|
|
1263
|
-
return parts.join(" \u0001 ");
|
|
1264
|
-
}
|
|
1244
|
+
/** Searchable text of a record, for `strom find` (core/searchtext.ts). */
|
|
1245
|
+
const haystack = searchText;
|
|
1265
1246
|
function label(tree, r) {
|
|
1266
1247
|
switch (r.type) {
|
|
1267
1248
|
case "person":
|
|
@@ -1300,7 +1281,8 @@ register({
|
|
|
1300
1281
|
summary: "Full-text search across everything (people, sources, transcripts, searches, tasks, notes)",
|
|
1301
1282
|
group: "analysis",
|
|
1302
1283
|
tree: true,
|
|
1303
|
-
description: "Words in one argument must all be there. Several arguments are several searches in one go (e.g. old codes\nof a converted research) — each answered on its own
|
|
1284
|
+
description: "Words in one argument must all be there. Several arguments are several searches in one go (e.g. old codes\nof a converted research) — each answered on its own.\n" +
|
|
1285
|
+
"A word in any text (a name, a note); the facts recorded of people (how many millers, who lived at house 12,\nwho is related how): strom query.",
|
|
1304
1286
|
args: [{ name: "text", description: "words to find (diacritics optional); several arguments = several searches", required: true, variadic: true }],
|
|
1305
1287
|
options: [{ name: "type", type: "string", value: "<type>", description: `only one record type: ${Object.keys(RECORD_TYPES).join(", ")}`, aliases: ["kind"] }],
|
|
1306
1288
|
examples: ['strom find "čp. 12"', "strom find mlynar --type source", "strom find \"č. 12\" \"č. 15\" mlynar"],
|
package/dist/commands/guide.js
CHANGED
|
@@ -278,6 +278,20 @@ FINDING YOUR WAY
|
|
|
278
278
|
strom grep <text> [--in inputs|notes|output|I…] [--context 2]
|
|
279
279
|
a text in the research's own files, line by line (accents
|
|
280
280
|
optional) — never Read a big input in pieces
|
|
281
|
+
the user asks how many, who, where, when (millers in the family, who lived at house 12): one call,
|
|
282
|
+
never find and show person by person — strom query --occupation mlynar --count --by generation ·
|
|
283
|
+
strom query --place Lhota --house 12 --years 1750-1850 --kin family · strom query --source S0001.
|
|
284
|
+
find: a word in any text; query: what is recorded of a person, with the relation to the main person
|
|
285
|
+
(--kin: ancestors, blood the default, family, all). Answer with each person's name and their ID in
|
|
286
|
+
brackets after it (Karel Lhoták (P0012)), the relation in words whole as query gives it, never
|
|
287
|
+
shortened, the source by its title with its S… in brackets, and say how sure each fact is (its
|
|
288
|
+
status): only a proven one is told as a fact;
|
|
289
|
+
probable, possible and a lead are not proven — say so ("probably", "a lead, not proven yet"), never
|
|
290
|
+
as a fact; strom app --person P0001 opens one in the Strom app. The stories holding a word:
|
|
291
|
+
strom query --story mlyn — a story retells the facts: answer from the facts and their sources, a
|
|
292
|
+
story only shows where to look. query answers the user and shows where to look; whose a record is,
|
|
293
|
+
who a person is, verifying and writing facts go as ever (strom person show, the sources, the method)
|
|
294
|
+
— a row of query is not enough for it.
|
|
281
295
|
for the user, in the research language: strom stats (how far the research got) · strom recent
|
|
282
296
|
(what came in lately) · strom plan (what you do next) · strom pedigree [P…] (the ancestors as a
|
|
283
297
|
tree) · strom person card P… (one life)
|