Yet it was the separatists who formed the next provincial government too, because they enjoy strong support in rural constituencies where almost everybody speaks Catalan. As in most countries, the system gives more weight to rural voters, so the separatists won five more seats than the pro-Spain parties and are still in.
The real problem for the separatists is that about half the people in Catalonia are Spanish-speakers who have no interest in seceding from Spain. Some are relatively recent arrivals, but most were born in Catalonia, the children and grandchildren of migrants from other parts of Spain who were attracted by the booming economy.
It's still one of the richest parts of Spain, and — again as in most developed nations — some of its tax revenues are transferred to help poorer regions. This is bitterly resented by most Catalan-speakers and partly explains the independence drive, although the most powerful factor is simply ethnic nationalism.
But how can ethnic Catalans achieve their goal in a democratic way when half the voters by definition are not interested in it? The only way is somehow to define Spanish-speakers as not really full citizens of Catalonia, and although they never say that, it was their unspoken justification for the tweaking in the 2017 "referendum".
Spanish Foreign Minister Josep Borrel, who is a Catalan, recently offered a lethal analysis of this attitude: "I think the root of the problem is that the independence movement denies the 'Catalanness' of those people who aren't in favour of independence. When you ... claim that only those who think like you are 'the people', that's a totalitarian attitude." "Totalitarian" is too strong a word, but there's no doubt that this opinion is widely shared among Catalans, and that it makes Spanish-speakers keep their heads down.
On the other hand, you cannot fail to feel some sympathy for the Catalan nationalists, for as recently as 1950 the great majority of the city's residents were Catalan-speakers. You also cannot ignore the history: Catalans are not oppressed now, but the only language used in the schools and in all official communications in Catalonia under Franco's dictatorship, right down to the 1980s, was Spanish.
None of this has been forgotten by the Catalans, who at one time even feared that their language might be lost.
Thus those Catalans who respect democracy but want independence face an insoluble problem, and it's only Spain's refusal to permit a real referendum that spares them from having to face up to the conflict between these two values. But the Spanish constitution talks of the "indissoluble unity of the Spanish nation" and does not permit any region to hold a referendum on independence.
It's hardly surprising in a country that's had four civil wars in the past 200 years, but it effectively guarantees the unrest in Catalonia will continue indefinitely.
So far it has been almost entirely non-violent — and long may it remain so — but the traditional pro-independence civil society groups, the Catalan National Assembly and Omnium Cultural, are now being outflanked by Tsunami Democratic, a more combative and secretive group.