![]() |
Dear Stéphane, Thank you for your on-going efforts to improve the display of
polynomials and their exponents. Actually, some trial on the master shows what we could expect on Windows: Setting exponents in unicode breaks the display of polynomials in NW (and NWNI) modes: --> p = (1-%z).^(0:12)' Another issue is about the readability of exponents 1 to 3: they
were likely the first defined, before other figures, but they are
clearly smaller than other exponents 0 and 4-9. Without zooming, the "3" is very close to 8, and only its place
before 4 mainly indicates that it's not 8. _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
Le 28/11/2019 à 21:58, Samuel Gougeon a
écrit :
Aaarr, apparently no: https://en.wikipedia.org/wiki/Unicode_subscripts_and_superscripts _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Antoine ELIAS-2 |
![]() |
In reply to this post by Samuel GOUGEON
Hello Samuel,
I'm agree with you about the issue. I will try to find a way to change the console properties inside binary like when we change color in nw mode ( W/B vs B/W ) But I does not show trouble with 2 or 3 and others superscript numbers. ![]() With this configuration ![]() Le 28/11/2019 à 21:58, Samuel Gougeon a
écrit :
_______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
Hello Antoine,
Le 28/11/2019 à 23:17, Antoine ELIAS a
écrit :
Hello Samuel,
Great.
Neither does it for me, provided that this setting is done before
running Scilab. Samuel ----------------------------- // http://bugzilla.scilab.org/9221 %chars.greek.lower = "αβγδεϵζηθικλμνξοπρστυφϕχψωάϐέήϑίϊϰόϱςύϋΰϖώ"; %chars.greek.upper = "ΑΒΓΔΕΖΗΘϴΙΪΚΛΜΝΞΟΠΡΣΤΥΫΦΧΨΩ"; %chars.maths.logical = "∀∃∄∧∨⋀⋁⊼⊽⊻∁∴∵∎≍"; %chars.maths.set = "∉∈∊∍∋∌∅∖⋂∩⋃∪⊂⊆⊄⊅⊇⊃⋐⋑⋒⋓"; %chars.maths.comparisons = "⋘≪≤≲≳≥≫⋙≠≃≄≅≈∽≐≔≕≝"; %chars.maths.operators = "−±∓∔÷×∏∐∑√∛∜⋅⋆⊕⊖⊝⊗⊘⊙⊚⊛⊜⊞⊟⊠⊡"; %chars.maths.integdiff = "∂∇∆∫∬∭∮∯∰∱∲∳"; %chars.maths.geometry = "°′″∟⊾∠∡∢⊥∥∦∺∻≎⊿⋕"; %chars.maths.misc = "⋮⋰⋯⋱′″∝∞‰‱"; %chars.arrows.base = "←↖↑↗→↘↓↙↔↕↵↱↴☇⇐⇑⇒⇓⇔⊣⊥⊢⊤"; %chars.arrows.thick = "⬅⬆➞⬇➚➙➘➔➜➡➥➦➧➨➼➽"; %chars.symbols = "…⋈⋔⋄♢◊♤♧♡♦♠♣♥©®™♀♂⌘♻«»🚌🚲🚩"; %chars.stars = "⋆★☆✫✯✰✭✡🔯⊛⍟✪❂✻✼✹✸✶"; //%chars.currencies = "¤$€£¥円元₪฿¢₫₣"; %chars.lang.french = "âàäçéêèëîïôöûùüÂÀÄÇÉÊÈËÎÏÔÖÛÙÜ"; %chars.lang.japanese.hiragana.a = "あかさたなはまやらわ がざだばぱ"; %chars.lang.japanese.hiragana.i = "いきしちにひみ りゐ ぎじぢびぴ"; %chars.lang.japanese.hiragana.u = "うくすつぬふむゆる ぐずづぶぷ"; %chars.lang.japanese.hiragana.e = "えけせてねへめ れゑ げぜでべぺ"; %chars.lang.japanese.hiragana.o = "おこそとのほもよろをんごぞどぼぽ"; %chars.lang.russian.upper = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; %chars.lang.russian.lower = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"; _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Antoine ELIAS-2 |
![]() |
Le 28/11/2019 à 23:35, Samuel Gougeon a
écrit :
I hope https://codereview.scilab.org/#/c/21143/ will help.
_______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
In reply to this post by Samuel GOUGEON
Hello, Altough I am the author or this patch, I find this may be a bit
too early to make the hypothesis that Scilab would be
systematically launched in an environment that allows Unicode
chars. This could be, at least, a rendering option (BTW we need an
unified way of customizing display in the preferences tab).
However, using a one line display seems an improvement to me, it
allows a much better rendering of polynomials and rationals (see https://codereview.scilab.org/#/c/21142/).
Maybe a intermediary step would be to use a hat notation, e.g. --> p=(1+%i+%s)^7 p = 8-8i -56is -(84+84i)s^2 -140s^3 -(70-70i)s^4 +42is^5
+(7+7i)s^6 +s^7 The rendering of super/subscripts was very easy 40 years ago when
terminals were printing on paper listing. See e.g.
http://man7.org/linux/man-pages/man5/terminfo.5.html : "If the terminal can move up or down half a line, this
can be and search e.g. for enter_subscript_mode, exit_subscript_mode.
Today none of terminal emulator supports these commands, excepted
the very recent release of mintty (Windows): http://cygwin.1069669.n5.nabble.com/ANNOUNCEMENT-Updated-mintty-3-0-1-td146161.html here is a excerpt of the release notes: Highlights
Hence, using mintty console would allow a neat display of
polynomials in CLI mode. S.
Le 28/11/2019 à 23:35, Samuel Gougeon a
écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
In reply to this post by Antoine ELIAS-2
Hello, Altough I am the author or this patch, I find this may be a bit
too early to make the hypothesis that Scilab would be
systematically launched in an environment that allows Unicode
chars. This could be, at least, a rendering option (BTW we need an
unified way of customizing display in the preferences tab).
However, using a one line display seems an improvement to me, it
allows a much better rendering of polynomials and rationals (see https://codereview.scilab.org/#/c/21142/).
Maybe a intermediary step would be to use a hat notation, e.g. --> p=(1+%i+%s)^7 p = 8-8i -56is -(84+84i)s^2 -140s^3 -(70-70i)s^4 +42is^5
+(7+7i)s^6 +s^7 The rendering of super/subscripts was very easy 40 years ago when
terminals were printing on paper listing. See e.g. http://man7.org/linux/man-pages/man5/terminfo.5.html
: "If the terminal can move up or down half a line, this
can be and search e.g. for enter_subscript_mode, exit_subscript_mode.
Today none of terminal emulator supports these commands, excepted
the very recent release of mintty (Windows): http://cygwin.1069669.n5.nabble.com/ANNOUNCEMENT-Updated-mintty-3-0-1-td146161.html here is a excerpt of the release notes: Highlights Hence, using mintty console would allow a neat display of
polynomials in CLI mode. Le 29/11/2019 à 00:36, Antoine ELIAS a
écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
In fact, it is already supportted in the current version of mintty, even if not documented via the command "infocmp screen", as it can be seen in the attached screenshot... But it is a pity that this extension is not supported by any
terminal in OSx or Linux... S. Le 29/11/2019 à 12:10, Stéphane
Mottelet a écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
It also works in the bash console of "Git for windows". Le 29/11/2019 à 12:14, Stéphane
Mottelet a écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
In reply to this post by Samuel GOUGEON
BTW, under Windows, none of the console mode seems to support simple accented characters : --> disp "é" ├®
The super/subscript problem is just a small part of this more general issue. S. Le 28/11/2019 à 21:58, Samuel Gougeon a
écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() |
In reply to this post by Samuel GOUGEON
Sorry for these multiple answers, but after thinking about this
issue, I arrived at the conclusion that we should consider the use
of unicode subscript only as a failsafe solution. In GUI mode
(Java console), we should use html output. This will solve the
problem of readability of exponents and allow many interesting
stuff, such as outputing links, ... S. Le 28/11/2019 à 21:58, Samuel Gougeon a
écrit :
-- Stéphane Mottelet Ingénieur de recherche EA 4297 Transformations Intégrées de la Matière Renouvelable Département Génie des Procédés Industriels Sorbonne Universités - Université de Technologie de Compiègne CS 60319, 60203 Compiègne cedex Tel : +33(0)344234688 http://www.utc.fr/~mottelet _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
In reply to this post by Samuel GOUGEON
Le 28/11/2019 à 23:35, Samuel Gougeon a
écrit :
Humm, mainly provided that the code page was changed to 65001
before this font setting.
I don't know what tests i did, but on my computer as well, superscripts are displayed with Consolas, but NOT with Lucida Console, that looks less rich on this aspect. But much poorer than DejaVue Mono, that however is not in the list of default TrueType fonts of Windows (7) computers, contrarily to Consolas and Lucida console.
_______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
In reply to this post by Antoine ELIAS-2
Le 29/11/2019 à 00:36, Antoine ELIAS a
écrit :
But always forcing the font to Consolas without testing
-- if possible -- if a TrueType font is already set instead of
Raster, would reset any richer user setting like for DejaVu
Mono. This could be easily blocking. Samuel %chars.greek.lower = "αβγδεϵζηθικλμνξοπρστυφϕχψωάϐέήϑίϊϰόϱςύϋΰϖώ"; %chars.greek.upper = "ΑΒΓΔΕΖΗΘϴΙΪΚΛΜΝΞΟΠΡΣΤΥΫΦΧΨΩ"; %chars.maths.logical = "∀∃∄∧∨⋀⋁⊼⊽⊻∁∴∵∎≍"; %chars.maths.set = "∉∈∊∍∋∌∅∖⋂∩⋃∪⊂⊆⊄⊅⊇⊃⋐⋑⋒⋓"; %chars.maths.comparisons = "⋘≪≤≲≳≥≫⋙≠≃≄≅≈∽≐≔≕≝"; %chars.maths.operators = "−±∓∔÷×∏∐∑√∛∜⋅⋆⊕⊖⊝⊗⊘⊙⊚⊛⊜⊞⊟⊠⊡"; %chars.maths.integdiff = "∂∇∆∫∬∭∮∯∰∱∲∳"; %chars.maths.geometry = "°′″∟⊾∠∡∢⊥∥∦∺∻≎⊿⋕"; %chars.maths.misc = "⋮⋰⋯⋱′″∝∞‰‱"; %chars.arrows.base = "←↖↑↗→↘↓↙↔↕↵↱↴☇⇐⇑⇒⇓⇔⊣⊥⊢⊤"; %chars.arrows.thick = "⬅⬆➞⬇➚➙➘➔➜➡➥➦➧➨➼➽"; %chars.symbols = "…⋈⋔⋄♢◊♤♧♡♦♠♣♥©®™♀♂⌘♻«»🚌🚲🚩"; %chars.stars = "⋆★☆✫✯✰✭✡🔯⊛⍟✪❂✻✼✹✸✶"; //%chars.currencies = "¤$€£¥円元₪฿¢₫₣"; %chars.lang.french = "âàäçéêèëîïôöûùüÂÀÄÇÉÊÈËÎÏÔÖÛÙÜ"; %chars.lang.japanese.hiragana.a = "あかさたなはまやらわ がざだばぱ"; %chars.lang.japanese.hiragana.i = "いきしちにひみ りゐ ぎじぢびぴ"; %chars.lang.japanese.hiragana.u = "うくすつぬふむゆる ぐずづぶぷ"; %chars.lang.japanese.hiragana.e = "えけせてねへめ れゑ げぜでべぺ"; %chars.lang.japanese.hiragana.o = "おこそとのほもよろをんごぞどぼぽ"; %chars.lang.russian.upper = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ"; %chars.lang.russian.lower = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"; _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
In reply to this post by mottelet
Le 29/11/2019 à 12:10, Stéphane
Mottelet a écrit :
This hypothesis is not needed to go on with Unicode in terminal
modes and improve things about this. On windows, including the
code page setting in the Scilab binary as proposed by Antoine is a
first interesting and required step.
Allowing and even using an UTF-8 font in Scilab NW and NWNI modes
should not be an option. It should be the default.
Because exponents are really too small, and because the console can't be zoomed interactively with a shortkey and the mouse wheel, in term of readability, the current status is clearly the best: --> (1-%z).^(0:4) In term of compacity, indeed using Unicode exponents is a good idea. Unfortunately, with some fonts like Consolas, all exponents are so small wrt to the base font size that i use to use that some of them become hardly distinguishable. --> (1-%z).^(0:4) But this can be worked around by increasing the font size (from Monospaced 14 to 16, for me).
Definitively not. It turns crowdy. Keeping the current 2-line
display would be better, even if it's less compact vertically. _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
In reply to this post by mottelet
Le 29/11/2019 à 13:05, Stéphane Mottelet a écrit :
> > BTW, under Windows, none of the console mode seems to support simple > accented characters : > > --> disp "é" > > ├® > > The super/subscript problem is just a small part of this more general > issue. > Yes, sure. This is the point of the long standing reported bug mentionned in my first message. _______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
![]() ![]() |
Samuel GOUGEON |
![]() |
In reply to this post by mottelet
Le 29/11/2019 à 13:20, Stéphane
Mottelet a écrit :
This was possible in some master (in 5.3 or 5.4?), when Calixte
developed the scimax module. For instance to
Whatever is the implementation, some effects would have to be
managed to keep clean and clear the history, the diary(), and may
be other existing features related to the console inputs or/and
outputs. Samuel
_______________________________________________ dev mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/dev |
Free forum by Nabble | Edit this page |