Menu

inserting mathematical symbols

Anonymous
2015-03-21
2015-03-25
  • Anonymous

    Anonymous - 2015-03-21

    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

     
  • Janusz Szpilewski

    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.

     
    • Anonymous

      Anonymous - 2015-03-22

      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.

       
  • Anonymous

    Anonymous - 2015-03-22

    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

     
  • Michal

    Michal - 2015-03-22

    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):

    1. As hex 2205 -> Alt +(grey plus) 2 2 0 5
    2. 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.

     
  • Janusz Szpilewski

    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.

     
  • Anonymous

    Anonymous - 2015-03-23

    Great ! It works !

    Thank you very much to both of you, Michal and Janusz,for your investigation.

     
  • Eric

    Eric - 2015-03-25

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.