Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ئ character does not translate from inpage to unicode #1

Closed
naveednajam opened this issue May 22, 2020 · 3 comments
Closed

ئ character does not translate from inpage to unicode #1

naveednajam opened this issue May 22, 2020 · 3 comments

Comments

@naveednajam
Copy link

Hi it's a great code and working almost correctly. Only Issue I found is somehow it is unable to translate ئ from inpage character 04£

@umer0586
Copy link
Owner

Hi it's a great code and working almost correctly. Only Issue I found is somehow it is unable to translate ئ from inpage character 04£

The letter your referring is Hamzah in Urdu Script. Hamzah is written in both ways like ئ and ء but only ء could appear separately not ئ
In Urdu we write Dua as دعاء not دعائ, its because script ئ is always used in combination with other letters like in the word کوئی where third character is ئ (Hamzah) , we don't write it as کوءی.
So if someone write ئ as a single separate letter in Urdu text it would be a typing mistake and a given code will eventually maps ئ to ء

@naveednajam
Copy link
Author

Yes, you are right and I understand this. But what I noticed is the letters ئی in inpage are written as Hamzah followed by Yeh which is ءی as these are two characters so your script translate them as it is rather than translating to ئی and in this case word کوئی from inpage translates into unicode as کوءی. I noticed this because script only consider two bytes as a single character but this is similar to "آ" which is 3 bytes character. I am not sure if this case is only with my system and inpage version or same everywhere.

@umer0586
Copy link
Owner

umer0586 commented May 29, 2020

Yes, you are right and I understand this. But what I noticed is the letters ئی in inpage are written as Hamzah followed by Yeh which is ءی as these are two characters so your script translate them as it is rather than translating to ئی and in this case word کوئی from inpage translates into unicode as کوءی. I noticed this because script only consider two bytes as a single character but this is similar to "آ" which is 3 bytes character. I am not sure if this case is only with my system and inpage version or same everywhere.

Okay i got your point، this is surely the bug in code. I'll recheck the code to fix this issue

Thanks for pointing out problem

@umer0586 umer0586 pinned this issue Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants