Logic how do I generate bconf-files? We want to implement this in translate5

Skip to first unread message


Jul 20, 2021, 12:05:38 PM7/20/21
to okapi-users
Dear all,

in translate5 we are using Okapi Longhorn for file format conversion.

We currently start to develop the customization of file filters through
the GUI of translate5 (so far you would have to use Rainbow, if you want
to create a custom bconf for a project import with translate5).

We had a look at the bconf and it is clear, that it contains all the
files that are contained in the folder that Rainbow created, if you
"install" a bconf.

So pipeline, srx, custom fprm-files and the extensions-mapping.txt.

So far so clear.

What is not clear: At the beginning, the end and in between the
different files that are "packaged" into a bconf there are some binary

Could someone explain the logic behind those? And/or point us to the
code in the okapi github, that generates these bytes? What information
do they encode except that they seem to be file boundaries?

Thank you very much in advance!!!



Chase Tingley

Jul 20, 2021, 7:19:09 PM7/20/21
to Marc, okapi-users
Bconfs are a pretty unpleasant format to deal with -- one of my old plans that's sort of fallen by the wayside was to rewrite everything to just use a standard JAR format or other zip-based archive.  The code that manipulates them is buried fairly deep in the rainbow codebase.

A few years ago, I wrote a couple of ant tasks related to Okapi, the most useful of which (for me) is the ability to generate bconfs as an ant task based on an XML descriptor.  This code hasn't been updated in a while, but it still works (I still use it.)  Feel free to use this code as a starting point:  https://github.com/tingley/okapi-ant/blob/master/src/main/java/com/spartansoftwareinc/okapi/ant/AssembleBatchConfigTask.java

You received this message because you are subscribed to the Google Groups "okapi-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to okapi-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/okapi-users/bbba1fcc-9ef4-673e-b2d8-2f1b23fa2be4%40marcmittag.de.
Reply all
Reply to author
0 new messages