time-link / timelink-kleio

Provides translation of files in Kleio notation into XML and other formats. Part of Timelink.
1 stars 0 forks source link

Default stru from KLEIO_HOME/.../structures instead of KLEIO_HOME/system/conf/kleio/stru #7

Closed joaquimrcarvalho closed 10 months ago

joaquimrcarvalho commented 1 year ago

Rationale

It is important that diferent source collections can use different stru definitions.

One of the current problems is that for every new source format the shared gacto2.str has to be changed.

By allowing the stru file to be stored close to the sources directory it is possible to have different stru in usage.

implementation

The standard source repository has a sources directory at the same level of a structures directory.

So for a given source file to be translated with path sources/SUBPATH/file.cli the default stru would be, in order:

This allows for a source repository to have formats specific to a single file, a sub directory of files or to all the sources in the repository:

joaquimrcarvalho commented 1 year ago

Note that a given kleio server can have a kleio-home mapped to a parent directory of server sources directory, as it happens in mhk-home layouts.

In those cases the above patterns would apply to KLEIO_HOME/sources/REPOSITORY/sources/SUBPATH/file.cli

joaquimrcarvalho commented 10 months ago

Fixed in e4baeb001a531542363f56c033ee960ee65f5bfd