From stefanML at collocations.de Fri May 1 20:54:53 2026 From: stefanML at collocations.de (Stephanie Evert) Date: Fri, 1 May 2026 20:54:53 +0200 Subject: [CWB] Strange behaviour of cqpWeb? In-Reply-To: <485e844e-27f9-409e-981b-4297fbf9cfcb@upf.edu> References: <92cd7327-f56a-4227-84ef-6e74a7c45569@upf.edu> <93DDFEAF-EC9D-47F2-B1EF-2C00F8BC4B79@collocations.de> <485e844e-27f9-409e-981b-4297fbf9cfcb@upf.edu> Message-ID: <98B7B7EC-F093-44ED-9ED8-2D1F9B72724D@collocations.de> > On 30 Apr 2026, at 12:00, Josep M. Fontana via CWB wrote: > > Thanks Andrew and Stephanie for your prompt response! > > Yes, Stephanie. Please do send me the CSS you mention. I will appreciate it. It will be really helpful. You can download the CSS here: https://corpora.linguistik.uni-erlangen.de/cqpweb/css/Arial-small.css (and you'll notice that I like my fonts a lot smaller than the CQPweb default). As far as I can tell, it works without code modifications; I think the necessary wrappers were already included in the main CQPweb distribution at some point. There's also a version of this style without the proper kwic formatting, so you can compare the two to identify the relevant code: https://corpora.linguistik.uni-erlangen.de/cqpweb/css/Arial-small-nokwic.css Best, Stephanie -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.ranger at univ-avignon.fr Wed May 27 15:57:07 2026 From: graham.ranger at univ-avignon.fr (Graham Ranger -- UAPV) Date: Wed, 27 May 2026 15:57:07 +0200 Subject: [CWB] Displaying metatextual information Message-ID: Hello, I'm preparing a corpus with various types of metatextual information (free text, classification) in a separate metadata file. Now, if the metadata were included in the xml, I imagine I'd be able to display for example the "title" field for all the texts in my corpus, by looking for []; as a cql query. I'm wondering if there is some way to display this information for all texts when it is encoded in a metadata file, other than as individual file info? Many thanks in advance for any answers, as always (a second question is on its way...). Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.ranger at univ-avignon.fr Wed May 27 15:59:47 2026 From: graham.ranger at univ-avignon.fr (Graham Ranger -- UAPV) Date: Wed, 27 May 2026 15:59:47 +0200 Subject: [CWB] CSS Message-ID: <2e379e5c-8116-4743-9c48-e680ffb3c800@univ-avignon.fr> Hello again, The second question I mentioned concerns CSS files and themes for cqpweb. I'm pretty sure this has been asked before, so please point me in the right direction, if this is the case. Is there a simple "how to", explaining how to tweak the appearance of the site? (I.e. which css files need modifying.) And secondly, are there any kind souls who would like to share successful css files, possibly for further tweaking? Many thanks again for your help. Best, Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.hardie at lancaster.ac.uk Sat May 30 17:03:07 2026 From: a.hardie at lancaster.ac.uk (Hardie, Andrew) Date: Sat, 30 May 2026 15:03:07 +0000 Subject: [CWB] CSS In-Reply-To: <2e379e5c-8116-4743-9c48-e680ffb3c800@univ-avignon.fr> References: <2e379e5c-8116-4743-9c48-e680ffb3c800@univ-avignon.fr> Message-ID: It depends what tweaks you want to make. If you just want to change the colour scheme, it?s pretty easy; create a CSS file that has the following in it: :root { --colour-layout-bg : $COLOUR; --colour-layout-data2 : $COLOUR; --colour-layout-outline : $COLOUR; --colour-layout-fg : $COLOUR; --colour-layout-strong : $COLOUR; --colour-layout-contrast : $COLOUR; --colour-text-normal : $COLOUR; --colour-text-strong : $COLOUR; --colour-text-bright : $COLOUR; --colour-text-faint : $COLOUR; --colour-tooltip-frame : $COLOUR; --colour-tooltip-bg : $COLOUR; --colour-tooltip-text : $COLOUR; } In the example above, $COLOUR means you can use any of the normal CSS ways of specifying a colour: #3399cc, black, red, etc. Save your CSS file. Put it on the web ? anywhere will do; not necessarily in the CQPweb server. You then need to switch a given corpus over to the new colour scheme. Here?s how: go to the SQL client, and run this command as many times as necessary: update corpus_info set colour_scheme = "$path" where corpus = "$handle"; ? filling in $path and $handle as follows. $path ? either a full URL (w/ leading http or https) OR if you put it under CQPweb?s css folder, a path of this form: ?../css/xxxxxxxxx.css? $handle ? lowercase handle of the corpus To apply a bunch of custom colours to the three no-corpus UIs (admin, homepage, user acct page): create a CSS file with a :root {} as per above, but put the URL into the relevant config file values: ## Colour scheme to use for the main menu page (e.g. "~blue", "~red", etc.). # $colour_scheme_for_homepage = "~blue"; ## Colour scheme to use for the admin control panel page. # $colour_scheme_for_adminpage = "~red"; ## Colour scheme to use for the user-login homepage. # $colour_scheme_for_userpage = "~green"; Replace ?~blue/red/green? with the URL you want to use (or path to something under the ?css? folder). Changing more than just colours is more complex. If you want to add special styling for S-attribute or P-attribute data in the interface, you need to use visualisations to make the relevant spans/divs show up in the UI, and then create custom CSS to render them how you want them to appear. If you want to change stuff more fundamentally, e.g. table border widths, text size, etc. the only way to do it is to have a look at the main CSS file (which is css/0system.css) and create overrides to what you find there in your own CSS file, hooked into the system as per above (for specific corpora and/or the three other interfaces). Note that all of the above is for v3.3. v3.2 was different. You could change stuff more easily, IIRC. best Andrew. From: CWB On Behalf Of Graham Ranger -- UAPV via CWB Sent: 27 May 2026 15:00 To: Open source development of the Corpus WorkBench Cc: Graham Ranger -- UAPV Subject: [CWB] CSS Hello again, The second question I mentioned concerns CSS files and themes for cqpweb. I'm pretty sure this has been asked before, so please point me in the right direction, if this is the case. Is there a simple "how to", explaining how to tweak the appearance of the site? (I.e. which css files need modifying.) And secondly, are there any kind souls who would like to share successful css files, possibly for further tweaking? Many thanks again for your help. Best, Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.hardie at lancaster.ac.uk Sat May 30 17:06:53 2026 From: a.hardie at lancaster.ac.uk (Hardie, Andrew) Date: Sat, 30 May 2026 15:06:53 +0000 Subject: [CWB] Displaying metatextual information In-Reply-To: References: Message-ID: Do you mean, just display a table of all the titles in a separate UI? > Create/edit subcorpora > select by text metadata > choose your field, select ?matches exactly?, enter ?%? as your query, press ?Get list of texts?. Or do you mean, display it as a concordance solution? not possible because it?s not part of the corpus?s token data. best Andrew. From: CWB On Behalf Of Graham Ranger -- UAPV via CWB Sent: 27 May 2026 14:57 To: Open source development of the Corpus WorkBench Cc: Graham Ranger -- UAPV Subject: [CWB] Displaying metatextual information Hello, I'm preparing a corpus with various types of metatextual information (free text, classification) in a separate metadata file. Now, if the metadata were included in the xml, I imagine I'd be able to display for example the "title" field for all the texts in my corpus, by looking for []; as a cql query. I'm wondering if there is some way to display this information for all texts when it is encoded in a metadata file, other than as individual file info? Many thanks in advance for any answers, as always (a second question is on its way...). Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: