Exemplo n.º 1
0
        protected void Initialize()
        {
            if (ResourceSet == null)
            {
                ResourceSet = new FuriganaResourceSet();
                ResourceSet.Load();
            }

            if (Solvers == null)
            {
                Solvers = new List <FuriganaSolver>()
                {
                    new KanaReadingSolver(),
                    new KanjiReadingSolver(useNanori: DictionaryFile == DictionaryFile.Jmnedict),
                    new LengthMatchSolver(),
                    new NoConsecutiveKanjiSolver(),
                    new OverrideSolver(),
                    new RepeatedKanjiSolver(),
                    new SingleCharacterSolver(),
                    new SingleKanjiSolver()
                };
            }
            Solvers.Sort();
            Solvers.Reverse();
        }
Exemplo n.º 2
0
 public FuriganaBusiness(DictionaryFile dictionaryFile, FuriganaResourceSet resourceSet, List <FuriganaSolver> solvers)
     : this(dictionaryFile, resourceSet)
 {
     Solvers = solvers;
 }
Exemplo n.º 3
0
 public FuriganaBusiness(DictionaryFile dictionaryFile, FuriganaResourceSet resourceSet)
     : this(dictionaryFile)
 {
     ResourceSet = resourceSet;
 }