Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(urgent) Use Glossarist gem instead of manual splitting (split_codes.rb) to generate Metanorma AsciiDoc #6

Open
ronaldtse opened this issue Nov 16, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ronaldtse
Copy link
Member

We are using complex input from IEV but the split_codes.rb script is very rudimentary.

e.g.

eng:
  id: 192-01-03
  terms:
  - type: expression
    normative_status: preferred
    usage_info: in dependability
    designation: system
  definition: set of interrelated items that collectively fulfil a requirement
  language_code: eng
  notes:
  - A system is considered to have a defined real or abstract boundary.
  - External resources (from outside the system boundary) may be required for the
    system to operate.
  - A system structure may be hierarchical, e.g. system, subsystem, component, etc.
  - Conditions of use and maintenance should be expressed or implied within the requirement.
  examples: []
  entry_status: valid
  authoritative_source:
  - ref: IEC 60050-151:2001
    clause: 151-11-27
    link: https://webstore.iec.ch/publication/176
    relationship:
      type: modified
      modification: by extension to suit the dependability context
    original: IEC 60050-151:2001, 151-11-27, modified by extension to suit the dependability
      context
  date_accepted: '2015-02-01T00:00:00+00:00'
  date_amended: '2015-02-01T00:00:00+00:00'
  review_date: '2015-02-01T00:00:00+00:00'
  review_decision_date: '2015-02-01T00:00:00+00:00'
  review_decision_event: published

Metanorma has been updated to use the Glossarist gem so we just need to add a GlossaristConcept.new.to_mnadoc method.

See: https://www.metanorma.org/author/topics/document-format/section-terms/

@ronaldtse ronaldtse added the enhancement New feature or request label Nov 16, 2021
@ronaldtse ronaldtse changed the title (urgent) Migrate split_codes.rb to glossarist gem to generate Metanorma AsciiDoc (urgent) Use Glossarist gem instead of manual splitting (split_codes.rb) to generate Metanorma AsciiDoc Nov 19, 2021
@opoudjis
Copy link
Contributor

Note that I am debugging split_codes.rb, and you will need to take those bugfixes into consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants