User Tools

Site Tools


Text_Fields

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
Text_Fields [2019/06/25 08:27]
peternlewis
Text_Fields [2019/06/25 08:45]
peternlewis
Line 36: Line 36:
  
 Text token fields also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters `\a`,​`\b`,​`\e`,​`\f`,​`\t`,​`\r`,​`\n` (bell,​backspace,​escape,​form feed,​tab,​return,​line feed). Text token fields also process %NN% or %NNNN% as arbitrary hex unicode characters (eg %41% is an A), and (except for regular expression fields) process backslashed characters `\a`,​`\b`,​`\e`,​`\f`,​`\t`,​`\r`,​`\n` (bell,​backspace,​escape,​form feed,​tab,​return,​line feed).
 +
 +To include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\).
 +
 +==== Text Case Conversions ====
  
 Text token fields also support (v9.0+) text case conversion escapes. The most common use is to change the case of an interpolated variable or other token, as well as in [[action:​Search_and_Replace|Search and Replace by regular expression]] action. ​ The conversion escape codes are: Text token fields also support (v9.0+) text case conversion escapes. The most common use is to change the case of an interpolated variable or other token, as well as in [[action:​Search_and_Replace|Search and Replace by regular expression]] action. ​ The conversion escape codes are:
Line 43: Line 47:
 * `\u` converts the next character to uppercase. * `\u` converts the next character to uppercase.
 * `\l` converts the next character to lowercase. * `\l` converts the next character to lowercase.
 +* `\U\l` lowercase first, then uppercase.
 +* `\L\u` uppercase first, then lowercase.
 +* `\E` stop changing case.
  
-You can combine these into \l\U to make the first character lowercase and the remainder uppercase, or \u\L to make the first character uppercase and the remainder lowercase. \E turns off case conversion. You cannot use \u or \l after \U or \L unless you first stop the sequence with \E+You should not use `\u` after `\Uor `\lafter `\Lunless you terminate ​the sequence with `\E` first.
- +
- +
- +
-To include a percent in your text, simply double the percent (%%). To include a backslash \ in your text, double the backslash (\\).+
  
 ===== Script Fields ===== ===== Script Fields =====
Text_Fields.txt · Last modified: 2022/11/30 22:35 by ccstone