sts 0.3.4 → 0.4.1

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 (378) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +7 -1
  3. data/.gitignore +2 -0
  4. data/.rubocop_todo.yml +8 -30
  5. data/Gemfile +4 -2
  6. data/lib/sts/namespaces.rb +13 -0
  7. data/lib/sts/niso_sts/abstract.rb +23 -0
  8. data/lib/sts/niso_sts/access_date.rb +20 -0
  9. data/lib/sts/niso_sts/accrediting_organization.rb +16 -0
  10. data/lib/sts/niso_sts/ack.rb +27 -0
  11. data/lib/sts/niso_sts/addr_line.rb +20 -0
  12. data/lib/sts/niso_sts/address.rb +29 -0
  13. data/lib/sts/niso_sts/adoption.rb +8 -12
  14. data/lib/sts/niso_sts/adoption_front.rb +1 -3
  15. data/lib/sts/niso_sts/aff.rb +51 -0
  16. data/lib/sts/niso_sts/aff_alternatives.rb +15 -0
  17. data/lib/sts/niso_sts/ali/ali.rb +10 -0
  18. data/lib/sts/niso_sts/ali/free_to_read.rb +25 -0
  19. data/lib/sts/niso_sts/ali/license_ref.rb +26 -0
  20. data/lib/sts/niso_sts/alt_text.rb +16 -0
  21. data/lib/sts/niso_sts/alt_title.rb +16 -0
  22. data/lib/sts/niso_sts/alternatives.rb +16 -0
  23. data/lib/sts/niso_sts/annotation.rb +26 -0
  24. data/lib/sts/niso_sts/anonymous.rb +11 -0
  25. data/lib/sts/niso_sts/app.rb +11 -22
  26. data/lib/sts/niso_sts/app_group.rb +1 -5
  27. data/lib/sts/niso_sts/article_title.rb +20 -0
  28. data/lib/sts/niso_sts/attrib.rb +16 -0
  29. data/lib/sts/niso_sts/attribution.rb +16 -0
  30. data/lib/sts/niso_sts/author_comment.rb +24 -0
  31. data/lib/sts/niso_sts/author_notes.rb +31 -0
  32. data/lib/sts/niso_sts/authorization.rb +16 -0
  33. data/lib/sts/niso_sts/award_group.rb +26 -0
  34. data/lib/sts/niso_sts/award_id.rb +20 -0
  35. data/lib/sts/niso_sts/back.rb +5 -12
  36. data/lib/sts/niso_sts/bio.rb +24 -0
  37. data/lib/sts/niso_sts/body.rb +2 -6
  38. data/lib/sts/niso_sts/boxed_text.rb +31 -0
  39. data/lib/sts/niso_sts/caption.rb +6 -10
  40. data/lib/sts/niso_sts/chapter_title.rb +20 -0
  41. data/lib/sts/niso_sts/chem_struct.rb +16 -0
  42. data/lib/sts/niso_sts/chem_struct_wrap.rb +32 -0
  43. data/lib/sts/niso_sts/citation_alternatives.rb +19 -0
  44. data/lib/sts/niso_sts/city.rb +20 -0
  45. data/lib/sts/niso_sts/collab.rb +28 -0
  46. data/lib/sts/niso_sts/collab_alternatives.rb +15 -0
  47. data/lib/sts/niso_sts/comm_ref_group.rb +15 -0
  48. data/lib/sts/niso_sts/comment.rb +16 -0
  49. data/lib/sts/niso_sts/compound_kwd.rb +25 -0
  50. data/lib/sts/niso_sts/compound_kwd_part.rb +24 -0
  51. data/lib/sts/niso_sts/conf_acronym.rb +16 -0
  52. data/lib/sts/niso_sts/conf_date.rb +20 -0
  53. data/lib/sts/niso_sts/conf_loc.rb +16 -0
  54. data/lib/sts/niso_sts/conf_name.rb +16 -0
  55. data/lib/sts/niso_sts/conf_num.rb +16 -0
  56. data/lib/sts/niso_sts/conf_sponsor.rb +16 -0
  57. data/lib/sts/niso_sts/conf_theme.rb +16 -0
  58. data/lib/sts/niso_sts/conference.rb +29 -0
  59. data/lib/sts/niso_sts/content_language.rb +20 -0
  60. data/lib/sts/niso_sts/contrib.rb +58 -0
  61. data/lib/sts/niso_sts/contrib_group.rb +22 -0
  62. data/lib/sts/niso_sts/contrib_id.rb +20 -0
  63. data/lib/sts/niso_sts/copyright_holder.rb +16 -0
  64. data/lib/sts/niso_sts/copyright_statement.rb +16 -0
  65. data/lib/sts/niso_sts/copyright_year.rb +16 -0
  66. data/lib/sts/niso_sts/corresp.rb +20 -0
  67. data/lib/sts/niso_sts/country.rb +20 -0
  68. data/lib/sts/niso_sts/counts.rb +25 -0
  69. data/lib/sts/niso_sts/custom_meta.rb +3 -7
  70. data/lib/sts/niso_sts/custom_meta_group.rb +2 -6
  71. data/lib/sts/niso_sts/data_title.rb +20 -0
  72. data/lib/sts/niso_sts/date.rb +25 -0
  73. data/lib/sts/niso_sts/date_in_citation.rb +25 -0
  74. data/lib/sts/niso_sts/day.rb +16 -0
  75. data/lib/sts/niso_sts/def.rb +2 -6
  76. data/lib/sts/niso_sts/def_item.rb +3 -8
  77. data/lib/sts/niso_sts/def_list.rb +3 -7
  78. data/lib/sts/niso_sts/degrees.rb +20 -0
  79. data/lib/sts/niso_sts/disp_formula_group.rb +26 -0
  80. data/lib/sts/niso_sts/disp_quote.rb +27 -0
  81. data/lib/sts/niso_sts/display_formula.rb +4 -7
  82. data/lib/sts/niso_sts/doc_number.rb +16 -0
  83. data/lib/sts/niso_sts/doc_type.rb +16 -0
  84. data/lib/sts/niso_sts/document_identification.rb +1 -3
  85. data/lib/sts/niso_sts/editing_instruction.rb +24 -0
  86. data/lib/sts/niso_sts/edition.rb +16 -0
  87. data/lib/sts/niso_sts/element_citation.rb +103 -0
  88. data/lib/sts/niso_sts/elocation_id.rb +17 -0
  89. data/lib/sts/niso_sts/email.rb +20 -0
  90. data/lib/sts/niso_sts/equation_count.rb +14 -0
  91. data/lib/sts/niso_sts/era.rb +16 -0
  92. data/lib/sts/niso_sts/etal.rb +22 -0
  93. data/lib/sts/niso_sts/ext_link.rb +3 -7
  94. data/lib/sts/niso_sts/fax.rb +20 -0
  95. data/lib/sts/niso_sts/fig_count.rb +14 -0
  96. data/lib/sts/niso_sts/fig_group.rb +30 -0
  97. data/lib/sts/niso_sts/figure.rb +6 -13
  98. data/lib/sts/niso_sts/floats_group.rb +16 -0
  99. data/lib/sts/niso_sts/fn.rb +3 -8
  100. data/lib/sts/niso_sts/fn_group.rb +2 -6
  101. data/lib/sts/niso_sts/fpage.rb +20 -0
  102. data/lib/sts/niso_sts/front.rb +4 -10
  103. data/lib/sts/niso_sts/funding_group.rb +22 -0
  104. data/lib/sts/niso_sts/funding_source.rb +26 -0
  105. data/lib/sts/niso_sts/funding_statement.rb +20 -0
  106. data/lib/sts/niso_sts/given_names.rb +20 -0
  107. data/lib/sts/niso_sts/glossary.rb +33 -0
  108. data/lib/sts/niso_sts/gov.rb +20 -0
  109. data/lib/sts/niso_sts/graphic.rb +5 -11
  110. data/lib/sts/niso_sts/history.rb +18 -0
  111. data/lib/sts/niso_sts/hr.rb +11 -0
  112. data/lib/sts/niso_sts/ics.rb +15 -0
  113. data/lib/sts/niso_sts/ics_desc.rb +16 -0
  114. data/lib/sts/niso_sts/ics_wrap.rb +15 -0
  115. data/lib/sts/niso_sts/index_term.rb +32 -0
  116. data/lib/sts/niso_sts/index_term_range_end.rb +17 -0
  117. data/lib/sts/niso_sts/inline_formula.rb +3 -6
  118. data/lib/sts/niso_sts/inline_graphic.rb +39 -0
  119. data/lib/sts/niso_sts/inline_supplementary_material.rb +38 -0
  120. data/lib/sts/niso_sts/institution.rb +20 -0
  121. data/lib/sts/niso_sts/institution_id.rb +18 -0
  122. data/lib/sts/niso_sts/institution_wrap.rb +17 -0
  123. data/lib/sts/niso_sts/intro.rb +16 -0
  124. data/lib/sts/niso_sts/is_proof.rb +15 -0
  125. data/lib/sts/niso_sts/isbn.rb +20 -0
  126. data/lib/sts/niso_sts/issn.rb +22 -0
  127. data/lib/sts/niso_sts/issn_l.rb +20 -0
  128. data/lib/sts/niso_sts/issue.rb +20 -0
  129. data/lib/sts/niso_sts/kwd.rb +26 -0
  130. data/lib/sts/niso_sts/kwd_group.rb +35 -0
  131. data/lib/sts/niso_sts/label.rb +1 -5
  132. data/lib/sts/niso_sts/license.rb +19 -0
  133. data/lib/sts/niso_sts/license_p.rb +16 -0
  134. data/lib/sts/niso_sts/list.rb +3 -6
  135. data/lib/sts/niso_sts/list_item.rb +8 -13
  136. data/lib/sts/niso_sts/long_desc.rb +22 -0
  137. data/lib/sts/niso_sts/lpage.rb +20 -0
  138. data/lib/sts/niso_sts/main.rb +16 -0
  139. data/lib/sts/niso_sts/mathml.rb +69 -0
  140. data/lib/sts/niso_sts/media.rb +44 -0
  141. data/lib/sts/niso_sts/meta_date.rb +1 -3
  142. data/lib/sts/niso_sts/meta_note.rb +3 -6
  143. data/lib/sts/niso_sts/metadata_iso.rb +11 -22
  144. data/lib/sts/niso_sts/metadata_std.rb +12 -19
  145. data/lib/sts/niso_sts/milestone_end.rb +26 -0
  146. data/lib/sts/niso_sts/milestone_start.rb +24 -0
  147. data/lib/sts/niso_sts/mixed_citation.rb +101 -12
  148. data/lib/sts/niso_sts/mml_content/apply.rb +47 -0
  149. data/lib/sts/niso_sts/mml_content/bind.rb +22 -0
  150. data/lib/sts/niso_sts/mml_content/calculus.rb +77 -0
  151. data/lib/sts/niso_sts/mml_content/ci.rb +22 -0
  152. data/lib/sts/niso_sts/mml_content/cn.rb +24 -0
  153. data/lib/sts/niso_sts/mml_content/constants.rb +114 -0
  154. data/lib/sts/niso_sts/mml_content/containers.rb +104 -0
  155. data/lib/sts/niso_sts/mml_content/csymbol.rb +24 -0
  156. data/lib/sts/niso_sts/mml_content/functional.rb +110 -0
  157. data/lib/sts/niso_sts/mml_content/linear_algebra.rb +98 -0
  158. data/lib/sts/niso_sts/mml_content/operators.rb +154 -0
  159. data/lib/sts/niso_sts/mml_content/qualifiers.rb +111 -0
  160. data/lib/sts/niso_sts/mml_content/relations.rb +84 -0
  161. data/lib/sts/niso_sts/mml_content/sets.rb +84 -0
  162. data/lib/sts/niso_sts/mml_content/statistics.rb +49 -0
  163. data/lib/sts/niso_sts/mml_content/trigonometry.rb +135 -0
  164. data/lib/sts/niso_sts/mml_content.rb +152 -0
  165. data/lib/sts/niso_sts/monospace.rb +22 -0
  166. data/lib/sts/niso_sts/month.rb +16 -0
  167. data/lib/sts/niso_sts/name.rb +25 -0
  168. data/lib/sts/niso_sts/name_alternatives.rb +15 -0
  169. data/lib/sts/{tbx_iso_tml → niso_sts}/named_content.rb +2 -5
  170. data/lib/sts/niso_sts/nat_meta.rb +44 -0
  171. data/lib/sts/niso_sts/nested_kwd.rb +19 -0
  172. data/lib/sts/niso_sts/nlm_citation.rb +103 -0
  173. data/lib/sts/niso_sts/non_normative_example.rb +4 -9
  174. data/lib/sts/niso_sts/non_normative_note.rb +4 -7
  175. data/lib/sts/niso_sts/normative_example.rb +27 -0
  176. data/lib/sts/niso_sts/normative_note.rb +29 -0
  177. data/lib/sts/niso_sts/note.rb +29 -0
  178. data/lib/sts/niso_sts/notes.rb +31 -0
  179. data/lib/sts/niso_sts/notes_group.rb +26 -0
  180. data/lib/sts/niso_sts/object_id.rb +1 -3
  181. data/lib/sts/niso_sts/on_behalf_of.rb +20 -0
  182. data/lib/sts/niso_sts/open_access.rb +16 -0
  183. data/lib/sts/niso_sts/originator.rb +16 -0
  184. data/lib/sts/niso_sts/overline.rb +22 -0
  185. data/lib/sts/niso_sts/page_count.rb +1 -3
  186. data/lib/sts/niso_sts/page_range.rb +20 -0
  187. data/lib/sts/niso_sts/paragraph.rb +17 -34
  188. data/lib/sts/niso_sts/part_number.rb +16 -0
  189. data/lib/sts/niso_sts/part_of_speech.rb +16 -0
  190. data/lib/sts/niso_sts/patent.rb +20 -0
  191. data/lib/sts/niso_sts/permissions.rb +1 -3
  192. data/lib/sts/niso_sts/person_group.rb +28 -0
  193. data/lib/sts/niso_sts/phone.rb +20 -0
  194. data/lib/sts/niso_sts/postal_code.rb +20 -0
  195. data/lib/sts/niso_sts/prefix.rb +20 -0
  196. data/lib/sts/niso_sts/preformat.rb +26 -0
  197. data/lib/sts/niso_sts/price.rb +16 -0
  198. data/lib/sts/niso_sts/principal_award_recipient.rb +16 -0
  199. data/lib/sts/niso_sts/principal_investigator.rb +16 -0
  200. data/lib/sts/niso_sts/private_char.rb +22 -0
  201. data/lib/sts/niso_sts/product.rb +20 -0
  202. data/lib/sts/niso_sts/proj_id.rb +16 -0
  203. data/lib/sts/niso_sts/pub_date.rb +29 -0
  204. data/lib/sts/niso_sts/pub_id.rb +19 -0
  205. data/lib/sts/niso_sts/publisher.rb +17 -0
  206. data/lib/sts/niso_sts/publisher_loc.rb +20 -0
  207. data/lib/sts/niso_sts/publisher_name.rb +20 -0
  208. data/lib/sts/niso_sts/rb.rb +22 -0
  209. data/lib/sts/niso_sts/ref_count.rb +14 -0
  210. data/lib/sts/niso_sts/reference.rb +10 -7
  211. data/lib/sts/niso_sts/reference_list.rb +3 -5
  212. data/lib/sts/niso_sts/reference_standard.rb +10 -15
  213. data/lib/sts/niso_sts/reg_meta.rb +44 -0
  214. data/lib/sts/niso_sts/related_article.rb +24 -0
  215. data/lib/sts/niso_sts/related_object.rb +22 -0
  216. data/lib/sts/niso_sts/related_term.rb +18 -0
  217. data/lib/sts/niso_sts/release_date.rb +19 -0
  218. data/lib/sts/niso_sts/release_version.rb +16 -0
  219. data/lib/sts/niso_sts/release_version_id.rb +16 -0
  220. data/lib/sts/niso_sts/role.rb +22 -0
  221. data/lib/sts/niso_sts/roman.rb +22 -0
  222. data/lib/sts/niso_sts/rp.rb +18 -0
  223. data/lib/sts/niso_sts/rt.rb +22 -0
  224. data/lib/sts/niso_sts/ruby.rb +23 -0
  225. data/lib/sts/niso_sts/sans_serif.rb +22 -0
  226. data/lib/sts/niso_sts/sc.rb +22 -0
  227. data/lib/sts/niso_sts/sdo.rb +16 -0
  228. data/lib/sts/niso_sts/season.rb +16 -0
  229. data/lib/sts/niso_sts/secretariat.rb +16 -0
  230. data/lib/sts/niso_sts/section.rb +16 -29
  231. data/lib/sts/niso_sts/section_array.rb +2 -6
  232. data/lib/sts/niso_sts/see.rb +26 -0
  233. data/lib/sts/niso_sts/see_also.rb +26 -0
  234. data/lib/sts/niso_sts/self_uri.rb +22 -0
  235. data/lib/sts/niso_sts/series.rb +22 -0
  236. data/lib/sts/niso_sts/series_text.rb +22 -0
  237. data/lib/sts/niso_sts/series_title.rb +22 -0
  238. data/lib/sts/niso_sts/sig.rb +18 -0
  239. data/lib/sts/niso_sts/sig_block.rb +22 -0
  240. data/lib/sts/niso_sts/size.rb +18 -0
  241. data/lib/sts/niso_sts/source.rb +20 -0
  242. data/lib/sts/niso_sts/speaker.rb +16 -0
  243. data/lib/sts/niso_sts/speech.rb +25 -0
  244. data/lib/sts/niso_sts/standard.rb +11 -15
  245. data/lib/sts/niso_sts/standard_identification.rb +3 -6
  246. data/lib/sts/niso_sts/standard_ref.rb +1 -3
  247. data/lib/sts/niso_sts/state.rb +20 -0
  248. data/lib/sts/niso_sts/statement.rb +29 -0
  249. data/lib/sts/niso_sts/std_cross_reference.rb +2 -4
  250. data/lib/sts/niso_sts/std_doc_meta.rb +44 -0
  251. data/lib/sts/niso_sts/std_id.rb +1 -3
  252. data/lib/sts/niso_sts/std_id_group.rb +2 -6
  253. data/lib/sts/niso_sts/std_org.rb +25 -0
  254. data/lib/sts/niso_sts/std_org_abbrev.rb +16 -0
  255. data/lib/sts/niso_sts/std_org_group.rb +15 -0
  256. data/lib/sts/niso_sts/std_org_loc.rb +16 -0
  257. data/lib/sts/niso_sts/std_org_name.rb +16 -0
  258. data/lib/sts/niso_sts/std_organization.rb +16 -0
  259. data/lib/sts/niso_sts/strike.rb +22 -0
  260. data/lib/sts/niso_sts/string_conf.rb +16 -0
  261. data/lib/sts/niso_sts/string_date.rb +16 -0
  262. data/lib/sts/niso_sts/string_name.rb +24 -0
  263. data/lib/sts/niso_sts/styled_content.rb +26 -0
  264. data/lib/sts/niso_sts/sub.rb +20 -0
  265. data/lib/sts/niso_sts/subj_group.rb +24 -0
  266. data/lib/sts/niso_sts/subject.rb +24 -0
  267. data/lib/sts/niso_sts/subtitle.rb +16 -0
  268. data/lib/sts/niso_sts/suffix.rb +20 -0
  269. data/lib/sts/niso_sts/sup.rb +20 -0
  270. data/lib/sts/niso_sts/suppl_number.rb +16 -0
  271. data/lib/sts/niso_sts/suppl_type.rb +16 -0
  272. data/lib/sts/niso_sts/suppl_version.rb +16 -0
  273. data/lib/sts/niso_sts/supplement.rb +24 -0
  274. data/lib/sts/niso_sts/supplementary_material.rb +46 -0
  275. data/lib/sts/niso_sts/surname.rb +20 -0
  276. data/lib/sts/niso_sts/table_count.rb +14 -0
  277. data/lib/sts/niso_sts/target.rb +24 -0
  278. data/lib/sts/niso_sts/term.rb +70 -0
  279. data/lib/sts/niso_sts/term_display.rb +4 -8
  280. data/lib/sts/niso_sts/term_head.rb +16 -0
  281. data/lib/sts/niso_sts/term_section.rb +6 -13
  282. data/lib/sts/niso_sts/term_source.rb +16 -0
  283. data/lib/sts/niso_sts/tex_math.rb +16 -0
  284. data/lib/sts/niso_sts/textual_form.rb +16 -0
  285. data/lib/sts/niso_sts/time_stamp.rb +20 -0
  286. data/lib/sts/niso_sts/title.rb +2 -6
  287. data/lib/sts/niso_sts/title_compl.rb +14 -0
  288. data/lib/sts/niso_sts/title_full.rb +18 -0
  289. data/lib/sts/niso_sts/title_wrap.rb +12 -17
  290. data/lib/sts/niso_sts/trans_abstract.rb +23 -0
  291. data/lib/sts/niso_sts/trans_source.rb +20 -0
  292. data/lib/sts/niso_sts/trans_title.rb +20 -0
  293. data/lib/sts/niso_sts/trans_title_group.rb +15 -0
  294. data/lib/sts/niso_sts/underline.rb +22 -0
  295. data/lib/sts/niso_sts/unstructured_kwd_group.rb +24 -0
  296. data/lib/sts/niso_sts/uri.rb +20 -0
  297. data/lib/sts/niso_sts/urn.rb +16 -0
  298. data/lib/sts/niso_sts/verse_group.rb +29 -0
  299. data/lib/sts/niso_sts/verse_line.rb +16 -0
  300. data/lib/sts/niso_sts/version.rb +16 -0
  301. data/lib/sts/niso_sts/volume.rb +20 -0
  302. data/lib/sts/niso_sts/volume_id.rb +22 -0
  303. data/lib/sts/niso_sts/volume_issue_group.rb +16 -0
  304. data/lib/sts/niso_sts/volume_series.rb +16 -0
  305. data/lib/sts/niso_sts/word_count.rb +14 -0
  306. data/lib/sts/niso_sts/xi/fallback.rb +18 -0
  307. data/lib/sts/niso_sts/xi/include.rb +27 -0
  308. data/lib/sts/niso_sts/xi/xi.rb +10 -0
  309. data/lib/sts/niso_sts/year.rb +16 -0
  310. data/lib/sts/niso_sts.rb +288 -18
  311. data/lib/sts/tbx_iso_tml/bold.rb +1 -3
  312. data/lib/sts/tbx_iso_tml/caption.rb +1 -3
  313. data/lib/sts/tbx_iso_tml/col.rb +1 -3
  314. data/lib/sts/tbx_iso_tml/cross_reference.rb +17 -0
  315. data/lib/sts/tbx_iso_tml/definition.rb +14 -22
  316. data/lib/sts/tbx_iso_tml/entailed_term.rb +6 -10
  317. data/lib/sts/tbx_iso_tml/example.rb +6 -10
  318. data/lib/sts/tbx_iso_tml/external_graphic.rb +2 -4
  319. data/lib/sts/tbx_iso_tml/external_source.rb +2 -4
  320. data/lib/sts/tbx_iso_tml/fn.rb +2 -4
  321. data/lib/sts/tbx_iso_tml/fn_group.rb +2 -6
  322. data/lib/sts/tbx_iso_tml/geographical_usage.rb +2 -4
  323. data/lib/sts/tbx_iso_tml/grammatical_gender.rb +2 -4
  324. data/lib/sts/tbx_iso_tml/grammatical_number.rb +2 -4
  325. data/lib/sts/tbx_iso_tml/italic.rb +2 -3
  326. data/lib/sts/tbx_iso_tml/lang_set.rb +16 -30
  327. data/lib/sts/tbx_iso_tml/math.rb +12 -25
  328. data/lib/sts/tbx_iso_tml/mfenced.rb +7 -13
  329. data/lib/sts/tbx_iso_tml/mfrac.rb +5 -8
  330. data/lib/sts/tbx_iso_tml/mi.rb +2 -3
  331. data/lib/sts/tbx_iso_tml/mrow.rb +10 -15
  332. data/lib/sts/tbx_iso_tml/mspace.rb +2 -4
  333. data/lib/sts/tbx_iso_tml/mstyle.rb +5 -5
  334. data/lib/sts/tbx_iso_tml/msub.rb +6 -11
  335. data/lib/sts/tbx_iso_tml/msup.rb +4 -9
  336. data/lib/sts/tbx_iso_tml/munder.rb +3 -7
  337. data/lib/sts/tbx_iso_tml/munderover.rb +4 -7
  338. data/lib/sts/tbx_iso_tml/normative_authorization.rb +2 -4
  339. data/lib/sts/tbx_iso_tml/note.rb +18 -30
  340. data/lib/sts/tbx_iso_tml/part_of_speech.rb +2 -4
  341. data/lib/sts/tbx_iso_tml/pronunciation.rb +16 -0
  342. data/lib/sts/tbx_iso_tml/see.rb +2 -4
  343. data/lib/sts/tbx_iso_tml/semantics.rb +5 -9
  344. data/lib/sts/tbx_iso_tml/source.rb +5 -7
  345. data/lib/sts/tbx_iso_tml/subject_field.rb +17 -0
  346. data/lib/sts/tbx_iso_tml/sup.rb +3 -6
  347. data/lib/sts/tbx_iso_tml/table.rb +4 -10
  348. data/lib/sts/tbx_iso_tml/table_break.rb +0 -2
  349. data/lib/sts/tbx_iso_tml/table_wrap.rb +4 -10
  350. data/lib/sts/tbx_iso_tml/table_wrap_foot.rb +2 -6
  351. data/lib/sts/tbx_iso_tml/tbody.rb +2 -6
  352. data/lib/sts/tbx_iso_tml/td.rb +12 -23
  353. data/lib/sts/tbx_iso_tml/term.rb +13 -29
  354. data/lib/sts/tbx_iso_tml/term_entry.rb +5 -9
  355. data/lib/sts/tbx_iso_tml/term_information_group.rb +11 -20
  356. data/lib/sts/tbx_iso_tml/term_type.rb +2 -4
  357. data/lib/sts/tbx_iso_tml/th.rb +8 -16
  358. data/lib/sts/tbx_iso_tml/thead.rb +2 -6
  359. data/lib/sts/tbx_iso_tml/tr.rb +3 -8
  360. data/lib/sts/tbx_iso_tml/xref.rb +2 -3
  361. data/lib/sts/tbx_iso_tml.rb +52 -25
  362. data/lib/sts/version.rb +1 -1
  363. data/lib/sts.rb +5 -12
  364. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/NISO-STS-extended-1-mathml3-elements.xsd +11447 -0
  365. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/NISO-STS-extended-1-mathml3.xsd +97 -0
  366. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/module-oasis.xsd +227 -0
  367. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-common.xsd +101 -0
  368. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-content.xsd +683 -0
  369. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-presentation.xsd +2092 -0
  370. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3-strict-content.xsd +186 -0
  371. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/mathml3/mathml3.xsd +9 -0
  372. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-ali.xsd +46 -0
  373. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-tbx.xsd +494 -0
  374. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/module-xi.xsd +51 -0
  375. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/xlink.xsd +100 -0
  376. data/reference-docs/NISO-STS-extended-1-MathML3-XSD/standard-modules/xml.xsd +287 -0
  377. data/sts.gemspec +1 -1
  378. metadata +274 -5
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ class Media < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :mimetype, :string
9
+ attribute :mime_subtype, :string
10
+ attribute :orientation, :string
11
+ attribute :position, :string
12
+ attribute :specific_use, :string
13
+ attribute :xlink_href, :string
14
+ attribute :xlink_role, :string
15
+ attribute :xlink_actuate, :string
16
+ attribute :xlink_show, :string
17
+ attribute :xlink_title, :string
18
+ attribute :label, ::Sts::NisoSts::Label
19
+ attribute :caption, ::Sts::NisoSts::Caption
20
+ attribute :sts_object_id, ::Sts::NisoSts::ObjectId, collection: true
21
+
22
+ xml do
23
+ element "media"
24
+
25
+ map_attribute "id", to: :id
26
+ map_attribute "content-type", to: :content_type
27
+ map_attribute "mimetype", to: :mimetype
28
+ map_attribute "mime-subtype", to: :mime_subtype
29
+ map_attribute "orientation", to: :orientation
30
+ map_attribute "position", to: :position
31
+ map_attribute "specific-use", to: :specific_use
32
+ map_attribute "xlink:href", to: :xlink_href
33
+ map_attribute "xlink:role", to: :xlink_role
34
+ map_attribute "xlink:actuate", to: :xlink_actuate
35
+ map_attribute "xlink:show", to: :xlink_show
36
+ map_attribute "xlink:title", to: :xlink_title
37
+
38
+ map_element "label", to: :label
39
+ map_element "caption", to: :caption
40
+ map_element "object-id", to: :sts_object_id
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,7 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
3
  module Sts
