Title Case

Sannyasin Brahmanathaswami brahma at hindu.org
Sat Apr 21 09:40:42 EDT 2018


Mike/Andy

that works; 

not sure how the eye-candy will to take to

This Is A Title

This is an obscure UI case in which I can't get metadata from the data base, for a given audio that has been downloaded. So these "titles" come file names in the "My Audio"

the-guru-chronicles-audiobook_10-Chapter-06.mp3

becomes:

The Guru Chronicles Audiobook, 10 Chapter 06

in the UI… it already take times, adding a look up library will "kill" it.

Brahmanathaswami

Mike Bonner 

    Something like this might work..
    
    put "a create a sentence title" into tTitle
    repeat with i = 1 to the number of truewords in tTitle
       put toupper(char 1 of trueword i of tTitle) into char 1 of trueword i of
    tTitle
    end repeat
    put tTitle -- the adjusted case sentence
    
    If you have words that you would rather not uppercase of course, you'll
    have to check for those. (like of, the...) and whether or not the word is
    the first.



More information about the use-livecode mailing list