0 Votes

Text elements

Last modified by WikiBot on 2025/03/20 14:15

Text elements

The text elements are used as titles, labels, help information, etc. The text objects may be outlined; the background may be either transparent or colored. The text may be language-dependent.

Advanced properties:

  
:on-click code The text is a hyperlink; the IDA script code is executed when the text is clicked.

The text in text elements is always horizontal. Non-horizontal text is also supported, via Picture element with text icon.

See also:

Inserting a new element into a document

Text styles

Text style includes font (family, face, size, style), color, and alignment. The named text styles are Normal, Heading, Section, Label, Entity, Value, Unit, Note, and Hyperlink.

To change the text style, right click one on or more elements and select the style from a submenu of the shortcut menu. The style of all selected text elements is changed. The new style affects also the new inserted text elements.

The text styles affect also frame boxes, fields, and other graphical elements containing text.

Character set

Text elements may contain any character defined in Unicode standard, but only the characters supported by the selected font will be actually shown.

Editing a text element

To start editing a text object, double click on it or select Edit from the Shortcut menu .

The text is edited as in text editor, with one exception: press Ctrl+Enter rather than Enter to break a line. Copy and Paste is available, including the possibility to copy text from or to another Windows applications.

To end editing, press Enter or click outside of the editing object.

To discard editing, press Ecs key.

Text with markup

IDA Modeler supports text elements containing markup instructions. The markup language (none, HTML, or TeX) may be selected in the properties dialog.

IDA Modeler supports the following markup instructions:

   

Formatting

HTML

TeX 

font variations

<EM> <STRONG>, <B>, <I>, <U>,<TT>, <BIG>, <SMALL>, <SPAN style="font-size:xxx">

\bf, \it, \rm, \tt, \em, \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, \Huge

Use { … } to restrict the scope of formatting instructions

subscripts and superscripts

<SUB>, <SUP>

_, ^ (e.g. x^2, v_{air})

colors

<SPAN style="color:xxx">

{\color{xxx} ...}

hyperlinks

<A href=(code)>, where (code) is an IDA script

\href{(code)}{text}

pictograms

<IMG src=pixmap>

\draw{pixmap}

special characters

HTML entities (e.g., Greek letters &alpha; … &omegaemoticon_wink according to HTML 4.01 standard

various TeX commands that define special characters (e.g., \alpha, \pm, \infty, \sum)

\charddd, \char'ooo, \char"xxx (character with given Unicode index, decimal, octal, or hexadecimal)

\backslach, \{, \}, \_ (to get characters \, {, }, _.

\^ followed by a blank space (to get ^)

-- (en-dash), --- (em-dash)

characters with accents

Use HTML entities

\' \= \" \. \` \^ \~ \c \H \r \u \v (works only if the corresponding accented character is defined in the current font);

\acute \bar \breve \ddot \dot \grave \hat \tilde \Acute \Bar \Grave (try to compose the accented character);

modified characters

Use HTML entities

\mathbb (only applicable to characters C,H,N,P,Q,R,Z, if the modified characters are defined in the current font)

allow line break (soft hyphen)

&shy; or ASCII/Unicode symbol with code 173

\- or ASCII/Uincode symbol with code 173

Nested sub- and superscripts are not supported, as well as change of font size inside of the sub- and superscripts.

The style attribute is supported in any HTML tag, not only in <SPAN>.

The styles are coded according to CSS 2.1 standard (except "ex" units for font sizes that are not supported):

Colors: #rgb, #rrggbb; named colors: maroon, red, orange, yellow, olive, purple, fuchsia, white, lime, green, navy, blue, aqua, teal, black, silver, gray and the named colors listed in CSS 3.0

The font sizes are: xx-small, x-small, small, medium, large, x-large, xx-large, smaller, larger, and nn unit, where unit is pt (point), in (inch), cm, mm, pc (pica), em, %, px (pixel). See CSS 2.1 for details.

The special characters are displayed correctly only if they are defined in the text element's font. The most complete fonts supplied with Windows 2000 are Lucida Sans Unicode, MS Gothic, MS Mincho, MS PGothic, MS PMincho, MS UI Gothic. Most fonts contain only Latin (accented included) and Greek characters, punctuation (including txt-punctuation.gif), currency symbols (txt-valuta.gif), few math symbols (txt-math1.gif), block elements (txt-blocks1.gif). The most common fonts (as Arial, Courier New, Times New Roman) supports also simple arrows (txt-arrows.gif), more math symbols (txt-math2.gif) and blocks (e.g., txt-blocks2.gif), symbols (txt-symbols.gif), accents (txt-accents.gif) that may be combined with other characters.

The typewriter style (<TT> and \tt) uses font Courier New.

The TeX character names may be used in HTML mode (e.g., &\pmemoticon_wink.

The HTML entity names may be used in TeX mode (e.g., \aring) except ones coinciding with supported TeX instructions.