metanorma / stepmod-utils

Tools for working on the STEPmod repository.
1 stars 0 forks source link

add scopes for text inside equations #232

Closed HassanAkbar closed 11 months ago

HassanAkbar commented 11 months ago

Added scopes around text inside equations

fixes #193

TRThurman commented 11 months ago

@HassanAkbar Where would I find a part 42 document artifact with this fix in it and what equation would be an example of a corrected equation?

HassanAkbar commented 11 months ago

@TRThurman I'm not sure about how to generate the artifacts.

This will only fix one problem i.e. if any text inside the equation is not wrapped inside the brackets (), we will wrap it. For an example, you can look at this test case for expected input and output -> https://github.com/metanorma/stepmod-utils/blob/8363a97de0c18f2a2df17d5de45d50598e758b94/spec/stepmod/converters/em_express_description_spec.rb#L14-L42