6
4
  module NisoSts
7
5
  class MetaDate < Lutaml::Model::Serializable
@@ -9,7 +7,7 @@ module Sts
9
7
  attribute :type, :string
10
8
 
11
9
  xml do
12
- root "meta-date"
10
+ element "meta-date"
13
11
 
14
12
  map_content to: :content
15
13
 
@@ -1,19 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "paragraph"
6
-
7
3
  module Sts
8
4
  module NisoSts
9
5
  class MetaNote < Lutaml::Model::Serializable
10
6
  attribute :id, :string
11
7
  attribute :content_type, :string
12
- attribute :p, Paragraph, collection: true
8
+ attribute :p, ::Sts::NisoSts::Paragraph, collection: true
13
9
  attribute :title, :string
14
10
 
15
11
  xml do
16
- root "meta-note", mixed: true
12
+ element "meta-note"
13
+ mixed_content
17
14
 
18
15
  map_attribute "id", to: :id
19
16
  map_attribute "content-type", to: :content_type
@@ -1,39 +1,28 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "lutaml/model"
4
-
5
- require_relative "custom_meta_group"
6
- require_relative "document_identification"
7
- require_relative "meta_date"
8
- require_relative "page_count"
9
- require_relative "permissions"
10
- require_relative "standard_identification"
11
- require_relative "standard_ref"
12
- require_relative "std_cross_reference"
13
- require_relative "title_wrap"
14
-
15
3
  module Sts
16
4
  module NisoSts
17
5
  class MetadataIso < Lutaml::Model::Serializable
18
6
  attribute :comm_ref, :string
19
7
  attribute :content_language, :string
20
- attribute :custom_meta_group, CustomMetaGroup
21
- attribute :doc_ident, DocumentIdentification
8
+ attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup
9
+ attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
22
10
  attribute :doc_ref, :string
23
11
  attribute :ics, :string
24
- attribute :meta_date, MetaDate
25
- attribute :page_count, PageCount
26
- attribute :permissions, Permissions
12
+ attribute :meta_date, ::Sts::NisoSts::MetaDate
13
+ attribute :page_count, ::Sts::NisoSts::PageCount
14
+ attribute :permissions, ::Sts::NisoSts::Permissions
27
15
  attribute :pub_date, :string
28
16
  attribute :release_date, :string
29
17
  attribute :secretariat, :string
30
- attribute :std_ident, StandardIdentification
31
- attribute :std_ref, StandardRef
32
- attribute :std_xref, StdCrossReference
33
- attribute :title_wrap, TitleWrap
18
+ attribute :std_ident, ::Sts::NisoSts::StandardIdentification
19
+ attribute :std_ref, ::Sts::NisoSts::StandardRef
20
+ attribute :std_xref, ::Sts::NisoSts::StdCrossReference
21
+ attribute :title_wrap, ::Sts::NisoSts::TitleWrap
34
22
 
