[Scummvm-git-logs] scummvm master -> 7fdc9310885e8cbeba47b23cd8f9801243cfcca5
sluicebox
22204938+sluicebox at users.noreply.github.com
Wed Aug 26 00:49:52 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7fdc931088 SCI: Hebrew - add prefix rule (second letter is Yud)
Commit: 7fdc9310885e8cbeba47b23cd8f9801243cfcca5
https://github.com/scummvm/scummvm/commit/7fdc9310885e8cbeba47b23cd8f9801243cfcca5
Author: Zvika Haramaty (haramaty.zvika at gmail.com)
Date: 2020-08-25T17:49:48-07:00
Commit Message:
SCI: Hebrew - add prefix rule (second letter is Yud)
Changed paths:
engines/sci/parser/vocabulary.cpp
diff --git a/engines/sci/parser/vocabulary.cpp b/engines/sci/parser/vocabulary.cpp
index eb67408901..4b667b1bb7 100644
--- a/engines/sci/parser/vocabulary.cpp
+++ b/engines/sci/parser/vocabulary.cpp
@@ -532,6 +532,17 @@ void Vocabulary::lookupWordPrefix(ResultWordListList &parent_retval, ResultWordL
if (lookupVerbPrefix(parent_retval, retval, modified_word, modified_word.size(), ""))
return;
}
+
+ // e.g. 'enter' : 'He Yud Kaf Nun Sameh' try to match 'He Kaf Nun Sameh'
+ // e.g. 'enter' : 'Taf Yud Kaf Nun Sameh' try to match 'Taf Kaf Nun Sameh'
+ if ((word[0] == '\xe4' || word[0] == '\xfa') && word[1] == '\xe9') { // first letters are 'He Yud' or 'Taf Yud'
+ Common::String modified_word = word;
+ modified_word.setChar('\xe4', 0); // replace the initial Taf with He; or keep the initial He
+ modified_word.deleteChar(1); // delete the second letter (=Yud)
+
+ if (lookupVerbPrefix(parent_retval, retval, modified_word, modified_word.size(), ""))
+ return;
+ }
}
bool Vocabulary::lookupSpecificPrefixWithMeaning(ResultWordListList &parent_retval, ResultWordList &retval, const char *word, int word_len, unsigned char prefix, const char *meaning) {
More information about the Scummvm-git-logs
mailing list