pyradio, ma quella non è un'applicazione scritta con pywmdockapps)
modificato Application.update, ora ricalcola il livello di riempimento della
cache solo una volta ogni tre cicli (ogni 0.3 secondi), questo per abbassare
il carico di lavoro sulla cpu.
rimossa l'eccezione se un carattere non rientra fra 32 e 127.
quello che succede è dipendente dall'encoding del file da cui vengono lette le stringhe.
nel test case le óńł occupano due caratteri, che vengono saltati e resta
quanto era stato scritto prima. forse si potrebbe prevedere una separazione
"lettera"/"accento", però devo trovare il modo di definire l'accento in modo
che sia sovrapponibile alla lettera, mentre quelli che ho ora le
cancellerebbero.
alla fine dell'alfabeto potrei aggiungere gli accenti su trasparenza...
acuto (é) grave (è) tilde (ẽ) circonflesso (ê) breve (ĕ) lungo (ēħ) v (č)
punto (ż) dieresi (ë) coda-destra (ę) coda-sinistra (ç) obliquo (ł) o (å)
resterebbe il problema di caratteri quali ß æ œ ...
added new example application, on the way to the object oriented library.
the idea is to develop this program within one single source, but clearly
separating the general from the specific. so in this source I will have a
general 'Application' class which will contain no specific 'radio' code.
the radio code will make use of the general application class.
the program is not yet functional.
it really was a library problem... it was caused inside getFont by the way
I was choosing an alternative to a clashing character code. the correct way
is by choosing outside both the already defined characters and the
characters that the font uses. we were creating a cascade in clashes, and
were not able to handle it correctly. avoiding the problem is the best
cure.
modified the fonts: they start from background colour (None or Black) and go
to full intensity, which ought to be gray100 or white.
the initialization procedure will spread all colour differences between the
requested background and foreground proportionally to the intensity of the
gray char pixel.
most colour code clashes are resolved at initialization stage. there are
only a few things you should not reuse, such as the space for transparency.
just try out the result and make use of the 'debug' parameter which will
cause the function to print the the generated xpm.