strom-research 1.34.0-beta.2 → 1.34.0-beta.3
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 +3 -1
- package/CHANGELOG.de.md +3 -2
- package/CHANGELOG.md +3 -1
- package/CHANGELOG.pl.md +3 -2
- package/dist/core/sync.js +19 -12
- package/dist/core/tree.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.cs.md
CHANGED
|
@@ -7,7 +7,7 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
|
|
|
7
7
|
|
|
8
8
|
## 1.34.0
|
|
9
9
|
|
|
10
|
-
*Připravuje se: bety do 1.34.0-beta.
|
|
10
|
+
*Připravuje se: bety do 1.34.0-beta.3. Oddíl bude úplný s vydáním.*
|
|
11
11
|
|
|
12
12
|
- **Hlavní citace a jedno pořadí citací:** citace každého údaje jdou v každém souboru v jednom pořadí – nejdřív hlavní
|
|
13
13
|
citace, pak záznam samotné události, další originály a zbytek podle toho, jak jsou jisté. Hlavní citaci volí jen
|
|
@@ -22,6 +22,8 @@ Změny každé verze ve zkratce. Úplné poznámky a instalační řádky jsou n
|
|
|
22
22
|
- **Poznámky z aplikace Strom:** úpravy poznámky údaje a poznámky účastníka od uživatele se vracejí do výzkumu, dřívější
|
|
23
23
|
text zůstane v historii poznámky; odebraná poznámka nic neodebere. Vlastní událost kmotra nebo svědka z GEDCOM
|
|
24
24
|
aplikace se pojmenuje v jazyce výzkumu.
|
|
25
|
+
Vlastní druhé narození nebo úmrtí aplikace a její zápis narození či úmrtí se poznají i v polštině a nehlásí se jako
|
|
26
|
+
nepřevzaté.
|
|
25
27
|
- **Domov, ve kterém už výzkum je:** `strom setup --home <složka> --use-existing` (i nastavení po souhlasu) vezme tu
|
|
26
28
|
složku za domov tak, jak je – nic se nepřesouvá a stará složka zůstane, jak byla.
|
|
27
29
|
- **Odmítnuté příkazy:** příkaz, který oprávnění agenta odmítla, se uchová celý, i víceřádkový, takže ho `strom error`
|
package/CHANGELOG.de.md
CHANGED
|
@@ -7,7 +7,7 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
|
|
|
7
7
|
|
|
8
8
|
## 1.34.0
|
|
9
9
|
|
|
10
|
-
*In Vorbereitung: die Betas bis 1.34.0-beta.
|
|
10
|
+
*In Vorbereitung: die Betas bis 1.34.0-beta.3. Der Abschnitt ist mit dem Release vollständig.*
|
|
11
11
|
|
|
12
12
|
- **Das Hauptzitat und eine Reihenfolge der Zitate:** Die Zitate jeder Angabe stehen in jeder Datei in einer
|
|
13
13
|
Reihenfolge – zuerst das Hauptzitat, dann der Eintrag des Ereignisses selbst, die weiteren Originale und der Rest
|
|
@@ -25,7 +25,8 @@ Die Änderungen jeder Version in Kürze. Die vollständigen Hinweise und die Ins
|
|
|
25
25
|
- **Notizen aus der Strom-App:** Die Änderungen des Benutzers an der Notiz einer Angabe und an der Notiz eines
|
|
26
26
|
Beteiligten kommen in die Forschung zurück, der frühere Text bleibt in der Geschichte der Notiz; eine entfernte Notiz
|
|
27
27
|
entfernt nichts. Das eigene Ereignis eines Paten oder Zeugen im GEDCOM der App wird in der Sprache der Forschung
|
|
28
|
-
benannt.
|
|
28
|
+
benannt. Die eigene zweite Geburt oder der zweite Tod der App und ihr Eintrag einer Geburt oder eines Todes werden
|
|
29
|
+
auch auf Polnisch erkannt und nie als nicht übernommen gemeldet.
|
|
29
30
|
- **Ein Zuhause, in dem schon eine Forschung liegt:** `strom setup --home <Ordner> --use-existing` (und die Einrichtung
|
|
30
31
|
nach einem Ja) nimmt diesen Ordner so, wie er ist, als Zuhause – nichts wird verschoben, der alte Ordner bleibt, wie
|
|
31
32
|
er war.
|
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ The changes of each version in short. The full notes and the install lines are o
|
|
|
7
7
|
|
|
8
8
|
## 1.34.0
|
|
9
9
|
|
|
10
|
-
*In preparation: the betas up to 1.34.0-beta.
|
|
10
|
+
*In preparation: the betas up to 1.34.0-beta.3. The section is complete with the release.*
|
|
11
11
|
|
|
12
12
|
- **The main citation and one order of citations:** every fact's citations come in one order in every file — the
|
|
13
13
|
main citation first, then the record of the event itself, the other originals, the rest by how sure they are. The
|
|
@@ -22,6 +22,8 @@ The changes of each version in short. The full notes and the install lines are o
|
|
|
22
22
|
- **Notes from the Strom app:** the user's edits of a fact's note and of a participant's note come back into the
|
|
23
23
|
research, the earlier text kept in the note's history; a note taken away takes nothing away. A godparent's or a
|
|
24
24
|
witness's own event in the app's GEDCOM is named in the research's language.
|
|
25
|
+
The app's own second birth or death and its entry of a birth or a death are known in Polish too, never reported as
|
|
26
|
+
not taken over.
|
|
25
27
|
- **A home that holds a research already:** `strom setup --home <folder> --use-existing` (and the setup on a yes) takes
|
|
26
28
|
that folder as the home as it is — nothing is moved and the old folder stays as it was.
|
|
27
29
|
- **Refused commands:** a command the agent's permissions refused is kept whole, also one of several lines, so
|
package/CHANGELOG.pl.md
CHANGED
|
@@ -7,7 +7,7 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
|
|
|
7
7
|
|
|
8
8
|
## 1.34.0
|
|
9
9
|
|
|
10
|
-
*W przygotowaniu: bety do 1.34.0-beta.
|
|
10
|
+
*W przygotowaniu: bety do 1.34.0-beta.3. Sekcja będzie kompletna z wydaniem.*
|
|
11
11
|
|
|
12
12
|
- **Główny przypis i jedna kolejność przypisów:** przypisy każdej danej idą w każdym pliku w jednej kolejności – najpierw
|
|
13
13
|
główny przypis, potem zapis samego zdarzenia, inne oryginały, a reszta według tego, jak są pewne. Główny przypis
|
|
@@ -22,7 +22,8 @@ Zmiany każdej wersji w skrócie. Pełne informacje o wydaniach i polecenia inst
|
|
|
22
22
|
kolejki. Komunikat agenta o wyczerpaniu limitu jest odczytywany jako limit planu razem z czasem odnowienia.
|
|
23
23
|
- **Notatki z aplikacji Strom:** zmiany użytkownika w notatce danej i w notatce uczestnika wracają do badania, wcześniejszy
|
|
24
24
|
tekst zostaje w historii notatki; usunięta notatka niczego nie usuwa. Własne zdarzenie chrzestnego lub świadka w
|
|
25
|
-
GEDCOM aplikacji jest nazwane w języku badania.
|
|
25
|
+
GEDCOM aplikacji jest nazwane w języku badania. Własne drugie urodzenie lub zgon aplikacji i jej akt urodzenia lub
|
|
26
|
+
zgonu są rozpoznawane także po polsku i nigdy nie są zgłaszane jako nieprzejęte.
|
|
26
27
|
- **Folder domowy, w którym badanie już jest:** `strom setup --home <folder> --use-existing` (i konfiguracja po
|
|
27
28
|
zgodzie) przyjmuje ten folder za domowy takim, jaki jest – nic nie jest przenoszone, a stary folder zostaje bez zmian.
|
|
28
29
|
- **Odrzucone polecenia:** polecenie odrzucone przez uprawnienia agenta jest zachowane w całości, także wielowierszowe,
|
package/dist/core/sync.js
CHANGED
|
@@ -192,18 +192,25 @@ function gedPlaces(records) {
|
|
|
192
192
|
}
|
|
193
193
|
/** The same point: the Strom app keeps six decimals. */
|
|
194
194
|
const samePoint = (a, b) => Math.abs(a.lat - b.lat) < 5e-7 && Math.abs(a.lon - b.lon) < 5e-7;
|
|
195
|
-
/**
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
/**
|
|
196
|
+
* The Strom app's words for what it adds of its own (its gedcomNotes in each language it runs in: en, cs, de, pl), as
|
|
197
|
+
* it writes them — the TYPE of an EVEN comes back in the language the app ran in when it read our file:
|
|
198
|
+
* - altBirth, altDeath ("Birth (alternative record)"): a second birth or death of ours as an event of its own;
|
|
199
|
+
* - birthRecord, deathRecord ("Birth record"): its entry of a birth, a death, carrying the people of the entry.
|
|
200
|
+
* A language the app adds goes here with all four.
|
|
201
|
+
*/
|
|
202
|
+
const APP_WORDS = {
|
|
203
|
+
altBirth: ["Birth (alternative record)", "Narození (alternativní záznam)", "Geburt (alternativer Eintrag)", "Urodzenie (alternatywny zapis)"],
|
|
204
|
+
altDeath: ["Death (alternative record)", "Úmrtí (alternativní záznam)", "Tod (alternativer Eintrag)", "Zgon (alternatywny zapis)"],
|
|
205
|
+
birthRecord: ["Birth record", "Zápis o narození", "Geburtseintrag", "Akt urodzenia"],
|
|
206
|
+
deathRecord: ["Death record", "Zápis o úmrtí", "Sterbeeintrag", "Akt zgonu"],
|
|
200
207
|
};
|
|
208
|
+
/** The app's words of each language, folded, → the fact they are of. */
|
|
209
|
+
const appWords = (birth, death) => new Map([...birth.map((w) => [fold(w), "BIRT"]), ...death.map((w) => [fold(w), "DEAT"])]);
|
|
210
|
+
/** The Strom app's "Birth (alternative record)": a second birth or death of ours coming back as an event of its own. */
|
|
211
|
+
const ALTERNATIVE = appWords(APP_WORDS.altBirth, APP_WORDS.altDeath);
|
|
201
212
|
/** The Strom app's entry of a birth, a death (its gedcomNotes.birthRecord, deathRecord) → the fact it is of. */
|
|
202
|
-
const ENTRY =
|
|
203
|
-
"birth record": "BIRT", "death record": "DEAT",
|
|
204
|
-
"zapis o narozeni": "BIRT", "zapis o umrti": "DEAT",
|
|
205
|
-
geburtseintrag: "BIRT", sterbeeintrag: "DEAT",
|
|
206
|
-
};
|
|
213
|
+
const ENTRY = appWords(APP_WORDS.birthRecord, APP_WORDS.deathRecord);
|
|
207
214
|
/** Facts there is one of: an edit of one is a change, not a second fact. */
|
|
208
215
|
const ONE = new Set(["BIRT", "BAPM", "DEAT", "BURI", "CREM", "MARR", "DIV"]);
|
|
209
216
|
function gedFacts(node, couple, read = {}) {
|
|
@@ -212,7 +219,7 @@ function gedFacts(node, couple, read = {}) {
|
|
|
212
219
|
/** What the Strom app adds of its own: an alternative birth or death as an event, a "Birth record" beside a birth, every couple married. */
|
|
213
220
|
function cleanFacts(facts) {
|
|
214
221
|
for (const f of facts) {
|
|
215
|
-
const alt = f.kind === "EVEN" && f.label ? ALTERNATIVE
|
|
222
|
+
const alt = f.kind === "EVEN" && f.label ? ALTERNATIVE.get(fold(f.label)) : undefined;
|
|
216
223
|
if (alt) {
|
|
217
224
|
f.kind = alt;
|
|
218
225
|
if (f.value === f.label)
|
|
@@ -224,7 +231,7 @@ function cleanFacts(facts) {
|
|
|
224
231
|
// baptism or burial): theirs are the birth's, the death's — or it is that birth, that death
|
|
225
232
|
let out = facts;
|
|
226
233
|
for (const f of facts) {
|
|
227
|
-
const of = f.kind === "EVEN" && f.label ? ENTRY
|
|
234
|
+
const of = f.kind === "EVEN" && f.label ? ENTRY.get(fold(f.label)) : undefined;
|
|
228
235
|
if (!of)
|
|
229
236
|
continue;
|
|
230
237
|
const host = facts.find((o) => o !== f && o.kind !== "EVEN" && (o.kind === of || kindOf(o.kind) === (of === "BIRT" ? "BAPM" : "BURI")));
|
package/dist/core/tree.js
CHANGED
|
@@ -32,7 +32,7 @@ export const TREE_FILE = "strom.json";
|
|
|
32
32
|
export const SEAL_FOREIGN = "seal.foreign";
|
|
33
33
|
// between releases the candidate being made (a bridge run from the sources says what it is: the Strom app goes by it);
|
|
34
34
|
// at a release the release's own (package.json)
|
|
35
|
-
export const VERSION = "1.34.0-beta.
|
|
35
|
+
export const VERSION = "1.34.0-beta.3";
|
|
36
36
|
/** What a new research is settled with from the start: nothing an older strom counted otherwise to set right in it. */
|
|
37
37
|
export const NEW_TREE_SETTLED = ["readers-1", "proven-originals-1", "origins-1", "verify-originals-1", "origins-tree-1"];
|
|
38
38
|
const GITIGNORE = `# Strom Research — local state and large files are not versioned
|