Delete text up to next comma?
Thread poster: Dan Lucas

Dan Lucas  Identity Verified
United Kingdom
Local time: 09:04
Member (2014)
Japanese to English
Jan 12, 2015

I often find myself wanting to delete all the text up the next piece of punctuation, usually a comma. In a text editor such as Emacs you can easily zap everthing up to and including the comma with a keystroke. Is there some way to do this in SDL Studio 2014?

Thanks
Dan


Direct link Reply with quote
 

Michael Joseph Wdowiak Beijer  Identity Verified
United Kingdom
Local time: 09:04
Member (2009)
Dutch to English
+ ...
AHK? Jan 12, 2015

I somehow doubt this will ever be implemented in Studio.

How about a little AutoHotkey script?

We have something similar, which I use all the time, in CafeTran:
Delete to the end of segment (Ctrl+U):
Delete all text at the right-hand side of the text cursor, up to the segment end, leaving the closing end punctuation mark untouched
(http://cafetranhelp.com/the-edit-menu )

Michael

PS: Interesting, that "Delete text up to next comma" idea. To be honest, I'd never thought of it. Will have to give it some thought. Can you give us an example of when you'd be likely to use it? I'm intrigued.

[Edited at 2015-01-12 22:44 GMT]


Direct link Reply with quote
 

Dan Lucas  Identity Verified
United Kingdom
Local time: 09:04
Member (2014)
Japanese to English
TOPIC STARTER
Getting rid of cruft Jan 12, 2015

Michael Beijer wrote:
How about a little AutoHotkey script?
PS: Interesting, that "Delete text up to next comma" idea. To be honest, I'd never thought of it. Will have to give it some thought. Can you give us an example of when you'd be likely to use it? I'm intrigued.

Don't be - it's nothing exciting! I'm translating very taggy powerpoint files and to ensure that the tags don't get corrupted I have copied the target to source for all rows. Then I translate around the tags, which is limiting in many ways but I haven't found a good way round it yet.

Japanese word order is different to that of English, so I just pile in at the beginning of the phrase and type my translation, "pushing" the Japanese ahead of me (obviously in insert rather than overwrite mode).

When I have finished typing that phrase I usually want to delete the Japanese text that I pushed in front of me, but remember that Japanese doesn't use spaces. So instead of 4-5 ctrl and delete hits you have to tap the delete key maybe 20 times to get rid of the text.

Of course, if there's a handy tag then you can just delete all text between you and the tag, but frequently the text you want to keep is between the cursor and the tag so it gets deleted too. I have noticed that commas are often nicely positioned as Japanese has a comma equivalent that is used to demarcate phrases.

So if I could zap-to-comma that would be useful.

I've been thinking at AHK or a PowerPro script, but I've found both a bit laggy at times.

Dan


Direct link Reply with quote
 

Michael Joseph Wdowiak Beijer  Identity Verified
United Kingdom
Local time: 09:04
Member (2009)
Dutch to English
+ ...
Unicode 64-bit version of AHK? Jan 14, 2015

Hi Dan,

That's odd. I'm always amazed at just how fast AHK works. Which version are you running? I get mine from the new site @ http://ahkscript.org/download/ (I recommend the Unicode 64-bit version)

Incidentally, activity seems to have moved from the old http://www.autohotkey.com/ site to http://ahkscript.org/

Have you tried running those taggy powerpoint files though CafeTran? You might find that the tags are easier to deal with.

Michael

PS: just noticed that you do Japanese. maybe interesting: http://www.ab.auone-net.jp/~cafetran/


Direct link Reply with quote
 

Dan Lucas  Identity Verified
United Kingdom
Local time: 09:04
Member (2014)
Japanese to English
TOPIC STARTER
Under the gun right now... Jan 14, 2015

Michael Beijer wrote:
That's odd. I'm always amazed at just how fast AHK works. Which version are you running? I get mine from the new site @ http://ahkscript.org/download/ (I recommend the Unicode 64-bit version)
...
PS: just noticed that you do Japanese. maybe interesting: http://www.ab.auone-net.jp/~cafetran/

...but will check out your kind recommendations once I have a spare day or two.

Dan


Direct link Reply with quote
 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Delete text up to next comma?

Advanced search







WordFinder
The words you want Anywhere, Anytime

WordFinder is the market's fastest and easiest way of finding the right word, term, translation or synonym in one or more dictionaries. In our assortment you can choose among more than 120 dictionaries in 15 languages from leading publishers.

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search