<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Andrew,<br>
    <br>
    sorry for not replying earlier, but I had a terrible cold which
    prevented me from working in a reasonable manner. <br>
    Am 21.07.2010 18:56, schrieb Hardie, Andrew:
    <blockquote
cite="mid:2831FE7879A9934289304F0B9DE1DD52016B4750@exchange-be4.lancs.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta content="MSHTML 6.00.6000.17063" name="GENERATOR">
      <div><span class="480235316-21072010"><font size="2"
            color="#800080" face="Verdana">Hannah,</font></span></div>
      <div><span class="480235316-21072010"></span>&nbsp;</div>
      <div><span class="480235316-21072010"><font size="2"
            color="#800080" face="Verdana">Can you actually literally
            copy-paste into&nbsp;an email the commands you typed please? Plus
            the relevant lines&nbsp;of your registry file.</font></span></div>
    </blockquote>
    I tried the whole thing out again, and thought I had tried all
    before, but I must have omitted the following:<br>
    <br>
    registry file:<br>
    ID dickens<br>
    HOME /Dateien/Uni/Corpora/DemoCorpus/data<br>
    INFO /Dateien/Uni/Corpora/DemoCorpus/data/.info<br>
    <br>
    This works as a non-local path in the windows shell, but not in the
    cygwin. Sorry about that, I thought I had tried this variant before
    as well.<br>
    <br>
    commands, e.g.<br>
    cqp -r Corpora/registry<br>
    which wouldn't work (for cygwin), while (when inside the directory
    Corpora)<br>
    cqp -r registry<br>
    worked<br>
    <br>
    so I guess I must have taken something like (and others, including
    the cygwin-paths):<br>
    registry file:<br>
    ID dickens<br>
    HOME D:/Dateien/Uni/Corpora/DemoCorpus/data<br>
    INFO D:/Dateien/Uni/Corpora/DemoCorpus/data/.info<br>
    before (which was what cd showed me as path), which definetly does
    not work, neither in the windows nor the cygwin shell. <br>
    <br>
    For cygwin &nbsp; I tried also to use:<br>
    registry file:<br>
    ID dickens<br>
    HOME /home/HK/Dateien/Uni/Corpora/DemoCorpus/data<br>
    INFO /home/HK/Dateien/Uni/Corpora/DemoCorpus/data/.info<br>
    and<br>
    ID dickens<br>
    HOME /cygdrive/d/Dateien/Uni/Corpora/DemoCorpus/data<br>
    INFO /cygdrive/d/Dateien/Uni/Corpora/DemoCorpus/data/.info<br>
    which both didn't work.<br>
    <br>
    So I guess the problem was with cygwin.<br>
    <br>
    <blockquote
cite="mid:2831FE7879A9934289304F0B9DE1DD52016B4750@exchange-be4.lancs.local"
      type="cite">
      <div><span class="480235316-21072010"></span>&nbsp;</div>
      <div><span class="480235316-21072010"><font size="2"
            color="#800080" face="Verdana">Also, can you expand on "<font
              color="#000000">I do not have command-line editing in the
              windows shell either</font>", i.e. specify what you
            expected to be able to do that you couldn't.</font></span></div>
    </blockquote>
    This problem still exists: <br>
    If I type the beginning of a command or corpusname and hit TAB&nbsp; the
    command or corpusname should be expanded - to the end, if only one
    possibility exists and up to the common characters, and<br>
    - showing me the possible expansions, if more than one possibility
    exists.<br>
    which it doesn't. (and I thought, this is what the -e option does)<br>
    <br>
    Sorry again about the "directory"-problem.<br>
    Best<br>
    Hannah<br>
    <blockquote
cite="mid:2831FE7879A9934289304F0B9DE1DD52016B4750@exchange-be4.lancs.local"
      type="cite">
      <div><span class="480235316-21072010"></span>&nbsp;</div>
      <div><span class="480235316-21072010"><font size="2"
            color="#800080" face="Verdana">Thanks</font></span></div>
      <div><span class="480235316-21072010"></span>&nbsp;</div>
      <div><span class="480235316-21072010"><font size="2"
            color="#800080" face="Verdana">Andrew.</font></span></div>
      <br>
      <blockquote dir="ltr" style="margin-right: 0px;">
        <div class="OutlookMessageHeader" dir="ltr" align="left"
          lang="en-us">
          <hr tabindex="-1"> <font size="2" face="Tahoma"><b>From:</b>
            <a class="moz-txt-link-abbreviated" href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a>
            [<a class="moz-txt-link-freetext" href="mailto:cwb-bounces@sslmit.unibo.it">mailto:cwb-bounces@sslmit.unibo.it</a>] <b>On Behalf Of </b>Hannah
            Kermes<br>
            <b>Sent:</b> 21 July 2010 17:50<br>
            <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a><br>
            <b>Subject:</b> [CWB] CWB Windows 7 (64bit) used with cygwin<br>
          </font><br>
        </div>
        <pre>Hi Andrew,

