- Name
-
panalysis:Get -- get analysis info
- Synopsis
-
table = panalysis:Get()
- Function
-
Gets information about a Pango analysis object. The data will be returned as
a table. The following fields will be initialized in the table:
Font
-
The font for this segment. This is a Pango font handle. It is owned
by the Pango analysis object and mustn't be freed.
Level
-
The bidirectional level for this segment.
Gravity
-
The glyph orientation for this segment. See pcontext:SetBaseGravity()
for a list of gravity constants.
Flags
-
Boolean flags for this segment.
Script
-
The detected script for this segment. See planguage:GetScripts() for
a list of supported scripts.
Language
-
The detected language for this segment. This is a Pango language handle. It is owned
by the Pango analysis object and mustn't be freed.
ExtraAttrs
-
Extra attributes for this segment. This is a table of Pango attributes. The
Pango attribute objects are owned by the Pango analysis object and mustn't be freed.
- Inputs
-
none
- Results
-
- table
- a table containing the analysis data
Show TOC