KDJ
Add "_" to word delimiter list. "Settings...->Advanced->Word delimiters"
FeyFre
Когда ошибка подчеркнута линия затирает символ "_" несмотря на то, что установлен междустрочный интервал. Чтобы этого не происходило, можно использовать следующий код:
dc = GetDC(hWnd);
hFont=CreateFontIndirectW((LOGFONTW *)SendMessage(hMainWindow, AKD_GETFONTW, (WPARAM)hWnd, 0));
LONG shift = 0;
LONG tmHeightLocal;
if (bAkelEdit)
{
tmHeightLocal = shift = SendMessageW(hWnd, AEM_GETCHARSIZE, AECS_HEIGHT, 0)-1;
shift -= SendMessageW(hWnd, AEM_GETLINEGAP,0,0);
}
else
shift = (tmHeightLocal = tm.tmHeight) - 1;
(shift - смещение от верхнего края строки, там будет рисоваться линия)
Опускать ниже пробовал... не вариант(при отрисовке нижней строки окна при нулевом междустрочным линии вообще не было, видать выходило за регион перерисовки)
Instructor
Можно(но я что-то не хочу в этот кусок лазить.... там по коду 5-кратное вложение if, и 3-кратное while - как бы чего не поломать )
Если это имеет значение, в первом варианте tmHeightLocal будет на единицу меньше, чем в RichEdit.
В обоих вариантах одинаково(и там, и там есть вычитается 1 из высоты, только для RichEdit беру высоту из TextMetrics шрифта(hOldFont=(HFONT)SelectObject(dc, hFont);GetTextMetricsW(dc,&tm);), а для AkelEdit спрашиваю у него).
But what to do with numbers and dates "123789", "15-06-2010"?
Whether to add "0123456789" to the list of delimiters?
Then the keyboard shortcuts Ctrl+Left, Ctrl+Right are acting strangely - they are jumping over all numbers and dates.
Then the keyboard shortcuts Ctrl+Left, Ctrl+Right are acting strangely - they are jumping over all numbers and dates.
They acting as you setup them(jump to begin of word, jump to end of word, skipping all delimiters). So SpellCheck will, and so will not mark them as incorrect "words".
Now check spelling does not mark as wrong numbers and dates ("123789", "15-06-2010").
But the use of digits as a separator of words seems to me strange and unnatural.
But the use of digits as a separator of words seems to me strange and unnatural.
The choice is yours. I'll try to implement this feature letter, after 1.0 release(probably you have noticed that plugin in FeatureFreeze state). For now, there are a lot of undone work in SpellCheck to make it fully compatible with AkelPad, before I'll have right to declare "SpellCheck is stable".
FeyFre
You forgot to update the link to your file.
I found it. It is here: http://staynormal.org.ua/aspell/SpellCheck-RC2.7z
Now it works well.
Even you can do so that the ESC key and Alt+F4 and click the mouse on the button [x], causing closure of the window "SpellCheck::CheckDocument".
Now working as pressing the "Skip" button.