question: public Bidi ( AttributedCharacterIterator paragraph ) { if ( paragraph == null ) { throw new IllegalArgumentException ( "paragraph is null" ) ; } bidiBase = new BidiBase ( 0 , 0 ) ; bidiBase . setPara ( paragraph ) ; }
target:  Create Bidi from the given paragraph of text. <p> The RUN_DIRECTION attribute in the text, if present, determines the base direction (left-to-right or right-to-left).  If not present, the base direction is computes using the Unicode Bidirectional Algorithm, defaulting to left-to-right if there are no strong directional characters in the text.  This attribute, if present, must be applied to all the text in the paragraph. <p> The BIDI_EMBEDDING attribute in the text, if present, represents embedding level information.  Negative values from -1 to -62 indicate overrides at the absolute value of the level.  Positive values from 1 to 62 indicate embeddings.  Where values are zero or not defined, the base embedding level as determined by the base direction is assumed. <p> The NUMERIC_SHAPING attribute in the text, if present, converts European digits to other decimal digits before running the bidi algorithm.  This attribute, if present, must be applied to all the text in the paragraph.