[CWB] %d does not work??

Stefan Evert stefanML at collocations.de
Sat May 25 19:50:17 CEST 2013


On 25 May 2013, at 08:57, Gertrud Faaß <faassg at uni-hildesheim.de> wrote:

> HGC> /testmac3[führen];
> CQP Error:
> Macro syntax error.
> CQP Error:
> CQP Syntax Error: syntax error, unexpected UNDEFINED_MACRO
> /testmac3[fü <--
> Synchronizing to end of line ... 

Macro arguments are strings and have to be enclosed in (single or double) quotes.  

	/testmac3["führen"];

should work (i.e. not throw an error message). As a special case, numbers and simple identifiers are allowed without quotes, but they must be ASCII only -- ü etc. are not allowed.

This will not solve the problem that %c and %d don't work properly with non-Latin1 data in CWB 3.0 of course, but an upgrade to 3.4 should bring some relief.

Best,
Stefan



More information about the CWB mailing list