code: private void shapeArabic(int options) {
          if (options != 0) {
              ArabicShaping shaper = new ArabicShaping(options);
              try {
                  text = shaper.shape(text);
              } catch(ArabicShapingException e) {
              }
          }
      }
docs: Performs digit and letter shaping
  
  @param options Shaping options covering both letters and digits