TempleOSCDV3.11.ISO

This commit is contained in:
Terry A. Davis authored and minexew committed 2018-09-08 21:46:29 +02:00
1 parent f8c05f98f4
commit ed64d7e3b8
549 files changed
+10643 -12855

No files matched your search

+20 -14
View File
@@ -12,7 +12,7 @@ U8 *SuggestMatchForm(U8 *src)
if (!StrOcc("AEIOU",ch)) {
if (ch=='C') ch='K';
if (ch=='Z') ch='S';
if (ch!=ch1) //F64 chars to single
if (ch!=ch1) //double chars to single
*dst++=ch;
}
ch1=ch;
@@ -27,7 +27,7 @@ U8 *SuggestMatchForm(U8 *src)
I16 block; //definition offset in ::/Adam/AutoComplete/ACDefs.DAT
*/
U0 SuggestSpelling(U8 *word)
Bool SuggestSpelling(U8 *word)
{
U8 *dict=acd.word_lst,
*pf=SuggestMatchForm(word),
@@ -35,20 +35,22 @@ U0 SuggestSpelling(U8 *word)
I64 len=StrLen(pf),
num_cols=Fs->win_width/16,
col=0;
while (*dict) {
wf=SuggestMatchForm(dict+1);
if (!StrNCmp(pf,wf,len)) {
"%16s",dict+1;
if (++col==num_cols) {
col=0;
'\n';
if (len)
while (*dict) {
wf=SuggestMatchForm(dict+1);
if (!StrNCmp(pf,wf,len)) {
"%16s",dict+1;
if (++col>=num_cols) {
col=0;
'\n';
}
}
Free(wf);
dict+=StrLen(dict+1)+4;
}
Free(wf);
dict+=StrLen(dict+1)+4;
}
Free(pf);
'\n';
return ToBool(len);
}
U0 SuggestSpellingDemo()
@@ -71,13 +73,17 @@ U0 CtrlAltL(I64)
{
//$LK,"ac.cur_word",A="MN:CAutoCompleteGlbls"$ is only set if AutoComplete
//is running.
PopUp("SuggestSpelling(ac.cur_word);View;");
if (!TaskValidate(ac.task)) {
AutoComplete(ON);
Sleep(500);
}
PopUp("if (SuggestSpelling(ac.cur_word)) View;");
}
if (Fs!=adam_task)
SuggestSpellingDemo;
else {
CtrlAltLetCBSet('L',&CtrlAltL,"Cmd/Suggest Spelling");
CtrlAltCBSet('L',&CtrlAltL,"Cmd /Suggest Spelling");
//Appears in the Adam Task Window
"<CTRL-ALT-l> installed\n";
}