diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-12-12 13:01:21 -0500 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-02-03 09:16:28 -0500 |
commit | f2aacc40f4c26b3f4d71d81090f05261f4969e29 (patch) | |
tree | 90655c41ec886eb4572c3a0e09b336f44da20901 | |
parent | e5a049d36221c6d07cb174a9a6a4a373ded656f4 (diff) | |
download | verbly-f2aacc40f4c26b3f4d71d81090f05261f4969e29.tar.gz verbly-f2aacc40f4c26b3f4d71d81090f05261f4969e29.tar.bz2 verbly-f2aacc40f4c26b3f4d71d81090f05261f4969e29.zip |
Fixed merography/merophony missing the end of the original string
-rw-r--r-- | generator/generator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/generator.cpp b/generator/generator.cpp index 969b629..21d0a63 100644 --- a/generator/generator.cpp +++ b/generator/generator.cpp | |||
@@ -815,7 +815,7 @@ namespace verbly { | |||
815 | std::unordered_set<std::string> visited; | 815 | std::unordered_set<std::string> visited; |
816 | for (int i=0; i<text.size(); i++) | 816 | for (int i=0; i<text.size(); i++) |
817 | { | 817 | { |
818 | for (int l=3; l<text.size()-i; l++) | 818 | for (int l=3; l<=text.size()-i; l++) |
819 | { | 819 | { |
820 | if (i==0 && l == text.size()) | 820 | if (i==0 && l == text.size()) |
821 | { | 821 | { |
@@ -893,7 +893,7 @@ namespace verbly { | |||
893 | std::set<std::list<std::string>> visited; | 893 | std::set<std::list<std::string>> visited; |
894 | for (int i=0; i<phonemes.size(); i++) | 894 | for (int i=0; i<phonemes.size(); i++) |
895 | { | 895 | { |
896 | for (int l=2; l<phonemes.size()-i; l++) | 896 | for (int l=2; l<=phonemes.size()-i; l++) |
897 | { | 897 | { |
898 | if (i==0 && l == phonemes.size()) | 898 | if (i==0 && l == phonemes.size()) |
899 | { | 899 | { |