src/main/java/eu/digitisation/text/Text.java
private void add(String s) throws WarningException {
        String reduced = StringNormalizer.reduceWS(s);
        if (reduced.length() > 0) {
            String canonical = StringNormalizer.composed(reduced);
            if (builder.length() > 0) {
                builder.append(' ');
            }
            builder.append(canonical);
            if (maxlen > 0 && builder.length() > maxlen) {
                throw new WarningException("Text length limited to "
                        + maxlen + " characters");
            }
        }
    }
/**
     * Add content after normalization of whitespace and composition of
     * diacritics
     *
     * @param s input text
     */
Add content after normalization of whitespace and composition of
diacritics

@param s input text
Add content after normalization of whitespace and composition of diacritics @param s input text
private void add(String s) throws WarningException {
        String reduced = StringNormalizer.reduceWS(s);
        if (reduced.length() > 0) {
            String canonical = StringNormalizer.composed(reduced);
            if (builder.length() > 0) {
                builder.append(' ');
            }
            builder.append(canonical);
            if (maxlen > 0 && builder.length() > maxlen) {
                throw new WarningException("Text length limited to "
                        + maxlen + " characters");
            }
        }
    }
private void add ( String s ) throws WarningException { String reduced = StringNormalizer . reduceWS ( s ) ; if ( reduced . length ( ) > 0 ) { String canonical = StringNormalizer . composed ( reduced ) ; if ( builder . length ( ) > 0 ) { builder . append ( ' ' ) ; } builder . append ( canonical ) ; if ( maxlen > 0 && builder . length ( ) > maxlen ) { throw new WarningException ( "Text length limited to " + maxlen + " characters" ) ; } } }
Add content after normalization of whitespace and composition of
 diacritics
Add content after normalization of whitespace and composition of diacritics