[Libreoffice] fixing kashida insertion

Hi all,

May be some of you will be able to help here?
Kind regards
Sophie

Hi,
Sorry for my late answer. Here's Nowruz
holidays<http://en.wikipedia.org/wiki/Nowruz>
.

In MS Word, you have various options for inserting kashida. When you select
Right/Left/Center/Justified alignment, no kashida is placed. But when you
select Justify Low/Medium/High, it inserts Low/Medium/High length kashida in
the text. I think looking at paragraph alignment is a good way to
manage kashida
placement.

But I don't exactly understand the problem. There was some problem with
kashida placement in OpenOffice before, which caused defect output. But it
is fixed now <http://openoffice.org/bugzilla/show_bug.cgi?id=60594>. Do you
want to know "where kashida is allowed" or "where to put kashida to make the
text look nice"?

Happy Nowrouz
Hossein

Dear Hossein,

But I don't exactly understand the problem. There was some problem with
kashida placement in OpenOffice before, which caused defect output. But it
is fixed now <http://openoffice.org/bugzilla/show_bug.cgi?id=60594>. Do you
want to know "where kashida is allowed" or "where to put kashida to make the
text look nice"?

I thought I understood the problem when I wrote my email, but now I am confused, since I can find 3 places in the code where justification type work (involving kashidas) happens: SwTxtPortion:CalcSpacing, SwFntObj::DrawText and GenericSalLayout::AdjustLayout but I really don't understand why there are 3 places and which is used for what. One day I would like to understand this so that I can get better smart justification going on.

Yours,
Martin