Hossein-jenabi / Farsi-Arabic-Text-for-Blender

Farsi-Arabic Text Add_ons for Blender
2 stars 0 forks source link

Issue With Letter ی #1

Closed navidrajil closed 5 hours ago

navidrajil commented 5 hours ago

Hello,

Thank you for the extension. I used it and found three issues.

One, in the instruction, step 7 should be Ctrl + F1. Two, the letter ی does not connect to letters to its left. So, a word like سیب is typed in as سی‌ب. Any idea how to fix it? Three, other Farsi fonts seem to have the same issue. I had Sahel and tried it.

I appreciate your guidance in solving this issue.

navidrajil commented 5 hours ago

Solved. Replace the chars_variants_bases with the following:

chars_variants_bases = [0xFE8D, 0xFE83, 0xFE87, 0xFE81, 0xFE80, 0xFE8F, 0xFB56, 0xFE95, 0xFE99, 0xFE9D, 0xFB7A,

                        0xFEA1, 0xFEA5, 0xFEA9, 0xFEAB, 0xFEAD, 0xFEAF, 0xFB8A, 0xFEB1, 0xFEB5, 0xFEB9,

                        0xFEBD, 0xFEC1, 0xFEC5, 0xFEC9, 0xFECD, 0xFED1, 0xFED5, 0xFED9, 0xFB8E, 0xFB92, 0xFEDD,

                        0xFEE1, 0xFEE5, 0xFEE9, 0xFE93, 0xFEED, 0xFE85, 0xFEEF, 0xFEF1, 0xFE89]

basically, I swapped unicodes of ی and ي.