tbx 0.1.1 → 0.1.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.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_todo.yml +1 -1
  3. data/CHANGELOG.md +32 -0
  4. data/CLAUDE.md +21 -1
  5. data/README.adoc +365 -19
  6. data/lib/tbx/admin.rb +24 -11
  7. data/lib/tbx/admin_grp.rb +5 -0
  8. data/lib/tbx/admin_note.rb +14 -6
  9. data/lib/tbx/back.rb +5 -0
  10. data/lib/tbx/body.rb +3 -0
  11. data/lib/tbx/change.rb +6 -0
  12. data/lib/tbx/concept_entry.rb +10 -0
  13. data/lib/tbx/data_element.rb +50 -0
  14. data/lib/tbx/date.rb +6 -0
  15. data/lib/tbx/descrip.rb +23 -11
  16. data/lib/tbx/descrip_grp.rb +7 -0
  17. data/lib/tbx/descrip_note.rb +6 -6
  18. data/lib/tbx/document.rb +12 -0
  19. data/lib/tbx/ec.rb +16 -0
  20. data/lib/tbx/encoding_desc.rb +3 -0
  21. data/lib/tbx/file_desc.rb +6 -0
  22. data/lib/tbx/foreign.rb +6 -0
  23. data/lib/tbx/hi.rb +18 -0
  24. data/lib/tbx/item.rb +6 -0
  25. data/lib/tbx/item_grp.rb +6 -0
  26. data/lib/tbx/item_set.rb +6 -0
  27. data/lib/tbx/lang_sec.rb +6 -0
  28. data/lib/tbx/modules/basic.rb +92 -0
  29. data/lib/tbx/modules/core_types.rb +23 -0
  30. data/lib/tbx/modules/linguist.rb +46 -0
  31. data/lib/tbx/modules/min.rb +46 -0
  32. data/lib/tbx/namespace.rb +5 -0
  33. data/lib/tbx/note.rb +9 -0
  34. data/lib/tbx/p.rb +9 -0
  35. data/lib/tbx/ph.rb +6 -0
  36. data/lib/tbx/publication_stmt.rb +3 -0
  37. data/lib/tbx/ref.rb +17 -6
  38. data/lib/tbx/ref_object.rb +6 -0
  39. data/lib/tbx/ref_object_sec.rb +6 -0
  40. data/lib/tbx/revision_desc.rb +3 -0
  41. data/lib/tbx/sc.rb +9 -6
  42. data/lib/tbx/source_desc.rb +3 -0
  43. data/lib/tbx/tbx_header.rb +7 -0
  44. data/lib/tbx/term.rb +6 -0
  45. data/lib/tbx/term_comp.rb +26 -0
  46. data/lib/tbx/term_comp_grp.rb +24 -0
  47. data/lib/tbx/term_comp_sec.rb +45 -0
  48. data/lib/tbx/term_note.rb +44 -11
  49. data/lib/tbx/term_note_grp.rb +7 -0
  50. data/lib/tbx/term_sec.rb +8 -0
  51. data/lib/tbx/text_element.rb +5 -0
  52. data/lib/tbx/title.rb +6 -0
  53. data/lib/tbx/title_stmt.rb +3 -0
  54. data/lib/tbx/transac.rb +17 -6
  55. data/lib/tbx/transac_grp.rb +6 -0
  56. data/lib/tbx/transac_note.rb +17 -6
  57. data/lib/tbx/version.rb +1 -1
  58. data/lib/tbx/xref.rb +16 -0
  59. data/lib/tbx.rb +13 -0
  60. data/reference-docs/README.adoc +109 -0
  61. data/reference-docs/schemas/Basic_Module_Definition.pdf +0 -0
  62. data/reference-docs/schemas/Min_Module_Definition.pdf +0 -0
  63. data/reference-docs/schemas/TBX-Basic_ImplementationGuide/TBX-Basic_ImplementationGuide.pdf +0 -0
  64. data/reference-docs/schemas/TBX-Core_dialect/Schemas/Example_Astronomy_DCA_VALID.tbx +710 -0
  65. data/reference-docs/schemas/TBX-Core_dialect/Schemas/TBX-Core.sch +47 -0
  66. data/reference-docs/schemas/TBX-Core_dialect/Schemas/TBXcoreStructV03_TBX-Core_integrated.rng +1171 -0
  67. data/reference-docs/schemas/TBX-Core_dialect/TBX-Core Definition.pdf +0 -0
  68. data/reference-docs/schemas/TBX-Linguist_dialect/DCA/Example_Astronomy_DCA_VALID.tbx +4028 -0
  69. data/reference-docs/schemas/TBX-Linguist_dialect/DCA/TBX-Linguist_DCA.sch +146 -0
  70. data/reference-docs/schemas/TBX-Linguist_dialect/DCA/TBXcoreStructV03_TBX-Linguist_integrated.rng +1198 -0
  71. data/reference-docs/schemas/TBX-Linguist_dialect/DCT/Example_Astronomy_DCT_VALID.tbx +4019 -0
  72. data/reference-docs/schemas/TBX-Linguist_dialect/DCT/TBX-Linguist.nvdl +41 -0
  73. data/reference-docs/schemas/TBX-Linguist_dialect/DCT/TBX-Linguist_DCT.sch +48 -0
  74. data/reference-docs/schemas/TBX-Linguist_dialect/TBX-Linguist Definition.pdf +0 -0
  75. data/reference-docs/schemas/TBX-Min_dialect/DCA/TBX-Min_DCA.sch +82 -0
  76. data/reference-docs/schemas/TBX-Min_dialect/DCT/TBX-Min.nvdl +25 -0
  77. data/reference-docs/schemas/TBX-Min_dialect/DCT/TBX-Min_DCT.sch +48 -0
  78. data/reference-docs/schemas/TBX-Min_dialect/TBX-Min Definition.pdf +0 -0
  79. data/reference-docs/schemas/TBX_linguist_module/Linguist Module Definition.pdf +0 -0
  80. data/reference-docs/schemas/TBX_linguist_module/Linguist.rng +93 -0
  81. data/reference-docs/schemas/TBX_linguist_module/Linguist.sch +33 -0
  82. data/reference-docs/schemas/TBX_linguist_module/Linguist.tbxmd +47 -0
  83. data/reference-docs/schemas/TBX_module_description_xml/TBX Module Description.pdf +0 -0
  84. data/reference-docs/schemas/TBX_module_description_xml/tbxmd.rng +192 -0
  85. data/reference-docs/schemas/TBX_termComp_module/TermComp-namespace.rng +156 -0
  86. metadata +36 -2
