Re: Need easy way to make first letter of each line upper case

2021-11-01 Thread Nosadge
Hello Everyone!

Thanks to your recommendations and help, I am now able to replace all lower 
case letters at the beginning of lines AND remove spaces at the beginning 
of lines!

Your help will save me a tremendous amount of time and tedium each week!

"15 minutes invested one time (researching this in this forum), will save 
me 20 minutes thousands of times."

Thanks again!

I hope you're all able to see my thank you in this thread :-)

On Friday, October 29, 2021 at 9:48:55 AM UTC-5 wagsw...@gmail.com wrote:

> You replace the ^ + with ^\s+ which would handle both spaces and tabs if 
> there… ;)
>
> Wags ;)
> WagsWorld
> Hebrews 4:15
> Ph(primary) : 408-914-1341 <(408)%20914-1341>
> Ph(secondary): 408-761-7391 <(408)%20761-7391>
> On Oct 29, 2021, 04:03 -0700, Satomi Yoneki , wrote:
>
>
> I meant the number of the line, as in the numbers in the left hand column.
>
> Those numbers are Line Numbers.
>
> The lines typically look like this: "so, it was" Or, " so, it
> was"  Which is something else I'd like to have a Grep for:
> removing spaces at the beginning of all lines.
>
> Please try this.
> Find: "^ +", which will search for one or more space characters at the
> beginning of each line.
> Replace: "" (empty)
>
> If this does not delete spaces, maybe the text contains other invisible
> characters.
> You can select them and see what they are with Window > Palettes >
> Character Inspecter.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+un...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/95570f34-7dbe-f346-2bdf-86ed65dec6b8%40gmail.com
> .
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/72777678-eec2-4100-9072-104b74ce27d3n%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-29 Thread David G Wagner
You replace the ^ + with ^\s+ which would handle both spaces and tabs if there… 
;)

Wags ;)
WagsWorld
Hebrews 4:15
Ph(primary) : 408-914-1341
Ph(secondary): 408-761-7391
On Oct 29, 2021, 04:03 -0700, Satomi Yoneki , wrote:
>
> > I meant the number of the line, as in the numbers in the left hand column.
> Those numbers are Line Numbers.
> > The lines typically look like this: "so, it was" Or, " so, it
> > was"  Which is something else I'd like to have a Grep for:
> > removing spaces at the beginning of all lines.
> Please try this.
> Find: "^ +", which will search for one or more space characters at the
> beginning of each line.
> Replace: "" (empty)
>
> If this does not delete spaces, maybe the text contains other invisible
> characters.
> You can select them and see what they are with Window > Palettes >
> Character Inspecter.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> 
> ---
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/95570f34-7dbe-f346-2bdf-86ed65dec6b8%40gmail.com.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/bcc1c2a0-c660-4954-8047-0896d43f5a4c%40Spark.


Re: Need easy way to make first letter of each line upper case

2021-10-29 Thread Satomi Yoneki




I meant the number of the line, as in the numbers in the left hand column.

Those numbers are Line Numbers.
The lines typically look like this: "so, it was" Or, " so, it 
was"  Which is something else I'd like to have a Grep for: 
removing spaces at the beginning of all lines.

Please try this.
Find: "^ +", which will search for one or more space characters at the 
beginning of each line.

Replace: "" (empty)

If this does not delete spaces, maybe the text contains other invisible 
characters.
You can select them and see what they are with Window > Palettes > 
Character Inspecter.



--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/95570f34-7dbe-f346-2bdf-86ed65dec6b8%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-29 Thread Iain
If you open up the Find/Replace and use this grep in the find box:

^(\w)

and this replacement in the Replace box:

\U\1\E

and then you can do Replace All

If you want to include the start of sentences that may have spaces in front 
of them (like the classic indent for a paragraph), you can use:

^(\s*)(\w)

and:

\1\U\2\E

Hope that answers your question. As to terminology, I think you're right to 
use "line" where the editor would show a line number to the left in the 
gutter, and "sentence" for a line that corresponds to grammar, e.g. a 
starting capital letter all the way to a fullstop.

Regards,
iain

