Description: In Microsoft Word, there are 4 options for justified paragraph alignments: * justified * justify low * justify medium * justify high In LibreOffice, there is only one, which seems to be similar to justify low. In the above options, no kashida is used for the first option. Each of the above options are used for a certain purpose, so having all of them is useful to create professional looking documents.
Apart from the code side, this would need support from ODF format as well.
Adding Regina (In reply to خالد حسني from comment #1) > Apart from the code side, this would need support from ODF format as well.
Please provide an docx file with such text.
Created attachment 187767 [details] DOCX different justify options The attachment is a DOCX file containing RTL and LTR paragraphs with different justify options.
Created attachment 187768 [details] PDF output using MS Word
Created attachment 187769 [details] PDF output using LibreOffice 7.6 dev master
From the attached documents, what LibreOffice implements right now is a mixture of “justified” and “justify low”, but we chose automatically depending on the font. It shouldn’t be hard to allow for explicit selection of the mode as well. The other two modes use different line breaks, so it is an interoperability issue, but to be interoperable we also need to know what algorithm is used to to insert Kashidas. From a quick glance, the “justify medium” seems to be inserting one kashida in each work then justifying the text as usual, and “justify high” seems to be inserting three Kashidas then justifying, but this is only a guess. What happens with font like Amiri and Noto Nastaliq where inserting Kashida anywhere will sometimes break how the glyphs join?
(In reply to خالد حسني from comment #7) > What happens with font like Amiri and Noto Nastaliq where inserting Kashida > anywhere will sometimes break how the glyphs join? In MS Word, the low/medium/high justification break the glyph join with some calligraphy fonts like Nastaliq, and you have to stick to "justified".