From 7d01c0732e96ddf3dac732bf177dd0513cd844b1 Mon Sep 17 00:00:00 2001 From: Luca Furini Date: Thu, 27 Oct 2005 14:38:12 +0000 Subject: Moved the text-splitting logic from TextArea to TextLM, as suggested by Manuel and Jeremias. Some simplification in TextLM#addAreas(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328882 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/util/CharUtilities.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/java/org/apache/fop/util') diff --git a/src/java/org/apache/fop/util/CharUtilities.java b/src/java/org/apache/fop/util/CharUtilities.java index c1a537521..43c2c3e41 100644 --- a/src/java/org/apache/fop/util/CharUtilities.java +++ b/src/java/org/apache/fop/util/CharUtilities.java @@ -119,6 +119,19 @@ public class CharUtilities { || c == ZERO_WIDTH_NOBREAK_SPACE); // zero width no-break space } + /** + * Method to determine if the character is an adjustable + * space. + * @param c character to check + * @return True if the character is adjustable + */ + public static boolean isAdjustableSpace(char c) { + //TODO: are there other kinds of adjustable spaces? + return + (c == '\u0020' // normal space + /*|| c == ''*/); + } + /** * Determines if the character represents any kind of space. * @param c character to check -- cgit v1.2.3