aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/area
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2012-11-02 20:47:32 +0000
committerVincent Hennebert <vhennebert@apache.org>2012-11-02 20:47:32 +0000
commit28fc4cf264fb73e6aec0f5a2f373845e685a8955 (patch)
tree035066cf30bdd42ab8c59fd98094f2e18f171839 /src/java/org/apache/fop/area
parent4b4c1f125c93ad159a19e1da103d5e03d6976d8e (diff)
downloadxmlgraphics-fop-28fc4cf264fb73e6aec0f5a2f373845e685a8955.tar.gz
xmlgraphics-fop-28fc4cf264fb73e6aec0f5a2f373845e685a8955.zip
Bugzilla #54081: properly tag hyphenated words in PDF output when accessibility is enabled
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1405158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/area')
-rw-r--r--src/java/org/apache/fop/area/inline/TextArea.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/area/inline/TextArea.java b/src/java/org/apache/fop/area/inline/TextArea.java
index 1d27827f7..66854f7f2 100644
--- a/src/java/org/apache/fop/area/inline/TextArea.java
+++ b/src/java/org/apache/fop/area/inline/TextArea.java
@@ -30,6 +30,8 @@ public class TextArea extends AbstractTextArea {
private static final long serialVersionUID = 7315900267242540809L;
+ private boolean isHyphenated;
+
/**
* Create a text inline area
*/
@@ -117,6 +119,20 @@ public class TextArea extends AbstractTextArea {
}
/**
+ * Records that the last word in this text area is hyphenated.
+ */
+ public void setHyphenated() {
+ this.isHyphenated = true;
+ }
+
+ /**
+ * Returns {@code true} if the last word in this area is hyphenated.
+ */
+ public boolean isHyphenated() {
+ return isHyphenated;
+ }
+
+ /**
* Get the whole text string.
* Renderers whose space adjustment handling is not affected
* by multi-byte characters can use this method to render the