From graham.ranger at univ-avignon.fr Tue Jun 2 09:41:58 2026 From: graham.ranger at univ-avignon.fr (Graham Ranger -- UAPV) Date: Tue, 2 Jun 2026 09:41:58 +0200 Subject: [CWB] CSS In-Reply-To: References: <2e379e5c-8116-4743-9c48-e680ffb3c800@univ-avignon.fr> Message-ID: Many thanks for this, Andrew. Best regards, Graham. Le 30/05/2026 ? 17:03, Hardie, Andrew via CWB a ?crit?: > > ? Ce courrier est envoy? par un correspondant externe > > 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. > > > _______________________________________________ > CWB mailing list > CWB at sslmit.unibo.it > http://liste.sslmit.unibo.it/mailman/listinfo/cwb -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.ranger at univ-avignon.fr Tue Jun 2 09:42:53 2026 From: graham.ranger at univ-avignon.fr (Graham Ranger -- UAPV) Date: Tue, 2 Jun 2026 09:42:53 +0200 Subject: [CWB] Displaying metatextual information In-Reply-To: References: Message-ID: <81f3e1eb-e1f9-44a6-89f5-41d5c187ecc0@univ-avignon.fr> And many thanks for this too, both answers are very helpful. The first method will be sufficient to work for me. Best, Graham. Le 30/05/2026 ? 17:06, Hardie, Andrew via CWB a ?crit?: > > ? Ce courrier est envoy? par un correspondant externe > > 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. > > > _______________________________________________ > CWB mailing list > CWB at sslmit.unibo.it > http://liste.sslmit.unibo.it/mailman/listinfo/cwb -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham.ranger at univ-avignon.fr Mon Jun 29 19:11:01 2026 From: graham.ranger at univ-avignon.fr (Graham Ranger -- UAPV) Date: Mon, 29 Jun 2026 19:11:01 +0200 Subject: [CWB] xml searches... Message-ID: <8c93469d-12cd-4358-a77e-75855d0fa428@univ-avignon.fr> Hello everybody, I have a corpus with xml tagging, some of it pretty standard, other stuff homemade. I can made a search like this []+ to recover all elements tagged . I can also make searches targeting words or parts of speech inside a chapter division like this n:[pos="AJ0"] :: n.div2_n="2"; Is there any way I can search for xml tags inside other xml tags? Something like n: []+ :: n.div2_n="1"; (which doesn't work, as it is gross improvisation!). Many thanks in advance for any help! Best, Graham. -------------- next part -------------- An HTML attachment was scrubbed... URL: