KhalisFoundation / sttm-web

STTM website - https://www.sikhitothemax.org
https://www.sikhitothemax.org
Open Software License 3.0
50 stars 36 forks source link

Add phonetic first letters (romanized) #224

Closed ManjotS closed 4 years ago

ManjotS commented 6 years ago

Phonetic First letters should work like:

ttbmjk

finds

ਤੂ ਠਾਕੁਰੋ ਬੈਰਾਗਰੋ ਮੈ ਜੇਹੀ ਘਣ ਚੇਰੀ ਰਾਮ॥

bogas04 commented 5 years ago

Is this same as #461 ?

saintsoldierx commented 4 years ago

Do you have some mapping for letters? like t can equal ਤ or ਠ, is there a mapping for all 35 u have? @ManjotS

ManjotS commented 4 years ago

We already have this feature. This is what romanized search does. We can do a version that removes the space requirement.

On Sat, Jul 4, 2020, 12:00 AM Aman Singh notifications@github.com wrote:

Do you have some mapping for letters? like t can equal ਤ or ਠ, is there a mapping for all 35 u have? @ManjotS https://github.com/ManjotS

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KhalisFoundation/sttm-web/issues/224#issuecomment-653731030, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE5OFLCJE3ALADCH4R4CRLRZ3HSFANCNFSM4ENKUTLA .

saintsoldierx commented 4 years ago

@ManjotS romanized search currently is by word. We dont have first letter search phonetic right?

ManjotS commented 4 years ago

search type 7 seems to do this

ManjotS commented 4 years ago

confirmation: https://api.banidb.com/v2/search/ttbmj?source=all&searchtype=7&page=1

ManjotS commented 4 years ago

The limitation here is that web is not allowing this to work because it expects x words (Which we should keep).

Web should create its own new search type for first letter english that uses searchtype 7 as well but allows passing letters only (and should enforce minimum 3-4 characters).

ManjotS commented 4 years ago

@bickyb tagging you here to track