[Scilab-users] Re : calendar does not work

sgougeon at free.fr sgougeon at free.fr
Tue Aug 25 14:33:24 CEST 2020


Hello Heinz,

You are likely using a quite restricted font for the Scilab console.
May be your system's one as the default.
These characters are non-breakable spaces ascii(160) <=> ascii([194 160]),
that are not US-ASCII but nevertheless rather standard.
You can check in your Scilab preferences, in the Fonts section:
With the font chooser, check "Monospaced" checkbox to list only monospaced
fonts. This is mandatory to keep matrices aligned, etc.
Then, the "Monospaced" or "Consolas" fonts are good choices.
They should include all latin-like fonts, and many non-latin ones
like cyrillic, arabic, japanese, etc. And of course the non-breakable spaces.

The support of extended UTF-8 characters has been added in Scilab 6.1.0
for the Scilab Advanced console (NW) and Raw console (NWNI) modes.
Documenting it with adding a  "Font How-to" section to the --> help console page
is on the TODO list, for all STD NW and NWNI Scilab modes ;-)

Every feedback is welcome about this char(160) case, noticeably from users
using non-latin fonts.
ascii(160) have been substituted to ascii(32) in calendar() in order to prevent
lines wrapping for the calendar block of lines. But the "risk" to have a so
narrow console is quite low, and we can keep normal spaces if it looks
at last preferable.

Regards
Samuel

----- Mail d'origine -----
De: Heinz Nabielek <heinznabielek at icloud.com>
À: Users mailing list for Scilab <users at lists.scilab.org>
Envoyé: Wed, 19 Aug 2020 00:10:23 +0200 (CEST)
Objet: [Scilab-users] calendar does not work

--> calendar
 
 ÂÂÂÂÂÂÂÂÂÂÂÂAugÂ2020
 MonÂÂTueÂÂWedÂÂThuÂÂFriÂÂSatÂÂSun
 ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ1ÂÂÂÂ2
 Â3ÂÂÂÂ4ÂÂÂÂ5ÂÂÂÂ6ÂÂÂÂ7ÂÂÂÂ8ÂÂÂÂ9
 10ÂÂÂ11ÂÂÂ12ÂÂÂ13ÂÂÂ14ÂÂÂ15ÂÂÂ16
 17ÂÂÂ18ÂÂÂ19ÂÂÂ20ÂÂÂ21ÂÂÂ22ÂÂÂ23
 24ÂÂÂ25ÂÂÂ26ÂÂÂ27ÂÂÂ28ÂÂÂ29ÂÂÂ30
 31ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ

What had happened? Scilab 6.1 under macOS Catalina 10.15.6

Heinz
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users




More information about the users mailing list