Package org.omegat.util
Class BiDiUtils
java.lang.Object
org.omegat.util.BiDiUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StringaddLtrBidiAround(String string) static StringaddRtlBidiAround(String string) static ComponentOrientationDecide what document orientation should be default for source/target languages.static ComponentOrientationgetOrientation(BiDiUtils.ORIENTATION orientationType) Decide what document orientation should be default for source/target languages.static BiDiUtils.ORIENTATIONstatic booleanCheck if locale is Right-To-Left oriented.static booleanstatic booleanCheck if language is Right-To-Left oriented.static booleanstatic boolean
-
Field Details
-
BIDI_LRE
- See Also:
-
BIDI_RLE
- See Also:
-
BIDI_PDF
- See Also:
-
BIDI_LRM
- See Also:
-
BIDI_RLM
- See Also:
-
BIDI_LRM_CHAR
public static final char BIDI_LRM_CHAR- See Also:
-
BIDI_RLM_CHAR
public static final char BIDI_RLM_CHAR- See Also:
-
-
Method Details
-
getOrientationType
-
getInitialOrientation
Decide what document orientation should be default for source/target languages. -
getOrientation
Decide what document orientation should be default for source/target languages. -
addRtlBidiAround
-
addLtrBidiAround
-
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
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()
-