Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libspelling for openSUSE:Factory checked in at 2026-11-13 20:12:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libspelling (Old) and /work/SRC/openSUSE:Factory/.libspelling.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libspelling" Fri Nov 13 20:12:47 2026 rev:17 rq:1397042 version:0.4.11 Changes: -------- --- /work/SRC/openSUSE:Factory/libspelling/libspelling.changes 2026-09-09 16:24:08.215503389 +0200 +++ /work/SRC/openSUSE:Factory/.libspelling.new.1251/libspelling.changes 2026-11-13 20:13:22.772080086 +0100 @@ -1,0 +2,16 @@ +Sat Nov 7 06:11:46 UTC 2026 - Bjørn Lie <[email protected]> + +- Update to version 0.4.11: + * Fix false positives when checking words around punctuation and whitespace + * Recheck surrounding words after deleting text + * Recheck the buffer after changing languages from the spelling menu + * Fix the language submenu action namespace + * Fix an uninitialized offset when scanning already checked text + * Use a single underline by default to improve rendering performance + * Remove incorrect G_GNUC_CONST annotations from type registration functions + * Fix documentation dependency links and introspection documentation format + * Fix checker to take new reference to provider + * Updated translations. +- Update version dependencies according to meson.build. + +------------------------------------------------------------------- Old: ---- libspelling-0.4.10.tar.xz New: ---- libspelling-0.4.11.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libspelling.spec ++++++ --- /var/tmp/diff_new_pack.2vqM2C/_old 2026-11-13 20:13:23.749121444 +0100 +++ /var/tmp/diff_new_pack.2vqM2C/_new 2026-11-13 20:13:23.750121486 +0100 @@ -20,7 +20,7 @@ %define api_ver 1 Name: libspelling -Version: 0.4.10 +Version: 0.4.11 Release: 0 Summary: A spellcheck library for GTK 4 License: LGPL-2.1-or-later @@ -35,7 +35,7 @@ BuildRequires: pkgconfig(gio-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk4) >= 4.15.5 -BuildRequires: pkgconfig(gtksourceview-5) +BuildRequires: pkgconfig(gtksourceview-5) >= 5.10.0 BuildRequires: pkgconfig(icu-uc) BuildRequires: pkgconfig(vapigen) # For tests ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.2vqM2C/_old 2026-11-13 20:13:23.810124026 +0100 +++ /var/tmp/diff_new_pack.2vqM2C/_new 2026-11-13 20:13:23.818124364 +0100 @@ -1,7 +1,7 @@ -mtime: 1788938204 -commit: 3c8aef6a5fc4c949f5a4bb57c0cef0c539080534d2347e8212e7ecd18147b7b5 +mtime: 1794032065 +commit: f6bfcc1dda857d9e5ba03386a7f669825a79af86f1b960122d1d8eeec4d9fc98 url: https://src.opensuse.org/GNOME/libspelling -revision: 3c8aef6a5fc4c949f5a4bb57c0cef0c539080534d2347e8212e7ecd18147b7b5 +revision: f6bfcc1dda857d9e5ba03386a7f669825a79af86f1b960122d1d8eeec4d9fc98 trackingbranch: factory projectscmsync: https://src.opensuse.org/GNOME/_ObsPrj ++++++ _service ++++++ --- /var/tmp/diff_new_pack.2vqM2C/_old 2026-11-13 20:13:23.840125296 +0100 +++ /var/tmp/diff_new_pack.2vqM2C/_new 2026-11-13 20:13:23.842125380 +0100 @@ -3,7 +3,7 @@ <service name="obs_scm" mode="manual"> <param name="scm">git</param> <param name="url">https://gitlab.gnome.org/GNOME/libspelling.git</param> - <param name="revision">0.4.10</param> + <param name="revision">0.4.11</param> <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> <param name="versionrewrite-pattern">v?(.*)\+0</param> <param name="versionrewrite-replacement">\1</param> ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-07 07:14:25.000000000 +0100 @@ -0,0 +1,5 @@ +*.obscpio +*.osc +_build.* +.pbuild +osc-collab.* ++++++ libspelling-0.4.10.tar.xz -> libspelling-0.4.11.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/.gitlab-ci.yml new/libspelling-0.4.11/.gitlab-ci.yml --- old/libspelling-0.4.10/.gitlab-ci.yml 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/.gitlab-ci.yml 2026-11-07 00:24:17.000000000 +0100 @@ -2,6 +2,8 @@ - project: "GNOME/citemplates" file: "templates/default-rules.yml" - component: "gitlab.gnome.org/GNOME/citemplates/gnomeos-basic-ci@master" + inputs: + goblint: "disabled" - component: "gitlab.gnome.org/GNOME/citemplates/basic-deploy-docs@master" - component: "gitlab.gnome.org/GNOME/citemplates/release-service@master" inputs: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/NEWS new/libspelling-0.4.11/NEWS --- old/libspelling-0.4.10/NEWS 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/NEWS 2026-11-07 00:24:17.000000000 +0100 @@ -1,3 +1,20 @@ +libspelling 0.4.11 +================== + +This is a bug-fix release for GNOME 48 and newer + + * Fix false positives when checking words around punctuation and whitespace + * Recheck surrounding words after deleting text + * Recheck the buffer after changing languages from the spelling menu + * Fix the language submenu action namespace + * Fix an uninitialized offset when scanning already checked text + * Use a single underline by default to improve rendering performance + * Remove incorrect G_GNUC_CONST annotations from type registration functions + * Fix documentation dependency links and introspection documentation format + * Fix checker to take new reference to provider + * Add Lao, Swiss German, and Norwegian Nynorsk translations + * Update Bulgarian and Cornish translations + libspelling 0.4.10 ================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/docs/Spelling.toml.in new/libspelling-0.4.11/docs/Spelling.toml.in --- old/libspelling-0.4.10/docs/Spelling.toml.in 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/docs/Spelling.toml.in 2026-11-07 00:24:17.000000000 +0100 @@ -23,17 +23,17 @@ docs_url = "https://docs.gtk.org/glib/" [dependencies."Gio-2.0"] - name = "GIO" + name = "Gio" description = "GObject Interfaces and Objects, Networking, IPC, and I/O" docs_url = "https://docs.gtk.org/gio/" [dependencies."Gtk-4.0"] - name = "GTK" + name = "Gtk" description = "The GTK toolkit" docs_url = "https://docs.gtk.org/gtk4/" [dependencies."GtkSource-5"] - name = "GtkSourceView" + name = "GtkSource" description = "The GTK source editor widget" docs_url = "https://gnome.pages.gitlab.gnome.org/gtksourceview/gtksourceview5/" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/meson.build new/libspelling-0.4.11/lib/meson.build --- old/libspelling-0.4.10/lib/meson.build 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/meson.build 2026-11-07 00:24:17.000000000 +0100 @@ -109,6 +109,16 @@ if get_option('introspection').enabled() gnome = import('gnome') + + gi_scanner = find_program('g-ir-scanner', required: get_option('introspection')) + libspelling_gir_extra_args = [ + '-DLIBSPELLING_COMPILATION', + ] + if gi_scanner.version().version_compare('>=1.83.2') + libspelling_gir_extra_args += [ + '--doc-format=gi-docgen', + ] + endif libspelling_gir = gnome.generate_gir(libspelling, nsversion: api_version, sources: [libspelling_public_sources, libspelling_public_headers], @@ -119,7 +129,7 @@ export_packages: 'libspelling-' + api_version, install: true, header: 'libspelling.h', - extra_args: '-DLIBSPELLING_COMPILATION', + extra_args: libspelling_gir_extra_args, ) if get_option('vapi') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-checker.c new/libspelling-0.4.11/lib/spelling-checker.c --- old/libspelling-0.4.10/lib/spelling-checker.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-checker.c 2026-11-07 00:24:17.000000000 +0100 @@ -90,7 +90,7 @@ G_OBJECT_CLASS (spelling_checker_parent_class)->constructed (object); if (self->provider == NULL) - self->provider = spelling_provider_get_default (); + self->provider = g_object_ref (spelling_provider_get_default ()); } static void diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-cursor.c new/libspelling-0.4.11/lib/spelling-cursor.c --- old/libspelling-0.4.10/lib/spelling-cursor.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-cursor.c 2026-11-07 00:24:17.000000000 +0100 @@ -41,6 +41,12 @@ typedef struct { + gsize position; + gboolean found; +} RegionIterNext; + +typedef struct +{ GtkTextBuffer *buffer; GtkTextTag *tag; GtkTextIter pos; @@ -78,8 +84,10 @@ { if (run->data == RUN_UNCHECKED) { - gsize *pos = user_data; - *pos = position; + RegionIterNext *state = user_data; + + state->position = position; + state->found = TRUE; RETURN (TRUE); } @@ -90,7 +98,8 @@ region_iter_next (RegionIter *self, GtkTextIter *iter) { - gsize pos, new_pos; + RegionIterNext state = {0}; + gsize pos; if (self->pos >= (gssize)_cjh_text_region_get_length (self->region)) { @@ -107,9 +116,16 @@ pos, _cjh_text_region_get_length (self->region), region_iter_next_cb, - &new_pos); + &state); + + if (!state.found) + { + gtk_text_buffer_get_end_iter (self->buffer, iter); + self->pos = _cjh_text_region_get_length (self->region); + RETURN (FALSE); + } - pos = MAX (pos, new_pos); + pos = MAX (pos, state.position); gtk_text_buffer_get_iter_at_offset (self->buffer, iter, pos); self->pos = pos; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-dictionary.h new/libspelling-0.4.11/lib/spelling-dictionary.h --- old/libspelling-0.4.10/lib/spelling-dictionary.h 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-dictionary.h 2026-11-07 00:24:17.000000000 +0100 @@ -41,7 +41,7 @@ typedef struct _SpellingDictionaryClass SpellingDictionaryClass; SPELLING_AVAILABLE_IN_ALL -GType spelling_dictionary_get_type (void) G_GNUC_CONST; +GType spelling_dictionary_get_type (void); SPELLING_AVAILABLE_IN_ALL const char *spelling_dictionary_get_code (SpellingDictionary *self); SPELLING_AVAILABLE_IN_ALL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-engine.c new/libspelling-0.4.11/lib/spelling-engine.c --- old/libspelling-0.4.10/lib/spelling-engine.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-engine.c 2026-11-07 00:24:17.000000000 +0100 @@ -530,9 +530,18 @@ spelling_engine_after_delete_range (SpellingEngine *self, guint position) { + g_autoptr(GObject) instance = NULL; + guint begin; + guint end; + g_return_if_fail (SPELLING_IS_ENGINE (self)); - spelling_engine_invalidate (self, position, 0); + begin = position; + end = position; + + if ((instance = g_weak_ref_get (&self->instance_wr)) && + spelling_engine_extend_range (self, &begin, &end)) + spelling_engine_invalidate (self, begin, end - begin); } void diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-job.c new/libspelling-0.4.11/lib/spelling-job.c --- old/libspelling-0.4.10/lib/spelling-job.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-job.c 2026-11-07 00:24:17.000000000 +0100 @@ -255,6 +255,9 @@ { while (*iptr < attrslen) { + if (attrs[*iptr].is_white) + return TRUE; + if (attrs[*iptr].is_word_end) { gboolean skipped = FALSE; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-menu.c new/libspelling-0.4.11/lib/spelling-menu.c --- old/libspelling-0.4.10/lib/spelling-menu.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-menu.c 2026-11-07 00:24:17.000000000 +0100 @@ -286,7 +286,7 @@ g_menu_item_set_attribute (add_item, "hidden-when", "s", "action-disabled"); g_menu_item_set_attribute (ignore_item, "hidden-when", "s", "action-disabled"); g_menu_item_set_attribute (check_item, "role", "s", "check"); - g_menu_item_set_attribute (languages_item, "submenu-action", "s", "spellcheck.enabled"); + g_menu_item_set_attribute (languages_item, "submenu-action", "s", "spelling.enabled"); g_menu_append_section (menu, NULL, G_MENU_MODEL (corrections_menu)); g_menu_append_item (menu, add_item); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-provider.h new/libspelling-0.4.11/lib/spelling-provider.h --- old/libspelling-0.4.10/lib/spelling-provider.h 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-provider.h 2026-11-07 00:24:17.000000000 +0100 @@ -41,7 +41,7 @@ typedef struct _SpellingProviderClass SpellingProviderClass; SPELLING_AVAILABLE_IN_ALL -GType spelling_provider_get_type (void) G_GNUC_CONST; +GType spelling_provider_get_type (void); SPELLING_AVAILABLE_IN_ALL SpellingProvider *spelling_provider_get_default (void); SPELLING_AVAILABLE_IN_ALL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/lib/spelling-text-buffer-adapter.c new/libspelling-0.4.11/lib/spelling-text-buffer-adapter.c --- old/libspelling-0.4.10/lib/spelling-text-buffer-adapter.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/lib/spelling-text-buffer-adapter.c 2026-11-07 00:24:17.000000000 +0100 @@ -546,7 +546,7 @@ gdk_rgba_parse (&error_color, "#e01b24"); g_object_set (tag, - "underline", PANGO_UNDERLINE_ERROR_LINE, + "underline", PANGO_UNDERLINE_SINGLE, "underline-rgba", &error_color, "background-set", FALSE, "foreground-set", FALSE, @@ -1269,8 +1269,7 @@ code = g_variant_get_string (param, NULL); - if (self->checker) - spelling_checker_set_language (self->checker, code); + spelling_text_buffer_adapter_set_language (self, code); } /** diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/meson.build new/libspelling-0.4.11/meson.build --- old/libspelling-0.4.10/meson.build 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/meson.build 2026-11-07 00:24:17.000000000 +0100 @@ -1,5 +1,5 @@ project('libspelling', 'c', - version: '0.4.10', + version: '0.4.11', meson_version: '>= 0.62.0', default_options: [ 'warning_level=2', 'werror=false', 'c_std=gnu11', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/LINGUAS new/libspelling-0.4.11/po/LINGUAS --- old/libspelling-0.4.10/po/LINGUAS 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/po/LINGUAS 2026-11-07 00:24:17.000000000 +0100 @@ -6,6 +6,7 @@ cs da de +de_CH el en_GB eo @@ -31,11 +32,13 @@ kk ko kw +lo lt lv nb ne nl +nn oc pa pl diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/bg.po new/libspelling-0.4.11/po/bg.po --- old/libspelling-0.4.10/po/bg.po 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/po/bg.po 2026-11-07 00:24:17.000000000 +0100 @@ -1,16 +1,16 @@ # Bulgarian translation of libspelling po-file. -# Copyright (C) 2022, 2023, 2024 Alexander Shopov. +# Copyright (C) 2022, 2023, 2024, 2026 Alexander Shopov. # Copyright (C) 2024 twlvnn kraftwerk. # This file is distributed under the same license as the libspelling package. -# Alexander Shopov <[email protected]> 2022, 2023, 2024. +# Alexander Shopov <[email protected]> 2022, 2023, 2024, 2026. # twlvnn kraftwerk <[email protected]>, 2024. # msgid "" msgstr "" "Project-Id-Version: libspelling main\n" -"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/issues\n" -"POT-Creation-Date: 2024-10-18 12:30-0700\n" -"PO-Revision-Date: 2024-08-31 11:54+0200\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/-/issues\n" +"POT-Creation-Date: 2024-10-31 20:29+0000\n" +"PO-Revision-Date: 2026-02-22 18:54+0100\n" "Last-Translator: Alexander Shopov <[email protected]>\n" "Language-Team: Bulgarian <[email protected]>\n" "Language: bg\n" @@ -25,7 +25,7 @@ #: lib/spelling-menu.c:274 msgid "Ignore" -msgstr "Игнориране" +msgstr "Прескачане" #: lib/spelling-menu.c:275 msgid "Check Spelling" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/de_CH.po new/libspelling-0.4.11/po/de_CH.po --- old/libspelling-0.4.10/po/de_CH.po 1970-01-01 01:00:00.000000000 +0100 +++ new/libspelling-0.4.11/po/de_CH.po 2026-11-07 00:24:17.000000000 +0100 @@ -0,0 +1,35 @@ +# Swiss German translation for libspelling. +# Copyright (C) 2026 libspelling's COPYRIGHT HOLDER +# This file is distributed under the same license as the libspelling package. +# Rexle Rex <[email protected]>, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: libspelling main\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/-/issues\n" +"POT-Creation-Date: 2024-10-31 20:29+0000\n" +"PO-Revision-Date: 2026-04-20 17:35+0200\n" +"Last-Translator: \n" +"Language-Team: Swiss German <[email protected]>\n" +"Language: de_CH\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 3.9\n" + +#: lib/spelling-menu.c:273 +msgid "Add to Dictionary" +msgstr "Zum Wörterbuch hinzufügen" + +#: lib/spelling-menu.c:274 +msgid "Ignore" +msgstr "Ignorieren" + +#: lib/spelling-menu.c:275 +msgid "Check Spelling" +msgstr "Rechtschreibung überprüfen" + +#: lib/spelling-menu.c:284 +msgid "Languages" +msgstr "Sprachen" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/kw.po new/libspelling-0.4.11/po/kw.po --- old/libspelling-0.4.10/po/kw.po 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/po/kw.po 2026-11-07 00:24:17.000000000 +0100 @@ -9,7 +9,7 @@ "Project-Id-Version: libspelling main\n" "Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/-/issues\n" "POT-Creation-Date: 2024-10-31 20:29+0000\n" -"PO-Revision-Date: 2026-01-26 12:42+0000\n" +"PO-Revision-Date: 2026-04-26 20:18+0100\n" "Last-Translator: Flynn Peck <[email protected]>\n" "Language-Team: kw\n" "Language: kw\n" @@ -23,11 +23,11 @@ "X-DL-Domain: po\n" "X-DL-State: Translating\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Gtranslator 49.0\n" +"X-Generator: Gtranslator 50.0\n" #: lib/spelling-menu.c:273 msgid "Add to Dictionary" -msgstr "Addya dhe Gerlyver" +msgstr "Keworra dhe Erlyver" #: lib/spelling-menu.c:274 msgid "Ignore" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/lo.po new/libspelling-0.4.11/po/lo.po --- old/libspelling-0.4.10/po/lo.po 1970-01-01 01:00:00.000000000 +0100 +++ new/libspelling-0.4.11/po/lo.po 2026-11-07 00:24:17.000000000 +0100 @@ -0,0 +1,33 @@ +# Lao translation for libspelling. +# Copyright (C) 2025 libspelling's COPYRIGHT HOLDER +# This file is distributed under the same license as the libspelling package. +# bone NI <[email protected]>, 2025. +# +msgid "" +msgstr "" +"Project-Id-Version: libspelling main\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/-/issues\n" +"POT-Creation-Date: 2025-09-10 21:31+0000\n" +"PO-Revision-Date: 2025-09-10 21:31+0000\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: Lao <[email protected]>\n" +"Language: lo\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: lib/spelling-menu.c:273 +msgid "Add to Dictionary" +msgstr "ເພີ່ມໃສ່ວັດຈະນານຸກົມ" + +#: lib/spelling-menu.c:274 +msgid "Ignore" +msgstr "ບໍ່ສົນໃຈ" + +#: lib/spelling-menu.c:275 +msgid "Check Spelling" +msgstr "ກວດການສະກົດຄຳ" + +#: lib/spelling-menu.c:284 +msgid "Languages" +msgstr "ພາສາ" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/po/nn.po new/libspelling-0.4.11/po/nn.po --- old/libspelling-0.4.10/po/nn.po 1970-01-01 01:00:00.000000000 +0100 +++ new/libspelling-0.4.11/po/nn.po 2026-11-07 00:24:17.000000000 +0100 @@ -0,0 +1,33 @@ +# Norwegian nynorsk translation of libspelling. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# Roy-Magne Mo <[email protected]>, 2026. +# +msgid "" +msgstr "" +"Project-Id-Version: libspelling main\n" +"Report-Msgid-Bugs-To: https://gitlab.gnome.org/GNOME/libspelling/-/issues\n" +"POT-Creation-Date: 2026-05-20 00:30+0000\n" +"PO-Revision-Date: 2026-09-18 09:52+0200\n" +"Last-Translator: Roy-Magne Mo <[email protected]>\n" +"Language-Team: Norwegian Nynorsk <[email protected]>\n" +"Language: nn\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: lib/spelling-menu.c:273 +msgid "Add to Dictionary" +msgstr "Legg til i ordboka" + +#: lib/spelling-menu.c:274 +msgid "Ignore" +msgstr "Ignorer" + +#: lib/spelling-menu.c:275 +msgid "Check Spelling" +msgstr "Sjekk stavemåte" + +#: lib/spelling-menu.c:284 +msgid "Languages" +msgstr "Språk" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/testsuite/test-cursor.c new/libspelling-0.4.11/testsuite/test-cursor.c --- old/libspelling-0.4.10/testsuite/test-cursor.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/testsuite/test-cursor.c 2026-11-07 00:24:17.000000000 +0100 @@ -179,6 +179,24 @@ } static void +test_cursor_all_checked (void) +{ + g_autoptr(GtkTextBuffer) buffer = gtk_text_buffer_new (NULL); + CjhTextRegion *region = _cjh_text_region_new (NULL, NULL); + g_autoptr(SpellingCursor) cursor = spelling_cursor_new (buffer, region, NULL, NULL); + char *word; + + gtk_text_buffer_set_text (buffer, test_text, -1); + _cjh_text_region_insert (region, 0, strlen (test_text), GINT_TO_POINTER (1)); + + word = next_word (cursor); + g_assert_cmpstr (word, ==, NULL); + g_clear_pointer (&word, g_free); + + _cjh_text_region_free (region); +} + +static void test_cursor_join_words (void) { g_autoptr(GtkTextBuffer) buffer = gtk_text_buffer_new (NULL); @@ -245,6 +263,7 @@ g_test_add_func ("/Spelling/Cursor/basic2", test_cursor2); #endif g_test_add_func ("/Spelling/Cursor/in_word", test_cursor_in_word); + g_test_add_func ("/Spelling/Cursor/all_checked", test_cursor_all_checked); g_test_add_func ("/Spelling/Cursor/join_words", test_cursor_join_words); return g_test_run (); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/testsuite/test-engine.c new/libspelling-0.4.11/testsuite/test-engine.c --- old/libspelling-0.4.10/testsuite/test-engine.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/testsuite/test-engine.c 2026-11-07 00:24:17.000000000 +0100 @@ -20,6 +20,9 @@ #include "config.h" +#include <locale.h> +#include <string.h> + #include <libspelling.h> #include "spelling-engine-private.h" @@ -28,6 +31,22 @@ static GtkBitset *mispelled; static SpellingDictionary *dictionary; static guint cursor; +static guint last_clear_position; +static guint last_clear_length; + +typedef struct _TestDictionary +{ + SpellingDictionary parent_instance; +} TestDictionary; + +typedef struct _TestDictionaryClass +{ + SpellingDictionaryClass parent_class; +} TestDictionaryClass; + +GType test_dictionary_get_type (void); + +G_DEFINE_FINAL_TYPE (TestDictionary, test_dictionary, SPELLING_TYPE_DICTIONARY) typedef struct { @@ -37,6 +56,42 @@ gunichar ch; } StringIter; +static gboolean +test_dictionary_contains_word (SpellingDictionary *self, + const char *word, + gssize word_len) +{ + g_assert (SPELLING_IS_DICTIONARY (self)); + g_assert (word != NULL); + g_assert (word_len >= 0); + + return (word_len == 3 && + (strncmp (word, "foo", word_len) == 0 || + strncmp (word, "bar", word_len) == 0)); +} + +static const char * +test_dictionary_get_extra_word_chars (SpellingDictionary *self) +{ + g_assert (SPELLING_IS_DICTIONARY (self)); + + return ""; +} + +static void +test_dictionary_class_init (TestDictionaryClass *klass) +{ + SpellingDictionaryClass *dictionary_class = SPELLING_DICTIONARY_CLASS (klass); + + dictionary_class->contains_word = test_dictionary_contains_word; + dictionary_class->get_extra_word_chars = test_dictionary_get_extra_word_chars; +} + +static void +test_dictionary_init (TestDictionary *self) +{ +} + static inline gboolean string_iter_is_end (StringIter *iter) { @@ -96,6 +151,9 @@ guint position, guint length) { + last_clear_position = position; + last_clear_length = length; + gtk_bitset_remove_range (mispelled, position, length); } @@ -301,10 +359,10 @@ { g_autoptr(SpellingEngine) engine = NULL; g_autoptr(GObject) instance = g_object_new (G_TYPE_OBJECT, NULL); - SpellingProvider *provider = spelling_provider_get_default (); - const char *default_code = spelling_provider_get_default_code (provider); - dictionary = spelling_provider_load_dictionary (provider, default_code); + dictionary = g_object_new (test_dictionary_get_type (), + "code", "en_US", + NULL); buffer = g_string_new (NULL); mispelled = gtk_bitset_new_empty (); @@ -323,11 +381,46 @@ g_object_unref (dictionary); } +static void +test_engine_delete_invalidates_joined_word (void) +{ + g_autoptr(SpellingEngine) engine = NULL; + g_autoptr(GObject) instance = g_object_new (G_TYPE_OBJECT, NULL); + + dictionary = g_object_new (test_dictionary_get_type (), + "code", "en_US", + NULL); + + buffer = g_string_new (NULL); + mispelled = gtk_bitset_new_empty (); + engine = spelling_engine_new (&adapter, instance); + + insert (engine, "foo bar", 0, "foo bar"); + + g_assert_cmpuint (gtk_bitset_get_size (mispelled), ==, 0); + + last_clear_position = G_MAXUINT; + last_clear_length = G_MAXUINT; + + delete (engine, 3, 1, "foobar"); + + g_assert_cmpuint (last_clear_position, ==, 0); + g_assert_cmpuint (last_clear_length, ==, 6); + + g_string_free (buffer, TRUE); + gtk_bitset_unref (mispelled); + g_object_unref (dictionary); +} + int main (int argc, char *argv[]) { + setlocale (LC_ALL, "C"); + g_test_init (&argc, &argv, NULL); g_test_add_func ("/Spelling/Engine/basic", test_engine_basic); + g_test_add_func ("/Spelling/Engine/delete_invalidates_joined_word", + test_engine_delete_invalidates_joined_word); return g_test_run (); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libspelling-0.4.10/testsuite/test-job.c new/libspelling-0.4.11/testsuite/test-job.c --- old/libspelling-0.4.10/testsuite/test-job.c 2026-01-29 18:51:07.000000000 +0100 +++ new/libspelling-0.4.11/testsuite/test-job.c 2026-11-07 00:24:17.000000000 +0100 @@ -31,6 +31,7 @@ #include "spelling-job-private.h" static const char *test_dictionary[] = { + ".", "Straße", "a", "calle", @@ -49,6 +50,7 @@ "text", "this", "word", + "’", "गच्छन्तु", "वीथिं", "དུ", @@ -82,7 +84,7 @@ static const char * test_dictionary_get_extra_word_chars (SpellingDictionary *dictionary) { - return "'"; + return "'.’"; } static void @@ -227,6 +229,8 @@ { "वीथिं गच्छन्तु", 0, NULL }, { "སྲང་ལམ་དུ་འགྲོ།", 0, NULL }, { "caminar por la calle", 0, NULL }, + { ".\nthis ", 0, NULL }, + { "’\nthis ", 0, NULL }, { "it'", 1, (const SpellingBoundary[]) { ++++++ libspelling.obsinfo ++++++ --- /var/tmp/diff_new_pack.2vqM2C/_old 2026-11-13 20:13:24.146138249 +0100 +++ /var/tmp/diff_new_pack.2vqM2C/_new 2026-11-13 20:13:24.157138715 +0100 @@ -1,5 +1,5 @@ name: libspelling -version: 0.4.10 -mtime: 1769709067 -commit: 1facdde8e1c0fd72bed806f9a9be2fbec83af5f2 +version: 0.4.11 +mtime: 1794007457 +commit: 9e5d5ce2d3519551ac8a5430332e823e71bbc4ce
