private void runBidiSplitter(BidiSplitter splitter,LayoutContext c){
  byte defaultDirection=BidiSplitter.LTR;
  String para=builder.toString();
  if (cssDirection == IdentValue.RTL) {
    defaultDirection=BidiSplitter.RTL;
  }
 else   if (cssDirection == IdentValue.AUTO) {
    defaultDirection=splitter.getBaseDirection(para);
  }
  this.actualDirection=defaultDirection == BidiSplitter.NEUTRAL ? BidiSplitter.LTR : defaultDirection;
  splitter.setParagraph(para,actualDirection);
  copySplitPointsFromBidiSplitter(splitter);
}

private void runBidiSplitter ( BidiSplitter splitter , LayoutContext c ) { byte defaultDirection = BidiSplitter . LTR ; String para = builder . toString ( ) ; if ( cssDirection == IdentValue . RTL ) { defaultDirection = BidiSplitter . RTL ; } else if ( cssDirection == IdentValue . AUTO ) { defaultDirection = splitter . getBaseDirection ( para ) ; } this . actualDirection = defaultDirection == BidiSplitter . NEUTRAL ? BidiSplitter . LTR : defaultDirection ; splitter . setParagraph ( para , actualDirection ) ; copySplitPointsFromBidiSplitter ( splitter ) ; }
here we call out to the actual bidi algorithm .
