Skip to content

Commit c60ec0c

Browse files
committed
more adaptations
1 parent 22aa70a commit c60ec0c

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/tokenize.cxx

+7-4
Original file line numberDiff line numberDiff line change
@@ -1675,10 +1675,11 @@ namespace Tokenizer {
16751675
int& sentence_done ){
16761676
// a Paragraph may contain both Word and Sentence nodes
16771677
// Sentences will be handled
1678-
vector<folia::Sentence*> sv = p->select<folia::Sentence>(false);
1678+
vector<folia::Sentence*> sv
1679+
= p->select<folia::Sentence>(folia::SELECT_FLAGS::LOCAL);
16791680
if ( sv.empty() ){
16801681
// No Sentence, so just text or Words
1681-
vector<folia::Word*> wv = p->select<folia::Word>(false);
1682+
vector<folia::Word*> wv = p->select<folia::Word>(folia::SELECT_FLAGS::LOCAL);
16821683
if ( !wv.empty() ){
16831684
vector<folia::FoliaElement*> ev( wv.begin(), wv.end() );
16841685
// Words found
@@ -1778,8 +1779,10 @@ namespace Tokenizer {
17781779
// maybe <div> or <note> or such
17791780
// there may be embedded Paragraph, Word and Sentence nodes
17801781
// if so, Paragraphs and Sentences should be handled separately
1781-
vector<folia::Sentence*> sv = e->select<folia::Sentence>(false);
1782-
vector<folia::Paragraph*> pv = e->select<folia::Paragraph>(false);
1782+
vector<folia::Sentence*> sv
1783+
= e->select<folia::Sentence>(folia::SELECT_FLAGS::LOCAL);
1784+
vector<folia::Paragraph*> pv
1785+
= e->select<folia::Paragraph>(folia::SELECT_FLAGS::LOCAL);
17831786
if ( pv.empty() && sv.empty() ){
17841787
// just words or text
17851788
UnicodeString text = e->unicode( text_policy );

0 commit comments

Comments
 (0)