# new ScriptInfo(script, optionsopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
script |
string
|
The ISO 15924 4-letter identifier for the script |
|
options |
Object
|
<optional> |
parameters to initialize this instance |
Methods
# getCasing() → {boolean}
Return true if this script uses lower- and upper-case characters.
true if this script uses letter case
boolean
# getCode() → {string}
Return the 4-letter ISO 15924 identifier associated with this script.
the 4-letter ISO code for this script
string
# getCodeNumber() → {number}
Get the ISO 15924 code number associated with this script.
the ISO 15924 code number
number
# getLongCode() → {string}
Get the long identifier assciated with this script.
the long identifier of this script
string
# getName() → {string}
Get the name of this script in English.
the name of this script in English
string
# getNeedsIME() → {boolean}
Return true if this script typically requires an input method engine to enter its characters.
true if this script typically requires an IME
boolean
# getScriptDirection() → {string}
Return the usual direction that text in this script is written in. Possible return values are "rtl" for right-to-left, "ltr" for left-to-right, and "ttb" for top-to-bottom.
the usual direction that text in this script is written in
string
# static getAllScripts(sync, loadParams, onLoad) → {Array.<string>}
Return an array of all ISO 15924 4-letter identifier script identifiers that this copy of ilib knows about.
Parameters:
Name | Type | Description |
---|---|---|
sync |
boolean
|
whether to find the available ids synchronously (true) or asynchronously (false) |
loadParams |
Object
|
arbitrary object full of properties to pass to the loader |
onLoad |
function
|
callback function to call when the data is finished loading |
an array of all script identifiers that this copy of ilib knows about
Array.<string>