Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

תוצאות חיפוש פנימי בספר אינם מסומנות באדום בספר מנוקד #561

Open
AISH-EHD opened this issue Mar 17, 2025 · 1 comment
Labels
באג Something isn't working

Comments

@AISH-EHD
Copy link

| תיאור הבאג
תוצאות חיפוש פנימי בספר אינם מסומנות באדום בספר מנוקד
הסיבה לבעיה כי התוכנה מחפש טקסט לא מנוקד לסימון

@AISH-EHD AISH-EHD added the באג Something isn't working label Mar 17, 2025
Copy link

dosubot bot commented Mar 17, 2025

שלום @AISH-EHD,

אני Dosu, בוט שיכול לעזור לך לפתור באגים, לענות על שאלות ולהפוך לתורם. אני כאן כדי לעזור לך במהלך המתנה לתחזוקה אנושית.

Dosu

כדי לפתור את הבעיה שבה תוצאות חיפוש פנימי בספר מנוקד אינן מסומנות באדום, יש לוודא שהן הטקסט המחפש והן השאילתה מנוקדים לפני ביצוע הסימון. ניתן לשנות את הפונקציה highLight כך שתסיר את הניקוד גם מהטקסט וגם מהשאילתה לפני ההחלפה והסימון:

String highLight(String data, String searchQuery) {
  if (searchQuery.isNotEmpty) {
    String unvowelizedData = removeVolwels(data);
    String unvowelizedQuery = removeVolwels(searchQuery);
    return unvowelizedData.replaceAll(unvowelizedQuery, '<font color=red>$unvowelizedQuery</font>');
  }
  return data;
}

שינוי זה מבטיח שהחיפוש והסימון יתבצעו על גרסאות לא מנוקדות של הטקסט והשאילתה, כך שהסימונים יופיעו כראוי גם כאשר הטקסט המקורי מנוקד [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
באג Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant