Hebrew problems?

boten

Active Member
Licensed User
Longtime User
I tried to display a Hebrew string concatenated with a value (on a Label). The digits are reversed. Any advice (besides reversing the number)?

B4X:
Sub Process_Globals
End Sub
Sub Globals
Dim lbl1,lbl2 As Label
Dim i As Int
Dim s,s1,s2 As String
End Sub

Sub Activity_Create(FirstTime As Boolean)
  lbl1.Initialize("")
  activity.AddView(lbl1,10%x,10%y,80%x,10%y)
  lbl2.Initialize("")
  activity.AddView(lbl2,10%x,20%y,80%x,10%y)

  i=1234
  s1="test "
  s2="ניסוי "  '<<<=== some text in Hebrew
  s=s1 & i
  lbl1.Text=s
  s=s2 & i
  lbl2.Text=s
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
 

Attachments

  • heb.jpg
    heb.jpg
    3.1 KB · Views: 198

boten

Active Member
Licensed User
Longtime User
Funny. It is reversed on the emulator but it is OK on the phone (I guess they put R2L on it somehow...).

While we are on it, any way to show Hebrew with "nikud" (using loaded font from fileasstes?)
 
Upvote 0

boten

Active Member
Licensed User
Longtime User
it's a pity, because having a HTML file with nikud, it is shwon correctly using webview.

something like that....
B4X:
Dim wv As WebView,f as string
activity.AddView(wv,0,0,100%x,100%y)
f="file:///android_asset/...../xxx.html"
wv.LoadUrl(f)

works fine. Maybe it's a hint in the right direction
 
Upvote 0
Top