Closed Intelligent2013 closed 2 days ago
For some reason, the attribute value doesn't pass into the method
public void bind(PropertyList pList) throws FOPException {
in the class PageSequence
.
In any case, Apache FOP doesn't support Japanese (Chinese) numbers:
private static int[][] supportedSpecials = {
{ 'I' }, // latin - uppercase roman numerals
{ 'i' }, // latin - lowercase roman numerals
{ '\u0391' }, // greek - uppercase isopsephry numerals
{ '\u03B1' }, // greek - lowercase isopsephry numerals
{ '\u05D0' }, // hebrew - gematria numerals
{ '\u0623' }, // arabic - abjadi numberals
{ '\u0627' }, // arabic - either abjadi or hijai alphabetic sequence
{ '\u0E01' }, // thai - default alphabetic sequence
{ '\u3042' }, // kana - hiragana (gojuon) - default alphabetic sequence
{ '\u3044' }, // kana - hiragana (iroha)
{ '\u30A2' }, // kana - katakana (gojuon) - default alphabetic sequence
{ '\u30A4' }, // kana - katakana (iroha)
So, I have to add it.
Proof-of-concept - the two-character page number without line breaks:
Done in mn2pdf
v.2.06 (not released yet).
To activate the page numbering in Japanese, add to to the element <fo:page-sequence
:
<xsl:attribute name="format">二</xsl:attribute>
New issues:
the glyphs don't rotate in ToC (XSL-FO element fo:page-number-citation
):
and in the footer (XSL-FO element fo:page-number
):
Source issue: https://github.com/metanorma/metanorma-jis/issues/226
Apache FOP site: https://xmlgraphics.apache.org/fop/2.9/complexscripts.html#source
The feature
fox:number-conversion-features
doesn't have any effect.fop-core\src\main\java\org\apache\fop\fo\pagination\AbstractPageSequence.java
fop-core\src\main\java\org\apache\fop\complexscripts\util\NumberConverter.java
: