コード例 #1
0
 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)));
 }
コード例 #2
0
 public IEnumerable <string> LookupKanji(IEnumerable <string> radicals)
 {
     return(radkfile.LookupMatching(radicals.Select(MapFrom)));
     //.Select(MapTo);
 }