Nightly build: SMath Studio 0.97.5280 (16 June 2014) - Messages
- SS-40: Approach to handle invisible empty text subscripts corrected;
- SS-54: Description text is always black now;
- SS-156: Fixed zoom in reference books;
- SS-126: Fixed inserted snippet layout when collapsed Area Region exists inside Snippet;
- SS-151: Printing: layout fixed when Page Setup is non-standard;
- SS-39: Added "Default" item added to Fractions options for MathRegion;
- SS-37: File name update in window title upon jumping to link target;
- SS-133: Description text updated for overridden definitions;
- SS-160: Wrong results with optimization None fixed;
- SS-36: Fixed issue when changes are lost if a link is followed;
- Fixed issues appears on Custom Regions context menu actions usages (evaluation miss and others);
- Worksheet splitter implemented (vertical and horizontal);
- Unit Package updated (Important!);
- Key presses handling improved;
- Incorrect MDI icon fixed on page add;
- ViewerFileType: Activation code box width increased;
- Viewer fixed to support empty Title and/or Description of worksheet (using worksheet properties);
- Silent mode of the application improved;
- Monospace font applied to Output window;
- Fixed issues with Area collapse/expand operations;
- Language files updated.
- Desktop Windows (desktop computer with Windows OS):
SMathStudioDesktop.0_97_5280.Setup.msi (Date: 16.06.2014. File size: 1.77MB)
- Desktop Linux (desktop computer with Linux OS):
SMathStudioDesktop.0_97_5280.Mono.tar.gz (Date: 16.06.2014. File size: 982.59KB) - last version of Mono distributive required!

When I insert a CustomRegion like a 2D plot and I don't add something in the placeholder the region disappears

this is by design?
(first post here --> thanks for this amazing piece of software!)
I am getting brackets automatically for every multiplication. I am not sure if this is by design, a bug, or I am just doing something wrong.
In prev. version I could do a * b * c=
Now I get (a * b )*c=
and with longer ones (((a * b )*c)*d)*e=
any advice?
Thanks
Marco
Unfortunately, I did not manage to understand the new xml data structure for unit definitions. I am happy to do the required modifications but currently I need some help input for that.
WroteWhen I insert a CustomRegion like a 2D plot and I don't add something in the placeholder the region disappears
; the same if i delete the content in the placeholder
this is by design?
This is a bug. Thank you! Will fix it.
WroteI am getting brackets automatically for every multiplication. I am not sure if this is by design, a bug, or I am just doing something wrong.
Bug. Will be also fixed in new release.
WroteUnfortunately, I did not manage to understand the new xml data structure for unit definitions. I am happy to do the required modifications but currently I need some help input for that.
With this new format of units source you are able to do even more then previously. What you can do is to create a separate *.xml with any name you want, put it to the same directory as Units.xml and put a text inside:
<?xml version="1.0" encoding="utf-8"?>
<entries xmlns="http://smath.info/studio/entries">
<units>
<property dimension="613">
<override name="°">
<synonym name="° degree" />
</override>
<add factor="3.6" exp="2" system="All">
<synonym name="circle" />
</add>
</property>
<property dimension="289" title="Volume">
<override name="L">
<synonym name="L liter" />
<extension for="L">
<prefix name="μ"/>
<prefix name="m"/>
<prefix name="c"/>
<prefix name="d"/>
<prefix name="da"/>
<prefix name="h"/>
</extension>
<extension for="liter">
<prefix name="micro"/>
<prefix name="milli"/>
<prefix name="centi"/>
<prefix name="deci"/>
<prefix name="deka"/>
<prefix name="hecto"/>
</extension>
</override>
<add factor="3.52391" exp="-2" system="Imperial">
<synonym name="bushel" />
</add>
</property>
</units>
</entries>
This file will overwrite "°" unit: add a synonym: "degree". It will also add "liter" (with the same meaning as "L") and many units prefixed to "L" and "liter".
And it will also add the following new units: "circle" and "bushel".
Try it! This is just for example. Explanations for all dimensions and prefixes you can find in Units.xml (in first lines). Also find an XML schema attached - this should also help you.
In future such extension files will be available for download from Extensions Manager, so it will be much easier to deliver new units and anyone will be able to create and share improved sets of units. Better future coming soon!

