It is currently March 28th, 2024, 2:32 pm



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Remove Emojis / Smileys From Filename.
PostPosted: January 6th, 2021, 8:21 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Hi.

Is it possible to have TC remove these kinds of emojis from filenames before processing covers/previews/filehostupload

πŸ’¦πŸ¦ΆπŸŽ₯😈

There are 100Β΄s of them in some filenames so making a replacement for each and every one is just not happening.

Maybe there is 1 way for TC to remove them ?


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove Emojis/Smileys From Filename
PostPosted: January 7th, 2021, 2:30 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Try to add this replacement under "Subject" tab with "Apply to" selected as "Filename":

Search for:
Code:
[^\p{L}\p{M}\p{N}\p{P}\p{Z}\p{Cf}\p{Cs}\s=]


Replace with:
Code:
(leave empty)


Enable regex search.

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove Emojis / Smileys From Filename.
PostPosted: March 6th, 2021, 7:46 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
Hi Freddy.

this works well for the uploaded file.

Is there also a way to remove all this from the final message?

I tried adding the above string to Message Replacements and apply to ALL but that dont work without problems.


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove Emojis / Smileys From Filename.
PostPosted: March 6th, 2021, 8:18 pm 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
What problems does it make exactly?

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove Emojis / Smileys From Filename.
PostPosted: March 6th, 2021, 8:44 pm 

Joined: November 23rd, 2014, 6:31 am
Posts: 276
it removes the char = so when i have [url= it messes up the cover - and anywhere else that uses = in my code.

other than that - it does remove the emojis from the message where the filename is used.


Top
 Profile  
Reply with quote  
 Post subject: Re: Remove Emojis / Smileys From Filename.
PostPosted: March 7th, 2021, 7:01 am 
Site Admin
User avatar

Joined: March 10th, 2011, 11:14 pm
Posts: 12629
Location: Earth
Just add the "=" sign in the replacement.

Search for:
Code:
[^\p{L}\p{M}\p{N}\p{P}\p{Z}\p{Cf}\p{Cs}\s=]


Replace with:
Code:
(leave empty)


Enable regex search.

I have updated it in my previous post as well.

Make sure to update it (not add another one).

_________________
themaPoster | themaCreator | themaManager | themaLeecher | themaRegister


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Theme designed by stylerbb.net © 2008
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All times are UTC