Formatting (Advanced Text Capabilities) Changed in Version 2019.1 |
www.CAD6.com |
Inside any type of text, CAD6 allows the use of text formatting. It will be used analogically to HTML.
FormattingCode sequences used analogically to HTML<h1> .. <h9> New in Version 2013.2 Activate text style 1 through 9. For information on text styles, see MKI_TEXTSTYLEDEF. </h1> .. </h9> New in Version 2013.2 Deactivate text style 1 through 9. <b> Bold font on. </b> Bold font off. <i> Italic font on. </i> Italic font off. <s> Strikeout on. </s> Strikeout off. <u> Underlining on. </u> Underlining off. <sub> Smaller, lowered text on (index). The text will be scaled to 70.71% and will be offset by 20% of the line height. </sub> Smaller, lowered text off. <sup> Smaller, elevated text on (power). The text will be scaled to 70.71% and will be offset by 40% of the line height. </sup> Smaller, elevated text off.
Code sequences as extension/modification of HTML<frac>XXX<sep>YYY</frac> A fraction with numerator XXX and denominator YYY. If you wish a separating line, simply underline the numerator. The text will be scaled to 40%, the upper line with be offset by 40% line height. <font Type,Style,Weight,"Name"> This sequence should always be inserted by means of the button "Format > Font" that is available in all relevant dialog windows. This avoids invalid values. </font> Restore original font. <dx X> Horizontal offset of X times type-size ("em quad"), with X being a floating point number between -1000.0 and 1000.0. </dx> Resets the horizontal offset to 0 (will only work in vertical text direction mode). <dy X> Vertical offset of X times type-size ("em quad"), with X being a floating point number between -1000.0 and 1000.0. </dy> Resets the vertical offset to 0 (will not work in vertical text direction mode). <tab X> Jump to tabulator position at X times type-size ("em quad"), with X being a floating point number between 0.001 and 1000.0. <size X> Relative scaling of the font by factor X, with X being a floating point number between 0.001 and 1000.0. </size> Restore original scaling. This only reverses explicit scaling set using <size>. <mode X> Filling mode of the text, with X being an integer value stating the filling mode: 0 = framed, 1 = filled, 2 = filled & framed, 3 = erased, 4 = erased & framed (see MKI_FILLMODE_*) </mode> Restore original filling mode. <fill R/G/B> Filling color of the text in RGB notation, with R, G, and B being unsigned values between 0.0 and 1.0 inclusively, each defining the red, green, or blue component of the color. <fcmyk C/M/Y/K> New in Version 6.60 Filling color of the text in CMYK notation, with C, M, Y, and K being unsigned values between 0.0 and 1.0 inclusively, each defining the cyan, magenta, yellow, or black component of the color. <fgray G> New in Version 6.60 Filling color of the text in GRAY notation, with G being unsigned values between 0.0 and 1.0 inclusively, defining the gray component of the color (0=black, 1=white). <fhsb H/S/B> New in Version 6.60 Filling color of the text in HSB notation, with H being an unsigned value between 0 and 360 inclusively, S and B being unsigned values between 0.0 and 1.0 inclusively, each defining the hue, saturation, or brightness component of the color. <flab L/A/B> New in Version 6.60 Filling color of the text in LAB notation, with L being an unsigned value between 0 and 100 inclusively, A and B being signed values between -127 and 127 inclusively, each defining the L*, a*, or b* component of the color. </fill> Restore original filling color. <line R/G/B> Outline color of the text in RGB notation, with R, G, and B being unsigned values between 0.0 and 1.0 inclusively, each defining the red, green, or blue component of the color. <lcmyk C/M/Y/K> New in Version 6.60 Outline color of the text in CMYK notation, with C, M, Y, and K being unsigned values between 0.0 and 1.0 inclusively, each defining the cyan, magenta, yellow, or black component of the color. <lgray G> New in Version 6.60 Outline color of the text in GRAY notation, with G being unsigned values between 0.0 and 1.0 inclusively, defining the gray component of the color (0=black, 1=white). <lhsb H/S/B> New in Version 6.60 Outline color of the text in HSB notation, with H being an unsigned value between 0 and 360 inclusively, S and B being unsigned values between 0.0 and 1.0 inclusively, each defining the hue, saturation, or brightness component of the color. <llab L/A/B> New in Version 6.60 Outline color of the text in LAB notation, with L being an unsigned value between 0 and 100 inclusively, A and B being signed values between -127 and 127 inclusively, each defining the L*, a*, or b* component of the color. </line> Restore original outline color. <afill X> New in Version 2012.2 Opacity (alpha value) of filling with X being an unsigned value between 0.0 and 1.0 inclusively. </afill> New in Version 2012.2 Restore original filling opacity. This only reverses explicit opacity set using <afill>. <aline X> New in Version 2012.2 Opacity (alpha value) of outlines with X being an unsigned value between 0.0 and 1.0 inclusively. </aline> New in Version 2012.2 Restore original outline opacity. This only reverses explicit opacity set using <aline>. <width X> Line width of X millimeters, with X being a floating point number between 0.001 and 1000.0. </width> Restore original line width. <lmargin X> New in Version 2013.1 Defines a left indentation of the text of X times type-size ("em quad"), with X being a floating point number between -1000.0 and 1000.0. The indentation will become effective after the next line feed. </lmargin> New in Version 2013.1 Clears the left indentation. The reset will become effective after the next line feed. <rmargin X> New in Version 2013.1 Defines a right indentation of the text of X times type-size ("em quad"), with X being a floating point number between -1000.0 and 1000.0. The indentation will become effective after the next line feed. </rmargin> New in Version 2013.1 Clears the right indentation. The reset will become effective after the next line feed. << Output the explicit character '<'. \~ Output the explicit character '~'. \{ Output the explicit character '{'. \} Output the explicit character '}'. \\ Output the explicit character '\'.
Examples (base font is "Source Code Pro")Code sequence in the text: The <b>quick</b> brown fox <u>jumps</u> over the <i><b>lazy</b> dog</i>
Displayed text:
Code sequence in the text: (a<sub>1</sub>+a<sub>2</sub>)<sup>2</sup>+ (b<sub>1</sub>+b<sub>2</sub>)<sup>2</sup>= (c<sub>1</sub>+c<sub>2</sub>)<sup>2</sup>
Displayed text:
Code sequence in the text: sin(<font 1,512,400,"Symbol">a</font>)<sup>2</sup>+ cos(<font 1,512,400,"Symbol">a</font>)<sup>2</sup>= sin(<font 1,512,400,"Symbol">b</font>)<sup>2</sup>+ cos(<font 1,512,400,"Symbol">b</font>)<sup>2</sup>=1
Displayed text:
Code sequence in the text: <frac><u> 1 </u> <sep>16 </frac>a+<frac><u> 1 </u> <sep>16 </frac>b=<frac><u> 1 </u> <sep>16 </frac>(a+b)
Displayed text:
Special CharactersSpecial characters are represented by a code sequence analogically to HTML: ­ Soft hyphen, i.e. a conditional word separator that will only be used if the text must be broken into multiple lines. If a word if broken at this location, a hyphen will be inserted. If not, the soft hyphen will be invisible. Non-breaking space, i.e. a space that will not be used as a word separator. Text will never be broken at this space. &#X; Representation of the Unicode character X, with X being the Unicode character’s number in decimal notation. The user will not see this representation of Unicode characters since all text handling dialogs in the application have an automatic translation of Unicode characters. Starting with Version 2019.1, any Unicode character encoded this way will be transformed into UTF-16 encoding in memory and UTF-8 encoding in files. As a result, this notation will no longer exist permanently both in memory and in files.
Exampleα The small alpha (α) of the Greek alphabet, Unicode character 945.
Starting with Version 2019.1, all texts, names, variables, and attributes are Unicode-enabled. In memory, they are stored in UTF-16 format, in the CAD6 file format in UTF-8 format.
|
CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH