[CWB] query form

Hardie, Andrew a.hardie at lancaster.ac.uk
Thu Nov 25 09:00:56 CET 2021


A delayed follow-on note to this - you can also do this without any code hacking by adjusting the user settings for the account you're using.

Go to the "usr" subfolder. Then click "settings".

The 2nd setting is 

  "Work in CQP syntax wherever possible

  select CQP syntax as query mode by default
  turn on CQP syntax display in query history and in title bar and query history"

The option is "no" by default. Change to "yes" and save, and that should have the desired effect.

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Jörg Knappen
Sent: 12 November 2021 12:48
To: Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it>
Subject: Re: [CWB] query form
Importance: High


Am 2021-11-12 12:21, schrieb Guerreau:
> Hi,
>
> I use cqpweb only as root and as loopback (xubuntu 20.04).
> Is it possible to have "CQP syntax" as default value in the query form 
> ?

Yes, it is. You have to modify the source code for this, it is in
query-forms.php:

$qmode = 'cqp';
//$qmode = ($Corpus->uses_case_sensitivity ? 'sq_case' : 'sq_nocase');

(original line commented out).

--Jörg Knappen

>
> many thanks in advance
>
> best
>
> Alain Guerreau



More information about the CWB mailing list