<div dir="ltr"><div>Dear Andrew,</div><div>in corpus workbench documentation I did not find a clear step installation of CWB and CQPweb, the second there are a lot of versions produced, I would like to have the latest version for CWB and CQPweb, could you please guide me on the above questions as soon as possible?</div><div><br></div><div>BR</div><div>raisi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 29, 2022 at 12:00 PM &lt;<a href="mailto:cwb-request@sslmit.unibo.it">cwb-request@sslmit.unibo.it</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send CWB mailing list submissions to<br>
        <a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:cwb-request@sslmit.unibo.it" target="_blank">cwb-request@sslmit.unibo.it</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:cwb-owner@sslmit.unibo.it" target="_blank">cwb-owner@sslmit.unibo.it</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of CWB digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Re: Skins for cqpweb (Hardie, Andrew)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 29 Apr 2022 02:43:41 +0000<br>
From: &quot;Hardie, Andrew&quot; &lt;<a href="mailto:a.hardie@lancaster.ac.uk" target="_blank">a.hardie@lancaster.ac.uk</a>&gt;<br>
To: Open source development of the Corpus WorkBench<br>
        &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
Subject: Re: [CWB] Skins for cqpweb<br>
Message-ID:<br>
        &lt;<a href="mailto:LO4P265MB348576D6E3277E3E2549208DCBFC9@LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM" target="_blank">LO4P265MB348576D6E3277E3E2549208DCBFC9@LO4P265MB3485.GBRP265.PROD.OUTLOOK.COM</a>&gt;<br>
<br>
Content-Type: text/plain; charset=&quot;iso-8859-2&quot;<br>
<br>
Hi Graham, and everybody,<br>
<br>
The CorCenCC interface isn&#39;t based on CQPweb or CWB at all; instead it uses a relational database system which encompasses their data collection records as well as accessing the corpus. See section 3.5 to 3.7, esp. fig 4, of the paper<br>
<br>
Knight, D., Loizides, F., Neale, S., Anthony, L. and Spasi?, I. (2020). Developing computational infrastructure for the CorCenCC corpus - the National Corpus of Contemporary Welsh. Language Resources and Evaluation (LREV).<br>
<br>
available here: <br>
<br>
<a href="https://www.researchgate.net/publication/343299269_Developing_computational_infrastructure_for_the_CorCenCC_corpus_The_National_Corpus_of_Contemporary_Welsh" rel="noreferrer" target="_blank">https://www.researchgate.net/publication/343299269_Developing_computational_infrastructure_for_the_CorCenCC_corpus_The_National_Corpus_of_Contemporary_Welsh</a><br>
<br>
As they say there:<br>
<br>
&quot;The main reasons for creating a bespoke interface rather than re-using an existing solution such as CQPweb (Hardie 2012) were the requirements to tailor its functionality to the specific metadata of the CorCenCC corpus and its prospective users, and so it could be integrated with a bespoke pedagogic toolkit.&quot;<br>
<br>
My aim, via my push on plugins and the API over the last few years, is that, in future, people will be able to achieve this level of customisation without starting from scratch. Part of the point of CQPweb as a whole to help others avoid having to create the same basic web concordancer etc. over and over, but the evidence (not just from CorCenCC but from many other projects) is that this hasn&#39;t worked - people (quite rightly) have very particular requirements and if a system fails to meet just one of them, they&#39;ll start from scratch rather than adopt that existing system as a solution. Thus, the importance of customisability and extensibility. Things have improved. But overall it&#39;s not where it needs to be yet. <br>
<br>
But on the actual topic of skins/colours...<br>
<br>
Originally, the idea was that a skin = a CSS file. One css file contained all the formatting, so you rewrite that file as you liked to modify the appearance. <br>
<br>
However, as the system evolved, things changed, because the basic CSS became more and more complex.<br>
<br>
So what I did instead is parameterise the colours, and separate them from the main formatting. You can see this in the HTML at the start of any page:<br>
<br>
        &lt;style&gt;<br>
<br>
                :root {<br>
                        --colour-layout-fg      :       #ecff6f;<br>
                        --colour-layout-strong  :       #b9ff6f;<br>
                        --colour-layout-contrast        :       #00ffff;<br>
                        --colour-text-normal    :       black;<br>
                        --colour-text-strong    :       black;<br>
                        --colour-text-bright    :       purple;<br>
                        --colour-text-faint     :       gray;<br>
                        --colour-layout-bg      :       #d5d5d5;<br>
                        --colour-layout-data2   :       #f0f0f0;<br>
                        --colour-layout-outline :       white;<br>
                        --colour-tooltip-frame  :       #003399;<br>
                        --colour-tooltip-bg     :       #e6ecff;<br>
                        --colour-tooltip-text   :       #000066;<br>
                }<br>
