@Getkey Could you test the
Babylon_English_Greek dictionary of Nov15th2021?.
I've included the <br>-tag in $PossibleTags and expanded the code for eliminating colors-tags:
Code:
if($remove_color_tags){
# Removes all color from lemma description.
# <c c="darkslategray"><c>Derived:</c></c> <c c="darkmagenta">
# Does not remove for example <span style="color:#472565;"> and corresponding </span>!!!
# Does not remove for example <font color="#007000">noun</font>!!!
$def =~ s~<\?c>~~gs;
$def =~ s~<c c=[^>]+>~~gs;
# Does not remove span-blocks with nested html-blocks.
$def =~ s~<span style="color:#\d+;">(?<colored_text>[^<]*)</span>~$+{colored_text}~gs;
# Does not remove font-blocks with nested html-blocks.
$def =~ s~<font color="#\d+">(?<colored_text>[^<]*)</font>~$+{colored_text}~gs;
}