35
23
  xml do
36
- root "iso-meta", mixed: true
24
+ element "iso-meta"
25
+ mixed_content
37
26
 
38
27
  map_element "comm-ref", to: :comm_ref,
39
28
  value_map: { to: { empty: :empty } }
@@ -1,40 +1,33 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "lutaml/model"
4
- require_relative "title_wrap"
5
- require_relative "document_identification"
6
- require_relative "standard_identification"
7
- require_relative "standard_ref"
8
- require_relative "page_count"
9
- require_relative "std_cross_reference"
10
- require_relative "meta_note"
11
- require_relative "custom_meta_group"
12
- require_relative "permissions"
13
4
 
14
5
  module Sts
15
6
  module NisoSts
16
7
  class MetadataStd < Lutaml::Model::Serializable
17
8
  attribute :id, :string
18
- attribute :title_wrap, TitleWrap, collection: true
9
+ attribute :title_wrap, ::Sts::NisoSts::TitleWrap, collection: true
19
10
  attribute :content_language, :string
20
- attribute :std_ident, StandardIdentification
21
- attribute :doc_ident, DocumentIdentification
22
- attribute :std_ref, StandardRef, collection: true
11
+ attribute :std_ident, ::Sts::NisoSts::StandardIdentification
12
+ attribute :doc_ident, ::Sts::NisoSts::DocumentIdentification
13
+ attribute :std_ref, ::Sts::NisoSts::StandardRef, collection: true
23
14
  attribute :doc_ref, :string
