metanorma / mn-native-pdf

Development repository for mn2pdf with Metanorma document samples
3 stars 2 forks source link

Develop IEC International Standard layout (samples and published cover) #109

Closed ronaldtse closed 3 years ago

ronaldtse commented 4 years ago

Sample documents:

Front covers:

Screen Shot 2020-04-11 at 2 39 49 AM Screen Shot 2020-04-11 at 2 40 03 AM Screen Shot 2020-04-11 at 2 39 58 AM

Back cover:

Screen Shot 2020-04-11 at 2 44 40 AM
ronaldtse commented 4 years ago

This standard says "Basic EMC Publication", that's a special phrase. That has to be from the XML.

ronaldtse commented 4 years ago
Screen Shot 2020-04-11 at 3 43 56 AM

Some other standards have a "HORIZONTAL STANDARD" label. We will need to handle this.

Intelligent2013 commented 4 years ago

@ronaldtse I can't find this data in source XML:

ronaldtse commented 4 years ago

I believe all of these items are to be added in the source XML. I believe ICS is already included (if the author sets them).

how to determine when we should place text 'BASIC EMC PUBLICATION/PUBLICATION FONDAMENTALE EN CEM' and when 'HORIZONTAL STANDARD'?

I don't know the answer to this either, but it seems that they are mutually exclusive -- these "Functions" are allowed:

If it is a Horizontal Standard, let's not show the Functions.

Intelligent2013 commented 4 years ago

Done. Some data on cover pages are hardcoded, because in xml source (https://metanorma.github.io/mn-samples-iec/documents/iec-rice.xml) there aren't such data.

One more question - how to determine when we should display COLOUR INSIDE image?

ronaldtse commented 4 years ago

Done. Some data on cover pages are hardcoded, because in xml source (https://metanorma.github.io/mn-samples-iec/documents/iec-rice.xml) there aren't such data.

Could you help file them in metanorma-iec? They should be provided by the XML.

One more question - how to determine when we should display COLOUR INSIDE image?

I think there should be an attribute in the document that expresses this. e.g. document attribute like :accessibility-color-inside: true.

Intelligent2013 commented 4 years ago

Task on hold (there are a dependent tasks).

opoudjis commented 3 years ago

Task no longer on hold

Intelligent2013 commented 3 years ago

To do: update IEC xslt for collection xml processing (https://github.com/metanorma/metanorma-iec/issues/41#issuecomment-745294495)

Intelligent2013 commented 3 years ago

Done.