with regard to the PATH problem I tried different things.
I wanted to be able to run cqp no matter in which directory I was.
So I tried:
absolut path of the corpus directory in the respective registry file of the corpus. 
The file was in a non-standard registry. 
Then I started cqp with the -r option and the path to the respective registry directory.
-&gt; the corpus was not found
I put the registry file in the standard registry.
Started cqp 
-&gt; corpus was not found
The only way to make cqp find the corpus was
to have a local path in the registry file
start cqp with the -r option and the path to the registry directory

with regard to the -e option:
I do not have command-line editing in the windows shell either.

But beside of that it works quite well: I can even use macros 
and the cygwin command with pipes for the export.
Funny enough the macro-files do not have to be stored locally and can be read in automatically 
via the .cqprc with absolute paths.

Best Hannah


Hi Hannah, 

First, I'm pleasantly surprised that the programs run at all under Cygwin - the Windows binaries are compiled with all kinds of assumptions that are not necessarily true under Cygwin. The "right way" to use CWB in Cygwin is to compile it within Cygwin and the "right way" to use the Windows binaries is from the Windows shell.

That said, the fact you had problems in the Windows shell as well suggests this is an actual bug rather than an incompatibility with Cygwin. Could you give some more details about where you entered the absolute paths (with the -r option? or as commands into CQP? if so with which commands?) If I know exactly what you entered and exactly what happened / didn't happen I may be able to track the bug down. 

You're correct that cwb-make isn't present in the Windows install. This is because it is part of the Perl support module, not part of the actual CWB package. Adapting the latter to be Windows-compatible is a job we have not yet addressed. 

Finally: The -e option is removed purposefully from the Windows version. (Although I may not yet have got round to removing it from the -h help dump!) On *nix it activates the editline library, but on Windows cmd.exe gives you input line editing anyway, so it's not needed.

best

Andrew.

-----Original Message-----
From: <a moz-do-not-send="true" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">cwb-bounces at sslmit.unibo.it</a> [mailto:<a moz-do-not-send="true" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">cwb-bounces at sslmit.unibo.it</a>] On Behalf Of Hannah Kermes
Sent: 21 July 2010 13:28
To: <a moz-do-not-send="true" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">cwb at sslmit.unibo.it</a>
Subject: [CWB] CWB Windows 7 (64bit) used with cygwin


  Hello,

I just recently installed the windows version of CWB on my laptop.
Untill now I worked only with smaller corpora (the largest was the
EUROPARL).
So far it works fine as long as I use the cqp with local paths. The
registry and the corpora directories are in the same directory and I
start cqp from this directory.
If I want to use absolute paths, the corpus is not found by CQP,
even if I use the normal registry directory of CQP.
When exporting results from cqp, it again works fine to store the
results in the local directory, but I cannot redirect it to another
directory.

Another problem I encountered, which is a bit more annoying, is that the
-e option does not seem to work.

Despite my dislike for the native windows shell, I tried it also, but
encountered the same problems.

I encoded some small sample corpora, which worked fine, but I do not
seem to have the more comfortable cwb-make but only cwb-makeall ...
Did I forget to install something, or is that not available for the
Windows-Version?.

Thanks a lot in advance
Hannah






-- 
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universit&auml;t des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbr&uuml;cken
phone: +49-(0)681-302-70076
</pre>
        <pre class="moz-signature" cols="72">-- 
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universit&auml;t des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbr&uuml;cken
phone: +49-(0)681-302-70076
</pre>
      </blockquote>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
CWB mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a>
<a class="moz-txt-link-freetext" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universit&auml;t des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbr&uuml;cken
phone: +49-(0)681-302-70076
</pre>
  </body>
</html>