Skip to content

Commit ea8a124

Browse files
github-actions[bot]dthaler2dthalertychonievich
authored
Merge main into next-minor (#421)
* Update gedstruct to make cross reference identifiers optional Fixes #408 Signed-off-by: Dave Thaler <[email protected]> * Revert "Update gedstruct to make cross reference identifiers optional" * Deprecate using stdTag in non-standard ways As discussed in issue #97 Signed-off-by: Dave Thaler <[email protected]> * Update specification/gedcom-1-hierarchical-container-format.md * Update gedcom-3-structures-3-meaning.md (#423) Copy a line from next-minor per #416 * Fix typos (#431) Fix spelling of "contains" in a README file. Fix formatting in GEDCOM spec caused by lack of a blank line before bulleted list. Change bullets in source from "*" to "-" just for consistency with rest of source. Signed-off-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]> * Add note about oddly formed age payloads (#432) * Add note about oddly formed age payloads Signed-off-by: Dave Thaler <[email protected]> * Update specification/gedcom-2-data-types.md Co-authored-by: Luther Tychonievich <[email protected]> --------- Signed-off-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]> Co-authored-by: Luther Tychonievich <[email protected]> * Update extracted files (#427) Co-authored-by: Dave Thaler <[email protected]> --------- Signed-off-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]> Co-authored-by: Dave Thaler <[email protected]> Co-authored-by: Luther Tychonievich <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dave Thaler <[email protected]>
1 parent 5a8180e commit ea8a124

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

extracted-files/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ All files in this directory and its sub-directories, except for this README file
1212
- Various TSV files provide simple look-ups; all of this information is also available in the YAML files
1313
- `cardinalities.tsv` contains (superstructure type, substructure type, cardinality of substructure) triples.
1414
- `enumrations.tsv` contains (enumeration set, enumeration value) pairs.
15-
- `enumerationsets.tsv` contaisn (structure type, enmeration set) pairs.
15+
- `enumerationsets.tsv` contains (structure type, enmeration set) pairs.
1616
- `payloads.tsv` contains (structure type, payload type) pairs.
1717
- `substructures.tsv` contains (superstructure type, substructure tag, substructure type) triples.
1818

extracted-files/tags/type-Age

+10
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@ specification:
4949
be unaware of these traditions or may fail to convert them to the round-down
5050
convention, errors in age of up to a year are common.
5151

52+
<div class="note">
53+
54+
Because age payloads are intended to allow recording the age as it was recorded
55+
in records that could contain errors, odd ages such as `8w 30d`, `1y 400d`,
56+
`1y 30m`, etc. are permitted. Some applications might convert these to more
57+
standard forms; if so, it is recommended that they use a `PHRASE` substructure
58+
to hold the original form.
59+
60+
</div>
61+
5262
Age payloads may also be omitted entirely if no suitable form is known but a
5363
substructure (such as a `PHRASE`) is desired.
5464

specification/gedcom-1-hierarchical-container-format.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Extensions cannot change existing meanings, cardinalities, or calendars.
319319
A **tagged extension structure** is a structure whose tag matches production `extTag`. Tagged extension structures may appear as records or substructures of any other structure. Their meaning is defined by their tag, as is discussed more fully in the section [Extension Tags].
320320
321321
Any substructure of a tagged extension structure that uses a tag matching `stdTag` is an **extension-defined substructure**.
322-
Substructures of an extension-defined substructure that uses a tag matching `stdTag` are also extension-defined substructures.
322+
Substructures of an extension-defined substructure that uses a tag matching `stdTag` are also extension-defined substructures, but this specification deprecates using a `stdTag` with a definition that does not match any standard type with that tag.
323323
The meaning and use of each extension-defined substructure is defined by the tagged extension structure it occurs within, not by its tag alone nor by this specification.
324324
325325
:::example
@@ -337,7 +337,8 @@ In the following
337337
```
338338
339339
- Both uses of `_LOC` are tagged extension structures, as is `_POP`.
340-
- `_LOC`.`NAME` and `_LOC`.`NAME`.`DATE` are both extension-defined substructures. Their meaning is defined by the specification defining `_LOC`.
340+
- `_LOC`.`NAME` and `_LOC`.`NAME`.`DATE` are both extension-defined substructures. Their meaning is defined by the specification defining `_LOC`, but since no standard definition of `NAME` permits `DATE` as a substructure, such use is
341+
deprecated.
341342
- `_POP`.`DATE` is an extension-defined substructure. Its meaning is defined by the specification defining `_POP`.
342343
- Even though both `DATE`s appear to have `g7:type-DATE` payloads, we can't know that is the intended data type without consulting the defining specifications of `_LOC` and `_POP`, respectively. The first might be a `g7:type-DATE#period` and the second a `g7:type-DATE#exact`, for example.
343344
:::

specification/gedcom-2-data-types.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,12 @@ Because numbers are rounded down, `>` effectively includes its endpoint; that is
225225

226226
Different cultures count ages differently. Some increment years on the anniversary of birth and others at particular seasons. Some round to the nearest year, others round years down, others round years up. Because users may be unaware of these traditions or may fail to convert them to the round-down convention, errors in age of up to a year are common.
227227

228+
:::note
229+
Because age payloads are intended to allow recording the age as it was recorded in records that could contain errors,
230+
odd ages such as `8w 30d`, `1y 400d`, `1y 30m`, etc. are permitted. Some applications might convert these to more
231+
standard forms; if so, it is recommended that they use a `PHRASE` substructure to hold the original form.
232+
:::
233+
228234
Age payloads may also be omitted entirely if no suitable form is known but a substructure (such as a `PHRASE`) is desired.
229235

230236
:::note
@@ -304,13 +310,14 @@ registered values and extension values.
304310
MediaType = type "/" subtype parameters
305311
```
306312
where:
307-
* `type` and `subtype` are defined in [RFC 2045](https://www.rfc-editor.org/info/rfc2045)
313+
314+
- `type` and `subtype` are defined in [RFC 2045](https://www.rfc-editor.org/info/rfc2045)
308315
section 5.1, and registered values (i.e., those not beginning with "x-") are further
309316
constrained by the definitions in
310317
[RFC 6838](https://www.rfc-editor.org/info/rfc6838), section 4.2.
311318
A [registry of media types](https://www.iana.org/assignments/media-types/media-types.xhtml)
312319
is maintained publicly by the IANA.
313-
* `parameters` is defined in [RFC 9110](https://www.rfc-editor.org/info/rfc9110),
320+
- `parameters` is defined in [RFC 9110](https://www.rfc-editor.org/info/rfc9110),
314321
section 5.6.6. Note that the `parameters` definition in GEDCOM matches that used by HTTP
315322
headers which permit whitespace around the ";" delimiter, whereas email headers in
316323
RFC 2045 do not.

0 commit comments

Comments
 (0)