George Vasiliou wrote:
(This is actually a repost from [email protected] list where I initially posted the message but Tom Schindl suggested that [email protected] is the proper list to send it. So, I am sorry for bothering again those who have subscribed in both lists)

I am exploring the possibility of using OpenOffice in my project. I will describe in a few words what I want to do.

I need a text editor to write a symbolic language (not a known spoken one) that has many symbols which are combined to produce composite characters, just like Arabic or Thai characters do. That is I need a keyboard interceptor (to know which key has been tapped and intercept it to a symbol) and a layouting (glyph positioning) mechanism. I have already created a font containing the symbol glyphs and a prototype application in java using custom javax.swing.text.View classes. The problem is that I need a full application, just like OpenOffice Writer, in order to produce real documents, with real and my symbolic text combined.

Is there any way I can plug-in the logic of my Keyboard interceptor and (especially) my glyph positioning mechanism in OpenOffice? I have started reading the Developer's guide but it is vast(!) and I think it does not give me any clue if what I want to do can be done in OpenOffice. In other words, is if there is a way to alter the way OpenOffice lays out the glyphs in a row of text by code (I have it ready in Java, I will translate it to the OpenOffice way)? I have seen that there exists the interface com::sun::star::rendering::XTextLayout. How can I get an instance of it from a Writer component? And furthermore, how can I plug my own in the Writer? Can anyone answer this question or point me any web link that can help me figure it out myself?

Code samples would be much appreciated because as a pure Java developer I have difficulties in starting to understand the OpenOffice programming itself!


Many thanks and regards
George Vasiliou
Athens, Greece

Hi,
sorry, but the Writer doesn't provide a com::sun::star::rendering::XTextLayout interface nor does it allow for plugging a different TextEngine.

But I'd suggest different approach.
As you already have a font, why don't you just install this font on your system and switch the font settings whenever you need your symbols?

Regards,

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to