@@ -0,0 +1,156 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <grammar
3
+ xmlns="http://relaxng.org/ns/structure/1.0"
4
+ xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
5
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
6
+ ns="urn:iso:std:iso:30042:termComp:ed-2">
7
+
8
+ <define name="idlang.attributes">
9
+ <ref name="id.attributes"/>
10
+ <ref name="lang.attributes"/>
11
+ </define>
12
+ <define name="id.attributes">
13
+ <ref name="id.attribute.id"/>
14
+ </define>
15
+ <define name="id.attribute.id">
16
+ <optional>
17
+ <attribute name="id">
18
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
19
+ <data type="ID"/>
20
+ </attribute>
21
+ </optional>
22
+ </define>
23
+ <define name="lang.attributes">
24
+ <ref name="lang.attribute.xmllang"/>
25
+ </define>
26
+ <define name="lang.attribute.xmllang">
27
+ <optional>
28
+ <attribute name="xml:lang">
29
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Indicates
30
+ the language of the element content. The allowed values are found in IETF RFC 4646 or
31
+ its successor. This attribute is optional for elements that use this attribute class.
32
+ For a description, see the information at the tbx element.</a:documentation>
33
+ <text/>
34
+ </attribute>
35
+ </optional>
36
+ </define>
37
+
38
+
39
+ <define name="termComp">
40
+ <element name="termComp">
41
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
42
+ <ref name="termComp.content"/>
43
+ <ref name="termComp.localattributes"/>
44
+ </element>
45
+ </define>
46
+ <define name="termComp.content">
47
+ <text/>
48
+ </define>
49
+ <define name="termComp.localattributes">
50
+ <ref name="idlang.attributes"/>
51
+ </define>
52
+ <define name="termCompGrp">
53
+ <element name="termCompGrp">
54
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
55
+ <ref name="termCompGrp.content"/>
56
+ <ref name="termCompGrp.localattributes"/>
57
+ </element>
58
+ </define>
59
+ <define name="termCompGrp.content">
60
+ <ref name="termComp"/>
61
+ <zeroOrMore>
62
+ <ref name="note"/>
63
+ </zeroOrMore>
64
+ </define>
65
+ <define name="termCompGrp.localattributes">
66
+ <ref name="id.attributes"/>
67
+ </define>
68
+ <define name="termCompSec">
69
+ <element name="termCompSec">
70
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"/>
71
+ <ref name="termCompSec.content"/>
72
+ <ref name="termCompSec.localattributes"/>
73
+ </element>
74
+ </define>
75
+ <define name="termCompSec.content">
76
+ <zeroOrMore>
77
+ <ref name="note"/>
78
+ </zeroOrMore>
79
+ <oneOrMore>
80
+ <choice>
81
+ <ref name="termComp"/>
82
+ <ref name="termCompGrp"/>
83
+ </choice>
84
+ </oneOrMore>
85
+ </define>
86
+ <define name="termCompSec.localattributes">
87
+ <ref name="id.attributes"/>
88
+ <attribute name="type">
89
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Indicates
90
+ the type of the termCompSec, such as hyphenation. The value indicates on what basis
91
+ the term components were identified, such as by hyphenation parts or by
92
+ syllables.</a:documentation>
93
+ <choice>
94
+ <value>hyphenation</value>
95
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
96
+ >(Hyphenation) The termComp elements contain the parts of a term as it would be
97
+ hyphenated, such as at the end of a line, according to a given set of
98
+ rules.</a:documentation>
99
+ <value>lemma</value>
100
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
101
+ >(Lemma) The termComp elements contain the base form of the term or of the
102
+ individual words that it comprises. A base form of a word or term, sometimes
103
+ called a lemma, is the form that is used as the formal dictionary entry for the
104
+ term. For nouns, the base form is frequently the nominative singular form (in
105
+ languages that show variation by case). For adjectives it is the positive form of
106
+ the adjective, as opposed to the comparative, and in some languages it is
107
+ uninflected, whereas in others it is the masculine singular. For verbs, it is
108
+ generally the infinitive.</a:documentation>
109
+ <value>morphologicalElement</value>
110
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
111
+ >(Morphological element) The termComp elements contain the individual morphemes
112
+ that comprise the term. .</a:documentation>
113
+ <value>syllabification</value>
114
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
115
+ >(Syllabification) The termComp elements contain the individual syllables that
116
+ comprise the term.</a:documentation>
117
+ <value>termElement</value>
118
+ <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">(Term
119
+ element) The termComp elements contain any other logically significant portion of
120
+ the term.</a:documentation>
121
+ </choice>
122
+ </attribute>
123
+ </define>
124
+
125
+ <define name="termCompSec.types">
126
+ <attribute name="type">
127
+ <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">Indicates
128
+ the type of the termCompSec, such as hyphenation. The value indicates on what basis the
129
+ term components were identified, such as by hyphenation parts or by
130
+ syllables.</documentation>
131
+ <choice>
132
+ <documentation xmlns="http://relaxng.org/ns/compatibility/annotations/1.0">For an integrated schema for use in non-namespace environments (DCA style),
133
+ replace &lt;text/&gt; with the allowed values of the "type" attribute.</documentation>
134
+ <text/>
135
+ </choice>
136
+ </attribute>
137
+ <ref name="dca.attributes"/>
138
+ </define>
139
+
140
+ <define name="note">
141
+ <element name="note">
142
+ <text/>
143
+ </element>
144
+ </define>
145
+ <define name="dca.attributes">
146
+ <optional>
147
+ <attribute name="module">
148
+ <text/>
149
+ </attribute>
150
+ </optional>
151
+ </define>
152
+
153
+ <start>
154
+ <ref name="termCompSec"/>
155
+ </start>
156
+ </grammar>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tbx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-05 00:00:00.000000000 Z
11
+ date: 2026-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lutaml-model
@@ -52,6 +52,7 @@ files:
52
52
  - lib/tbx/body.rb
