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 JIS Z 8301: tabular data in the example #48

Open
Intelligent2013 opened this issue Mar 31, 2023 · 2 comments
Open

PDF JIS Z 8301: tabular data in the example #48

Intelligent2013 opened this issue Mar 31, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Intelligent2013
Copy link
Contributor

Source: #9

Original PDF (11.4.1):
image

Generated PDF:
image

@Intelligent2013 Intelligent2013 added the bug Something isn't working label Mar 31, 2023
@Intelligent2013 Intelligent2013 self-assigned this Mar 31, 2023
@Intelligent2013
Copy link
Contributor Author

I've tried to encode it as table without borders (https://docs.asciidoctor.org/asciidoc/latest/tables/borders/):

. *補完要素* 主題の特定の側面を示す要素,又は当該規格を他の規格若しくは同じ規格群
の他の部と区分けするための詳細を示す要素
+
--
[[ex_11.4.1_1]]
[example]

[cols="1,1,1",options="unnumbered",frame="none",grid="none"]
|===
| 締結用部品- +
(前置き要素)
| おねじ部品- +
(主要素)
| 呼び長さ及びねじ部長さ +
(補完要素)

|===

--

But Presentation XML doesn't contain example element:

<li id="_9281abbb-7ea3-43ce-b032-586fae6ce3e1" label="c">
	<p id="_5d91af2d-3e01-642e-4a8f-fa4eb38c9a58">
		<span style="font-family:&quot;MS Gothic&quot;">補完要素</span> 主題の特定の側面を示す要素,又は当該規格を他の規格若しくは同じ規格群
の他の部と区分けするための詳細を示す要素</p>
	<table id="ex_11.4.1_1" unnumbered="true">
		<thead> </thead>
		<colgroup>
			<col width="33.3333%"/>
			<col width="33.3333%"/>
			<col width="33.3334%"/>
		</colgroup>
		<tbody>
			<tr>
				<td valign="top" align="left">締結用部品-<br/>
(前置き要素)</td>
				<td valign="top" align="left">おねじ部品-<br/>
(主要素)</td>
				<td valign="top" align="left">呼び長さ及びねじ部長さ<br/>
(補完要素)</td>
			</tr>
		</tbody>
	</table>
</li>

and frame="none",grid="none" don't have any affect.

@Intelligent2013
Copy link
Contributor Author

The example should be enclosed in ====:

. *補完要素* 主題の特定の側面を示す要素,又は当該規格を他の規格若しくは同じ規格群
の他の部と区分けするための詳細を示す要素
+
--
[[ex_11.4.1_1]]
[example]
====
[cols="1,1,1",options="unnumbered",frame=none,grid=none]
|===
| 締結用部品- +
(前置き要素)
| おねじ部品- +
(主要素)
| 呼び長さ及びねじ部長さ +
(補完要素)

|===
====
--

After that the Presentation XML looks correct:

<li id="_8e16b692-091d-426c-9eeb-f4071949cc19" label="c">
	<p id="_ace7384d-7425-3d6a-dfee-ca2d0ac4f8cb">
		<span style="font-family:&quot;MS Gothic&quot;">補完要素</span>主題の特定の側面を示す要素,又は当該規格を他の規格若しくは同じ規格群 の他の部と区分けするための詳細を示す要素</p>
	<example id="ex_11.4.1_1">
		<name>例 1</name>
		<table id="_722aa30a-13f0-f3ce-c66c-9c39c6c2df96" unnumbered="true">
			<thead/>
			<colgroup>
				<col width="33.3333%"/>
				<col width="33.3333%"/>
				<col width="33.3334%"/>
			</colgroup>
			<tbody>
				<tr>
					<td align="left" valign="top">締結用部品-
                                            <br/>(前置き要素)</td>
					<td align="left" valign="top">おねじ部品-
                                            <br/>(主要素)</td>
					<td align="left" valign="top">呼び長さ及びねじ部長さ
                                            <br/>(補完要素)</td>
				</tr>
			</tbody>
		</table>
	</example>
</li>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: On hold
Development

No branches or pull requests

1 participant