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

PDF output for JIS #3

Closed
opoudjis opened this issue Mar 13, 2023 · 9 comments
Closed

PDF output for JIS #3

opoudjis opened this issue Mar 13, 2023 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@opoudjis
Copy link
Contributor

From #1

Word sample document in https://github.com/metanorma/jis-example-report/issues/1

@opoudjis opoudjis added the enhancement New feature or request label Mar 13, 2023
@ronaldtse
Copy link

ronaldtse commented Mar 14, 2023

@Intelligent2013 :

Depends on:

@ronaldtse ronaldtse changed the title PDF conversion, metanorma-jis PDF output for JIS Mar 14, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 15, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 16, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 16, 2023
Intelligent2013 added a commit that referenced this issue Mar 21, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 21, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 21, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 21, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 21, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 21, 2023
@Intelligent2013
Copy link
Contributor

The sections Inner cover note, Contributors, まえがき (Foreword) renders as main sections:
image

Adoc:

[title=Foreword]
== まえがき
...

[.inner-cover-note]
== Inner cover note
...
[.contributors]
== Contributors

I'll update adoc.

@Intelligent2013
Copy link
Contributor

For:
00-foreword.adoc:

[heading=foreword]
== まえがき
...

00-preface.adoc:

[.preface,type=inner-cover-note]
== Inner cover note
...
[.preface,type=contributors]
== Contributors

presentation XML looks ok:

<preface>
	<foreword id="_" obligation="informative" displayorder="1">
		<title>まえがき</title>
...
	<clause id="_inner_cover_note" type="inner-cover-note" inline-header="false" obligation="informative" displayorder="2">
		<title depth="1">Inner cover note</title>
...
	<clause id="_contributors" type="contributors" inline-header="false" obligation="informative" displayorder="3">
		<title depth="1">Contributors</title>

@ronaldtse can we change the roles [.inner-cover-note] [.contributors] to the preface types [.preface,type=inner-cover-note] and [.preface,type=contributors] or it did specially?

@ronaldtse
Copy link

@Intelligent2013 sure, let's do that. Thanks.

@Intelligent2013
Copy link
Contributor

The order of the preface sections:

  • preface/clause[@type = 'contributors']
  • preface/clause[@type = 'inner-cover-note'] at page bottom
  • page break
  • ToC
  • page break
  • preface/foreword
  • page break
  • document type in a box (白 紙, (White-paper))

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 22, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 22, 2023
@Intelligent2013
Copy link
Contributor

Intelligent2013 commented Mar 23, 2023

Scope example:
image

Rendering rules:

  • section number in Times New Roman bold
  • section title in IPAexGothic
  • Japanese text in IPAexMincho
  • English text in Times New Roman bold
  • reference to Annex:
    • the word Annex in Japanese 附属書 in IPAexGothic,
    • annex letter in Times New Roman bold
  • Note title:
    • the word Note in Japanese 注記 in IPAexGothic
    • note's number in Times New Roman bold

To do in XSLT on-fly:

  • allocate text in English and digits in the tag <font_en>...</font_en>
  • render <font_en>...</font_en> in Times New Roman bold
  • render note/example name, xref content in IPAexGothic.
For instance:
```xml
<note id="_">
	<name>注記  1</name>

should be transformed vis XSLT on-fly to:

<note id="_">
	<name>注記  <font font-family="serif">1</font></name>

@Intelligent2013
Copy link
Contributor

The year rendering rules:

  • Times New Roman normal

Example 2018 (in Scope):
image

Example 2016 as part of the document identifier (in 3.1.1):
image

Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 24, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 24, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 24, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 24, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 24, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 26, 2023
Intelligent2013 added a commit to metanorma/mn-native-pdf that referenced this issue Mar 27, 2023
@Intelligent2013
Copy link
Contributor

JIS XSLT for PDF rendering available in https://github.com/metanorma/metanorma-jis/blob/main/lib/isodoc/jis/jis.international-standard.xsl.
Further testing and updates will be in #9.

@ronaldtse
Copy link

@Intelligent2013 regarding year formatting, it is not the year that matters, but the following:

  • Numbers are in Mincho font
  • Document identifiers are formatted in bold

opoudjis added a commit that referenced this issue Mar 31, 2023
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
Archived in project
Development

No branches or pull requests

3 participants