I am using LibreOffice to type arabic, but if what I am asking cannot be obtained with LibreOffice then I would like to know whether it is possible in LaTeX, because I have seen this in a book, but do not know how to do it. I want to type an arabic consonant with all three diacritics fatha, kasra, and damma as in the following picture:\
This combination is not possible in standard Arabic, but I have seen it in a textbook that wanted to show this combination to convey the information that either one of the three diacritics could appear in such position in the case of the given verb form.

As a last resort, could the effect be achieved by means of a Unicode combination? Since the text book had the combination, it must sure be possible to achieve the effect some way or another.
Thank you for your feedback.