AntennaHouse / pdf5-ml

Antenna House PDF5-ML DITA-OT Plug-in
23 stars 9 forks source link

改ページ #101

Closed tmaeda3 closed 4 years ago

tmaeda3 commented 5 years ago

たとえば、次のマップファイルで、特定のtopicheadやtopicrefの前で改ページしたいのですが、属性設定などの方法で実現できないでしょうか?

<chapter>
  <topicref href="aaa.dita" />
  <topichead>         ←この前で改ページ
    <topicref href="bbb.dita"/>
    <topicref href="ccc.dita"/>
  </topichead>
  <topicref href="ddd.dita"/>  ←この前で改ページ
</chapter>
ToshihikoMakita commented 5 years ago

現在はオーサリングによる属性セッティングではできませんが、2019年9月中に予定している次のバージョンリリース(developブランチ→master)で、できるように考えます.

<topicref href="xxx.dita" outputclass="break-page"/>

みたいな感じで良いでしょうか?

ToshihikoMakita commented 4 years ago

Page-break control by topicref/@outputclass has been implemented today.

(Samples)
<topicref href="a.xml" outputclass="break-page"/> 
<topicref href="a.xml" outputclass="break-column"/>
<topicref href="a.xml" outputclass="break-no"/>
<topicref href="a.xml" outputclass="break-auto"/>

"break-page" inserts break-before="page" into the relevant fo:block. "break-column" inserts break-before="column" into the relevant fo:block. "break-no" inhibits any page-break. "break-auto" means no user-level break control (depends on stylesheet default)

All of above does not work at the start of frontmatter, chapter, backmatter because PDF5-ML plug-in stylesheet generates fo:page-sequence for these elements.

I attached simple test data. page-break.zip

Any suggestions are welcome.

tmaeda3 commented 4 years ago

Perfect! Thanks a lot.