I live in Madrid, right in the middle of the pink area of the wikipedia map that Hans posted. I am 62 and I have always been a country man. I am the only person I know that always try the acorns I come across with. Today I tried maybe 20 different ones (the acorns are starting to be tempered enough). I can count with the fingers of one of my hands the number of people I ever met that consider acorns in Spain edible for humans, and those who consider them edible know that if you are to eat them strait from the ground, they are almost always bitter to certain degree. Yes you can eat acorns from the trees, but they are in general too bitter, after one month on the ground they are bearable to me and after two or three months the odd ones that have survived are still slightly bitter but definitely edible.
I have never found myself a sweet acorn producing tree, but I tried sweet acorns given to me by different people, there are few articles in Spanish talking about them and the odd tree that produces them. Of course people have eaten acorns in times of scarcity of food and you can process them to get rid of the tannin, but in every attempt I made to cook them or roast them I never came out with something that I would enjoy eating. In Spain we have many more acorns than chestnuts and in autumn and winter you find people selling roasted chestnuts on the streets but never acorns.
As I commented in a previous post, farmers in Spain feed acorns mainly to pork and when they market them they refer to these acorns as sweet acorns when they belong to the subspecies Ballota (acorn in Spanish is "bellota") but I guess this is just because these are less bitter than those of other quercus species that grow in Spain.
Maybe in Morocco 20% of the trees have sweet acorns, that I don't know, but I assure you that in Spain almost nobody consider them edible, but the few ones that have been lucky enough to try the sweet ones, even if wikipedia says that they are sweet and edible.