On Friday, 29 October 2021 at 08:01:59 UTC+9 Nosadge wrote:

> Hello,
>
> Does anyone know a command/script/grep to make sure the first letter of 
> every line is capitalized?
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/032fe24b-7e47-49eb-aa39-20cc1ba6365bn%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Hey Chris,

I meant the number of the line, as in the numbers in the left hand column.

The lines typically look like this: "so, it was" Or, " so, it was" 
 Which is something else I'd like to have a Grep for: removing spaces at 
the beginning of all lines.

My apologies for the misunderstanding.

On Thursday, October 28, 2021 at 10:51:58 PM UTC-5 listmei...@gmail.com 
wrote:

> On Oct 28, 2021, at 22:28, Nosadge  wrote:
>
>
> I'm defining lines as anything with a number infant of it.  I'm new to 
> this editor, and use it to edit transcripts, so my jargon will probably be 
> incorrect.
>
> --
>
> Hey Nosadge,
>
> Did you mean a number *in front* of the line?
>
> If so will the number always be at the beginning of the line, or might it 
> be indented?
>
> Will the number have punctuation?
>
> Can you provide an example that includes all the possibilities?
>
> Parsing text is pretty exacting.
>
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5c8dad0b-e18f-412d-ba86-30e2422e8692n%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Christopher Stone
> On Oct 28, 2021, at 22:28, Nosadge  > wrote:
> 
> I'm defining lines as anything with a number infant of it.  I'm new to this 
> editor, and use it to edit transcripts, so my jargon will probably be 
> incorrect.


Hey Nosadge,

Did you mean a number in front of the line?

If so will the number always be at the beginning of the line, or might it be 
indented?

Will the number have punctuation?

Can you provide an example that includes all the possibilities?

Parsing text is pretty exacting.


--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/472D7204-DFD9-4127-A3A2-CD6B3745D911%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Yep, found that out the hard way before posting my question here! :-D

Thanks for your reply, Tom!

On Thursday, October 28, 2021 at 9:15:11 PM UTC-5 Tom Robinson wrote:

>
> > On 2021-10-29, at 14:15, Satomi Yoneki  wrote:
> > 
> >> Does anyone know a command/script/grep to make sure the first letter of 
> every line is capitalized?
> > 
> > Have you tried Text > Change Case > Capitalize Lines ?
>
> That also converts any remaining uppercase in the line to lowercase.
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/ee56890c-9842-41ff-b7fb-0cd8f937abd9n%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Hey Fletcher,

Thanks so much!  I'll give that a shot tomorrow on my next project.  Thank 
you for the detailed explanation.

On Thursday, October 28, 2021 at 7:48:11 PM UTC-5 fletc...@cumuli.com wrote:

> Find "^(.)" and replace with "\U\1". Make sure Grep is checked in the 
> find/replace dialog. The ^ matches the start of a line so the . matches the 
> first character, surrounded by parentheses so we can refer to it in the 
> replacement pattern. The replacement uses \U to make it uppercase.
>
> [fletcher]
>
>
> On Oct 28, 2021, at 3:10 PM, Nosadge  wrote:
>
> Hello,
>
> Does anyone know a command/script/grep to make sure the first letter of 
> every line is capitalized?
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "sup...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/2ac9fbb2-20da-46d9-9b1d-8716fff9bdd1n%40googlegroups.com
>  
> 
> .
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/39f81c60-b7e4-4af0-bf78-75abe7b9a49cn%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Thank you, Satomi!

Yep, I tried that before posting my question here.  Like Tom said, it 
changed all my upper case sentences to lower case! :-0

On Thursday, October 28, 2021 at 8:27:30 PM UTC-5 satomi...@gmail.com wrote:

> Hello Nosadge,
>
> > Does anyone know a command/script/grep to make sure the first letter 
> > of every line is capitalized?
>
> Have you tried Text > Change Case > Capitalize Lines ?
>
> Regards,
> Satomi
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/8401122b-ed68-4955-98f0-ef605215251bn%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Hey Chris!

I'm defining lines as anything with a number infant of it.  I'm new to this 
editor, and use it to edit transcripts, so my jargon will probably be 
incorrect.

I'm going to try Fletcher's suggestion on my next project.

Thanks for your input, and for guiding me to the right place in the manual!

On Thursday, October 28, 2021 at 9:42:22 PM UTC-5 listmei...@gmail.com 
wrote:

> On Oct 28, 2021, at 17:10, Nosadge  wrote:
>
>
> Does anyone know a command/script/grep to make sure the first letter of 
> every line is capitalized?
>
> --
>
> Hey There,
>
> How are you defining lines?
>
> Line one.
> Line two.
> ...
>
> In that case Fletcher's regex works fine, although you might prefer to run 
> it from a script.
>
> --
>
> #!/usr/bin/env perl -sw
>
> while (<>) {
> s!^.!\U$&!;
> print;
> }
>
> --
>
> See the section on Text Filters in the BBEdit Manual, if you don't know 
> how to run one.
>
> ~/Library/Application Support/BBEdit/Text Filters/
>
> --
>
> Or did you mean sentences?
>
>
> --
> Best Regards,
> Chris
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/4e0d2105-2ed1-4ee0-841e-15d62b85378en%40googlegroups.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Christopher Stone
> On Oct 28, 2021, at 17:10, Nosadge  wrote:
> 
> Does anyone know a command/script/grep to make sure the first letter of every 
> line is capitalized?

Hey There,

How are you defining lines?

Line one.
Line two.
...

In that case Fletcher's regex works fine, although you might prefer to run it 
from a script.


#!/usr/bin/env perl -sw

while (<>) {
s!^.!\U$&!;
print;
}


See the section on Text Filters in the BBEdit Manual, if you don't know how to 
run one.

~/Library/Application Support/BBEdit/Text Filters/


Or did you mean sentences?


--
Best Regards,
Chris

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/00F0D581-AC42-4541-AA67-FAAEF96F237A%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Satomi Yoneki

Have you tried Text > Change Case > Capitalize Lines ?


That also converts any remaining uppercase in the line to lowercase.


Yes.  The usage of this command is limited, but it works for a certain case.


--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/b7823ba9-b915-b418-6f9c-ecd382471d8e%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Tom Robinson


> On 2021-10-29, at 14:15, Satomi Yoneki  wrote:
> 
>> Does anyone know a command/script/grep to make sure the first letter of 
>> every line is capitalized?
> 
> Have you tried Text > Change Case > Capitalize Lines ?

That also converts any remaining uppercase in the line to lowercase.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F53A90AD-B26C-4C3A-AD24-84DC22FF15B7%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Satomi Yoneki

Hello Nosadge,

Does anyone know a command/script/grep to make sure the first letter 
of every line is capitalized?


Have you tried Text > Change Case > Capitalize Lines ?

Regards,
Satomi

--
This is the BBEdit Talk public discussion group. If you have a feature request or need 
technical support, please email "supp...@barebones.com" rather than posting here. 
Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/f90c47a2-41c9-5457-24da-5279aefdba85%40gmail.com.


Re: Need easy way to make first letter of each line upper case

2021-10-28 Thread Fletcher Sandbeck
Find "^(.)" and replace with "\U\1". Make sure Grep is checked in the 
find/replace dialog. The ^ matches the start of a line so the . matches the 
first character, surrounded by parentheses so we can refer to it in the 
replacement pattern. The replacement uses \U to make it uppercase.

[fletcher]


> On Oct 28, 2021, at 3:10 PM, Nosadge  wrote:
> 
> Hello,
> 
> Does anyone know a command/script/grep to make sure the first letter of every 
> line is capitalized?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "supp...@barebones.com" 
> rather than posting here. Follow @bbedit on Twitter: 
> >
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to bbedit+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/2ac9fbb2-20da-46d9-9b1d-8716fff9bdd1n%40googlegroups.com
>  
> .

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/5BEE56AA-F01E-4DD2-B8BC-01C9A2FDC485%40cumuli.com.


Need easy way to make first letter of each line upper case

2021-10-28 Thread Nosadge
Hello,

Does anyone know a command/script/grep to make sure the first letter of 
every line is capitalized?

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2ac9fbb2-20da-46d9-9b1d-8716fff9bdd1n%40googlegroups.com.