Problem in Farsi(persian) font

Problem in Farsi(persian) font

neam
Collaborator Collaborator
9,412 Views
7 Replies
Message 1 of 8

Problem in Farsi(persian) font

neam
Collaborator
Collaborator

Hi everyone:

After 2013, when we edit the persian text, the "%%160" character becomes a space.

It is enough to select the text even if we do not make any changes and exit the edit command with ESC.

I tried to fix it with lisp, but the problem is that it converts all spaces to "%%160".

What is the problem?

 

0 Likes
Accepted solutions (1)
9,413 Views
7 Replies
Replies (7)
Message 2 of 8

Moshe-A
Mentor
Mentor

@neam  hi,

 

change this => (setq str (vl-string-subst "%%160" (chr 32) ll3))

to => (setq str (vl-string-subst (chr 32) "%%160" ll3))

 

enjoy

Moshe

 

0 Likes
Message 3 of 8

neam
Collaborator
Collaborator

Dear Moshe-A:

thank you for attention.

No change was made.

0 Likes
Message 4 of 8

komondormrex
Mentor
Mentor

hey there,

it seems that somehow autocad gives priority to the non-breakable space, which has 160 number over the noon letter in text. and thus the problem could not be solved by whichever lisp, imho, unless the font file nakshd.shx is recompiled with moving the noon letter to another free number or making the font unicode. however it works fine when it is entered in mtext via Ctrl-Shift-Space. 

0 Likes
Message 5 of 8

neam
Collaborator
Collaborator

dear komondormrex

How to compile naskhd.shx?

0 Likes
Message 6 of 8

pendean
Community Legend
Community Legend

@neam wrote:

dear komondormrex

How to compile naskhd.shx?


You need the source SHP code file to do that.

Message 7 of 8

neam
Collaborator
Collaborator

The main question is this
Why:

After 2013, when we edit the persian text, the "%%160" character becomes a space.

0 Likes
Message 8 of 8

pendean
Community Legend
Community Legend
Accepted solution

@neam wrote:

...After 2013, when we edit the persian text, the "%%160" character becomes a space.


It's the year 2024 now, so no one here is going to be able sot answer that today. PLUS no one here is Autodesk, we are all end users just like you.

 

HTH