dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.03k stars 1.73k forks source link

How to Highlight Arabic text after search with continuity in MAUI #24863

Open qmfaiz55510 opened 1 week ago

qmfaiz55510 commented 1 week ago

Description

I am using Visual studio 2022 MAUI 8.0 API 33 The issue is raised and discussed at https://learn.microsoft.com/en-us/answers/questions/2073208/how-to-highlight-arabic-text-after-search-with-con I am using WebView and label as shown below where WebView is properly highlighting

arabic text after search with searched item while label is not showing highlighted text properly.

FormattingArabicText

Steps to Reproduce

1-Create WebView and label as shown below

<Label FontSize="22" FontFamily="AlQalamnew" Padding="5" LineHeight="1.5" LineBreakMode="WordWrap" Margin="2" HorizontalTextAlignment="Center" VerticalTextAlignment="Center" FlowDirection="RightToLeft" >

As using webview inside collection view to show searched item text data i am facing issue like webview is occupying xtra space even if setting alignment to zero.Also when back button pressed and loading previous content in webview multiple fluctuations are coming In label I am spliting the text into before matched ,matched and after matched string content. But in label content the continuity of Arabic text is disconnected. While its perfect in WebView. Sample Arabic text is below اللہ کے نام سے جو رحمان و رحیم ہے How can i achieve it with label ### Link to public reproduction project repository https://learn.microsoft.com/en-us/answers/questions/2073208/how-to-highlight-arabic-text-after-search-with-con ### Version with bug 8.0.3 GA ### Is this a regression from previous behavior? Not sure, did not test other versions ### Last version that worked well 8.0.3 GA ### Affected platforms Android ### Affected platform versions _No response_ ### Did you find any workaround? yes https://learn.microsoft.com/en-us/answers/questions/2073208/how-to-highlight-arabic-text-after-search-with-con but didnt solved my issue ### Relevant log output ```shell No ```
github-actions[bot] commented 1 week ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

qmfaiz55510 commented 3 days ago

Is there any solution for it?