Raised This Month: $ Target: $400
 0% 

[batch] Compress Russian strings (transliteration)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spumer
Senior Member
Join Date: Aug 2011
Old 02-23-2020 , 13:31   Re: [batch] Compress Russian strings (transliteration)
Reply With Quote #1

Quote:
Originally Posted by Dragokas View Post
Like, cut original nick "Nice Assistant" to "Nice Ass" ? DD
No. It depends.
Where you want to preserve original word completely without any cutting, it is a case.

There are lot of use cases. Upcoming examples:
- translation in panel: https://forums.alliedmods.net/showpo...5&postcount=22
- Name changer for bad names: https://github.com/Exle/Auto-Name-Changer
(I'm often fill new names for replacement that exceed the limit. Since I usually create > 20 options it is a lot of text to replace it manually)
- or even if you want to create nickname for yourself that contains russian letters that exceed maximum string size allowed in total.
Yes, cause you can't compress this nickname cause it have only english symbols.

I mean i actually don't see big problem in cutting, cause in 80% of cases buffer size is big enough.
I knew only one case where i needed smart cutting - vscripting. Buf size for vscript menus is 128 bytes.
For that cases i just wrote algorithm which cut long names and replace ending with dots (...)
__________________
spumer is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode