Anthony Kozar <ant...@sb...> wrote:
>> The general philosophy was that whenever you open a grammar file the
>> machine remembers the location of the folder in which that grammar file
>> was located, and it will try to load all related files (settings,
>> alphabet, orchestra etc.) from that same folder. It will also propose the
>> same folder, by default, for saving files of the same "project".
>
>Hmmm ... this made me realize that it will be a bit more work to allow
>different combinations of prefixes/suffixes for filenames. The file =
parsers
>will have to be updated to understand the new formats. And if we allow the
>user the freedom to use their own conventions, it will be desirable to have
>some sort of syntax for marking the filenames as "grammar", "alphabet", =
etc.
>
>Allowing full or relative pathnames as references to other files would also
>make sense on most platforms.
The current code makes a full use of alias resolution. I agree that
allowing both prefixes and suffixes (for the sake of compatibility) would
require a bit of programming, but this all needs to be done in two single
procedures - one for opening files and the other one fro creating new
files. I had created a separate list of prefixes "-gr", "-ho" etc. and it
can be completed with a list of suffixes ".bpgr", ".bpho" etc. that will
be handled in the same way. I am quite familiar with this aspect and I
can modify the code appropriately when required. First carbonize the
current version using "prefixes" and I will patch the change for dealing
with suffixes.
>I think the current stategy will still work, but a better way (on OS X or =
OS
>9) might be to use the Alias Manager since under many circumstances it can
>track files that have been moved or renamed.
It is already using aliases. The idea was that a user might want to
store all grammars in a specific directory, alphabets in another
directory, etc. Then, to make a project, create a new directory and put
there the aliases of the grammar, alphabet etc.
Bernard Bel <be...@lp...>
Laboratoire Parole et Langage
http://www.lpl.univ-aix.fr
UMR 6057 CNRS - Universit=E9 de Provence / salle A464
29 av. R. Schuman
13621 Aix-en-Provence cedex 1 (France)
Sec'y, Special Interest Group on Speech Prosody (SProSIG)
http://www.lpl.univ-aix.fr/projects/sprosig/
Centre de Ressources pour la Description de l'Oral (CRDO)
http://crdo.fr
Bol Processor project
http://sourceforge.net/projects/bolprocessor/
Blog perso :
http://bernard-bel.over-blog.com/
|