Open bansp opened 3 years ago
Sebastian mentions elsewhere that symlinking the ODDs and schemas in each dictionary directory may still cause problems on some systems (if I understand it correctly).
I asked in another issue about including the schemas with the tooling. To what respect is this not optimal? A dictionary should be buildable with a certain version of the tooling. Eng-deu in 0.1 required the possibly oldest version of freedict-tools, no t versioned back then. eng-deu 1.8.1 requires fd-tools 0.5.0. It looks natural to me to include the schemas in each version of the tools.
One way to handle that would be for the source distribution packages to always contain two directories: the directory of the dictionary and the shared/ directory.
That is an imperfect solution, IMHO.
The above is only relevant if the current setup is suboptimal, of course.
Can you please elaborate on this? I suppose most of our contributors use the suboptimal setting :).
Overall admission: I shouldn't have given this ticket the label "enhancement". I was looking for something like "discussion" and went for the more or less closest thing. Gonna remove that label.
And now, regarding each of your three comments:
This is a potential enhancement for handling schemas and ODD, if the current situation is seen as suboptimal. Sebastian mentions elsewhere that symlinking the ODDs and schemas in each dictionary directory may still cause problems on some systems (if I understand it correctly).
One way to handle that would be for the source distribution packages to always contain two directories: the directory of the dictionary and the shared/ directory. So, for example, the ara-eng dictionary would be packed as follows:
At the same time, the top of each dictionary would have to contain the following lines:
The
<?xml-model>
processing instruction is by now so standard that it should suffice to state the association between the dictionary document and its schema. And the INSTALL would have to contain the command for validating with xmllint, which I think is still unable to read the xml-model instruction (though I may be wrong):xmllint --noout --relaxng ../shared/freedict-P5.rng lg1-lg2.tei
(The archive listing contains the minimal number of necessary files; some dictionaries would also need the Freedict-ontology; maybe Freedict-P5.dtd would have to be included under shared/ as well, in case some users for some unknown reason needed to use that.)
The above is only relevant if the current setup is suboptimal, of course.