<!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>
Am 26.07.2010 12:17, schrieb Hardie, Andrew:
<blockquote
cite="mid:2831FE7879A9934289304F0B9DE1DD5201733804@exchange-be4.lancs.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas","serif";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#002060;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
-->
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">Hi Hannah,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">It’s almost certainly because you are using
forward-slash
as the directory separator. The Windows build expects
backslash as is usual in
the Windows world. Likewise it expects a drive-letter root
not a bare / root
for absolute paths. (If you use cwb-encode to create your
registry file, you’ll
see it creates paths like this; paths may also need to be
double quoted in the
reg file).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
</div>
</blockquote>
That was what I tried first, but with backslashes with or without
drive-letter root it wouldn't work (I am talking about the windows
shell now). The only version that works is with forward-slashes and
no drive-letter root (i.e., the version I sent to you). That was
what suprised me in the beginning, because the windows shell
displays the directory with backslashes. <br>
<br>
Best <br>
Hannah<br>
<blockquote
cite="mid:2831FE7879A9934289304F0B9DE1DD5201733804@exchange-be4.lancs.local"
type="cite">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">The Windows version can in some cases but not all
cope with the
forward slash as a separator, as you found, but I think the
problems on cygwin
may be due to the conflicting expectations of cygwin and the
win32 build environment
in this regard. But I’m not especially troubled by this; as
I said
before, the win32 binaries are not expected to work in
cygwin, so when they don’t,
it’s not a bug! If you build CWB from source within cygwin,
then all the
paths you gave below will work exactly as per your
expectations.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">As for -e mode – I see the problem now. The
command-line
editing you get from cmd.exe includes the use of backspace,
left-right cursors,
and a command history on the up-down cursors. Under *nix,
you need the –e
option to get these – and so that’s what I was thinking
about,
rather than the TAB-complete-corpus. Next time I get a
chance, I’ll take
a look at the code to see if there is a way to enable this
in the Win32 build.
However, I suspect this may be problematic.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">best<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);">Andrew.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Verdana","sans-serif"; color: rgb(0,
32, 96);"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">
<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> 26 July 2010 11:00<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> Re: [CWB] CWB Windows 7 (64bit) used
with cygwin<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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: <o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">Hannah,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">Can you actually literally copy-paste
into an email the
commands you typed please? Plus the relevant lines of your
registry file.</span><o:p></o:p></p>
</div>
<p class="MsoNormal">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 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>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">Also, can you expand on "</span><span
style="font-size: 10pt; font-family:
"Verdana","sans-serif";">I do not have
command-line editing in the
windows shell either</span><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">", i.e. specify what you expected to be
able to do that you
couldn't.</span><o:p></o:p></p>
</div>
<p class="MsoNormal">This problem still exists: <br>
If I type the beginning of a command or corpusname and hit
TAB 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>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">Thanks</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size: 10pt;
font-family: "Verdana","sans-serif";
color: purple;">Andrew.</span><o:p></o:p></p>
</div>
<blockquote style="margin-top: 5pt; margin-right: 0cm;
margin-bottom: 5pt;">
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" style="text-align: center;"
align="center"><span lang="EN-US">
<hr size="2" align="center" width="100%">
</span></div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif";" lang="EN-US">
<a moz-do-not-send="true"
href="mailto:cwb-bounces@sslmit.unibo.it">cwb-bounces@sslmit.unibo.it</a>
[<a moz-do-not-send="true"
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 moz-do-not-send="true"
href="mailto:cwb@sslmit.unibo.it">cwb@sslmit.unibo.it</a><br>
<b>Subject:</b> [CWB] CWB Windows 7 (64bit) used with
cygwin</span><span lang="EN-US"><o:p></o:p></span></p>
<pre>Hi Andrew,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>with regard to the PATH problem I tried different things.<o:p></o:p></pre>
<pre>I wanted to be able to run cqp no matter in which directory I was.<o:p></o:p></pre>
<pre>So I tried:<o:p></o:p></pre>
<pre>absolut path of the corpus directory in the respective registry file of the corpus. <o:p></o:p></pre>
<pre>The file was in a non-standard registry. <o:p></o:p></pre>
<pre>Then I started cqp with the -r option and the path to the respective registry directory.<o:p></o:p></pre>
<pre>-> the corpus was not found<o:p></o:p></pre>
<pre>I put the registry file in the standard registry.<o:p></o:p></pre>
<pre>Started cqp <o:p></o:p></pre>
<pre>-> corpus was not found<o:p></o:p></pre>
<pre>The only way to make cqp find the corpus was<o:p></o:p></pre>
<pre>to have a local path in the registry file<o:p></o:p></pre>
<pre>start cqp with the -r option and the path to the registry directory<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>with regard to the -e option:<o:p></o:p></pre>
<pre>I do not have command-line editing in the windows shell either.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>But beside of that it works quite well: I can even use macros <o:p></o:p></pre>
<pre>and the cygwin command with pipes for the export.<o:p></o:p></pre>
<pre>Funny enough the macro-files do not have to be stored locally and can be read in automatically <o:p></o:p></pre>
<pre>via the .cqprc with absolute paths.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Best Hannah<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Hi Hannah, <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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. <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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. <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>best<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Andrew.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-----Original Message-----<o:p></o:p></pre>
<pre>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<o:p></o:p></pre>
<pre>Sent: 21 July 2010 13:28<o:p></o:p></pre>
<pre>To: <a moz-do-not-send="true" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">cwb at sslmit.unibo.it</a><o:p></o:p></pre>
<pre>Subject: [CWB] CWB Windows 7 (64bit) used with cygwin<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre> Hello,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I just recently installed the windows version of CWB on my laptop.<o:p></o:p></pre>
<pre>Untill now I worked only with smaller corpora (the largest was the<o:p></o:p></pre>
<pre>EUROPARL).<o:p></o:p></pre>
<pre>So far it works fine as long as I use the cqp with local paths. The<o:p></o:p></pre>
<pre>registry and the corpora directories are in the same directory and I<o:p></o:p></pre>
<pre>start cqp from this directory.<o:p></o:p></pre>
<pre>If I want to use absolute paths, the corpus is not found by CQP,<o:p></o:p></pre>
<pre>even if I use the normal registry directory of CQP.<o:p></o:p></pre>
<pre>When exporting results from cqp, it again works fine to store the<o:p></o:p></pre>
<pre>results in the local directory, but I cannot redirect it to another<o:p></o:p></pre>
<pre>directory.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Another problem I encountered, which is a bit more annoying, is that the<o:p></o:p></pre>
<pre>-e option does not seem to work.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Despite my dislike for the native windows shell, I tried it also, but<o:p></o:p></pre>
<pre>encountered the same problems.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>I encoded some small sample corpora, which worked fine, but I do not<o:p></o:p></pre>
<pre>seem to have the more comfortable cwb-make but only cwb-makeall ...<o:p></o:p></pre>
<pre>Did I forget to install something, or is that not available for the<o:p></o:p></pre>
<pre>Windows-Version?.<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks a lot in advance<o:p></o:p></pre>
<pre>Hannah<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Dr. Hannah Kermes<o:p></o:p></pre>
<pre>Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)<o:p></o:p></pre>
<pre>Universität des Saarlandes<o:p></o:p></pre>
<pre>Building A2.2, Room 1.07<o:p></o:p></pre>
<pre>P.O. Box 15 11 50, D-66041 Saarbrücken<o:p></o:p></pre>
<pre>phone: +49-(0)681-302-70076<o:p></o:p></pre>
<pre>-- <o:p></o:p></pre>
<pre>Dr. Hannah Kermes<o:p></o:p></pre>
<pre>Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)<o:p></o:p></pre>
<pre>Universität des Saarlandes<o:p></o:p></pre>
<pre>Building A2.2, Room 1.07<o:p></o:p></pre>
<pre>P.O. Box 15 11 50, D-66041 Saarbrücken<o:p></o:p></pre>
<pre>phone: +49-(0)681-302-70076<o:p></o:p></pre>
</blockquote>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>CWB mailing list<o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="mailto:CWB@sslmit.unibo.it">CWB@sslmit.unibo.it</a><o:p></o:p></pre>
<pre><a moz-do-not-send="true" href="http://devel.sslmit.unibo.it/mailman/listinfo/cwb">http://devel.sslmit.unibo.it/mailman/listinfo/cwb</a><o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Dr. Hannah Kermes<o:p></o:p></pre>
<pre>Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)<o:p></o:p></pre>
<pre>Universität des Saarlandes<o:p></o:p></pre>
<pre>Building A2.2, Room 1.07<o:p></o:p></pre>
<pre>P.O. Box 15 11 50, D-66041 Saarbrücken<o:p></o:p></pre>
<pre>phone: +49-(0)681-302-70076<o:p></o:p></pre>
</div>
<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ät des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbrücken
phone: +49-(0)681-302-70076
</pre>
</body>
</html>