[FOray-commit] SF.net SVN: foray:[12362] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2022-01-08 22:31:11
|
Revision: 12362
http://sourceforge.net/p/foray/code/12362
Author: victormote
Date: 2022-01-08 22:31:08 +0000 (Sat, 08 Jan 2022)
Log Message:
-----------
Conform to aXSL changes: Allow all ParaNodes (not just branches) to report the number of node and leaf children that they have.
Modified Paths:
--------------
trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java
Modified: trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java
===================================================================
--- trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-common/src/main/java/org/foray/common/para/ParaLeaf4a.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -52,4 +52,14 @@
return null;
}
+ @Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/DiscretionaryHyphenMutating4a.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -206,6 +206,16 @@
}
@Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
+ @Override
public int qtyKpLeaves() {
return 1;
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Punctuation4a.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -241,6 +241,16 @@
}
@Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
+ @Override
public int qtyKpLeaves() {
return this.content.length();
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentLatin1.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -110,6 +110,16 @@
}
@Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
+ @Override
public int qtyKpLeaves() {
return length();
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/StringWordSegmentUtf16.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -110,6 +110,16 @@
}
@Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
+ @Override
public int qtyKpLeaves() {
return length();
}
Modified: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java 2022-01-08 22:14:56 UTC (rev 12361)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/Whitespace4a.java 2022-01-08 22:31:08 UTC (rev 12362)
@@ -179,6 +179,16 @@
}
@Override
+ public int qtyParaNodes() {
+ return 0;
+ }
+
+ @Override
+ public int qtyParaLeaves() {
+ return 1;
+ }
+
+ @Override
public int qtyKpLeaves() {
return this.content.length();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|