|
a/src/aspell/rclaspell.cpp |
|
b/src/aspell/rclaspell.cpp |
|
... |
|
... |
256 |
AspExecPv(string *i, Rcl::TermIter *tit, Rcl::Db &db)
|
256 |
AspExecPv(string *i, Rcl::TermIter *tit, Rcl::Db &db)
|
257 |
: m_input(i), m_tit(tit), m_db(db)
|
257 |
: m_input(i), m_tit(tit), m_db(db)
|
258 |
{}
|
258 |
{}
|
259 |
void newData() {
|
259 |
void newData() {
|
260 |
while (m_db.termWalkNext(m_tit, *m_input)) {
|
260 |
while (m_db.termWalkNext(m_tit, *m_input)) {
|
261 |
// Prefixed terms are also somewhere else without the suffix,
|
|
|
262 |
// skip them
|
|
|
263 |
if (m_input->empty() ||
|
|
|
264 |
('A' <= m_input->at(0) && m_input->at(0) <= 'Z'))
|
|
|
265 |
continue;
|
|
|
266 |
if (!Rcl::Db::isSpellingCandidate(*m_input))
|
261 |
if (!Rcl::Db::isSpellingCandidate(*m_input))
|
267 |
continue;
|
262 |
continue;
|
268 |
// Got a non-empty sort-of appropriate term, let's send it to
|
263 |
// Got a non-empty sort-of appropriate term, let's send it to
|
269 |
// aspell
|
264 |
// aspell
|
270 |
m_input->append("\n");
|
265 |
m_input->append("\n");
|