24
15
  attribute :pub_date, :string
25
16
  attribute :release_date, :string
26
17
  attribute :release_version, :string
27
18
  attribute :comm_ref, :string
28
19
  attribute :secretariat, :string
29
- attribute :page_count, PageCount
20
+ attribute :page_count, ::Sts::NisoSts::PageCount
30
21
  attribute :ics, :string
31
- attribute :std_xref, StdCrossReference
32
- attribute :permissions, Permissions
33
- attribute :meta_note, MetaNote, collection: true
34
- attribute :custom_meta_group, CustomMetaGroup, collection: true
22
+ attribute :std_xref, ::Sts::NisoSts::StdCrossReference
23
+ attribute :permissions, ::Sts::NisoSts::Permissions
24
+ attribute :meta_note, ::Sts::NisoSts::MetaNote, collection: true
25
+ attribute :custom_meta_group, ::Sts::NisoSts::CustomMetaGroup,
26
+ collection: true
35
27
 
36
28
  xml do
37
- root "std-meta", mixed: true
29
+ element "std-meta"
30
+ mixed_content
38
31
 
39
32
  map_attribute "id", to: :id
40
33
 
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ class MilestoneEnd < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :rid, :string
8
+ attribute :content_type, :string
9
+ attribute :rationale, :string
10
+ attribute :specific_use, :string
11
+ attribute :content, :string
12
+
13
+ xml do
14
+ element "milestone-end"
15
+ mixed_content
16
+
17
+ map_attribute "id", to: :id
18
+ map_attribute "rid", to: :rid
19
+ map_attribute "content-type", to: :content_type
20
+ map_attribute "rationale", to: :rationale
21
+ map_attribute "specific-use", to: :specific_use
22
+ map_content to: :content
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ class MilestoneStart < Lutaml::Model::Serializable
6
+ attribute :id, :string
7
+ attribute :content_type, :string
8
+ attribute :rationale, :string
9
+ attribute :specific_use, :string
10
+ attribute :content, :string
11
+
12
+ xml do
13
+ element "milestone-start"
14
+ mixed_content
15
+
16
+ map_attribute "id", to: :id
17
+ map_attribute "content-type", to: :content_type
18
+ map_attribute "rationale", to: :rationale
19
+ map_attribute "specific-use", to: :specific_use
20
+ map_content to: :content
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,32 +1,121 @@
1
- # frozen_striing_literal: true
2
-
3
- require "lutaml/model"
4
-
5
- require_relative "ext_link"
6
- require_relative "reference_standard"
1
+ # frozen_string_literal: true
7
2
 
