On Apr 23, 8:43 pm, Ed Wong <[email protected]> wrote:
> Hi All,

Hi, not an ocropus developer so this is going to be a somewhat generic
answer.

>
> I am interested in contributing code to bind Ocropus to the Ruby
> language - just like the python binding code.  However I have some
> questions:
>
> 1.  Can it be done?

Sure, ocropus is written in C++ and there are several C++ projects
with ruby bindings
these days (KDE probably the most obvious).

> If so...
> a. How would it be done conceptually?

You have choices:

1) Do all the bindings "by hand"
2) Use a generic C++ <-> ruby bindings generator
3) Write an ocropus-specific "framework" and a tool to autogenerate
the less important/more obvious stuff.

The 3rd approach is what KDE uses for its plugins and what gamera (an
ocr "framework") uses for
its python bindings. It takes a bit more thought this way but
typically the result comes out more elegant
(and sometimes easier to maintain too).

> b. Which files in the Ocropus project should I look at?

Probably the .h files (those that expose public API)

Btw, you can also look at how the python bindings were done.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ocropus" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ocropus?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to