[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Right-to-left option for world
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Right-to-left option for world

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Virgoir   (10 posts)  [Biography] bio
Date Sat 14 Jan 2012 09:43 AM (UTC)

Amended on Sat 14 Jan 2012 09:55 AM (UTC) by Virgoir

Message
Hi Nick,

I want to write a client for my server (Custom Smaug with UTF8 language support), but I think that if you can add a option to your program (MushClient), it's better for me and other users that want to work with RTL languages.

This option just show everything in Right-to-Left view.

Is it possible?

if you need more information I can explain more it for you.

Thanks in advanced
Sadegh
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 14 Jan 2012 07:02 PM (UTC)
Message
The output window has a custom drawing routine. I suppose it is possible, basically I would start drawing on the right, and move left.

How about the input (command) window? Does that come out the right way around for you? (right to left).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Virgoir   (10 posts)  [Biography] bio
Date Reply #2 on Sun 15 Jan 2012 11:52 AM (UTC)
Message

Just please according to it the Right-to-Left Texts have difference with Right Aligned Texts. I means direction of text not alignment.

The command window not need to change the direction, just I think that the command window not support the Unicode I must check it and I will inform you.

Thanks in advanced
[Go to top] top

Posted by Virgoir   (10 posts)  [Biography] bio
Date Reply #3 on Sat 31 Mar 2012 09:45 PM (UTC)
Message
Hi Nick,

what about Right-to-Left support in MUSHClient?

Putty (Open source) is a nice program that support full unicode encoding and each line that have unicode char shows in Right-to-Left direction.

It's very good for me but I need more of a telnet/ssh terminal program for my mud game.

Thanks
Virgoir
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Sat 31 Mar 2012 10:07 PM (UTC)
Message
It would take a substantial amount of work. Apart from the issue of displaying the text (that might not be too bad) there is also the issue of selecting it (ie. click ... drag) where currently it works out the character under the cursor by starting at the left and counting up. Now you would start at the right and count down.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #5 on Sun 01 Apr 2012 12:22 AM (UTC)
Message
Nick Gammon said:
Apart from the issue of displaying the text (that might not be too bad) there is also the issue of selecting it (ie. click ... drag) where currently it works out the character under the cursor by starting at the left and counting up. Now you would start at the right and count down.

That sort of change sounds somewhat trivial, like a multiplier that is either 1 or -1.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Worstje   Netherlands  (899 posts)  [Biography] bio
Date Reply #6 on Sun 15 Apr 2012 12:26 AM (UTC)
Message
Eh, UTF-8 and RTL scripts are generally not a matter of simple characters. Very often they are combinations of several code points (think latin e versus latin e grave), so simply counting bytes wouldn't work anymore.

When you combine it with stuff like colourcodes, text selection and ANSI processing, it becomes quite a hairy beast where it is easy to introduce a new error. Sadly MUSHclient was never written with all of this stuff in mind, so it is all but trivial for Nick to implement. (Then again, he already said most of this.)

Even more interesting is that Unicode supports changing the reading direction inline, so one line can contain RTL and LTR. On a MUSHclient level, you'd also want to consider how LTR and RTL appear when you are to alternate them per line.

Impossible? No. But to simply get drawing plain RTL scripts right already takes rocket science. MU* and Telnet semantics, nevermind proper scripting support.. those will make it hell to implement, because once a little support goes in, people will expect full support. 'Scenario mixed text' doesn't work would otherwise become an often-heard complaint. Ergo.. it takes careful planning and understanding of the subject.

(Yes, two weeks old topic. I don't care. I wanted to put stuff in perspective a little since the complexity didn't seem to come across to at least Fiendish.)
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


4,580 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]