3
+ # rubocop:disable Metrics/BlockLength
8
4
  module Sts
9
5
  module NisoSts
10
6
  class MixedCitation < Lutaml::Model::Serializable
11
7
  attribute :content, :string
12
- attribute :bold, :string
13
- attribute :italic, :string
14
8
  attribute :publication_type, :string
15
- attribute :std, ReferenceStandard, collection: true
16
- attribute :ext_link, ExtLink
9
+ attribute :bold, ::Sts::TbxIsoTml::Bold, collection: true
10
+ attribute :italic, ::Sts::TbxIsoTml::Italic, collection: true
11
+ attribute :std, ::Sts::NisoSts::ReferenceStandard, collection: true
12
+ attribute :ext_link, ::Sts::NisoSts::ExtLink, collection: true
13
+ attribute :person_group, ::Sts::NisoSts::PersonGroup, collection: true
14
+ attribute :article_title, ::Sts::NisoSts::ArticleTitle
15
+ attribute :source, ::Sts::NisoSts::Source
16
+ attribute :trans_source, ::Sts::NisoSts::TransSource
17
+ attribute :chapter_title, ::Sts::NisoSts::ChapterTitle
18
+ attribute :data_title, ::Sts::NisoSts::DataTitle
19
+ attribute :trans_title, ::Sts::NisoSts::TransTitle
20
+ attribute :trans_title_group, ::Sts::NisoSts::TransTitleGroup
21
+ attribute :edition, ::Sts::NisoSts::Edition
22
+ attribute :volume, ::Sts::NisoSts::Volume
23
+ attribute :issue, ::Sts::NisoSts::Issue
24
+ attribute :pub_id, ::Sts::NisoSts::PubId, collection: true
25
+ attribute :isbn, ::Sts::NisoSts::Isbn
26
+ attribute :issn, ::Sts::NisoSts::Issn
27
+ attribute :issn_l, ::Sts::NisoSts::IssnL
28
+ attribute :fpage, ::Sts::NisoSts::Fpage
29
+ attribute :lpage, ::Sts::NisoSts::Lpage
30
+ attribute :page_range, ::Sts::NisoSts::PageRange
31
+ attribute :elocation_id, ::Sts::NisoSts::ElocationId
32
+ attribute :date, ::Sts::NisoSts::Date
33
+ attribute :date_in_citation, ::Sts::NisoSts::DateInCitation
34
+ attribute :access_date, ::Sts::NisoSts::AccessDate
35
+ attribute :time_stamp, ::Sts::NisoSts::TimeStamp
36
+ attribute :conf_name, ::Sts::NisoSts::ConfName
37
+ attribute :conf_date, ::Sts::NisoSts::ConfDate
38
+ attribute :conf_loc, ::Sts::NisoSts::ConfLoc
39
+ attribute :conference, ::Sts::NisoSts::Conference
40
+ attribute :size, ::Sts::NisoSts::Size
41
+ attribute :series, ::Sts::NisoSts::Series
42
+ attribute :series_title, ::Sts::NisoSts::SeriesTitle
43
+ attribute :series_text, ::Sts::NisoSts::SeriesText
44
+ attribute :comment, ::Sts::NisoSts::Comment
45
+ attribute :annotation, ::Sts::NisoSts::Annotation
46
+ attribute :patent, ::Sts::NisoSts::Patent
47
+ attribute :gov, ::Sts::NisoSts::Gov
48
+ attribute :aff, ::Sts::NisoSts::Aff, collection: true
49
+ attribute :aff_alternatives, ::Sts::NisoSts::AffAlternatives
50
+ attribute :collab, ::Sts::NisoSts::Collab, collection: true
51
+ attribute :etal, ::Sts::NisoSts::Etal
52
+ attribute :name, ::Sts::NisoSts::Name, collection: true
53
+ attribute :name_alternatives, ::Sts::NisoSts::NameAlternatives
54
+ attribute :string_name, ::Sts::NisoSts::StringName, collection: true
55
+ attribute :institution_wrap, ::Sts::NisoSts::InstitutionWrap
56
+ attribute :institution, ::Sts::NisoSts::Institution, collection: true
57
+ attribute :publisher, ::Sts::NisoSts::Publisher
58
+ attribute :price, :string
17
59
 
