public IEnumerable <CodePoint> LookupByRadicals(IEnumerable <CodePoint> radicals) { return(radkfile.LookupMatching(radicals.Select(r => r.ToString())) .OrderBy(r => kanjidict.Lookup(r) .Map(e => e.StrokeCount) .ValueOr(int.MaxValue)) .Select(cp => CodePoint.FromString(cp))); }
public IEnumerable <string> LookupKanji(IEnumerable <string> radicals) { return(radkfile.LookupMatching(radicals.Select(MapFrom))); //.Select(MapTo); }