E Eldo Mathew Member Jan 19, 2023 #1 Added "VowelsCodePoints" to "BC text engine" and chat layout resizing is not working properly when using unicode (Malayalam). Please see the attached image Code: Copy Public Sub Initialize (Parent As B4XView) Parent.LoadLayout("1") Engine.Initialize(Parent) For i = 0x0D00 To 0x0D7F 'for malayalam language Engine.VowelsCodePoints.Add(i) Next bc.Initialize(300, 300) TextField.NextField = TextField End Sub
Added "VowelsCodePoints" to "BC text engine" and chat layout resizing is not working properly when using unicode (Malayalam). Please see the attached image Code: Copy Public Sub Initialize (Parent As B4XView) Parent.LoadLayout("1") Engine.Initialize(Parent) For i = 0x0D00 To 0x0D7F 'for malayalam language Engine.VowelsCodePoints.Add(i) Next bc.Initialize(300, 300) TextField.NextField = TextField End Sub
Solution Erel Jan 22, 2023 A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s
A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s
Erel B4X founder Staff member Licensed User Longtime User Jan 20, 2023 #2 Word wrapping doesn't work for some reason. Are there spaces in the text? Can you post the Malayalam text? Upvote 0
Word wrapping doesn't work for some reason. Are there spaces in the text? Can you post the Malayalam text?
E Eldo Mathew Member Jan 20, 2023 #3 Erel said: Word wrapping doesn't work for some reason. Are there spaces in the text? Can you post the Malayalam text? Click to expand... ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി Upvote 0
Erel said: Word wrapping doesn't work for some reason. Are there spaces in the text? Can you post the Malayalam text? Click to expand... ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി
Erel B4X founder Staff member Licensed User Longtime User Jan 22, 2023 #4 A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s Upvote 0 Solution
A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s
AnandGupta Expert Licensed User Longtime User Jan 22, 2023 #5 Erel said: A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s Click to expand... I didn't tried with Hindi yet, but may come handy in it too. ? Upvote 0
Erel said: A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s Click to expand... I didn't tried with Hindi yet, but may come handy in it too. ?
E Eldo Mathew Member Jan 22, 2023 #6 Erel said: A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s Click to expand... SOLVED ."Double space" technique works .Thank you Attachments Screenshot_20230122_154736 (1).jpg 236 KB · Views: 274 Upvote 0
Erel said: A workaround for now: Code: Copy Dim s As String = "ടെസ്റ്റിംഗ് ക്രോസ് പ്ലാറ്റ്ഫോം ചാറ്റ് വിത്ത് യൂണികോഡ് ഫോണ്ട് . ഉപയോഗിച്ചിരിക്കുന്ന ഭാഷ മലയാളം .നന്ദി" s = s.Replace(" ", " ") BBCodeView1.Text = s Click to expand... SOLVED ."Double space" technique works .Thank you