| View previous topic :: View next topic |
| Author |
Message |
Arjuna General User

Joined: 04 Apr 2004 Posts: 23
|
Posted: Sun Sep 10, 2006 2:33 pm Post subject: OO writer Breaks devanagari conjuncts |
|
|
I have set up my system nicely and I can produce devavagari (sanskrit / hindi) for most part without difficulty. However, when I try to produce certain conjuncts in OpenOffice, I am facing a problem. For instance in "rbhava" when typing the last glyph "va", it breaks the previous "rbha" and prints on top of it.
For instance:
Sarveṣāṁ Svasti Bhavatu, Sarveṣāṁ Śāntirbhavatu
सर्वेषां स्वस्ति भवतु । सर्वेषां शान्तिर्भवतु ।
appears correctly in my browser and in gedit, but the glyph gets broken in OpenOffice. Do you have any idea how to solve this?
Perhaps I should use the ZWNJ (zero width non joiner) key? Where it is located? I know only that ZWJ (viraama) is located on key D on QWERTY keyboard.
I am using devanagari inscript layout. |
|
| Back to top |
|
 |
Bhikkhu Pesala Super User


Joined: 23 Aug 2005 Posts: 2324 Location: Seven Kings, London, UK
|
Posted: Sun Sep 10, 2006 9:45 pm Post subject: |
|
|
Since I don't use Sanskrit, I am not sure how to help.
This macro might work. I copied the Zero Width non-joiner from Babelmap and pasted it into my code, then renamed the subroutine "zwnj". Then I assigned the macro to "Shift Space" using Tools, Customise. Typing shift space does insert a character, but not one that I can see, so I don't know if it is the right one, nor if it will solve your problem if it is.
| Quote: | sub zwnj
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "Symbols"
args1(0).Value = ""
dispatcher.executeDispatch(document, ".uno:InsertSymbol", "", 0, args1())
end sub |
If you're unfamiliar with editing macros, just copy all of my code to the clipboard, record a simple macro to type "abc", name it whatever you like. Then edit the macro and paste my code to replace the recorded code. _________________ Fonts * Opera * Oo Tips * FAQ * New Forum
Oo 2.3.1 * Win XP |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
|
| Back to top |
|
 |
raakh-baabaa Newbie

Joined: 16 Sep 2006 Posts: 2 Location: Paris
|
Posted: Sat Sep 16, 2006 7:44 am Post subject: Thank you |
|
|
I thank you for this answer.
I think we are not enough to write in devangari... _________________ raakh-baabaa |
|
| Back to top |
|
 |
Arjuna General User

Joined: 04 Apr 2004 Posts: 23
|
Posted: Thu Sep 28, 2006 9:09 pm Post subject: |
|
|
| I found it was a font problem with Sanskrit 2003 font. When using for instance Lohit Hindi -font, there is no problem. |
|
| Back to top |
|
 |
Arjuna General User

Joined: 04 Apr 2004 Posts: 23
|
Posted: Fri Sep 29, 2006 8:18 am Post subject: |
|
|
I contacted the author of Sanskrit 2003 font (Omkara Ashram) to report the bug in that font. I got an immediate response:
"I have enclosed two screenshot, the first (msword.jpg) shows the same text as you had sent in the PDF file under Microsoft Word 2003 and Windows XP, and as you can see, it works here nicely. Unfortunately, we do not have any Linux system, so that I cannot test it on that. I however installed OpenOffice 2.0.3 on my system (Windows version of course), which you can see in the second screenshot (openoffice.jpg). Here too, the font works. I also checked the font for any faulty programming, but I could not find anything. It is also interesting that when you format the ‘rbha’ it displays correctly. Since formatting is done by the word processor, not by the font, this would indicate that it cannot be a faulty font-programming. On the other hand, the Lohit Hindi font displays correctly. It is all very mysterious to me and unfortunately, I cannot give you any suggestion.
One question: Does this occur at any font size or only at a certain font size. Could you kindly check how this text ‘behaves’ at different font sizes?"
I tested - and there is no difference. The glyph remains broken with any fontsize. Only when you apply formatting to that broken glyph only, it appears correctly. But if you format the whole word, it remains broken.
In the following examples the glyph appears as it shoul:
Here in OO in Windows XP:
http://ownmedia.net/~ossi/openoffice.jpg
Here in MS Word:
http://ownmedia.net/~ossi/msword.jpg
And here is a screenshot how it appears in OO in Ubuntu Linux.
Plese note the broken glyph where two characters appear on top of each other.
http://ownmedia.net/~ossi/openoffice.png
Could anyone give ideas what could be wrong and how could I fix it? Is it perhaps X.org or XFS issue, as all goes just fine with OO in Windows?? |
|
| Back to top |
|
 |
Robert Tucker Moderator


Joined: 16 Aug 2004 Posts: 3367 Location: Manchester UK
|
Posted: Fri Sep 29, 2006 9:24 am Post subject: |
|
|
Code2000 and FreeSans seems to work properly like Lohit Hindi, but Samanata is another font that displays like Sanskrit 2003.
Find what Sanskrit 2003 and Samanata have in common which is different from Lohit Hindi, Code2000 and FreeSans and one may have the answer. |
|
| Back to top |
|
 |
Arjuna General User

Joined: 04 Apr 2004 Posts: 23
|
Posted: Fri Sep 29, 2006 9:55 am Post subject: |
|
|
This is related to OpenOffice bug #55892
http://www.openoffice.org/issues/show_bug.cgi?id=55892
I installed Koffice for testing purposes - and the mentioned font works perfectly. It is purely bug in OO. Hope that the bug will be fixed soon, as it has been standing open already for one year. |
|
| Back to top |
|
 |
|