Raised This Month: $32 Target: $400
 8% 

[ANY] RTLer - Support for Right-to-Left Languages


Post New Thread Reply   
 
Thread Tools Display Modes
Author
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Plugin ID:
2804
Plugin Version:
1.0.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
7 
Plugin Description:
In-game chat support for RTL languages.
Old 02-13-2012 , 15:14   [ANY] RTLer - Support for Right-to-Left Languages
Reply With Quote #1

RTLer

Provides in-game chat support for Right-to-Left languages, such as Hebrew and Arabic.



Note: This plugin uses the Simple Chat Processor (Redux) plugin to manipulate chat, and it is required.

Change Log

1.0.5 (16 June 2012)
  • Added a cvar for the minimum percent of RTL letters in a word for the word's direction to be considered right to left in a statistical analysis.
  • Set the value of the minimum cvar to be 10% instead of the previous hard-coded 70%. This should fix some formatting issues.
1.0.4 (10 June 2012)
  • Fixed some formatting issues reported by FudgePoly and shavit.
  • Fixed API RTLifying left-to-right words (so my version of basechat.smx should work now as expected).
  • Better Counter-Strike: Global Offensive support.
  • Changed Updater URL, so you need to update manually.
1.0.3 (24 February 2012)
  • Added support for Updater.
  • Using statistical analysis now to test word rtl-ness, instead of just checking the first letter (fixes some formatting issues).
1.0.2 (23 February 2012)
  • Added a cvar for flag-based chat correction restriction.
  • See post #17 for admin chat support.
1.0.1 (17 February 2012)
  • Added developers' API.
  • Added support for almost any Right-to-Left language.
1.0.0 (13 February 2012)
  • Initial Release
Attached Files
File Type: inc rtler.inc (732 Bytes, 1642 views)
File Type: smx rtler.smx (6.3 KB, 1972 views)
File Type: sp Get Plugin or Get Source (rtler.sp - 1255 views - 3.9 KB)
__________________

Last edited by alongub; 03-26-2013 at 16:05.
alongub is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 02-13-2012 , 15:52   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #2

Developers' API

Code:
/**
 * Converts a string that contains words in RTL languages to be displayed correctly in-game.
 *
 * @param dest 			Destination string buffer to copy the RTL-ed string to.
 * @param destLen		Destination buffer length (includes null terminator).
 * @param original		Original non-rtled string. 
 *
 * @return The amount of words that needed RTLifying.
 */
native RTLify(String:dest[], destLen, const String:original[]);
Example plugin:

Code:
#pragma semicolon 1

#include <sourcemod>
#include <rtler>

public OnPluginStart()
{
	AddCommandListener(OnRTLifyCommand, "rtlify");
}

public Action:OnRTLifyCommand(client, const String:command[], argc)
{
	new String:arg[192];
	GetCmdArgString(arg, sizeof(arg));

	new len = strlen(arg);

	decl String:dest[len];
	RTLify(dest, len, arg);

	PrintToChat(client, dest);
	return Plugin_Handled;
}

Last edited by alongub; 02-17-2012 at 16:08.
alongub is offline
molotov343
Junior Member
Join Date: Apr 2011
Old 02-13-2012 , 16:06   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #3

nice mod!!
molotov343 is offline
DorCoMaNdO
Senior Member
Join Date: Feb 2012
Old 02-13-2012 , 16:16   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #4

I was looking for this today ^^
DorCoMaNdO is offline
EGood
Member
Join Date: Feb 2011
Location: Israel
Old 02-14-2012 , 09:07   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #5

thanks nice mod ..
EGood is offline
iDragon
Member
Join Date: Aug 2010
Old 02-17-2012 , 12:13   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #6

Thanks.
__________________
Sorry for my bad english.

Last edited by iDragon; 02-17-2012 at 12:15.
iDragon is offline
FudgePoly
Senior Member
Join Date: Jul 2011
Old 02-17-2012 , 12:39   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #7

Works nicely, thank you!

Feature request: restrict chat correction only for people who have the reservation flag (via cvar).

Last edited by FudgePoly; 02-17-2012 at 16:09.
FudgePoly is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 02-17-2012 , 16:07   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #8

1.0.1 (17 February 2012)
  • Added developers' API
  • Added support for almost any Right-to-Left language.
I'm also looking for creative ways to integrate this automatically into SM translations system. If you have any idea, please post it :-)

Last edited by alongub; 02-17-2012 at 16:21.
alongub is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 02-17-2012 , 16:20   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #9

Quote:
Originally Posted by FudgePoly View Post
Feature request: restrict chat correction only for people who have the reservation flag (via cvar).
Will add this in the next version.
alongub is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 02-19-2012 , 00:07   Re: The RTLer - Chat support for Hebrew and Arabic
Reply With Quote #10

WOWWWW
searched that for half year! even when i had a simple srcds at home! thank you alon!
__________________
retired
shavit 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 08:20.


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