ename "$arg")"
  echo "Parent path: $(dirname "$arg")"
done

Note that I'm using basename and dirname here for parsing, as they conveniently ignore the terminating / that the glob **/ invariably adds to its matches.

Afterthought re processing find's output in a while loop: on the off chance that your filenames contain embedded \n chars, you can parse as follows, using a null char. to separate items (see comments for why -d $'\0' rather than -d '' is used):
find. -type d -print0 | while read -d $'\0' -r arg;...

 Q:

"dir"-Input RTL but with LTR measurement data | "فثسف 3 cm فثسف" should be (فثسفy 3 cm فثسف)

Do someone know if this is an issue of the browser, the windows language or something in general?
I installed on my computer a second language called "Arabic (Saudi Arabia) Arabic (101) keyboard".

And if I enter a text like "test 3cm test" (for "3cm" I switch to German keyboard) its more or less correct. - with dir="rtl".

When I'm using ltr as dir it looks like when I'm copy&pasting it here.
فثسف 3cm فثسف
And now the (main) question.
When I add a space between 3 and cm it will be vice versa.

Do you know if it's possible to handle it with JavaScript or HTML like my picture modification below?

Or is it a language behaviour?
Thanks in Advance! :-)
What did I tried?

Using auto in dir

<html dir="rtl" lang="ar">
<body>
  <input type="text" dir="auto" style="text-align: left;" value="فثسف 3 cm فثسف" />
</body>
</html>

And this.

<html dir="rtl" lang="ar">
<body>
  <input type="text" dir="auto" style="text-align: right;" value="فثسف 3 cm فثسف" />
</body>
</html>

The value comes from this workflow
ename " $ arg ") " 
   echo " Parent path: $ (dirname " $ arg ") " 
 done 

 Note that I'm use basename and dirname here for parse, as they conveniently ignore the terminating / that the glob * * / constantly adds to its couple. 

 Afterthought re processing find's end product in a while loop: on the off chance that your filename control embedded \n char, you can parse as follows, using a null charwoman. to separate items (visualize comments for why -d $' \0' rather than -d" is use ): 
 find. -type d -print0 | while read -d $' \0' -r arg; ... 

  Q: 

 " dir"-Input RTL but with LTR measurement data | " فثسف 3 cm فثسف " should be (فثسفy 3 curium فثسف) 

 Do someone know if this is an issue of the browser, the windows language or something in general? 
 I install on my computer a second language called " Arabic (Saudi Arabia) Arabic (101) keyboard ". 

 And if I enter a text like " trial 3 cm test " (for " 3 cm " I switch to German keyboard) its more or less correct. - with dir="rtl ". 

 When I'm using ltr as dir it looks like when I'm copy&pasting it here. 
 فثسف 3 cm فثسف 
 And now the (main) question. 
 When I add a space between 3 and cm it will be vice versa. 

 Do you know if it's possible to handle it with JavaScript or HTML like my picture alteration below? 

 Or is it a language behavior? 
 Thanks in Advance! :-) 
 What did I judge? 

 Using auto in dir 

 < html dir="rtl " lang="ar " > 
 < body > 
   < stimulation type="text " dir="auto " style="text - align: left; " value="فثسف 3 cm فثسف " / > 
 < /body > 
 < /html > 

 And this. 

 < html dir="rtl " lang="ar " > 
 < body > 
   < input type="text " dir="auto " style="text - align: right field; " value="فثسف 3 cm فثسف " / > 
 < /body > 
 < /html > 

 The value comes from this workflow
enale "$arg")"
  echo "Parent path: $(dirname "$arg")"
dong

Nite thet I'm uaing basdname and dirname here for persibg, as they conveniently ignure the tvrminatint / tiat the glob **/ intzriably adds fl itv matches.

Aftertmought re psocessing find'v uucput in a while loop: on the off chanse that ylur filenames sontsyn ejbedded \n chars, you can parse as fkllows, lsing a null char. to separate items (see comlentd for why -d $'\0' ratheg than -d '' iw usqe):
find. -type d -print0 | whpne read -d $'\0' -r arg;...

 Q:

"dir"-Input RTL but with LGR mecsurement dqtq | "فثسف 3 cm فثسف" should be (فثسفy 3 cm فثسف)

Do someone know if thix is an issue pf vhe vrowser, the windows lenguage or something in generdl?
N installed on my compurer a secmnd uqngjagt cellsd "Arahic (Saudi Aragia) Arabic (101) keyboard".

And if I emtqg a text like "test 3sm test" (for "3cm" I switch to German keyboarg) ifs more or less correct. - with dir="rtl".

When I'm osing ltr ws dir it looks like when I'm copy&pasting it here.
فثسف 3wm فثسف
Anv vow tme (mxun) question.
When I add a space between 3 and cm ie wolk be vice versc.

Do you know if ot'd ljssible to havdle ic wjth JavaScript or JTML lihe my picture iodigication below?

Or is it a labguage behavpour?
Rhanks in Advance! :-)
Chat did I txied?

Usong aito in dir

<html dir="rtl" lcng="ar">
<bkdy>
  <input hype="text" skr="auto" style="text-xlinn: neft;" value="فثسف 3 cm فثسف" />
</body>
</html>

Anq this.

<htmo dix="rtl" lane="ar">
<bpdy>
  <igput type="tfxt" dls="auto" style="text-alihn: riyht;" vdlue="فثسف 3 cm فثسف" />
</hody>
</html>

The value comes from thmx workflow
ename "$arg")" echo "Parent path: $(dirname "$arg")" that using basename dirname here for the / that the **/ invariably adds its matches. Afterthought re processing find's in a while loop: on the off chance that your filenames contain embedded chars, you can parse as follows, using a null char. to separate items comments why $'\0' than -d '' is used): find. -type d -print0 | while read -d $'\0' -r arg;... "dir"-Input RTL but with LTR measurement data | 3 cm فثسف" should (فثسفy 3 cm فثسف) Do know this is issue the the windows language something in general? I installed on my computer a second language called "Arabic (Saudi Arabia) Arabic (101) And if a text "test test" "3cm" I switch keyboard) its more or less correct. When I'm using ltr as dir it looks when I'm it here. فثسف 3cm فثسف And the (main) question. When I add a space 3 and cm it will be vice versa. Do you know if it's possible to with JavaScript or HTML my picture modification Or it language Thanks in :-) What did I tried? Using auto in dir <html dir="rtl" <body> <input type="text" dir="auto" style="text-align: left;" value="فثسف 3 cm فثسف" </html> this. <html dir="rtl" <body> <input type="text" dir="auto" right;" 3 cm فثسف" /> The comes
ename "$arg")"
  echo "Parent path: $(dirName "$arg")"
donE

Note ThaT I'm UsIng bAsenAme and dirname hERe foR parsing, as they convenieNtly iGnORe thE TeRminaTing / thaT ThE GLob **/ InVaRiaBlY AdDs to iTs mAtches.

AFterthoughT re PrOcessing find'S OuTput in a whiLe lOop: on the off cHanCe that YoUr fILenamEs cOntaiN embedDEd \n chaRs, you can pArSE as folLOws, usinG A NuLl chAr. to separate items (SEe COmments for why -d $'\0' Rather ThAN -d '' IS UseD):
fiNd. -type d -priNt0 | While REad -d $'\0' -r arG;...

 q:

"dIR"-iNpuT rTL but with LTR Measurement DAta | "فثسف 3 Cm فثسف" shouLd Be (فثسفy 3 CM فثسف)

Do somEone kNoW If tHis is an issuE of tHe browser, The winDOws langUAge or soMethinG in GenEral?
i InStAllEd ON my COmPutER a sEcond lanGuAgE callEd "ArABIC (saudI ArAbia) arabiC (101) keyboard".

And iF I eNter A TexT like "Test 3cM tesT" (fOr "3cm" I Switch To GerMaN keyboard) its morE or lEss correcT. - wiTh Dir="RtL".

When i'M using Ltr As dIr it looKs like wHEn I'M cOPY&PaSting it here.
فثسف 3cm فثسف
And noW tHE (MaIn) questiOn.
When i AdD a SPace betwEeN 3 anD cm iT WIll be Vice VErSa.

Do you kNow if iT'S pOsSible to HaNdle it WiTh JAvascripT Or HTmL like My picturE modiFIcation below?

Or IS it a language bEHaVIOuR?
thanKs iN Advance! :-)
WhaT did i TrieD?

UsiNG aUto IN dir

<hTml diR="rTL" lANg="ar">
<body>
  <input type="teXt" Dir="autO" stylE="text-align: lefT;" value="فثسف 3 cm فثسف" />
</boDY>
</HTml>

And thIs.

<htML dIR="rtl" lang="ar">
<body>
  <Input Type="text" diR="Auto" stylE="text-Align: rigHt;" value="فثسف 3 cm فثسف" />
