Display an improved annotated text (text frame)
More...
Display an improved annotated text (text frame)
Call: display_impr_text_text.php?text=[textid]
◆ do_diplay_impr_text_text_area()
| do_diplay_impr_text_text_area |
( |
|
$ann, |
|
|
|
$textsize, |
|
|
|
$rtlScript |
|
) |
| |
Make the main content for a printed text.
- Parameters
-
| string | $ann | Annotations separated b tabulations "\t" |
| string | $textsize | Text size |
| bool | $rtlScript | True if this text is right-to-left |
- Returns
- void
◆ do_diplay_impr_text_text_js()
| do_diplay_impr_text_text_js |
( |
| ) |
|
Prepare JavaScript interactions for the text content.
- Returns
- void
When user clicks an annotation.
When user clicks the text.
◆ do_display_impr_text_text_main()
| do_display_impr_text_text_main |
( |
|
$textid = null | ) |
|
Main function to do a complete printed text text content.
- Parameters
-
| int | null | $textid | Text ID, we will use page request if not provided. |
- Returns
- void
◆ do_display_impr_text_text_word()
| do_display_impr_text_text_word |
( |
|
$item, |
|
|
|
$textsize |
|
) |
| |
Display a single word item.
- Parameters
-
| string | $item | Word item, values separated by a tabulation. |
| string | $textsize | Text size |
- Returns
- void
◆ get_annotated_text()
| get_annotated_text |
( |
|
$textid | ) |
|
Return the annotatino of a text.
- Parameters
-
- Returns
- string Text annotations
◆ get_display_impr_text_text_data()
| get_display_impr_text_text_data |
( |
|
$textid | ) |
|
Get settings for this text.
- Parameters
-
- Returns
- array{0: string, 1: string} Text size, and if this text is rigth-to-left.
◆ get_word_annotations()
| get_word_annotations |
( |
|
$vals | ) |
|
Parse the annotations (translation/romanization) and return them.
- Parameters
-
| string[] | $vals | Annotations values |
- Returns
- array{0: string, 1: string} Translation and romanization.
@global string $tbpref Database table prefix.