Class BiDiUtils

java.lang.Object
org.omegat.util.BiDiUtils

public final class BiDiUtils extends Object
  • Field Details

  • Method Details

    • getOrientationType

      public static BiDiUtils.ORIENTATION getOrientationType()
    • getInitialOrientation

      public static ComponentOrientation getInitialOrientation()
      Decide what document orientation should be default for source/target languages.
    • getOrientation

      public static ComponentOrientation getOrientation(BiDiUtils.ORIENTATION orientationType)
      Decide what document orientation should be default for source/target languages.
    • addRtlBidiAround

      public static String addRtlBidiAround(String string)
    • addLtrBidiAround

      public static String addLtrBidiAround(String string)
    • isSourceLangRtl

      public static boolean isSourceLangRtl()
    • isTargetLangRtl

      public static boolean isTargetLangRtl()
    • isLocaleRtl

      public static boolean isLocaleRtl()
      Check if locale is Right-To-Left oriented.
      Returns:
      true if locale is Right-To-Left oriented.
    • isRtl

      public static boolean isRtl(String language)
      Check if language is Right-To-Left oriented.
      Parameters:
      language - ISO-639-2 language code
      Returns:
      true if language is RTL
    • isMixedOrientationProject

      public static boolean isMixedOrientationProject()