OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

OO writer Breaks devanagari conjuncts

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
Arjuna
General User
General User


Joined: 04 Apr 2004
Posts: 23

PostPosted: Sun Sep 10, 2006 2:33 pm    Post subject: OO writer Breaks devanagari conjuncts Reply with quote

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
View user's profile Send private message
Bhikkhu Pesala
Super User
Super User


Joined: 23 Aug 2005
Posts: 2324
Location: Seven Kings, London, UK

PostPosted: Sun Sep 10, 2006 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3367
Location: Manchester UK

PostPosted: Mon Sep 11, 2006 12:33 am    Post subject: Reply with quote

On Microsoft according to this web page:

www.bhashaindia.com/Developers/IndianLang/TypingDnagari/dnpages.aspx

ZWJ is Shift+Control+1 and ZWNJ is Shift+Control+2

For bugs on Linux see:

www.indlinux.org/wiki/index.php/InscriptBugs


Last edited by Robert Tucker on Thu Sep 28, 2006 10:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
raakh-baabaa
Newbie
Newbie


Joined: 16 Sep 2006
Posts: 2
Location: Paris

PostPosted: Sat Sep 16, 2006 7:44 am    Post subject: Thank you Reply with quote

I thank you for this answer.

I think we are not enough to write in devangari...
_________________
raakh-baabaa
Back to top
View user's profile Send private message
Arjuna
General User
General User


Joined: 04 Apr 2004
Posts: 23

PostPosted: Thu Sep 28, 2006 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Arjuna
General User
General User


Joined: 04 Apr 2004
Posts: 23

PostPosted: Fri Sep 29, 2006 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Robert Tucker
Moderator
Moderator


Joined: 16 Aug 2004
Posts: 3367
Location: Manchester UK

PostPosted: Fri Sep 29, 2006 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Arjuna
General User
General User


Joined: 04 Apr 2004
Posts: 23

PostPosted: Fri Sep 29, 2006 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group