<br>
<br>
        &lt;/style&gt;<br>
<br>
(that&#39;s 3.3, it looks a bit different in 3.2)<br>
<br>
So now, colour schemes are defined by the colour variables inserted here. This has allowed me to add a bundle of new built-in colour schemes (not chosen by me; I&#39;m rubbish at that) quickly just by adding them to the code. See:<br>
<br>
<a href="https://sourceforge.net/p/cwb/code/HEAD/tree/gui/cqpweb/trunk/lib/html-lib.php#l2628" rel="noreferrer" target="_blank">https://sourceforge.net/p/cwb/code/HEAD/tree/gui/cqpweb/trunk/lib/html-lib.php#l2628</a><br>
<br>
Adding new colour schemes can be done by hacking that file OR using a CSS file that contains just a &quot;:root&quot; control like the above to specify colours, though the latter can&#39;t be set up by the interface (yet), only by directly putting the filename into the database in corpus_info.colour_scheme (or using them for the three main pages via the config file variables).<br>
<br>
I want to add a system to dynamically control the colours in place of the use of CSS files, but as with so many other things, it&#39;s a matter of time ... <br>
<br>
I also want to use more CSS variables so that colour-schemes can alter more behaviours (at the moment it&#39;s JUST colour). <br>
<br>
For instance, the things that Thilo Wiertz&#39;s CSS skins for 3.2 do (which I really like by the way, they are better than most of my own efforts) wouldn&#39;t be possible in 3.3. But I&#39;d like to make it so they are. <br>
<br>
There are other people who&#39;ve made the system look visually much better by hacking the code. See, for instance, <a href="https://corpling.uis.georgetown.edu/cqp/" rel="noreferrer" target="_blank">https://corpling.uis.georgetown.edu/cqp/</a> (as I understand, the front page is the most-changed). The drawback is that doing that breaks upgrade paths. The aforementioned Georgetown server is at 3.2.11, for instance. Reapplying all their changes to 3.3 would be ... quite a task. I&#39;m trying to amend the code structure to make that kind of modification easier. <br>
<br>
<br>
Finally: If you want to change the interface completely, that is (where &quot;is&quot; = &quot;will be Real Soon Now&quot;) possible too: by using the CQPwebClient as your backend, and then writing whatever frontend you want. Alas the CQPwebClient modules for different languages are nowhere near completion, and are dependent on the degree of completion of the API, of course.<br>
<br>
best<br>
<br>
Andrew.<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a> &lt;<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>&gt; On Behalf Of Graham Ranger<br>
Sent: 28 April 2022 14:45<br>
To: Open source development of the Corpus WorkBench &lt;<a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a>&gt;<br>
Subject: [CWB] Skins for cqpweb<br>
<br>
<br>
Hello to all,<br>
I was wondering whether there are any alternative skins or themes for cqpweb?<br>
I think this is a recurrent question, and I believe Thilo Wiertz has developed some css which change the colour schemes<br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwiertz%2Fcqpweb_css&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=2AiNy4PAziPSQCDm5YQVdCogozkvkr55ZQKY%2FtzNUZA%3D&amp;amp;reserved=0" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwiertz%2Fcqpweb_css&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=2AiNy4PAziPSQCDm5YQVdCogozkvkr55ZQKY%2FtzNUZA%3D&amp;amp;reserved=0</a> but I was wondering if there was anything new... (I had understood, perhaps mistakenly, that the contemporary Welsh corpus was built around a cqpweb base, but with a very different interface <a href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcorpus.corcencc.org%2Fhome&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=c6vRK76DIhuKSXQ2AzLkDX87oR9" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcorpus.corcencc.org%2Fhome&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=c6vRK76DIhuKSXQ2AzLkDX87oR9</a><br>
 cR8fKThX%2Fl2BUmJ8%3D&amp;amp;reserved=0.)<br>
Best,<br>
Graham.<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=jwlzxrSC6BUvqjuOj4AP1UWjSv78NIXYe9r3PitTy%2BM%3D&amp;amp;reserved=0" rel="noreferrer" target="_blank">https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&amp;amp;data=05%7C01%7Chardiea%40live.lancs.ac.uk%7Cd25ec0186f7b4176875d08da291e9e99%7C9c9bcd11977a4e9ca9a0bc734090164a%7C0%7C0%7C637867509923068013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=jwlzxrSC6BUvqjuOj4AP1UWjSv78NIXYe9r3PitTy%2BM%3D&amp;amp;reserved=0</a><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
<br>
<br>
End of CWB Digest, Vol 181, Issue 30<br>
************************************<br>
</blockquote></div></div>