SourceForge.net Logo
aXSL API 0.2

org.axsl.hyphen
Interface HyphenBreak


public interface HyphenBreak

Specialized information about a specific hyphenation break opportunity in a word. This handles "hard" hyphenation cases, such as those where the word changes spelling when it is hyphenated. For example, the German "backen" hyphenates to "bak-ken". Most hyphenation break opportunities do not require a HyphenBreak because such spelling changes to not occur.


Method Summary
 java.lang.String postDelete()
          Assuming that a hyphen is placed at this point, provides the text immediately after that hyphen that should be removed.
 java.lang.String postInsert()
          Assuming that a hyphen is placed at this point, provides the text that should be inserted immediately after that hyphen.
 java.lang.String preDelete()
          Assuming that a hyphen is placed at this point, provides the text immediately before that hyphen that should be removed.
 java.lang.String preInsert()
          Assuming that a hyphen is placed at this point, provides the text that should be inserted immediately before that hyphen.
 

Method Detail

preDelete

java.lang.String preDelete()
Assuming that a hyphen is placed at this point, provides the text immediately before that hyphen that should be removed. Note that this deletion should occur chronologically before the text returned by preInsert() is inserted.

Returns:
The text that should be deleted before the hyphen, or an empty String if none should be deleted. For the example cited in the class documentation, the German "backen" hyphenating to "bak-ken", the pre-delete return value is "c".

preInsert

java.lang.String preInsert()
Assuming that a hyphen is placed at this point, provides the text that should be inserted immediately before that hyphen. Note that this insertion should occur chronologically after the text returned by preDelete() is deleted.

Returns:
The text that should be inserted before the hyphen, or an empty String if none should be inserted. For the example cited in the class documentation, the German "backen" hyphenating to "bak-ken", the pre-insert return value is "k".

postDelete

java.lang.String postDelete()
Assuming that a hyphen is placed at this point, provides the text immediately after that hyphen that should be removed. Note that this deletion should occur chronologically before the text returned by postInsert() is inserted.

Returns:
The text that should be deleted after the hyphen, or an empty String if none should be deleted. For the example cited in the class documentation, the German "backen" hyphenating to "bak-ken", the post-delete return value is an empty String.

postInsert

java.lang.String postInsert()
Assuming that a hyphen is placed at this point, provides the text that should be inserted immediately after that hyphen. Note that this insertion should occur chronologically after the text returned by postDelete() is deleted.

Returns:
The text that should be inserted after the hyphen, or an empty String if none should be inserted. For the example cited in the class documentation, the German "backen" hyphenating to "bak-ken", the post-insert return value is an empty String.

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.