[Tshwanelex-l] any way to automatically delete all empty nodes in entries?

Michael Beijer michael at beijer.uk
Fri Nov 20 09:59:58 EST 2015


Thanks for the info Malcolm!

Michael

******************************************************

*MICHAEL BEIJER*Dutch-English translator
Hastings, UK.
Tel. +44 (0)1424 430250
Mob. +44 (0)747 5771720
Email: michael at beijer.uk
Skype/Twitter: michaelbeijer <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_michaelbeijer&d=AwIFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=ItmfqAWTMB_JGE6gPDIzr-HMYQqD-gooWwP1iBQ5uS8&m=InmW6h-3LziHctHz_53rqdp5j9iUcEnZn1-BqjhE8Ho&s=pF2evRYFe1rD8mSvwFt23x3mvzd5SSDitQxEFhTX4BM&e= >
Beijer.uk <https://urldefense.proofpoint.com/v2/url?u=http-3A__beijer.uk_&d=AwIFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=ItmfqAWTMB_JGE6gPDIzr-HMYQqD-gooWwP1iBQ5uS8&m=InmW6h-3LziHctHz_53rqdp5j9iUcEnZn1-BqjhE8Ho&s=FB4plBIpdH9HqOQcK9iks3z_psuP1_kttx1kWM3HtyE&e= > (translation/terminology work)
******************************************************

On Fri, Nov 20, 2015 at 8:42 AM, Malcolm MacLeod <
malcolm.macleod at tshwanedje.com> wrote:

> In the latest versions of the software you can also do.
>
> 1) Filter for the empty nodes
> 2) Click the advanced button in the filters
> 3) Filter element actions
> 4) Delete all matching nodes
>
> As in previous advice make sure to backup before doing this just in case.
>
> - Malcolm
>
> Yes, you can do this with Search & Replace Tool (Search across entry as
> XML). You have to mark Regular expressions.
> Type in the search field:
> <(Lang1|Lang2)[^>]+?Term=""[^>]+?></(Lang1|Lang2)>
> where Lang1 and Lang2 are languages of your termbase, e.g.
> (English|German).
> Leave Replace field empty and click Replace all.
>
> Optionally you can filter all entries with empty nodes (F5), and choose
> additional option Use filters in S&R (this should make replacement faster)
> This should work. Remember to backup your work before doing this.
>
> Paweł
>
>
> 2015-11-18 21:20 GMT+01:00 Michael Beijer <michael at beijer.uk>:
>
> Is there any way to automatically delete all empty nodes in an entry?
>
> After importing a CSV file, a bunch of empty nodes were added, which
> messed up the display of my dictionary somewhat. I can delete them all
> manually (in Tree View: right-click and select "Delete", or "Delete node
> only"), but was wondering if there is a way to do it automatically.
>
> I can find (and then tag) all entries with empty nodes via F3 search
> for: ^$
> Just need to know how I can delete only the empty nodes.
>
> Michael
>
> ******************************************************
>
> *MICHAEL BEIJER*Dutch-English translator
> Hastings, UK.
> Tel. +44 (0)1424 430250
> Mob. +44 (0)747 5771720
> Email: michael at beijer.uk
> Skype/Twitter: michaelbeijer
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_michaelbeijer&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=ItmfqAWTMB_JGE6gPDIzr-HMYQqD-gooWwP1iBQ5uS8&m=ltkB8JhJySAduZBG6LPLxjUvQHN0Lx1FdeppUf3iR7U&s=PZ58EpriLikRLs7z3PnzyCO3ocCDVBuY65b-tN2p69U&e=>
> Beijer.uk
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__beijer.uk_&d=AwMFaQ&c=-dg2m7zWuuDZ0MUcV7Sdqw&r=ItmfqAWTMB_JGE6gPDIzr-HMYQqD-gooWwP1iBQ5uS8&m=ltkB8JhJySAduZBG6LPLxjUvQHN0Lx1FdeppUf3iR7U&s=XrlzQJ1sk0u_jcbTYkXSCBEz2J5_F7w1uHh4hbcVy5A&e=>
> (translation/terminology work)
> ******************************************************
>
> *<This email was dictated using Dragon Professional 14. Please excuse any
> typos!>*
> _______________________________________________
> Tshwanelex-l mailing list
> Tshwanelex-l at mailman.yale.edu
> http://mailman.yale.edu/mailman/listinfo/tshwanelex-l
>
>
> _______________________________________________
> Tshwanelex-l mailing listTshwanelex-l at mailman.yale.eduhttp://mailman.yale.edu/mailman/listinfo/tshwanelex-l
>
>

-- 
*<This email was dictated using Dragon Professional 14. Please excuse any 
typos!>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.yale.edu/pipermail/tshwanelex-l/attachments/20151120/0170248b/attachment-0001.html 


More information about the Tshwanelex-l mailing list