mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 12:25:42 +02:00
Aspell plugin is born again
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ OPTION(DISABLE_NLS "Disable Native Language Support")
|
||||
OPTION(DISABLE_GNUTLS "Disable SSLv3/TLS connection support")
|
||||
OPTION(DISABLE_LARGEFILE "Disable Large File Support")
|
||||
OPTION(DISABLE_ALIAS "Disable Alias plugin")
|
||||
OPTION(ENABLE_ASPELL "Enable Aspell plugin")
|
||||
OPTION(DISABLE_ASPELL "Disable Aspell plugin")
|
||||
OPTION(DISABLE_CHARSET "Disable Charset plugin")
|
||||
OPTION(DISABLE_DEBUG "Disable Debug plugin")
|
||||
OPTION(ENABLE_DEMO "Enable Demo plugin")
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ AC_ARG_ENABLE(qt, [ --enable-qt turn on Qt interface (def
|
||||
AC_ARG_ENABLE(gnutls, [ --disable-gnutls turn off gnutls support (default=compiled if found)],enable_gnutls=$enableval,enable_gnutls=yes)
|
||||
AC_ARG_ENABLE(largefile, [ --disable-largefile turn off Large File Support (default=on)],enable_largefile=$enableval,enable_largefile=yes)
|
||||
AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (default=compiled)],enable_alias=$enableval,enable_alias=yes)
|
||||
AC_ARG_ENABLE(aspell, [ --enable-aspell turn on Aspell plugin (default=off)],enable_aspell=$enableval,enable_aspell=no)
|
||||
AC_ARG_ENABLE(aspell, [ --disable-aspell turn off Aspell plugin (default=compiled)],enable_aspell=$enableval,enable_aspell=yes)
|
||||
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes)
|
||||
AC_ARG_ENABLE(debug, [ --enable-debug turn on Debug plugin (default=on)],enable_debug=$enableval,enable_debug=yes)
|
||||
AC_ARG_ENABLE(demo, [ --enable-demo turn on Demo plugin (default=off)],enable_demo=$enableval,enable_demo=no)
|
||||
|
||||
@@ -85,6 +85,10 @@
|
||||
./src/plugins/alias/alias-info.h
|
||||
./src/plugins/aspell/aspell.c
|
||||
./src/plugins/aspell/aspell.h
|
||||
./src/plugins/aspell/aspell-config.c
|
||||
./src/plugins/aspell/aspell-config.h
|
||||
./src/plugins/aspell/aspell-speller.c
|
||||
./src/plugins/aspell/aspell-speller.h
|
||||
./src/plugins/charset/charset.c
|
||||
./src/plugins/debug/debug.c
|
||||
./src/plugins/demo/demo.c
|
||||
|
||||
@@ -86,6 +86,10 @@ SET(WEECHAT_SOURCES
|
||||
./src/plugins/alias/alias-info.h
|
||||
./src/plugins/aspell/aspell.c
|
||||
./src/plugins/aspell/aspell.h
|
||||
./src/plugins/aspell/aspell-config.c
|
||||
./src/plugins/aspell/aspell-config.h
|
||||
./src/plugins/aspell/aspell-speller.c
|
||||
./src/plugins/aspell/aspell-speller.h
|
||||
./src/plugins/charset/charset.c
|
||||
./src/plugins/debug/debug.c
|
||||
./src/plugins/demo/demo.c
|
||||
|
||||
+92
-12
File diff suppressed because it is too large
Load Diff
@@ -1126,11 +1126,11 @@ command_help (void *data, struct t_gui_buffer *buffer,
|
||||
_("type"), _("string"));
|
||||
gui_chat_printf (NULL, " %s: %s",
|
||||
_("values"), string);
|
||||
gui_chat_printf (NULL, " %s: '%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s\"",
|
||||
_("default value"),
|
||||
ptr_option->string_values[CONFIG_INTEGER_DEFAULT(ptr_option)]);
|
||||
gui_chat_printf (NULL,
|
||||
" %s: '%s%s%s'",
|
||||
" %s: \"%s%s%s\"",
|
||||
_("current value"),
|
||||
GUI_COLOR(GUI_COLOR_CHAT_HOST),
|
||||
ptr_option->string_values[CONFIG_INTEGER(ptr_option)],
|
||||
@@ -1178,10 +1178,10 @@ command_help (void *data, struct t_gui_buffer *buffer,
|
||||
ptr_option->max);
|
||||
break;
|
||||
}
|
||||
gui_chat_printf (NULL, " %s: '%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s\"",
|
||||
_("default value"),
|
||||
CONFIG_STRING_DEFAULT(ptr_option));
|
||||
gui_chat_printf (NULL, " %s: '%s%s%s'",
|
||||
gui_chat_printf (NULL, " %s: \"%s%s%s\"",
|
||||
_("current value"),
|
||||
GUI_COLOR(GUI_COLOR_CHAT_HOST),
|
||||
CONFIG_STRING(ptr_option),
|
||||
@@ -1516,7 +1516,8 @@ command_layout_display_tree (struct t_gui_layout_window *layout_window,
|
||||
/* leaf */
|
||||
snprintf (format, sizeof (format), "%%-%ds%s",
|
||||
indent * 2,
|
||||
_("leaf: id: %d, parent: %d, plugin: '%s', buffer: '%s'"));
|
||||
_("leaf: id: %d, parent: %d, plugin: \"%s\", "
|
||||
"buffer: \"%s\""));
|
||||
gui_chat_printf (NULL, format,
|
||||
" ",
|
||||
layout_window->internal_id,
|
||||
|
||||
@@ -2393,8 +2393,8 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
{
|
||||
case CONFIG_OPTION_TYPE_BOOLEAN:
|
||||
string_iconv_fprintf (stdout, _(" . type: boolean\n"));
|
||||
string_iconv_fprintf (stdout, _(" . values: 'on' or 'off'\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . values: \"on\" or \"off\"\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
(CONFIG_BOOLEAN_DEFAULT(ptr_option) == CONFIG_BOOLEAN_TRUE) ?
|
||||
"on" : "off");
|
||||
break;
|
||||
@@ -2406,14 +2406,14 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
i = 0;
|
||||
while (ptr_option->string_values[i])
|
||||
{
|
||||
string_iconv_fprintf (stdout, "'%s'",
|
||||
string_iconv_fprintf (stdout, "\"%s\"",
|
||||
ptr_option->string_values[i]);
|
||||
if (ptr_option->string_values[i + 1])
|
||||
string_iconv_fprintf (stdout, ", ");
|
||||
i++;
|
||||
}
|
||||
string_iconv_fprintf (stdout, "\n");
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
ptr_option->string_values[CONFIG_INTEGER_DEFAULT(ptr_option)]);
|
||||
}
|
||||
else
|
||||
@@ -2443,14 +2443,14 @@ config_file_print_stdout (struct t_config_file *config_file)
|
||||
ptr_option->max);
|
||||
break;
|
||||
}
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
CONFIG_STRING_DEFAULT(ptr_option));
|
||||
break;
|
||||
case CONFIG_OPTION_TYPE_COLOR:
|
||||
color_name = gui_color_get_name (CONFIG_COLOR_DEFAULT(ptr_option));
|
||||
string_iconv_fprintf (stdout, _(" . type: color\n"));
|
||||
string_iconv_fprintf (stdout, _(" . values: color (depends on GUI used)\n"));
|
||||
string_iconv_fprintf (stdout, _(" . default value: '%s'\n"),
|
||||
string_iconv_fprintf (stdout, _(" . default value: \"%s\"\n"),
|
||||
color_name);
|
||||
break;
|
||||
case CONFIG_NUM_OPTION_TYPES:
|
||||
|
||||
+2
-2
@@ -176,14 +176,14 @@ hook_remove_from_list (struct t_hook *hook)
|
||||
last_weechat_hook[hook->type] = hook->prev_hook;
|
||||
if (hook->prev_hook)
|
||||
{
|
||||
hook->prev_hook->next_hook = hook->next_hook;
|
||||
(hook->prev_hook)->next_hook = hook->next_hook;
|
||||
new_hooks = weechat_hooks[hook->type];
|
||||
}
|
||||
else
|
||||
new_hooks = hook->next_hook;
|
||||
|
||||
if (hook->next_hook)
|
||||
hook->next_hook->prev_hook = hook->prev_hook;
|
||||
(hook->next_hook)->prev_hook = hook->prev_hook;
|
||||
|
||||
free (hook);
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ upgrade_file_error (struct t_upgrade_file *upgrade_file, char *message1,
|
||||
char *message2, char *file, int line)
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
_("%sError upgrading WeeChat with file '%s':"),
|
||||
_("%sError upgrading WeeChat with file \"%s\":"),
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR],
|
||||
upgrade_file->filename);
|
||||
gui_chat_printf (NULL,
|
||||
|
||||
+15
-2
@@ -570,9 +570,9 @@ gui_bar_item_free (struct t_gui_bar_item *item)
|
||||
{
|
||||
/* remove bar item from bar items list */
|
||||
if (item->prev_item)
|
||||
item->prev_item->next_item = item->next_item;
|
||||
(item->prev_item)->next_item = item->next_item;
|
||||
if (item->next_item)
|
||||
item->next_item->prev_item = item->prev_item;
|
||||
(item->next_item)->prev_item = item->prev_item;
|
||||
if (gui_bar_items == item)
|
||||
gui_bar_items = item->next_item;
|
||||
if (last_gui_bar_item == item)
|
||||
@@ -751,6 +751,8 @@ gui_bar_item_default_input_text (void *data, struct t_gui_bar_item *item,
|
||||
struct t_gui_window *window,
|
||||
int max_width, int max_height)
|
||||
{
|
||||
char *new_input, str_buffer[128];
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) item;
|
||||
@@ -759,6 +761,17 @@ gui_bar_item_default_input_text (void *data, struct t_gui_bar_item *item,
|
||||
|
||||
if (!window)
|
||||
window = gui_current_window;
|
||||
|
||||
snprintf (str_buffer, sizeof (str_buffer),
|
||||
"0x%x", (unsigned int)(window->buffer));
|
||||
|
||||
new_input = hook_modifier_exec (NULL,
|
||||
"weechat_input_text_display",
|
||||
str_buffer,
|
||||
(window->buffer->input_buffer) ?
|
||||
window->buffer->input_buffer : "");
|
||||
if (new_input)
|
||||
return new_input;
|
||||
|
||||
return (window->buffer->input_buffer) ?
|
||||
strdup (window->buffer->input_buffer) : NULL;
|
||||
|
||||
@@ -118,12 +118,12 @@ gui_buffer_insert (struct t_gui_buffer *buffer)
|
||||
/* add buffer to the end */
|
||||
buffer->number = (last_gui_buffer) ? last_gui_buffer->number + 1 : 1;
|
||||
buffer->prev_buffer = last_gui_buffer;
|
||||
buffer->next_buffer = NULL;
|
||||
if (gui_buffers)
|
||||
last_gui_buffer->next_buffer = buffer;
|
||||
else
|
||||
gui_buffers = buffer;
|
||||
last_gui_buffer = buffer;
|
||||
buffer->next_buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,9 +205,7 @@ gui_buffer_new (struct t_weechat_plugin *plugin,
|
||||
new_buffer->input_nick = NULL;
|
||||
new_buffer->input_buffer_alloc = GUI_BUFFER_INPUT_BLOCK_SIZE;
|
||||
new_buffer->input_buffer = malloc (GUI_BUFFER_INPUT_BLOCK_SIZE);
|
||||
new_buffer->input_buffer_color_mask = malloc (GUI_BUFFER_INPUT_BLOCK_SIZE);
|
||||
new_buffer->input_buffer[0] = '\0';
|
||||
new_buffer->input_buffer_color_mask[0] = '\0';
|
||||
new_buffer->input_buffer_size = 0;
|
||||
new_buffer->input_buffer_length = 0;
|
||||
new_buffer->input_buffer_pos = 0;
|
||||
@@ -994,8 +992,6 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
|
||||
free (buffer->name);
|
||||
if (buffer->input_buffer)
|
||||
free (buffer->input_buffer);
|
||||
if (buffer->input_buffer_color_mask)
|
||||
free (buffer->input_buffer_color_mask);
|
||||
if (buffer->completion)
|
||||
gui_completion_free (buffer->completion);
|
||||
gui_history_buffer_free (buffer);
|
||||
@@ -1011,9 +1007,9 @@ gui_buffer_close (struct t_gui_buffer *buffer, int switch_to_another)
|
||||
|
||||
/* remove buffer from buffers list */
|
||||
if (buffer->prev_buffer)
|
||||
buffer->prev_buffer->next_buffer = buffer->next_buffer;
|
||||
(buffer->prev_buffer)->next_buffer = buffer->next_buffer;
|
||||
if (buffer->next_buffer)
|
||||
buffer->next_buffer->prev_buffer = buffer->prev_buffer;
|
||||
(buffer->next_buffer)->prev_buffer = buffer->prev_buffer;
|
||||
if (gui_buffers == buffer)
|
||||
gui_buffers = buffer->next_buffer;
|
||||
if (last_gui_buffer == buffer)
|
||||
@@ -1449,7 +1445,6 @@ gui_buffer_print_log ()
|
||||
log_printf (" input_callback_data. . : 0x%x", ptr_buffer->input_callback_data);
|
||||
log_printf (" input_nick . . . . . . : '%s'", ptr_buffer->input_nick);
|
||||
log_printf (" input_buffer . . . . . : '%s'", ptr_buffer->input_buffer);
|
||||
log_printf (" input_buffer_color_mask: '%s'", ptr_buffer->input_buffer_color_mask);
|
||||
log_printf (" input_buffer_alloc . . : %d", ptr_buffer->input_buffer_alloc);
|
||||
log_printf (" input_buffer_size. . . : %d", ptr_buffer->input_buffer_size);
|
||||
log_printf (" input_buffer_length. . : %d", ptr_buffer->input_buffer_length);
|
||||
|
||||
@@ -121,7 +121,6 @@ struct t_gui_buffer
|
||||
/* to this buffer */
|
||||
char *input_nick; /* self nick */
|
||||
char *input_buffer; /* input buffer */
|
||||
char *input_buffer_color_mask; /* color mask for input buffer */
|
||||
int input_buffer_alloc; /* input buffer: allocated size */
|
||||
int input_buffer_size; /* buffer size in bytes */
|
||||
int input_buffer_length; /* number of chars in buffer */
|
||||
|
||||
+2
-2
@@ -680,9 +680,9 @@ gui_chat_line_free (struct t_gui_buffer *buffer, struct t_gui_line *line)
|
||||
|
||||
/* remove line from lines list */
|
||||
if (line->prev_line)
|
||||
line->prev_line->next_line = line->next_line;
|
||||
(line->prev_line)->next_line = line->next_line;
|
||||
if (line->next_line)
|
||||
line->next_line->prev_line = line->prev_line;
|
||||
(line->next_line)->prev_line = line->prev_line;
|
||||
if (buffer->lines == line)
|
||||
buffer->lines = line->next_line;
|
||||
if (buffer->last_line == line)
|
||||
|
||||
@@ -156,9 +156,9 @@ gui_completion_partial_list_free (struct t_gui_completion_partial *item)
|
||||
{
|
||||
/* remove partial completion item from list */
|
||||
if (item->prev_item)
|
||||
item->prev_item->next_item = item->next_item;
|
||||
(item->prev_item)->next_item = item->next_item;
|
||||
if (item->next_item)
|
||||
item->next_item->prev_item = item->prev_item;
|
||||
(item->next_item)->prev_item = item->prev_item;
|
||||
if (gui_completion_partial_list == item)
|
||||
gui_completion_partial_list = item->next_item;
|
||||
if (last_gui_completion_partial == item)
|
||||
|
||||
@@ -381,9 +381,9 @@ gui_filter_free (struct t_gui_filter *filter)
|
||||
|
||||
/* remove filter from filters list */
|
||||
if (filter->prev_filter)
|
||||
filter->prev_filter->next_filter = filter->next_filter;
|
||||
(filter->prev_filter)->next_filter = filter->next_filter;
|
||||
if (filter->next_filter)
|
||||
filter->next_filter->prev_filter = filter->prev_filter;
|
||||
(filter->next_filter)->prev_filter = filter->prev_filter;
|
||||
if (gui_filters == filter)
|
||||
gui_filters = filter->next_filter;
|
||||
if (last_gui_filter == filter)
|
||||
|
||||
+1
-64
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,6 @@ extern void gui_input_prompt_changed_signal ();
|
||||
extern void gui_input_text_changed_signal ();
|
||||
extern void gui_input_search_signal ();
|
||||
extern void gui_input_optimize_size (struct t_gui_buffer *buffer);
|
||||
extern void gui_input_init_color_mask (struct t_gui_buffer *buffer);
|
||||
extern void gui_input_move (struct t_gui_buffer *buffer, char *target,
|
||||
const char *source, int size);
|
||||
extern int gui_input_insert_string (struct t_gui_buffer *buffer,
|
||||
|
||||
@@ -61,9 +61,9 @@ gui_layout_buffer_remove (struct t_gui_layout_buffer *layout_buffer)
|
||||
|
||||
/* remove layout from list */
|
||||
if (layout_buffer->prev_layout)
|
||||
layout_buffer->prev_layout->next_layout = layout_buffer->next_layout;
|
||||
(layout_buffer->prev_layout)->next_layout = layout_buffer->next_layout;
|
||||
if (layout_buffer->next_layout)
|
||||
layout_buffer->next_layout->prev_layout = layout_buffer->prev_layout;
|
||||
(layout_buffer->next_layout)->prev_layout = layout_buffer->prev_layout;
|
||||
if (gui_layout_buffers == layout_buffer)
|
||||
gui_layout_buffers = layout_buffer->next_layout;
|
||||
if (last_gui_layout_buffer == layout_buffer)
|
||||
|
||||
+22
-12
@@ -276,6 +276,7 @@ gui_nicklist_search_nick (struct t_gui_buffer *buffer,
|
||||
const char *name)
|
||||
{
|
||||
struct t_gui_nick *ptr_nick;
|
||||
struct t_gui_nick_group *ptr_group;
|
||||
|
||||
for (ptr_nick = (from_group) ? from_group->nicks : buffer->nicklist_root->nicks;
|
||||
ptr_nick; ptr_nick = ptr_nick->next_nick)
|
||||
@@ -283,6 +284,15 @@ gui_nicklist_search_nick (struct t_gui_buffer *buffer,
|
||||
if (strcmp (ptr_nick->name, name) == 0)
|
||||
return ptr_nick;
|
||||
}
|
||||
|
||||
/* search nick in child groups */
|
||||
for (ptr_group = (from_group) ? from_group->childs : buffer->nicklist_root->childs;
|
||||
ptr_group; ptr_group = ptr_group->next_group)
|
||||
{
|
||||
ptr_nick = gui_nicklist_search_nick (buffer, ptr_group, name);
|
||||
if (ptr_nick)
|
||||
return ptr_nick;
|
||||
}
|
||||
|
||||
/* nick not found */
|
||||
return NULL;
|
||||
@@ -337,13 +347,13 @@ gui_nicklist_remove_nick (struct t_gui_buffer *buffer,
|
||||
|
||||
/* remove nick from list */
|
||||
if (nick->prev_nick)
|
||||
nick->prev_nick->next_nick = nick->next_nick;
|
||||
(nick->prev_nick)->next_nick = nick->next_nick;
|
||||
if (nick->next_nick)
|
||||
nick->next_nick->prev_nick = nick->prev_nick;
|
||||
if (nick->group->nicks == nick)
|
||||
nick->group->nicks = nick->next_nick;
|
||||
if (nick->group->last_nick == nick)
|
||||
nick->group->last_nick = nick->prev_nick;
|
||||
(nick->next_nick)->prev_nick = nick->prev_nick;
|
||||
if ((nick->group)->nicks == nick)
|
||||
(nick->group)->nicks = nick->next_nick;
|
||||
if ((nick->group)->last_nick == nick)
|
||||
(nick->group)->last_nick = nick->prev_nick;
|
||||
|
||||
/* free data */
|
||||
if (nick->name)
|
||||
@@ -391,13 +401,13 @@ gui_nicklist_remove_group (struct t_gui_buffer *buffer,
|
||||
{
|
||||
/* remove group from list */
|
||||
if (group->prev_group)
|
||||
group->prev_group->next_group = group->next_group;
|
||||
(group->prev_group)->next_group = group->next_group;
|
||||
if (group->next_group)
|
||||
group->next_group->prev_group = group->prev_group;
|
||||
if (group->parent->childs == group)
|
||||
group->parent->childs = group->next_group;
|
||||
if (group->parent->last_child == group)
|
||||
group->parent->last_child = group->prev_group;
|
||||
(group->next_group)->prev_group = group->prev_group;
|
||||
if ((group->parent)->childs == group)
|
||||
(group->parent)->childs = group->next_group;
|
||||
if ((group->parent)->last_child == group)
|
||||
(group->parent)->last_child = group->prev_group;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -387,9 +387,9 @@ gui_window_free (struct t_gui_window *window)
|
||||
|
||||
/* remove window from windows list */
|
||||
if (window->prev_window)
|
||||
window->prev_window->next_window = window->next_window;
|
||||
(window->prev_window)->next_window = window->next_window;
|
||||
if (window->next_window)
|
||||
window->next_window->prev_window = window->prev_window;
|
||||
(window->next_window)->prev_window = window->prev_window;
|
||||
if (gui_windows == window)
|
||||
gui_windows = window->next_window;
|
||||
if (last_gui_window == window)
|
||||
|
||||
@@ -31,13 +31,13 @@ IF(NOT DISABLE_ALIAS)
|
||||
ADD_SUBDIRECTORY( alias )
|
||||
ENDIF(NOT DISABLE_ALIAS)
|
||||
|
||||
IF(ENABLE_ASPELL)
|
||||
IF(NOT DISABLE_ASPELL)
|
||||
# Check for aspell libraries
|
||||
FIND_PACKAGE(Aspell)
|
||||
IF(ASPELL_FOUND)
|
||||
ADD_SUBDIRECTORY( aspell )
|
||||
ENDIF(ASPELL_FOUND)
|
||||
ENDIF(ENABLE_ASPELL)
|
||||
ENDIF(NOT DISABLE_ASPELL)
|
||||
|
||||
IF(NOT DISABLE_CHARSET)
|
||||
# Check for iconv support.
|
||||
|
||||
@@ -14,7 +14,10 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
ADD_LIBRARY(aspell MODULE aspell.c aspell.h)
|
||||
ADD_LIBRARY(aspell MODULE
|
||||
aspell.c aspell.h
|
||||
aspell-config.c aspell-config.h
|
||||
aspell-speller.c aspell-speller.h)
|
||||
SET_TARGET_PROPERTIES(aspell PROPERTIES PREFIX "")
|
||||
|
||||
IF(ASPELL_FOUND)
|
||||
|
||||
@@ -20,6 +20,11 @@ libdir = ${weechat_libdir}/plugins
|
||||
|
||||
lib_LTLIBRARIES = aspell.la
|
||||
|
||||
aspell_la_SOURCES = aspell.c aspell.h
|
||||
aspell_la_SOURCES = aspell.c \
|
||||
aspell.h \
|
||||
aspell-config.c \
|
||||
aspell-config.h \
|
||||
aspell-speller.c \
|
||||
aspell-speller.h
|
||||
aspell_la_LDFLAGS = -module
|
||||
aspell_la_LIBADD = $(ASPELL_LFLAGS)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_ASPELL_CONFIG_H
|
||||
#define __WEECHAT_ASPELL_CONFIG_H 1
|
||||
|
||||
#define ASPELL_CONFIG_NAME "aspell"
|
||||
|
||||
|
||||
extern struct t_config_option *weechat_aspell_config_look_color;
|
||||
|
||||
extern struct t_config_option *weechat_aspell_config_check_default_dict;
|
||||
extern struct t_config_option *weechat_aspell_config_check_real_time;
|
||||
extern struct t_config_option *weechat_aspell_config_check_word_min_length;
|
||||
|
||||
extern char **weechat_aspell_commands_to_check;
|
||||
extern int weechat_aspell_count_commands_to_check;
|
||||
extern int *weechat_aspell_length_commands_to_check;
|
||||
|
||||
extern struct t_config_option *weechat_aspell_config_get_dict (const char *name);
|
||||
extern int weechat_aspell_config_set_dict (const char *name, const char *value);
|
||||
extern int weechat_aspell_config_init ();
|
||||
extern int weechat_aspell_config_read ();
|
||||
extern int weechat_aspell_config_write ();
|
||||
extern void weechat_aspell_config_free ();
|
||||
|
||||
#endif /* aspell-config.h */
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright (c) 2003-2008 by FlashCode <flashcode@flashtux.org>
|
||||
* See README for License detail, AUTHORS for developers list.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __WEECHAT_ASPELL_SPELLER_H
|
||||
#define __WEECHAT_ASPELL_SPELLER_H 1
|
||||
|
||||
struct t_aspell_speller
|
||||
{
|
||||
AspellSpeller *speller; /* aspell speller */
|
||||
char *lang; /* language */
|
||||
|
||||
struct t_aspell_speller *prev_speller; /* pointer to next speller */
|
||||
struct t_aspell_speller *next_speller; /* pointer to previous speller */
|
||||
};
|
||||
|
||||
extern struct t_aspell_speller *weechat_aspell_spellers;
|
||||
|
||||
extern int weechat_aspell_speller_exists (const char *lang);
|
||||
extern struct t_aspell_speller *weechat_aspell_speller_search (const char *lang);
|
||||
extern void weechat_aspell_speller_check_dictionaries (const char *dict_list);
|
||||
extern struct t_aspell_speller *weechat_aspell_speller_new (const char *lang);
|
||||
extern void weechat_aspell_speller_free (struct t_aspell_speller *speller);
|
||||
extern void weechat_aspell_speller_free_all ();
|
||||
|
||||
#endif /* aspell-speller.h */
|
||||
+832
-1256
File diff suppressed because it is too large
Load Diff
+10
-162
File diff suppressed because it is too large
Load Diff
@@ -354,7 +354,7 @@ charset_decode_cb (void *data, const char *modifier, const char *modifier_data,
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
"charset: debug: using 'decode' charset: %s "
|
||||
"(modifier='%s', modifier_data='%s', string='%s')",
|
||||
"(modifier=\"%s\", modifier_data=\"%s\", string=\"%s\")",
|
||||
charset, modifier, modifier_data, string);
|
||||
}
|
||||
if (charset && charset[0])
|
||||
@@ -383,7 +383,7 @@ charset_encode_cb (void *data, const char *modifier, const char *modifier_data,
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
"charset: debug: using 'encode' charset: %s "
|
||||
"(modifier='%s', modifier_data='%s', string='%s')",
|
||||
"(modifier=\"%s\", modifier_data=\"%s\", string=\"%s\")",
|
||||
charset, modifier, modifier_data, string);
|
||||
}
|
||||
if (charset && charset[0])
|
||||
@@ -407,11 +407,11 @@ charset_set (struct t_config_section *section, const char *type,
|
||||
value) > 0)
|
||||
{
|
||||
if (value && value[0])
|
||||
weechat_printf (NULL, _("Charset: %s, %s => %s"),
|
||||
type, name, value);
|
||||
weechat_printf (NULL, "%s: %s, %s => %s",
|
||||
CHARSET_PLUGIN_NAME, type, name, value);
|
||||
else
|
||||
weechat_printf (NULL, _("Charset: %s, %s: removed"),
|
||||
type, name);
|
||||
weechat_printf (NULL, _("%s: %s, %s: removed"),
|
||||
CHARSET_PLUGIN_NAME, type, name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
|
||||
if (argc > 1)
|
||||
weechat_printf (buffer,
|
||||
"demo_printf: '%s'", argv_eol[1]);
|
||||
"demo_printf: \"%s\"", argv_eol[1]);
|
||||
else
|
||||
{
|
||||
weechat_printf (buffer,
|
||||
@@ -121,7 +121,7 @@ demo_buffer_input_data_cb (void *data, struct t_gui_buffer *buffer,
|
||||
|
||||
weechat_printf (buffer,
|
||||
"buffer_input_data_cb: buffer = %x (%s), "
|
||||
"input_data = '%s'",
|
||||
"input_data = \"%s\"",
|
||||
buffer,
|
||||
weechat_buffer_get_string (buffer, "name"),
|
||||
input_data);
|
||||
@@ -372,7 +372,7 @@ demo_signal_cb (void *data, const char *signal, const char *type_data,
|
||||
{
|
||||
weechat_printf (NULL,
|
||||
_("demo_signal: signal: %s, type_data: %s, "
|
||||
"signal_data: '%s'"),
|
||||
"signal_data: \"%s\""),
|
||||
signal, type_data, (char *)signal_data);
|
||||
}
|
||||
else if (strcmp (type_data, WEECHAT_HOOK_SIGNAL_INT) == 0)
|
||||
|
||||
@@ -2795,7 +2795,7 @@ irc_command_server (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
{
|
||||
weechat_printf (NULL, "");
|
||||
weechat_printf (NULL,
|
||||
_("Servers with '%s':"),
|
||||
_("Servers with \"%s\":"),
|
||||
server_name);
|
||||
}
|
||||
one_server_found = 1;
|
||||
|
||||
@@ -230,9 +230,9 @@ irc_ignore_free (struct t_irc_ignore *ignore)
|
||||
|
||||
/* remove filter from filters list */
|
||||
if (ignore->prev_ignore)
|
||||
ignore->prev_ignore->next_ignore = ignore->next_ignore;
|
||||
(ignore->prev_ignore)->next_ignore = ignore->next_ignore;
|
||||
if (ignore->next_ignore)
|
||||
ignore->next_ignore->prev_ignore = ignore->prev_ignore;
|
||||
(ignore->next_ignore)->prev_ignore = ignore->prev_ignore;
|
||||
if (irc_ignore_list == ignore)
|
||||
irc_ignore_list = ignore->next_ignore;
|
||||
if (last_irc_ignore == ignore)
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
#define LOGGER_CONFIG_NAME "logger"
|
||||
|
||||
|
||||
extern struct t_config_file *logger_config_file;
|
||||
|
||||
extern struct t_config_option *logger_config_look_backlog;
|
||||
|
||||
extern struct t_config_option *logger_config_file_auto_log;
|
||||
|
||||
@@ -179,7 +179,7 @@ script_ptr2str (void *pointer)
|
||||
if (!pointer)
|
||||
return strdup ("");
|
||||
|
||||
snprintf (pointer_str, sizeof (pointer_str) - 1,
|
||||
snprintf (pointer_str, sizeof (pointer_str),
|
||||
"0x%x", (unsigned int)pointer);
|
||||
|
||||
return strdup (pointer_str);
|
||||
|
||||
Reference in New Issue
Block a user