HtmlEditor :  Phorum 5 The fastest message board... ever.

This is the discussion forum for the HtmlEditor. See also the HtmlEditor home page, where you can download the control, and the Documentation Wiki, a collaborative project for documenting the control.

Goto Thread: PreviousNext
Goto: Forum ListMessage ListNew TopicSearchLog In
customization for urdu language
Posted by: shashi kant jha (---.beesys.com)
Date: Wednesday, 30-Mar-2005, 16:01:36

i want to use editor for urdu language.because we write urdu ,from right to left

so how can customize editor for urdu.

i mean, i want to write text from rigth to left in editor.by default it supports

left to right typing.

If anyone have any idea, pls reply me

thanks in advance

shashi (Beehive System)

Re: customization for urdu language
Posted by: Tim (---.gotadsl.co.uk)
Date: Wednesday, 30-Mar-2005, 16:42:20

Interesting question. Here's the result of a quick search:

1. There is reference in Microsoft's docs to support for right-to-left editing, but I can't find much on how you are meant to implement it. The suggestion is that if you are typing using a right-to-left character set, that the text direction will switch automatically. Might be worth a try.

2. There are also some command identifiers, which are documented as "not implemented", but which do seem to have some effect. For example, try adding this to HtmlEditor.cs:

public bool RtoL()
{
return this.execCommand(ComSupport.IDM_DIRRTL,null,false,true);
}

Now put the HtmlEditor into edit mode in an application and call RtoL. I now find that all text is right-aligned, and while typing is not true right-to-left, the caret does occasionally pop to where it should be for right-to-left typing - but that might be because I'm using a left-to-right character set.

If you work all this out, please document it in the documentation wiki.

Tim



Post Edited (03-30-05 16:49)

Re: customization for urdu language
Posted by: shashi kant jha (---.beesys.com)
Date: Thursday, 31-Mar-2005, 13:43:28

hi tim,

thanks , i have done it , but typing is not true right to left.caret postion
does not move with typing.
you told me about left- to- right character set, are you using it ,
anywhere in code. i have installed urdu font ,i think it supports right
to left character set.
i am trying continue to do this,but not getting fruitful result.
Is there regional setting of language plays any role.

shashi

Re: customization for urdu language
Posted by: Tim (---.gotadsl.co.uk)
Date: Thursday, 31-Mar-2005, 14:35:48

I've never needed this so don't know much about it unfortunately. Does right-to-left work in Notepad? In any application?

Tim

Re: customization for urdu language
Posted by: shashi kant jha (---.beesys.com)
Date: Friday, 01-Apr-2005, 13:53:05

hi tim,

i have done it completely, now it is working properly.
actully with method calling , we have to also set regional
setting for that language.

i have added ,it's doc. in Documentation wikki.

shashi

Re: customization for urdu language
Posted by: Tim (---.gotadsl.co.uk)
Date: Friday, 01-Apr-2005, 14:07:51

I'm glad its working OK.

I've moved your notes to a separate page in the wiki.

Tim

Re: customization for urdu language
Posted by: Amit Chaturvedi (63.81.242.---)
Date: Monday, 01-Aug-2005, 11:40:24

For this Use one attribute of body tag in Html that start ur text from right side of ur editor.

Re: customization for urdu language
Posted by: Amit Chaturvedi (63.81.242.---)
Date: Monday, 01-Aug-2005, 12:14:27

For this Use one attribute dir="rtl" - Right to left of body tag in Html that start ur text from right side of ur editor. But the main problem will still there that u can not type word from right to left because html does not support this functionality.

Re: customization for urdu language
Posted by: Inam (---.isb.dancom.net.pk)
Date: Monday, 28-Aug-2006, 16:48:30

hey shashi how r u?
Man i also want to implement an urdu editor can you please guide me how to do it?
can you send me the code please
waiting for your response
thanx
inamgull@gmai.com

Re: customization for urdu language
Posted by: Inam (---.dsl.net.pk)
Date: Wednesday, 06-Sep-2006, 07:00:29

shashi i am waiting for your Reply
inamgull@gmail.com



Your Name: 
Your Email: 
Subject: 
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically.
PDLmH
This is a moderated forum. Your message will remain hidden until it has been approved by a moderator or administrator
This forum powered by Phorum.