I'm running OmegaT-6.0.2_0_dda2c9e, and I've got a project with project specific segmentation rules. If I open OmegaT the first time, there's an CORE_SRX_ERROR_LOADING_SEGMENTATION_CONFIGUnexpected error. But the project specific segmentation rules work.
If I then close OmegaT, and restart it, it restarts without those project specific segmentation rules.
Attached also the logs of a third subsequent restart.
This of course makes 6.0.2 unusuable for projects with project specific segmentation rules... So hopefully this is an easy fix? ;)
Attached also the "correct" segmentation.conf, which I luckily managed to retreive from the Google Drive versioning. (I made these segmentation rules when I was brand new to regex, so I assume they're not optimal, but I don't think that would be the issue?)
Any takers? :)
OmegaT 6.0.2 and 6.1.0 drop supporting
segmentation.confbecause of highest dangerous security issue.OmegaT has a converter that is com from DGT OmegaT project, and it may be incomplete.
You can convert your custom rule into SRX using the
migratorhttps://github.com/omegat-org/segmentation-migrator
It has a security hole because it uses legacy logic to read a legacy
segmentation.conf, but it should read well and writesegmentation.srxthat should recognized by OmegaT.I'd love to, but I'm having trouble finding the mentioned
omegat-segmentation-migrator-fat.jaroromegat-segmentation-migrator.zipfiles...@t_cordonnier Please check the
XSLTyou contributed to convert into SRX.The tool is not released yet. I have convert your
segmentation.confwith the tool. If it works, I will proceed the project.Alas... It doesn't throw any errors or exceptions, but it doesn't work either...
For fun I randomly added gibberish scattered around
segmentation.srx(inside tags, before the first tag, in the final tag), and there are no complaints. So it looks like nothing is actually done withsegmentation.srx. It isn't read.Could that be?
(I'm using
OmegaT-6.0.2_0_768deab.)Last edit: Erik De Boeck 2026-01-28
I came up with a quick and dirty fix: I wrote a
.ps1file that copies thesegmentation.conffile into theomegat\directory every time before starting OmegaT:But that doesn't solve the issue, obviously.
Last edit: Erik De Boeck 23 hours ago