Would anyone knows how to insert mathematical symbols into any text field (for instance symbols proposed by the WORD Equation Editor) ?
This possibility would be very useful when using WhiteStarUml for documenting a subject dedicated to mathematics.
Thank you in advance for your answer.
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you think about bypassing UML syntax interpretation (which obviously checks validation of constructs with +, _, = etc.) enter the name using Properties Editor. As the name is separated from other constructs validation is not performed there and more syntactically complex expressions may be put there. With Unicode texts you should be able to see there quite a lot of mathematical symbols.
On the other hand if you hope for clean mathematical expression formatting it is not possible without using Rich Text Formatting or maybe even some more specialized format. Obviously WhiteStarUML supports only unformatted Unicode text. Maybe showing expressions as PNG images may be of some help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you for your answer but it is still not clear to me.
For example I need to model a class representing the mathematical concept of "empty set". According to your answer it sounds that I just have to set the name of the class to the Unicode string dedicated to the "empty set" mathematical symbol. This Unicode code is "2205" according to Wikipedia. But the question now is : "how to enter the string "2205" for a correct interpretation by the Properties Editor" as a graphical symbol ?"
I tried to figure out how to do but I must admit that I am a little bit confused. Your help would be appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Last information : I have downloaded the STIXGeneral Opentype Font file (font for mathematical symbols). WORD proposes now the "STIXGeneral" choice in the font selection menu, but WhiteStarUML does not. In the case of WORD the font can be selected but nothing is displayed when I type any key.
I am progressing but my problem is still not solved.
Eric
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I make some test.
First we need for a class to set specific font with extended mathematical characters (e.g. Cambria Math, Arial Unicode MS...)
Then we can enter symbol (empty set) with two ways (using numeric keypad):
As hex 2205 -> Alt +(grey plus) 2 2 0 5
As decimal 8709 -> Alt 8 7 0 9
This work in Windows programs, but with WhiteStarUml is problem. In effect I become:
"♣"
-symbol which is selected when font don't have extended characters.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Handling Alt + keycode in various editors is yet another issue I am afraid I little control of. However if you generate an expression with MS Word, copy it and paste to a class name using the Properties Editor in WS you should see something like:
It is a flattened but corresponding version of the original expression. And yes a math compatible font set like Cambria Math must be used. The attached picture shows what I got this way.
I don't need to write long expressions. Therefore cut/paste from the Word math editor should be enough.
Anyway I keep your url link preciously just in case.
Thank you again for your help.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hello,
Would anyone knows how to insert mathematical symbols into any text field (for instance symbols proposed by the WORD Equation Editor) ?
This possibility would be very useful when using WhiteStarUml for documenting a subject dedicated to mathematics.
Thank you in advance for your answer.
Eric
If you think about bypassing UML syntax interpretation (which obviously checks validation of constructs with +, _, = etc.) enter the name using Properties Editor. As the name is separated from other constructs validation is not performed there and more syntactically complex expressions may be put there. With Unicode texts you should be able to see there quite a lot of mathematical symbols.
On the other hand if you hope for clean mathematical expression formatting it is not possible without using Rich Text Formatting or maybe even some more specialized format. Obviously WhiteStarUML supports only unformatted Unicode text. Maybe showing expressions as PNG images may be of some help.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Thank you for your answer but it is still not clear to me.
For example I need to model a class representing the mathematical concept of "empty set". According to your answer it sounds that I just have to set the name of the class to the Unicode string dedicated to the "empty set" mathematical symbol. This Unicode code is "2205" according to Wikipedia. But the question now is : "how to enter the string "2205" for a correct interpretation by the Properties Editor" as a graphical symbol ?"
I tried to figure out how to do but I must admit that I am a little bit confused. Your help would be appreciated.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Last information : I have downloaded the STIXGeneral Opentype Font file (font for mathematical symbols). WORD proposes now the "STIXGeneral" choice in the font selection menu, but WhiteStarUML does not. In the case of WORD the font can be selected but nothing is displayed when I type any key.
I am progressing but my problem is still not solved.
Eric
Hi,
I make some test.
First we need for a class to set specific font with extended mathematical characters (e.g. Cambria Math, Arial Unicode MS...)
Then we can enter symbol (empty set) with two ways (using numeric keypad):
This work in Windows programs, but with WhiteStarUml is problem. In effect I become:
"♣"
-symbol which is selected when font don't have extended characters.
Handling Alt + keycode in various editors is yet another issue I am afraid I little control of. However if you generate an expression with MS Word, copy it and paste to a class name using the Properties Editor in WS you should see something like:
f(x)=a_0+∑_(n=1)^∞(a_n cos〖nπx/L〗+b_n sin〖nπx/L〗 )
It is a flattened but corresponding version of the original expression. And yes a math compatible font set like Cambria Math must be used. The attached picture shows what I got this way.
View and moderate all "General Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Great ! It works !
Thank you very much to both of you, Michal and Janusz,for your investigation.
You can additionally:
( kbd and layout here https://www.cs.tut.fi/~jkorpela/math/kbd.html )
( http://www.microsoft.com/en-us/download/details.aspx?id=22339 )
I don't need to write long expressions. Therefore cut/paste from the Word math editor should be enough.
Anyway I keep your url link preciously just in case.
Thank you again for your help.