Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Display an improved annotated text (text frame) More...
Namespaces | |
Lwt | |
Functions | |
get_annotated_text ($textid) | |
get_display_impr_text_text_data ($textid) | |
do_diplay_impr_text_text_js () | |
do_diplay_impr_text_text_area ($ann, $textsize, $rtlScript) | |
get_word_annotations ($vals) | |
do_display_impr_text_text_word ($item, $textsize) | |
do_display_impr_text_text_main ($textid=null) | |
Display an improved annotated text (text frame)
Call: display_impr_text_text.php?text=[textid]
PHP version 8.1
do_diplay_impr_text_text_area | ( | $ann, | |
$textsize, | |||
$rtlScript | |||
) |
Make the main content for a printed text.
string | $ann | Annotations separated b tabulations "\t" |
string | $textsize | Text size |
bool | $rtlScript | True if this text is right-to-left |
do_diplay_impr_text_text_js | ( | ) |
Prepare JavaScript interactions for the text content.
When user clicks an annotation.
When user clicks the text.
do_display_impr_text_text_main | ( | $textid = null | ) |
Main function to do a complete printed text text content.
int | null | $textid | Text ID, we will use page request if not provided. |
do_display_impr_text_text_word | ( | $item, | |
$textsize | |||
) |
Display a single word item.
string | $item | Word item, values separated by a tabulation. |
string | $textsize | Text size |
get_annotated_text | ( | $textid | ) |
get_display_impr_text_text_data | ( | $textid | ) |
get_word_annotations | ( | $vals | ) |
Parse the annotations (translation/romanization) and return them.
string[] | $vals | Annotations values |
@global string $tbpref Database table prefix.