I have already installed all of things that are suggested to type Persian better but still it doesn't work as expected.
Libreoffice replaces some letters with a dash
- or an underscore
For example, this is what I typed: الان
And this is what I saw on the screen: الا_ن