Skip to content

Instantly share code, notes, and snippets.

@lionello
Last active Oct 22, 2016
Embed
What would you like to do?
`convertToPinYinSearch` converts text into ascii string with first PinYin letter for each Chinese character for autocomplete
var a='a',b='b',c='c',d='d',e='e',f='f',g='g',h='h',i='i',j='j',k='k',l='l',m='m',n='n',o='o',p='p',q='q',r='r',s='s',t='t',u='u',v='v',w='w',x='x',y='y',z='z';
var pinyinmap={a:a,b:b,c:c,d:d,e:e,f:f,g:g,h:h,i:i,j:j,k:k,l:l,m:m,n:n,o:o,p:p,q:q,r:r,s:s,t:t,u:u,v:v,w:w,x:x,y:y,z:z,
:d,:y,:s,:z,:r,:y,:b,:g,:z,:l,:z,:h,:w,:m,:t,:w,:g,:y,:d,:s,:d,:y,:[h,k],:d,:s,:d,:y,:l,:s,:n,:n,:k,:e,:[h,x],:c,:f,:y,:z,:z,:j,:f,:s,:c,:x,:z,:j,:f,:z,:l,:d,:y,:b,:s,:f,:j,:t,:z,:q,:h,:d,:g,:d,:x,:j,:d,:b,:r,:y,:m,:z,:x,:s,:s,:g,:d,:x,:y,:x,:j,:y,:t,:l,:c,:r,:g,:z,:g,:d,使:s,:r,:w,:m,:y,:t,:z,:n,:h,:d,:q,:d,:y,:[c,z],:z,:q,:y,:l,:k,:j,:b,:[c,z],:[h,g],:c,:y,:m,:s,:j,:j,:w,:w,:h,:x,:z,:g,:l,:m,:[c,z],:q,:d,:x,:h,:d,:z,:d,:j,:w,:n,:d,:z,:n,:b,:s,:g,:t,:t,:q,:x,:w,:z,:m,:j,:y,:x,:z,:b,:[q,z],:[d,t],:l,:y,:t,:e,:s,:y,:w,:r,:j,:t,:y,:j,:h,:g,:s,西:x,:d,:l,:s,:x,:s,:[y,m],:x,:q,:t,:t,:j,:x,:[x,j],:l,:q,:[q,o],:b,:l,:x,:z,:k,:j,:r,:s,:k,:w,:z,:y,:b,:r,:c,:h,:j,:h,:g,:b,:z,:b,:c,:q,:f,:b,:d,:m,:s,:g,:s,:j,:h,:g,:p,:b,:x,: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y,:l,:l,:c,:s,:q,:j,:q,:n,:z,:e,:g,:t,:[y,x],:y,:m,:b,:q,:t,:j,:w,:[x,j],:q,:d,:a,:s,:j,:x,:d,:z,:d,:e,:l,:g,:w,:w,:z,:x,:p,:n,:q,:[m,n],:z,:z,:x,:c,:z,:c,:l,:s,:p,:r,:b,:t,:g,:t,:f,:s,:k,:j,:s,:h,:c,:t,:g,:j,:b,:z,:n,:z,:y,:l,:[x,c],:m,:y,:g,:y,:t,:c,:l,:p,:l,:g,:y,:z,:b,:y,:e,:y,:k,:y,:y,:y,:d,:z,:h,:q,:p,:l,:l,:[y,z],:m,:g,:z,:w,:f,:b,:p,:z,
:d,:g,:j,:m,:x,:j,:j,:g,:b,:f,:p,:t,:c,:r,:j,:g,:q,:k,:q,:l,:y,:y,:x,:z,:j,:j,:q,:j,:s,:l,:q,:t,:c,:h,:l,:d,:s,:x,:g,:r,:y,:g,:x,:j,:y,:m,:m,:a,:q,:g,:r,:g,:s,:z,:l,:d,:g,:w,:b,:m,:h,:m,:x,:l,:k,:s,:z,:x,:z,:j,:h,:t
};
function convertToPinYinSearch(chinese) {
if (chinese.length === 0)
return [''];
var rest = convertToPinYinSearch(chinese.substr(1));
var py = pinyinmap[chinese[0]];
if (typeof py === "undefined") {
return rest;
}
if (typeof py === "string") {
py = [py];
}
return [].concat.apply([], rest.map(r => py.map(p => p + r)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment