Hi Paul,
How do I add this to the function you send in your reply on my previous SRT question? On Mon, Apr 14, 2014 at 11:56 AM, Paul Isambert <zappathustra@free.fr> wrote:
Le lundi 14 avril 2014 10:58:19 UTC+2, Jeri Raye a écrit :
This time it's quite easy:> Hi,
>
> I have an SRT file that have dialog sentences that sometimes ends halve way with a dot.
> And then a next sensentence starts.
> This text doesn't start then with a uppercase character, but with a lower case letter.
>
>
> For example:
> I want to tell you this. and also this.
>
> How to change this into:
> I want to tell you this. And also this.
>
>
> It's basicly search for "<one or more character and spaces ending with chars>. <lower char>"
>
> I played with getline and toupper() in an function call, but got lost.
:%s/\.\_s\+\zs[a-z]/\=toupper(submatch(0))/g
Use the "g" flag iff "gdefault" is off. If you want to target other
punctuation marks:
:%s/[.?!]\_s\+\zs[a-z]/\=toupper(submatch(0))/g
Best,
Paul
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment