Graphics

 View Only
  • 1.  Changing text within a paragraph to proper case

    Posted 05-07-2015 20:33
    We are currently pasting text into template data box on the sequence side and trying to edit the case of the text. Is there any way to change the first letter in each word to Capital letters within XPression? Usually the info is coming from a text doc or word doc. When we were using Deko it allowed us to capitalize everything and then change to proper case (First letter Caps).


  • 2.  RE: Changing text within a paragraph to proper case

    Posted 05-08-2015 19:49
    I'd like to jump on this, as well. We use Title Case for a lot of things, not just capitalizing the first word, but only words that are "supposed" to be capitalized in English. Is there a script I can run (still on an old version with no visual basic) at OnSetText for a text object that will convert to title case. Something using `StrConv` perhaps?

    EDIT:

    I can get capitalization working with:

    dim form as string=text

    text=(Ucase(form))


    Is there a title case variant?

    #XPression


  • 3.  RE: Changing text within a paragraph to proper case

    Posted 05-09-2015 01:24
    You can use this in OnSetText:

    `text = StrConv(text, vbProperCase)`

    #XPression


  • 4.  RE: Changing text within a paragraph to proper case

    Posted 05-12-2015 14:24
    What about for proper title case? `vbProperCase` just capitalizes the first letter of each word, regardless of what word it is. For example:

    `lowercase:` this is my test sentence

    `uppercase:` THIS IS MY TEST SENTENCE

    `propercase:` This Is My Test Sentence

    While title case would be:

    This is my Test Sentence

    Using capitalization guidelines from something like the AP stylebook. Is that a doable thing?

    #XPression