18
60
  xml do
19
- root "mixed-citation", mixed: true
61
+ element "mixed-citation"
62
+ mixed_content
20
63
 
21
64
  map_content to: :content
22
-
23
65
  map_attribute "publication-type", to: :publication_type
24
66
 
25
67
  map_element "bold", to: :bold
26
68
  map_element "italic", to: :italic
27
69
  map_element "std", to: :std
28
70
  map_element "ext-link", to: :ext_link
71
+ map_element "person-group", to: :person_group
72
+ map_element "article-title", to: :article_title
73
+ map_element "source", to: :source
74
+ map_element "trans-source", to: :trans_source
75
+ map_element "chapter-title", to: :chapter_title
76
+ map_element "data-title", to: :data_title
77
+ map_element "trans-title", to: :trans_title
78
+ map_element "trans-title-group", to: :trans_title_group
79
+ map_element "edition", to: :edition
80
+ map_element "volume", to: :volume
81
+ map_element "issue", to: :issue
82
+ map_element "pub-id", to: :pub_id
83
+ map_element "isbn", to: :isbn
84
+ map_element "issn", to: :issn
85
+ map_element "issn-l", to: :issn_l
86
+ map_element "fpage", to: :fpage
87
+ map_element "lpage", to: :lpage
88
+ map_element "page-range", to: :page_range
89
+ map_element "elocation-id", to: :elocation_id
90
+ map_element "date", to: :date
91
+ map_element "date-in-citation", to: :date_in_citation
92
+ map_element "access-date", to: :access_date
93
+ map_element "time-stamp", to: :time_stamp
94
+ map_element "conf-name", to: :conf_name
95
+ map_element "conf-date", to: :conf_date
96
+ map_element "conf-loc", to: :conf_loc
97
+ map_element "conference", to: :conference
98
+ map_element "size", to: :size
99
+ map_element "series", to: :series
100
+ map_element "series-title", to: :series_title
101
+ map_element "series-text", to: :series_text
102
+ map_element "comment", to: :comment
103
+ map_element "annotation", to: :annotation
104
+ map_element "patent", to: :patent
105
+ map_element "gov", to: :gov
106
+ map_element "aff", to: :aff
107
+ map_element "aff-alternatives", to: :aff_alternatives
108
+ map_element "collab", to: :collab
109
+ map_element "etal", to: :etal
110
+ map_element "name", to: :name
111
+ map_element "name-alternatives", to: :name_alternatives
112
+ map_element "string-name", to: :string_name
113
+ map_element "institution-wrap", to: :institution_wrap
114
+ map_element "institution", to: :institution
115
+ map_element "publisher", to: :publisher
116
+ map_element "price", to: :price
29
117
  end
30
118
  end
31
119
  end
32
120
  end
