Skip to content
Advertisement

Roman Transliteration: multiple alternates of single English letter, permutation and combination

i need help in super permutation

i have 3 letters long string “fhd” i want to write each ones alternate in sindhi language but problem is that sindhi language has multiple alternates of each of above letter

so i have 3 list boxes one for each letter’s alternates in sindhi each one for sindhi alterate letters and sounds of each string letter from “fhd”

f listbox have 3 items (alternate of f) which are ف، ڦ، په so list one represents alternates of F which are`=ف، ڦ، په items

list two have ح، ه، ھ alternate of h

list 3 have د، ڏ، ڊ alternates of D

the goal is to produce as many words as possible all containing three sindhi alternate letters containing 3 sindhi letters as alternate of english ‘fhd’

what my path is write first alternate of f all the times list box f (first listbox) item counts

and in second side all other letters should be represented once

for h=0 to len {fahad}

first set as a=ف b=ه c=د second set as a=ف b=ح c=ڊ third set as a=ف b=ه c=ڏ، the words we made are فهد فحڊ فهڏ

you note ف is repeated all the three times till the third letter alternate of d د، ڊ، ڏis written all three times

the second bunch of words should be ڦهد ڦحڊ ڦهڏ here also second alternate of f ڦ is repeated all three times as usage of alternate of D ڊ، ڏ، د now the second letter h’s alternate (which are two) each shold be reapated three times i mean the focus is second letter h’s alternates فهد ڦهڊ فهڏ

then second alternate of have three times repeated

فحد ڦحڊ فحڏ

then first alternate of d=د فهد ڦحد فهد

then second alternate of d=ڊ،

فهڊ ڦحڊ فهڊ then third alternate of d=ڏ

فهڏ ڦحڏ ڦهڏ

actually i want to build roman translitration in this case there are more then one alterates of single english letter

i have database of sindhi words in back ground where i want to query all fhd’s sindhi alternate words which one would be ok written in db that one replaced in sentences the word list which can be made as alternates of fhd should be

فهد فحڊ فهڏ

ڦحد ڦهڊ ڦحڏ

فهد ڦهڊ فهڏ

ڦحد فحڊ ڦحڏ

فهد ڦحد فهد

ڦحڊ فهڊ ڦحڊ

فهڏ ڦحڏ فهڏ this is the list i want to get, who can help me how to do it programettiaclly

i have done little plane but seems not working, can any or many may convert idea into real php programmng

this is the programing i have done for populating listboxes

JavaScript

Advertisement

Answer

press submit button Twice or three time, how to solve it its an other matter but i have found all permutations of word “fahad” string in sindhi alternate

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement