hi i found another bug !
when copy arabic text 1 charecter is going to missing !
i think this method do that:
-(NSString *)GetSelString
{
if( m_index1 < 0 || m_index2 < 0 || !m_ok ) return NULL;
int txt_len = Page_objsGetCharCount(m_page) + 1;
char *txt = (char *)malloc( txt_len * 2 );
int len = Page_objsGetString(m_page, m_index1, m_index2, txt, txt_len );
NSString *ret = [[NSString alloc] initWithUTF8String:txt];
free( txt );
return ret;
}