|
5750 | 5750 | <xsl:if test="not($vertical_layout = 'true')">
|
5751 | 5751 | <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
5752 | 5752 | </xsl:if>
|
| 5753 | + <xsl:if test="$vertical_layout = 'true'"> |
| 5754 | + <xsl:attribute name="vertical-align">baseline</xsl:attribute> |
| 5755 | + <xsl:attribute name="font-size">100%</xsl:attribute> |
| 5756 | + </xsl:if> |
5753 | 5757 | </xsl:if>
|
5754 | 5758 | </xsl:template> <!-- refine_fn-body-num-style -->
|
5755 | 5759 |
|
|
9237 | 9241 | <xsl:otherwise><xsl:value-of select="$current_fn_number"/><xsl:text>)</xsl:text></xsl:otherwise>
|
9238 | 9242 | </xsl:choose>
|
9239 | 9243 | </xsl:when>
|
| 9244 | + <xsl:when test="$namespace = 'jis'"> |
| 9245 | + <xsl:choose> |
| 9246 | + <xsl:when test="$autonumbering_style = 'japanese'"> |
| 9247 | + <xsl:text> </xsl:text> |
| 9248 | + <xsl:value-of select="$numbers_japanese//jis:localized-string[@key = $current_fn_number]"/> |
| 9249 | + <xsl:text> </xsl:text> |
| 9250 | + </xsl:when> |
| 9251 | + <xsl:otherwise><xsl:value-of select="$current_fn_number"/><fo:inline font-weight="normal">)</fo:inline></xsl:otherwise> |
| 9252 | + </xsl:choose> |
| 9253 | + </xsl:when> |
9240 | 9254 | <xsl:otherwise>
|
9241 | 9255 | <xsl:value-of select="$current_fn_number"/>
|
9242 | 9256 | </xsl:otherwise>
|
|
9246 | 9260 | <xsl:text>)</xsl:text>
|
9247 | 9261 | </xsl:if>
|
9248 | 9262 | </xsl:if>
|
9249 |
| - <xsl:if test="$namespace = 'jis'"> |
9250 |
| - <fo:inline font-weight="normal">)</fo:inline> |
9251 |
| - </xsl:if> |
9252 | 9263 | </xsl:variable>
|
9253 | 9264 |
|
9254 | 9265 | <xsl:variable name="ref_id">
|
|
9279 | 9290 | <xsl:if test="not($vertical_layout = 'true')">
|
9280 | 9291 | <xsl:attribute name="font-family">Times New Roman</xsl:attribute>
|
9281 | 9292 | </xsl:if>
|
| 9293 | + <xsl:if test="$vertical_layout = 'true'"> |
| 9294 | + <xsl:attribute name="vertical-align">baseline</xsl:attribute> |
| 9295 | + <xsl:attribute name="font-size">80%</xsl:attribute> |
| 9296 | + <xsl:attribute name="baseline-shift">20%</xsl:attribute> |
| 9297 | + </xsl:if> |
9282 | 9298 | </xsl:if>
|
9283 | 9299 | </fn_styles>
|
9284 | 9300 | </xsl:otherwise>
|
|
9313 | 9329 | <xsl:with-param name="element">
|
9314 | 9330 | <fo:basic-link internal-destination="{$ref_id}" fox:alt-text="footnote {$current_fn_number}"> <!-- note: role="Lbl" removed in https://github.com/metanorma/mn2pdf/issues/291 -->
|
9315 | 9331 | <fo:inline role="Lbl"> <!-- need for https://github.com/metanorma/metanorma-iso/issues/1003 -->
|
| 9332 | + |
| 9333 | + <xsl:if test="$namespace = 'jis'"> |
| 9334 | + <xsl:attribute name="keep-together.within-line">always</xsl:attribute> |
| 9335 | + <xsl:call-template name="insertVerticalChar"> |
| 9336 | + <xsl:with-param name="str" select="'〔'"/> |
| 9337 | + </xsl:call-template> |
| 9338 | + </xsl:if> |
9316 | 9339 | <xsl:copy-of select="$current_fn_number_text"/>
|
| 9340 | + |
| 9341 | + <xsl:if test="$namespace = 'jis'"> |
| 9342 | + <xsl:call-template name="insertVerticalChar"> |
| 9343 | + <xsl:with-param name="str" select="'〕'"/> |
| 9344 | + </xsl:call-template> |
| 9345 | + </xsl:if> |
| 9346 | + |
9317 | 9347 | </fo:inline>
|
9318 | 9348 | </fo:basic-link>
|
9319 | 9349 | </xsl:with-param>
|
|
9334 | 9364 | <fo:block role="SKIP"> </fo:block>
|
9335 | 9365 | </xsl:if>
|
9336 | 9366 | </xsl:if>
|
| 9367 | + |
9337 | 9368 | <fo:block-container xsl:use-attribute-sets="fn-container-body-style" role="SKIP">
|
9338 | 9369 |
|
9339 |
| - <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP"> |
9340 |
| - |
| 9370 | + <xsl:variable name="fn_block"> |
9341 | 9371 | <xsl:call-template name="refine_fn-body-style"/>
|
9342 |
| - |
| 9372 | + |
9343 | 9373 | <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl">
|
9344 | 9374 |
|
9345 | 9375 | <xsl:call-template name="refine_fn-body-num-style"/>
|
9346 | 9376 |
|
9347 | 9377 | <xsl:value-of select="$current_fn_number_text"/>
|
| 9378 | + |
9348 | 9379 | </fo:inline>
|
9349 | 9380 | <xsl:apply-templates />
|
9350 |
| - </fo:block> |
| 9381 | + </xsl:variable> |
| 9382 | + |
| 9383 | + <xsl:choose> |
| 9384 | + <xsl:when test="$namespace = 'jis'"> |
| 9385 | + <xsl:choose> |
| 9386 | + <xsl:when test="$vertical_layout = 'true'"> |
| 9387 | + <fo:list-block xsl:use-attribute-sets="fn-body-style" role="SKIP" provisional-distance-between-starts="25mm"> |
| 9388 | + <xsl:call-template name="refine_fn-body-style"/> |
| 9389 | + <fo:list-item role="SKIP"> |
| 9390 | + <fo:list-item-label start-indent="{$text_indent}mm" end-indent="label-end()" role="SKIP"> |
| 9391 | + <fo:block role="SKIP"> |
| 9392 | + <fo:inline id="{$ref_id}" xsl:use-attribute-sets="fn-body-num-style" role="Lbl"> |
| 9393 | + |
| 9394 | + <xsl:call-template name="refine_fn-body-num-style"/> |
| 9395 | + |
| 9396 | + <xsl:call-template name="insertVerticalChar"> |
| 9397 | + <xsl:with-param name="str" select="'〔'"/> |
| 9398 | + </xsl:call-template> |
| 9399 | + |
| 9400 | + <xsl:value-of select="$current_fn_number_text"/> |
| 9401 | + |
| 9402 | + <xsl:call-template name="insertVerticalChar"> |
| 9403 | + <xsl:with-param name="str" select="'〕'"/> |
| 9404 | + </xsl:call-template> |
| 9405 | + |
| 9406 | + </fo:inline> |
| 9407 | + </fo:block> |
| 9408 | + </fo:list-item-label> |
| 9409 | + <fo:list-item-body start-indent="body-start()" xsl:use-attribute-sets="table-fn-body-style" role="SKIP"> |
| 9410 | + <fo:block role="SKIP"> |
| 9411 | + <xsl:apply-templates /> |
| 9412 | + </fo:block> |
| 9413 | + </fo:list-item-body> |
| 9414 | + </fo:list-item> |
| 9415 | + </fo:list-block> |
| 9416 | + </xsl:when> |
| 9417 | + <xsl:otherwise> |
| 9418 | + <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP"> |
| 9419 | + <xsl:copy-of select="$fn_block"/> |
| 9420 | + </fo:block> |
| 9421 | + </xsl:otherwise> |
| 9422 | + </xsl:choose> |
| 9423 | + <!-- jis --> |
| 9424 | + </xsl:when> |
| 9425 | + <xsl:otherwise> |
| 9426 | + <fo:block xsl:use-attribute-sets="fn-body-style" role="SKIP"> |
| 9427 | + <xsl:copy-of select="$fn_block"/> |
| 9428 | + </fo:block> |
| 9429 | + </xsl:otherwise> |
| 9430 | + </xsl:choose> |
| 9431 | + |
| 9432 | + |
| 9433 | + |
| 9434 | + |
9351 | 9435 | </fo:block-container>
|
9352 | 9436 | </fo:footnote-body>
|
9353 | 9437 | </fo:footnote>
|
|
0 commit comments