@@ -1675,10 +1675,11 @@ namespace Tokenizer {
1675
1675
int & sentence_done ){
1676
1676
// a Paragraph may contain both Word and Sentence nodes
1677
1677
// 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);
1679
1680
if ( sv.empty () ){
1680
1681
// 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 );
1682
1683
if ( !wv.empty () ){
1683
1684
vector<folia::FoliaElement*> ev ( wv.begin (), wv.end () );
1684
1685
// Words found
@@ -1778,8 +1779,10 @@ namespace Tokenizer {
1778
1779
// maybe <div> or <note> or such
1779
1780
// there may be embedded Paragraph, Word and Sentence nodes
1780
1781
// 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);
1783
1786
if ( pv.empty () && sv.empty () ){
1784
1787
// just words or text
1785
1788
UnicodeString text = e->unicode ( text_policy );
0 commit comments