Hello,
Samuel Thibault, le Fri 10 Aug 2012 12:21:17 +0200, a écrit :
> Cyril Brulebois, le Fri 10 Aug 2012 12:09:51 +0200, a écrit :
> > Samuel Thibault <sthibault@debian.org> (10/08/2012):
> > > That being said, it would be possible to have 8859-1 and 8859-2 fonts on
> > > the CDs, to be loaded when a language is selected (as well as -3, -4,
> > > etc.). It would permit to enable quite a few more spoken language (about
> > > 20).
> > >
> > > That however requires some work, room on the images, and discussion,
> > > I don't know if we'll have time for that before the release which is
> > > already very close.
> >
> > Any estimation on the amount of needed extra space we're talking about?
>
> setfont is 40K, something like a dozen fonts would be needed, each of
> them around 2K (compressed), so that would be something of 60K, not that
> much indeed.
I've given a try, it does work (try
http://dept-info.labri.fr/~thibault/tmp/mini.iso ) with the attached
patches:
- setfont is actually already in kbd-udeb
- I have cleaned the console-setup font list a bit, to only include what
d-i can support, and added a switch script, to be called by ...
- localechooser, which now accepts level 2 on bare linux console,
provided that the font switch script is there.
- it's then a matter of including the console-setup-linux-fonts-udeb
package on speakup images. The additional size is simply the fonts and
the script, about 7*2.5KiB, thus roughly 17.5KiB.
The good thing is that the patch doesn't change the behavior for level1
languages, i.e. it should be bringing only additional behavior without
touching the existing behavior.
The bad thing is that of course, in the language question (before font
switch), localized language names for non-latin1 languages appear as
squares. That can not really be avoided anyway.
This patch could actually be useful to BSD people, as they don't have
bterm support: they could use font switch to support level2 languages in
their text mode. I'm not sure how that is done however, it seems a
screen map also has to be loaded. A vidcontrol-udeb would have to be
introduced at least.
Just a side note:
+ gunzip < "$FONT" > /tmp/font.psf
+ setfont /tmp/font.psf
+ rm /tmp/font.psf
This is currently needed because setfont looks for gzip -d to unzip the
font. setfont could be made to use gunzip instead, I'm not sure what I
prefer to patch at this point.
Samuel