53
53
  - lib/tbx/change.rb
54
54
  - lib/tbx/concept_entry.rb
55
+ - lib/tbx/data_element.rb
55
56
  - lib/tbx/date.rb
56
57
  - lib/tbx/descrip.rb
57
58
  - lib/tbx/descrip_grp.rb
@@ -66,6 +67,10 @@ files:
66
67
  - lib/tbx/item_grp.rb
67
68
  - lib/tbx/item_set.rb
68
69
  - lib/tbx/lang_sec.rb
70
+ - lib/tbx/modules/basic.rb
71
+ - lib/tbx/modules/core_types.rb
72
+ - lib/tbx/modules/linguist.rb
73
+ - lib/tbx/modules/min.rb
69
74
  - lib/tbx/namespace.rb
70
75
  - lib/tbx/note.rb
71
76
  - lib/tbx/p.rb
@@ -79,6 +84,9 @@ files:
79
84
  - lib/tbx/source_desc.rb
80
85
  - lib/tbx/tbx_header.rb
81
86
  - lib/tbx/term.rb
87
+ - lib/tbx/term_comp.rb
88
+ - lib/tbx/term_comp_grp.rb
89
+ - lib/tbx/term_comp_sec.rb
82
90
  - lib/tbx/term_note.rb
83
91
  - lib/tbx/term_note_grp.rb
