Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

WindowsOCR.IsLanguageSupported

Whether a language is supported for OCR.

Component Version macOS Windows Linux Server iOS SDK
WindowsOCR 13.1 ❌ No ✅ Yes ❌ No ✅ Yes, on Windows ❌ No
MBS( "WindowsOCR.IsLanguageSupported"; LanguageTag )   More

Parameters

Parameter Description Example
LanguageTag The language specification.
Can be language tag, display name or localized name of the language.
"de-DE"

Result

Returns 0, 1 or error.

Description

Whether a language is supported for OCR.
Returns 1 if a specified language can be resolved to any of the available OCR languages.

Examples

Try it:

If [ MBS( "WindowsOCR.IsLanguageSupported"; "de-DE" ) = 1 ]
    Show Custom Dialog [ "We can recognize German text." ]
Else
    Show Custom Dialog [ "We can't recognize German text." ]
End If

This function is free to use.

Created 22nd January 2023, last changed 7th May 2023


WindowsOCR.CurrentInputMethodLanguageTag - WindowsOCR.List

💬 Ask a question or report a problem