Please let me know if you have any questions!
Entries.xsd (13 KiB) downloaded 131 time(s).
Wrote
This file will overwrite "°" unit: add a synonym: "degree". It will also add "liter" (with the same meaning as "L") and many units prefixed to "L" and "liter".
And it will also add the following new units: "circle" and "bushel".
Try it! This is just for example. Explanations for all dimensions and prefixes you can find in Units.xml (in first lines). Also find an XML schema attached - this should also help you.
In future such extension files will be available for download from Extensions Manager, so it will be much easier to deliver new units and anyone will be able to create and share improved sets of units. Better future coming soon!
Please let me know if you have any questions!
How can I specify the "quantity" dimension, with percent just being a unit representing the factor 0,01? I do not see a place for the word "quantity". Could you please give a template for percent, then I should be able to do the rest.
WroteHow can I specify the "quantity" dimension, with percent just being a unit representing the factor 0,01? I do not see a place for the word "quantity". Could you please give a template for percent, then I should be able to do the rest.
Here we can assume "quantity" is just a property. So, we can say 'percent' unit is dimensionless (it equals to 0.01). Note, based on Units.xml dimension for dimensionless units has id="613". Then, here is an example:
<?xml version="1.0" encoding="utf-8"?>
<entries lang:default="eng" xmlns="http://smath.info/studio/entries" xmlns:lang="http://smath.info/studio/entries">
<units>
<property dimension="613" title="Quantity" lang:rus="Количество">
<add factor="1" exp="-2" system="All" title="Percent" lang:rus="Процент">
<synonym name="percent" />
<extension for="percent">
<prefix name="micro" title="Micropercent" lang:rus="Микропроцент"/>
<prefix name="milli" title="Millipercent" lang:rus="Миллипроцент"/>
</extension>
</add>
</property>
</units>
</entries>
Note: screenshot taken from the newer build then available for download. In SMath Studio 0.97.5280 "quantity" units will belong to "Dimensionless" group.
WroteIn future such extension files will be available for download from Extensions Manager, so it will be much easier to deliver new units and anyone will be able to create and share improved sets of units. Better future coming soon!
Please let me know if you have any questions!
Seems a powerful new feature

Another small change in CustomRegions that causes some troubles: Overriding the OnMouseWheel event RequestForEvaluation() is fired just when the region looses the focus

I have the same issue also when I pass the region in a Form and then I call RequestForEvaluation(). The evaluation is fired after you close the form and needs that the region looses the focus.
The thing is that evaluation must be always done in context of some action user initiated in Worksheet (f.e. mouse click, key press, region move etc). Could you please explain how user initiated request for evaluation in your case? Why evaluation is needed? I mean do user starts evaluation by some interaction with program or not?
This is important because only changes initiated by user can be handled by History Manager within History Transaction (this is actually a new API).
If you need to force creation of the History Transaction you can do somthing like:
using (this.History.CreateTransaction())
{
// request region evaluation here
}
Note: the best is if you explain me how user requests for evaluation, so I could initiate creation of History Transaction in SMath Studio and you don't need to do it by yourself in a plug-in.
Best regards.

WroteThis is important because only changes initiated by user can be handled by History Manager within History Transaction (this is actually a new API).
I agree, and the History improvement is a good news for me

WroteNote: the best is if you explain me how user requests for evaluation, so I could initiate creation of History Transaction in SMath Studio and you don't need to do it by yourself in a plug-in.
As for the first thing (OnMouseWheel event) the wheel scrolling triggers the evaluation to send on the worksheet a value generated or "filtered" from the region; actually this is used in the "Controls regions" NumericUpDownRegion, SliderRegion, RadioButtonListRegion, etc... Is triggered using a timer, so the user can make a small scroll, a wide scroll or a mixed scroll and there is just one evaluation.
As for the second thing (Forms) I pass the RegionHolder to the Form constructor, I clone it (to restore all if the user skips the changes) and the user can see a preview of changes without closing and opening the form. There are a lot of things where a simple Invalidate or a Prepainter + Invalidate are enough, but not every time; if you send out values (f.e. in SliderRegion there's a free numeric scale factor) you can see on the worksheet canvas on the fly what's the effect; RadioButtonList and others contains an option to choose how to filter the input to get a different output). Storing just the name of the allowed variables, if the input variables are driven inside the Form (TableRegion, RadioButtonList, etc...) the evaluation is required. Also, using MathRegions I set the properties (decimal places, NumExponentialThreshold, etc...) just on the evaluations. Obviously for these things an alternative is to store both name and content of each allowed variable, but seems to me a bad memory usage (maybe not).
UPDATE: 1-st case I've handled (will be available into the next build). The 2-nd one is very specific, so I would suggest to use approach I've described above (using History Transaction). If you'll observe any complexity please let me know!
Best regards, Anbdrey Ivashov.

Best regards,
Davide
-
New Posts
-
No New Posts