121
+ # rubocop:enable Metrics/BlockLength
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # apply: Apply an operator to arguments
7
+ # Content: operator, bvar*, qualifier*, ContExp*
8
+ class Apply < Object
9
+ attribute :apply, Apply, collection: true
10
+ attribute :bind, Bind, collection: true
11
+ attribute :ci, Ci, collection: true
12
+ attribute :cn, Cn, collection: true
13
+ attribute :csymbol, Csymbol, collection: true
14
+ attribute :cbytes, Cbytes, collection: true
15
+ attribute :cerror, Cerror, collection: true
16
+ attribute :cs, Cs, collection: true
17
+ attribute :share, Share, collection: true
18
+ attribute :piecewise, Piecewise, collection: true
19
+ attribute :plus, Plus, collection: true
20
+ attribute :minus, Minus, collection: true
21
+ attribute :times, Times, collection: true
22
+ attribute :divide, Divide, collection: true
23
+ attribute :power, Power, collection: true
24
+ attribute :root, Root, collection: true
25
+ attribute :abs, Abs, collection: true
26
+ attribute :eq, Eq, collection: true
27
+ attribute :neq, Neq, collection: true
28
+ attribute :lt, Lt, collection: true
29
+ attribute :gt, Gt, collection: true
30
+ attribute :leq, Leq, collection: true
31
+ attribute :geq, Geq, collection: true
32
+ attribute :bvar, Bvar, collection: true
33
+ attribute :lambda, Lambda, collection: true
34
+ attribute :logbase, Logbase, collection: true
35
+ attribute :degree, Degree, collection: true
36
+ attribute :condition, Condition, collection: true
37
+ attribute :domainofapplication, Domainofapplication, collection: true
38
+ attribute :lowlimit, Lowlimit, collection: true
39
+ attribute :uplimit, Uplimit, collection: true
40
+
41
+ xml do
42
+ element "apply"
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # bind: Bind variables in an expression
7
+ # Content: binder, bvar+, ContExp*
8
+ class Bind < Object
9
+ attribute :bvar, Bvar, collection: true
10
+ attribute :apply, Apply, collection: true
11
+ attribute :ci, Ci, collection: true
12
+ attribute :cn, Cn, collection: true
13
+ attribute :csymbol, Csymbol, collection: true
14
+ attribute :lambda, Lambda, collection: true
15
+
16
+ xml do
17
+ element "bind"
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # int: Definite or indefinite integral
7
+ class Int < Object
8
+ xml do
9
+ element "int"
10
+ end
11
+ end
12
+
13
+ # diff: Differentiation
14
+ class Diff < Object
15
+ xml do
16
+ element "diff"
17
+ end
18
+ end
19
+
20
+ # partialdiff: Partial differentiation
21
+ class Partialdiff < Object
22
+ xml do
23
+ element "partialdiff"
24
+ end
25
+ end
26
+
27
+ # grad: Gradient
28
+ class Grad < Object
29
+ xml do
30
+ element "grad"
31
+ end
32
+ end
33
+
34
+ # divergence: Divergence
35
+ class Divergence < Object
36
+ xml do
37
+ element "divergence"
38
+ end
39
+ end
40
+
41
+ # curl: Curl
42
+ class Curl < Object
43
+ xml do
44
+ element "curl"
45
+ end
46
+ end
47
+
48
+ # laplacian: Laplacian operator
49
+ class Laplacian < Object
50
+ xml do
51
+ element "laplacian"
52
+ end
53
+ end
54
+
55
+ # sum: Summation
56
+ class Sum < Object
57
+ xml do
58
+ element "sum"
59
+ end
60
+ end
61
+
62
+ # product: Product
63
+ class Product < Object
64
+ xml do
65
+ element "product"
66
+ end
67
+ end
68
+
69
+ # limit: Limit
70
+ class Limit < Object
71
+ xml do
72
+ element "limit"
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # ci: Content identifier (variable)
7
+ # Content: mixed (mglyph | PresentationExpression)*
8
+ # Attributes: type (optional)
9
+ class Ci < Object
10
+ attribute :content, :string
11
+ attribute :type, :string
12
+
13
+ xml do
14
+ element "ci"
15
+
16
+ map_content to: :content
17
+ map_attribute "type", to: :type
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # cn: Content number (literal)
7
+ # Content: mixed (mglyph | sep | PresentationExpression)*
8
+ # Attributes: type (optional), base (optional)
9
+ class Cn < Object
10
+ attribute :content, :string
11
+ attribute :type, :string
12
+ attribute :base, :string
13
+
14
+ xml do
15
+ element "cn"
16
+
17
+ map_content to: :content
18
+ map_attribute "type", to: :type
19
+ map_attribute "base", to: :base
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,114 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sts
4
+ module NisoSts
5
+ module MmlContent
6
+ # Constants
7
+
8
+ # integers: Set of integers
9
+ class Integers < Object
10
+ xml do
11
+ element "integers"
12
+ end
13
+ end
14
+
15
+ # reals: Set of real numbers
16
+ class Reals < Object
17
+ xml do
18
+ element "reals"
19
+ end
20
+ end
21
+
22
+ # rationals: Set of rational numbers
23
+ class Rationals < Object
24
+ xml do
25
+ element "rationals"
26
+ end
27
+ end
28
+
29
+ # naturalnumbers: Set of natural numbers
30
+ class Naturalnumbers < Object
31
+ xml do
32
+ element "naturalnumbers"
33
+ end
34
+ end
35
+
36
+ # complexes: Set of complex numbers
37
+ class Complexes < Object
38
+ xml do
39
+ element "complexes"
40
+ end
41
+ end
42
+
43
+ # primes: Set of prime numbers
44
+ class Primes < Object
45
+ xml do
46
+ element "primes"
47
+ end
48
+ end
49
+
50
+ # emptyset: Empty set
51
+ class Emptyset < Object
52
+ xml do
53
+ element "emptyset"
54
+ end
55
+ end
56
+
57
+ # exponentiale: Euler's number e
58
+ class Exponentiale < Object
59
+ xml do
60
+ element "exponentiale"
61
+ end
62
+ end
63
+
64
+ # imaginaryi: Imaginary unit i
65
+ class Imaginaryi < Object
66
+ xml do
67
+ element "imaginaryi"
68
+ end
69
+ end
70
+
71
+ # notanumber: NaN
72
+ class Notanumber < Object
73
+ xml do
74
+ element "notanumber"
75
+ end
76
+ end
77
+
78
+ # true: True
79
+ class True < Object
80
+ xml do
81
+ element "true"
82
+ end
83
+ end
84
+
85
+ # false: False
86
+ class False < Object
87
+ xml do
88
+ element "false"
89
+ end
90
+ end
91
+
92
+ # pi: Pi
93
+ class Pi < Object
94
+ xml do
95
+ element "pi"
96
+ end
97
+ end
98
+
99
+ # eulergamma: Euler-Mascheroni constant
100
+ class Eulergamma < Object
101
+ xml do
102
+ element "eulergamma"
103
+ end
104
+ end
105
+
106
+ # infinity: Infinity
107
+ class Infinity < Object
108
+ xml do
109
+ element "infinity"
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end