docs: public BidiWrappingText unicodeWrappingText(@Nullable Dir dir, String str, boolean isHtml) {
      if (dir == null) {
        dir = estimateDirection(str, isHtml);
      }
      StringBuilder beforeText = new StringBuilder();
      StringBuilder afterText = new StringBuilder();
      if (dir != Dir.NEUTRAL && dir != contextDir) {
        beforeText.append(dir == Dir.RTL ? BidiUtils.Format.RLE : BidiUtils.Format.LRE);
        afterText.append(BidiUtils.Format.PDF);
      }
      afterText.append(markAfter(dir, str, isHtml));
      return BidiWrappingText.create(beforeText.toString(), afterText.toString());
    }