TextEdit - "lower-case" an upper-case string?
I’m using TextEdit to draft postings for my favourite blogs. And I'm forever accidentally pushing the caps-lock down on my PB, resulting in a long upper case string.
I used to use BBEdit on Classic for my text drafting purposes. It had a very handy ‘change case‘ to any highlighted string and variations option. I’ve been too mean to upgrade to newer BBEdit apps so:-
Is there some sort of an add-on out there for TextEdit (or maybe I’ve somehow missed the option) that will permit me to select a string and “lower-case” it?
Yah.
I know there are alternatives (a) we have a copy of Word which I think does it and (since I’m running Classic) I can always revert to my old BBEdit Lite for the time being. Thing is, I’ve built up a huge library of blog-style pseudo-html macros using QuicKeys that work perfectly now in TextEdit. So I’m reluctant to abandon TextEdit. Also I prefer something light for this sort of purpose. The Old BBEdit was great in that way.
Thanks for the for the Word Service idea. I’ve done the download and will see if it helps.
*I can’t seem to find the suggested Caps Lock disable in 10.3.9* - which is what I using on my PB... If I could do that, it might be a reasonable kludge even if I do sometimes currently use the Caps Lock for real.
I've even considered writing a Quickeys Macro to copy the text into and boot Classic BBEdit, do the business there and copy it back but I'm not sure it would work across OSes - even if I do have an older QuicKeys in my Classic side.
Similar Messages
-
How to search for upper/lower case using string using JAVA!!!?
-I am trying to write a program that will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears.
-I also have to use a JOptionPane.showMessageDialog() to tell the user how many upper and lower case e's were in the string.
-This will be repeated until the user types the word "Stop".
please help if you can
what i have so far:
[code]
public class Project0 {
public static void main(String[] args) {
String[] uppercase = {'E'};
String[] lowercase = {'e'};
String isOrIsNot, inputWord;
while (true) {
// This line asks the user for input by popping out a single window
// with text input
inputWord = JOptionPane.showInputDialog(null, "Please enter a sentence");
if ( inputWord.equals("stop") )
System.exit(0);
// if the inputWord is contained within uppercase or
// lowercase return true
if (wordIsThere(inputWord, lowercase))
isOrIsNot = "Number of lower case e's: ";
if (wordIsThere(inputword, uppercase))
isOrIsNot = "number of upper case e's: ";
// Output to a JOptionPane window whether the word is on the list or not
JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
} //main
public static boolean wordIsThere(String findMe, String[] theList) {
for (int i=0; i<theList.length; ++i) {
if (findMe.equals(theList[i])) return true;
return false;
} // wordIsThere
} // class Lab4Program1
[/code]So what is your question? Do you get any errors? If so, post them. What doesn't work?
And crossposted: how to search for upper/lower case using string using JAVA!!!? -
How to convert a string from upper case to lower case in FOX formula
Hi Experts,
How to convert a string from upper case to lower case in FOX formula?
Thanks,
Cheers!!!
PANKAJThe last result.append( c ) should be:
result.append( Character.toLowerCase(c) ); -
How to convert a string from lower case to upper case withour using transla
Hi all,
how to convert a string from lower case to upper case withour using translate,
Thanks in Advance,
ReddyRefer to this related thread
Re: hi guys this very urgent please help -
i can't remember that method ( i'm pretty sure there is one ), that takes a string and makes it all either upper or lower case.
can anyone tell me?
appreciate it.ah, thank you! i forgot about that...i was looking in StringBuffer...
cheers (**goes back to homework...) -
Convert strings to upper or lower case
I want to convert a user strings all to lower case but keep the letter of the first string to a upper case
I'm basically allowing users to input their first name, if they input JOHn, I want my system to convert it to John.Hi,
It just so happens i created this function last night and have it right on hand. You can try it by placing 1 TextBox and 1 Button on a form and past this code in. Type the letters of the name in any case and it will capitalize the First
letter of each part of the name and make the rest of it lower case.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox1.Text = MakeProperCaseName(TextBox1.Text)
End Sub
Private Function MakeProperCaseName(ByVal strName As String) As String
Dim sb As New System.Text.StringBuilder(strName.ToLower)
Dim SetUpper As Boolean = True
For i As Integer = 0 To sb.Length - 1
If sb(i) = " " Then SetUpper = True
If SetUpper And sb(i) <> " " Then
Dim FirstLetter As String = sb(i).ToString.ToUpper
sb.Replace(sb(i), FirstLetter, i, 1)
SetUpper = False
End If
Next
Return sb.ToString
End Function
End Class
If you say it can`t be done then i`ll try it -
How to convert a text file in lower case to upper case?
I've a beginner in java world and I just come through the tutorial in http://java.sun.com/docs/books/tutorial/essential/io/filestreams.html showing how to copy a text file:
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("farrago.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
int c;
while ((c = in.read()) != -1)
out.write(c);
in.close();
out.close();
And I would like to ask how to covert all lower case letters in input file to upper case letter in output file at the same time of copying.
I guess it'll be using Character.toUpperCase(c), but I don't know how to do it actually.
Any help would be much appreciated.Hope this helps
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("farrago.txt");
File outputFile = new File("outagain.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
BufferedReader buff = new BufferedReader(in);
String c;
while ((c = buff.readLine()) != null)
out.write(c.toUpperCase());
in.close();
out.close();
} -
I was in a Pages Doc and inadvertently had the Caps Lock on. How Can I change all the text I typed from Upper Case to Lower Case?
Several protocols may be used.
Here I describe two of them.
(1) the one which I use : install and use the "Convert to Lowercase" service available in the free WordService
(2) copy your text, paste in TextEdit and enter the Edit menu.
I guess that you will recognize the items in your English menu.
I apologize but I don't know the English items.
Yvan KOENIG (VALLAURIS, France) jeudi 16 février 2012
iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
My Box account is : http://www.box.com/s/00qnssoyeq2xvc22ra4k -
Converting lower case to upper case data of flat file
Hi All,
I have a requirement purche order creation by using bapi function module.My requirement is when I am uploading the flat file and if flat file contains the data in lower case then before passing it to the function module i want to convert it in to Upper case. please tell me how can I do this.
its very urgent.
Regards,
Amit.hi,
Use translate statement ..
DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO UPPER CASE.
write : letters.
Also refer
/people/alvaro.tejadagalindo/blog/2006/12/21/does-abap-lacks-of-string-processing
Regards,
Santosh -
How to convert lower case to upper case?
Hi,
How to convert lower case letter to upper case and vice versa?TRANSLATE
Variants:
1. TRANSLATE c TO UPPER CASE.
2. TRANSLATE c TO LOWER CASE.
3. TRANSLATE c USING r.
See String processing
Variant 1
TRANSLATE c TO UPPER CASE.
Variant 2
TRANSLATE c TO LOWER CASE.
Effect
The first variant converts all lowercase letters in c to uppercase. The second variant converts all uppercase letters to lowercase.
Example
DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO UPPER CASE.
letters now has the contents 'ABC'.
Note
The classification of upper- and lowercase, and the actual characters used are determined by the current text environment (see SET LOCALE LANGUAGE). Problems may occur when the system converts the characters, if the wrong language has been specified in SET LOCALE LANGUAGE, or if data has been processed that does
Variant 3
TRANSLATE c USING r.
Effect
Replaces all the characters in the field c according to the rule in field r. c1 containscharacter pairs. The second character in each pair replaces the first. If r does not contain a character in c, this character remains unchanged. r can also be a variable.
Example
DATA: letters(20) TYPE C VALUE 'abcabcabcXab',
change(15) TYPE C VALUE 'aXbaYBabZacZ'.
TRANSLATE letters USING change.
letters now contains 'XaZXaZXaZXXaZ'.
REWARD IF USEFUL -
How to write Lower case value to the upper case value in SMARTFORMS
How to change the from lower case to Upper case in SMARTFORMS
Ex. india to INDIAhi,
chk this.
DATA: T(10) VALUE 'AbCdEfGhIj',
STRING LIKE T,
RULE(20) VALUE 'AxbXCydYEzfZ'.
STRING = T.
WRITE STRING.
TRANSLATE STRING TO UPPER CASE.
WRITE / STRING.
STRING = T.
TRANSLATE STRING TO LOWER CASE.
WRITE / STRING.
STRING = T.
TRANSLATE STRING USING RULE.
WRITE / STRING.
Output:
AbCdEfGhIj
ABCDEFGHIJ
abcdefghij
xXyYzZGhIj
reward points if useful...
-Umesh -
Upper / Lower case using SQL
Hello friends,
i have to read a field out of a dbtable. The field contains e.g. a string like "a11B". During the sql selection i would like to use upper or lower case to transform the string to "A11B":
SELECT...WHERE UPPER(attribute) IN range_variable.
Can somebody say how this command looks like in abap?
I haven't found a command for abap like UPPER() or UCASE() using mysql.
<<help>>
danielDepending on you database system, you can use native SQL. For Oracle:
report ztest no standard page heading.
tables lfa1.
data: name like lfa1-name1 value 'TEST'.
EXEC SQL.
SELECT *
INTO :LFA1
FROM LFA1
WHERE UPPER(NAME1) = :NAME
ENDEXEC.
This will select where the name is "Test" or "TEST" or other combinations.
Rob -
is there any function module to manage upper case and lower cases
Hi,
DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO LOWER CASE.
For more infromation...
TRANSLATE
Variants:
1. TRANSLATE c TO UPPER CASE.
2. TRANSLATE c TO LOWER CASE.
3. TRANSLATE c USING c1.
4. TRANSLATE c ...FROM CODE PAGE g1... TO CODE PAGE g2.
5. TRANSLATE f ...FROM NUMBER FORMAT n1... TO NUMBER FORMAT n2.
Note
Like all string processsing statements, you can only use character-type operands here.
If the type of an operand is not STRING, the operand is treated like a type C field, regardless of its actual type, even though no actual conversion takes place.
In an ABAP Objects context, a more severe syntax check is performed that in other ABAP areas. See Only character fields allowed in string processing.
Variant 1
TRANSLATE c TO UPPER CASE.
Variant 2
TRANSLATE c TO LOWER CASE.
Effect
The first variant converts all lowercase letters in c to uppercase. The second variant converts all uppercase letters to lowercase.
Example
DATA letters(3) TYPE C.
MOVE 'abc' TO letters.
TRANSLATE letters TO UPPER CASE.
letters now has the contents 'ABC'.
Note
The classification of upper- and lowercase, and the actual characters used are determined by the current text environment (see SET LOCALE LANGUAGE).
Variant 3
TRANSLATE c USING c1.
Effect
Translates the contents of c according to the rule in field c1.
When a character from c corresponds to a character from c1, it is replaced by the next character that occurs in c1. If the character appears more than once in c1, its first occurrence is used in the replacement. If a character from c does not occur in c1, it remains unchanged.
Example
DATA: letters(20) TYPE C VALUE 'abcabcabcXabc',
change(15) TYPE C VALUE 'aXbaYBabZacZB'.
TRANSLATE letters USING change.
letters now contains 'XaZXaZXaZXXaZ'.
Variant 4
TRANSLATE c ...FROM CODE PAGE g1 ...TO CODE PAGE g2.
Parts marked with " ..." are interchangeable
TRANSLATE c TO CODE PAGE g2.
TRANSLATE c FROM CODE PAGE g1.
Effect
Converts the contents of the field c from character set g1 to character set g2. This variant uses the conversion table g1 to determine the SAP character, which is then used to determine the new character from g2.
Transaction SPAD allows you to display and maintain character sets. If one of the conversion tables does not exist, the runtime error CONVERSION_CODEPAGE_UNKNOWN occurs. Conversion combinations that are maintained as part of the runtime system for performance reasons do not trigger runtime errors, and you cannot change them using Transaction SPAD.
Example
DATA c(72) TYPE C.
TRANSLATE c FROM CODE PAGE '1110' TO CODE PAGE '0100'.
This statement converts the contents of field c from the HP-UX character set to IBM EBCDIC.
Note
Fields with types I, P, F, and X remain unchanged by the conversion. The syntax check only allows character fields for specifying the codepage. However, since the codepage is maintained in table TCP00 as a type N field with length 4, you should use this type.
Variant 5
TRANSLATE f ...FROM NUMBER FORMAT n1 ...TO NUMBER FORMAT n2.
Parts marked with " ..." are interchangeable
TRANSLATE f TO NUMBER FORMAT n1.
TRANSLATE f FROM NUMBER FORMAT n1.
Effect
Converts the number formats in f. Currently, the number formats '0000' (HP, SINIX, IBM) and '0101' (DEC-alpha OSF) are supported. Other formats trigger the runtime error TRANSLATE_WRONG_NUM_FORMAT . If you omit FROM NUMBER FORMAT or TO NUMBER FORMAT, the system uses the system number format.
Example
DATA: f TYPE F,
hex(2) TYPE X,
nform LIKE tcp00-cpcodepage.
The contents of fields hex and f are stored in /ARCHIV
from another platform. hex is stored in a valid number
form when it is saved, and can therefore be read on
all platforms.
READ DATASET '/ARCHIV' INTO hex.
READ DATASET '/ARCHIV' INTO f.
nform = hex. "Conversion from non-host-specific. HEX into N(4)
TRANSLATE f FROM NUMBER FORMAT nform.
Effect
Converts the contents of f from the nform format of a given platform into the system representation.
Note
This converts fields with types I and F. As in variant 4, you should define the number formats with type N and length 4.
You can display system codepage and number formats using the function module SYSTEM_FORMAT. This allows you to store additional information for archiving purposes.
Note
Performance:
Converting lowercase letters to uppercase (or the other way round) in a 10 byte character field requires around 7 msn (standardized microseconds).
If you use ... c USING c1... to replace two characters of a 10 byte character field,the runtime is around 9 msn.
Note
Runtime errors:
TRANSLATE_WRONG_NUM_FORMAT: Invalid number format.
Don't forget to reward -
Ho to convert to lower case values and upper case
hi
pls let me know how to convert the varlues to lower case
and how to conver values to uppoer case
whichis funtion module to do so?
regards
AroraHi,
<b>TRANSLATE</b>
Converts characters to strings.
Syntax
TRANSLATE <c> TO UPPER|LOWER CASE
|USING <r>.
The characters of the string <c> are converted into upper- or lowercase, or according to a substitution rule specified in <r>. -
Dynamic Search - Upper/lower case of Search Criteria
Hi,
If I enter a search criterion in lower case in the text box field of my dynamic search, the string gets automatically converted to upper case when I press 'Search'. Is there any way to retain the case of the search parameter value?Hi,
the data types for the input fields of the search mask are of type STRING. There is no conversion done there.
If the case changes it has to be done in the applicatgion logic of the view controller, most probably the EH_ONSEARCH().
Another hot option is the data element that is used for the parameter. Does it allow lower case values?
cheers Carsten
Maybe you are looking for
-
PDF of a blueprint comes up as a whole image instead of individual lines.
PDF of a blueprint comes up as a whole image instead of individual lines. I have tried tracing it and that does not pull out the individual lines also, stays a one image only. how do I get just the individual lines?
-
Need to reference a cell using a variable or cell value.
Hi. I am trying to build a master sheet and then have sub sheets that detail the information from the master. My master sheet looks like this: 1 | 101 | Bob | Smith | 2 | 104 | Sally | Jones | 3 | 108 | Tim | Abbott | Then on separate sheets I want a
-
Finder does not run properly after starting up [Mountain Lion]
I've installed MountainLion from Snow Leopard 10.6.8 My Mac is Macbook7,1 (Macbook White) Intel Core 2 Duo When the installation finish, it seems like Finder does not run. I have to click on the Finder icon on the Dock to make it run. And then I got
-
Change system option in SE03 to adjust the character set in SPAD spool devi
Dear Gurus, Kindly assist me that which software component/ technical name (in SE03 - set system change option) we have to put in "modifiable" if we want to adjust character set of a Spool device using SPAD. Thanks. Regards, Kalyan.
-
My ipod wifi slider button is in grey mode and I cant slide it across from off to on, any suggestions?