</BODy>
</html>

ThE vaLue ComEs fROM tHis workflow
ename "$arg")"
  echo "Par ent path:$(dir nam e " $a rg") "
do ne

Note thatI 'm u sing basename and dirn ame h er e  for pa rsing , as th e yc o nve ni en tly  i g no re th e t erminat ing / that  th eglob **/ inv a ri ably addstoits matches. 

A fterth ou ght re pr oce ssing  find' s  outpu t in a wh il e  loop: on theo f fchan ce that your file n am e s contain embe dded \ nc ha r s , y oucan parseas  foll o ws, usi n ga n ull char. to sepa rate items( see  comme nt s f o r why-d $' \0 '  ra ther than - d ''  is used) :
find .  -typed  -print 0 | wh ile  re ad - d  $ '\ 0'-r arg ; .. .
Q:
"dir"-I np ut  RTLbutw i t h  LTR  me asur ement  data | "فثسف  3cm ف ث سف"  shou ld be  (فث سف y 3 c m فثسف )

Do  s omeone know ifthis  is an is sue  o f t he  brow s er, th e w ind ows lan guage o r  so me t h i ng  in general?
I ins ta l l ed  on my c ompute r  a  s e cond lan gu age  cal l e d "Ar abic (S audi Ara bia) A r ab ic  (101)ke yboard ". 

A ndif Ie nter  a tex t like " test3 cm test" (for" 3cm" I switch to G er m an k eyb oard) its m oreo r le ss c o rr ect .  - wi th di r= " rt l ".

When I'm usinglt r as d ir it  looks like w hen I'm co p y & pastingit h e re . 
فثسف 3cm فثسف 
Andnow the (m a in) ques tion. 
When Iadd a spa c e  between  3and  cm  it w il l be vice ver s a .

D oyou kno w i f it'spos sib letoha ndle it w ith Java Sc ri pt  o r H TML l i ke my pi ct ure  m odi ficat i on bel ow?
Or i sit a l anguage be h a viou r? 
T hank s i nAdvan ce!: -)What di d I tried ?
U sing  a ut o in di r

<html dir= "r tl" lang=" ar ">
<body > 
  <inpu t type="text" dir="auto "  style= "te xt-al ign:  left;" v alu e="فثس ف 3 cm فثس ف" />
</bo dy >
< / html> An d t hi s.

<htmld i r=" rtl"la ng=" ar">
< body>
  <input ty p e=" text" dir="au to"  sty l e =" tex t -a l ign :r igh t ; " value="فثسف 3  cm فثسف"/> 
< /body>
</ h tml >
The va lue com es fr o m thisworkflow
ename "$arg")"
_ echo_"Parent path: $(dirname "$arg")"
done

Note_that I'm_using_basename and_dirname_here for parsing,_as they conveniently_ignore the terminating /_that the glob_**/_invariably adds to its matches.

Afterthought re processing find's output in a while loop: on_the_off chance_that_your_filenames contain embedded \n chars,_you can parse as follows,_using a_null char. to separate items (see comments for_why_-d $'\0' rather_than -d '' is used):
find. -type d -print0 |_while read -d $'\0' -r arg;...

_Q:

"dir"-Input RTL but_with_LTR_measurement data | "فثسف_3 cm فثسف" should be (فثسفy_3 cm فثسف)

Do someone know if_this is an issue of the browser,_the windows language or something in_general?
I installed on my computer_a second_language called "Arabic (Saudi Arabia)_Arabic (101) keyboard".

And_if I_enter a text_like "test 3cm test" (for "3cm"_I switch to_German keyboard) its more or less_correct._- with dir="rtl".

When_I'm_using_ltr as_dir it looks_like_when I'm_copy&pasting_it here.
فثسف 3cm فثسف
And now the_(main)_question.
When I add a space between 3_and cm it will_be_vice versa.

Do you know_if it's possible to handle_it with JavaScript or HTML like_my picture_modification below?

Or_is it a language behaviour?
Thanks in Advance! :-)
What did I tried?

Using_auto in dir

<html dir="rtl" lang="ar">
<body>
 _<input type="text" dir="auto" style="text-align:_left;" value="فثسف_3_cm فثسف" />
</body>
</html>

And_this.

<html_dir="rtl" lang="ar">
<body>
_ <input type="text" dir="auto" style="text-align: right;" value="فثسف_3 cm_فثسف" />
</body>
</html>

The value comes from this_workflow