# Pointers for Designing UNO Ruby Bridge

**URL:** <https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469>\
**Category:** Ruby\
**Created:** [May 30, 2007, 9:47am UTC](https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469 "2007-05-30T09:47:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sneha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sneha](https://www.ruby-forum.com/u/sneha)\
**Post date:** [May 30, 2007, 9:47am UTC](https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469/1 "2007-05-30T09:47:37Z")

</div>

Hi,  
I am interested in designing a bridge between Ruby and UNO. I have  
looked over the following links for documentation:  
[http://udk.openoffice.org/](http://udk.openoffice.org/)  
[http://www.ruby-lang.org/en/documentation/](http://www.ruby-lang.org/en/documentation/)

I am not able to figure out the steps required to start implementing  
the bridge.  
It would be great if someone can give some pointers for the following  
things:  
a. Architechture required for writing the Bridge.  
b. The approach to be taken . Eg deciding whether to write a  
Remote UNO bridge OR  
Binary UNO bridge OR  
Language specific bridge.

c. Some steps to be followed (procedure) if I adopt one of the above  
mentioned approach.

Thanks,  
Sneha

---

<div class="post-metadata">

**Author:** ![sneha](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@sneha](https://www.ruby-forum.com/u/sneha)\
**Post date:** [May 30, 2007, 10:35am UTC](https://www.ruby-forum.com/t/pointers-for-designing-uno-ruby-bridge/105469/2 "2007-05-30T10:35:46Z")

</div>

On Wed, May 30, 2007 at 04:45:08PM +0900, removed\_email\_address@domain.invalid wrote:

> b. The approach to be taken . Eg deciding whether to write a  
> Remote UNO bridge OR  
> Binary UNO bridge OR  
> Language specific bridge.
> 
> c. Some steps to be followed (procedure) if I adopt one of the above  
> mentioned approach.

[http://www.catb.org/~esr/faqs/smart-questions.html#id272290](http://www.catb.org/~esr/faqs/smart-questions.html#id272290)

I suggest you:

1. Learn Ruby. Google for plenty of resources.
2. Learn UNO, and whatever APIs it provides for extension (e.g. C  
function  
calls, SOAP interface or whatever). If necessary, learn C, SOAP etc.
3. Write some code to get Ruby to talk to UNO.
4. When you get stuck on a specific problem, ask for help with that  
specific problem.

Also, search for interfaces in other scripting languages (e.g. existing  
bindings from Perl, Python or TCL to UNO). That may give you clues on  
how to  
go about it. If these don’t exist, then you probably need to ask on an  
UNO  
mailing list, not a Ruby one, about how to go about this. Looking at the  
link you give it seems that Python bindings already exist, so one  
approach  
would be to port those.

Finally, make sure you have some specific goals in mind as to what you  
want  
to be able to do from the Ruby side.

Good luck.

Brian.