84
92
  - lib/tbx/term_sec.rb
@@ -90,7 +98,11 @@ files:
90
98
  - lib/tbx/transac_note.rb
91
99
  - lib/tbx/version.rb
92
100
  - lib/tbx/xref.rb
101
+ - reference-docs/README.adoc
102
+ - reference-docs/schemas/Basic_Module_Definition.pdf
103
+ - reference-docs/schemas/Min_Module_Definition.pdf
93
104
  - reference-docs/schemas/TBX-Basic_DCA.sch
105
+ - reference-docs/schemas/TBX-Basic_ImplementationGuide/TBX-Basic_ImplementationGuide.pdf
94
106
  - reference-docs/schemas/TBX-Basic_dialect_v1/DCA/Example_Astronomy_DCA_VALID.tbx
95
107
  - reference-docs/schemas/TBX-Basic_dialect_v1/DCA/TBX-Basic_DCA.sch
96
108
  - reference-docs/schemas/TBX-Basic_dialect_v1/DCT/Example_Astronomy_DCT_VALID.tbx
@@ -110,7 +122,29 @@ files:
110
122
  - reference-docs/schemas/TBX-Basic_dialect_v1/Modules/TBX_min_module/Min.tbxmd
111
123
  - reference-docs/schemas/TBX-Basic_dialect_v1/TBX-Basic Definition.docx
112
124
  - reference-docs/schemas/TBX-Basic_dialect_v1/TBX-Basic Definition.pdf
125
+ - reference-docs/schemas/TBX-Core_dialect/Schemas/Example_Astronomy_DCA_VALID.tbx
126
+ - reference-docs/schemas/TBX-Core_dialect/Schemas/TBX-Core.sch
127
+ - reference-docs/schemas/TBX-Core_dialect/Schemas/TBXcoreStructV03_TBX-Core_integrated.rng
128
+ - reference-docs/schemas/TBX-Core_dialect/TBX-Core Definition.pdf
129
+ - reference-docs/schemas/TBX-Linguist_dialect/DCA/Example_Astronomy_DCA_VALID.tbx
130
+ - reference-docs/schemas/TBX-Linguist_dialect/DCA/TBX-Linguist_DCA.sch
131
+ - reference-docs/schemas/TBX-Linguist_dialect/DCA/TBXcoreStructV03_TBX-Linguist_integrated.rng
132
+ - reference-docs/schemas/TBX-Linguist_dialect/DCT/Example_Astronomy_DCT_VALID.tbx
133
+ - reference-docs/schemas/TBX-Linguist_dialect/DCT/TBX-Linguist.nvdl
134
+ - reference-docs/schemas/TBX-Linguist_dialect/DCT/TBX-Linguist_DCT.sch
135
+ - reference-docs/schemas/TBX-Linguist_dialect/TBX-Linguist Definition.pdf
136
+ - reference-docs/schemas/TBX-Min_dialect/DCA/TBX-Min_DCA.sch
137
+ - reference-docs/schemas/TBX-Min_dialect/DCT/TBX-Min.nvdl
138
+ - reference-docs/schemas/TBX-Min_dialect/DCT/TBX-Min_DCT.sch
139
+ - reference-docs/schemas/TBX-Min_dialect/TBX-Min Definition.pdf
113
140
  - reference-docs/schemas/TBX_core.xsd
141
+ - reference-docs/schemas/TBX_linguist_module/Linguist Module Definition.pdf
142
+ - reference-docs/schemas/TBX_linguist_module/Linguist.rng
143
+ - reference-docs/schemas/TBX_linguist_module/Linguist.sch
144
+ - reference-docs/schemas/TBX_linguist_module/Linguist.tbxmd
145
+ - reference-docs/schemas/TBX_module_description_xml/TBX Module Description.pdf
146
+ - reference-docs/schemas/TBX_module_description_xml/tbxmd.rng
147
+ - reference-docs/schemas/TBX_termComp_module/TermComp-namespace.rng
114
148
  - reference-docs/schemas/TBXcoreStructV03.rng
115
149
  - tbx.gemspec
116
150
  homepage: https://github.com/glossarist/tbx-ruby