Commit Graph

50 Commits

Author SHA1 Message Date
Andreas Schärtl bd4290a1a9 Support whitespace between language codes
So far, when configuring multiple spell check languages, Hexchat
requires the user to separate multiple entries with commas and
only commas. This patch allows users to also enter whitespace, e.g.

  de_DE, en_US

as is common in many applications.
2022-09-20 18:08:37 -05:00
Sadie Powell 55e4f1c42e Implement support for strikethrough text.
https://defs.ircdocs.horse/info/formatting.html
2021-06-20 10:39:39 -05:00
Patrick Griffis 234fe86987 Fix Enchant 2.1.3+ support
They changed the lib name yet again...

Closes #2117
2018-02-06 16:57:30 -05:00
Patrick Griffis 0058587958 spell-entry: Improve robustness of enchant loading and fix 2.0 support
- Add logging and error handling to loading symbols
- Don't load unversioned symbol
- Handle new function names in Enchant 2.0

Closes #2095
2017-11-24 03:56:53 -05:00
Patrick Griffis 58fb36ee34 Fix warning
Fixes #1533
2016-03-30 08:48:23 -04:00
Patrick Griffis aab881fda2 Fix strict prototype warnings 2016-02-18 08:57:22 -05:00
Arnavion 29321c8660 Fixed pango attributes not being applied in some cases.
gtk_entry_get_text_length returns the number of utf-8 characters in the GtkEntry, not the number of bytes in its text.
2015-04-25 16:51:29 -07:00
Arnavion 0b40146b85 Disable pango attributes on sexy entry while it contains preedit text.
Fixes #1360
2015-04-24 19:20:48 -07:00
Arnavion 9858784eb6 Better project files.
- Output directly to rel\ instead of to bin\ and then copying files over.
- Deduped Win32 vs x64 configs
- Moved some common properties to hexchat.props
- All build intermediates (except htm's intermediates) are no longer emitted in the source directory
2015-02-11 10:01:29 -08:00
TingPing 83032b1aa3 Use glib for all allocations
- Removes need to check for malloc failure
- Removes need for NULL checks on free
- Adds checks for integer overflows
- Removes some extra memset calls
- Removes chance of mixing libc and glib malloc/free
2014-12-28 06:44:44 -05:00
Arnavion 65da34f19e Removed some unnecessary null-checks for calls to g_free and g_strfreev 2014-12-08 21:24:59 -08:00
RichardHitt 7a7b9c682d Fix apostrophe related spell check issues 2014-07-21 15:10:21 -04:00
RichardHitt 0d3706e2ee Fix possible crash in spell check
Closes #1048
2014-07-19 15:51:06 -04:00
TingPing 11e3ecc739 Stop hardcoding plugin extensions everywhere 2014-06-04 11:15:35 -04:00
TingPing 1265eee9e5 Fix spell check on OSX 2014-05-11 06:46:12 -04:00
TingPing d374f3ffe6 Disable hiding characters in the input 2014-03-15 12:12:38 -04:00
TingPing 34cf164aa2 Use a single marshal file for entire project 2014-02-06 20:17:08 -05:00
TingPing ce09cb4a91 Update most deprecated gtk functions 2014-01-18 14:47:17 -05:00
TingPing b2a780e97a libsexy: Properly reflect reset attributes in input 2014-01-11 15:44:54 -05:00
TingPing cf5e2f273f libsexy: last color parsing improvement 2013-10-17 21:59:31 -04:00
TingPing f342123d7f libsexy: More color parsing improvements 2013-10-17 21:37:02 -04:00
TingPing a284219abd Reset entry attributes on newlines 2013-10-15 22:41:50 -04:00
Farow 4ec0e6fd05 libsexy: Improve color parsing
- Background colour is only parsed when there's a comma
- Offset for background color is incorrectly calculated (there's no
control character, just a comma)
2013-10-04 12:17:46 -04:00
TingPing a47740636d libsexy: never include spaces when spell-checking 2013-10-04 07:16:44 -04:00
TingPing a29ccffcbe libsexy: Add "HexChat" to session dictionary 2013-10-04 06:33:49 -04:00
TingPing 301e5d260d More improvements to libsexy
- Add option for showing attributes in input
- Improve attribute parsing
- Fix detecting iso-codes on unix
- Improve getting default langs from $LANG
- Fix warnings
2013-10-03 16:23:46 -04:00
TingPing f6dd61cb02 Update to gtkspell3's iso code lookup
This no longer requires libxml
so now there is no reason for this to be optional
2013-10-03 16:23:46 -04:00
TingPing d643056ca0 Fix loading enchant on Unix 2013-10-03 16:23:46 -04:00
TingPing ba74e70ec1 libsexy: load colors more efficiently 2013-10-03 16:23:46 -04:00
TingPing 6c3d201070 libsexy: fix spell-check on contractions 2013-10-03 16:23:34 -04:00
TingPing af2458f556 Parse attributes in the input box 2013-10-03 16:19:25 -04:00
TingPing ae04663aa9 First round of using GTK accessor functions
This is the first step to build with GSEAL_ENABLE
setup.c uses a deprecated fontchooser,
chanview-tabs.c didn't like the conversion, and
I am waiting to do some work on xtext.c before
converting it.
2013-09-20 17:24:39 -04:00
Berke Viktor 171dbcdedf Remove dead GLib code 2013-05-12 05:58:16 +02:00
Berke Viktor 92dca50dfc Eliminate compiler warning
free() requires stdlib.h
2013-04-28 04:19:31 +02:00
RichardHitt 4e0daf047e Correct almost all compiler warning issues 2013-01-19 12:33:16 -08:00
Dan Mashal b04377825f fix incorrect FSF address 2012-12-23 11:36:54 -08:00
Berke Viktor 9c70eee4ca Eliminate some unused stuff 2012-11-10 17:20:05 +01:00
Berke Viktor a51a69134b Nah, even more rebranding 2012-10-30 11:35:39 +01:00
Berke Viktor 1a75c8e1be A lot more rebranding 2012-10-24 21:33:02 +02:00
Berke Viktor 51ae33cbe8 Variable cleanup for the rest 2012-10-22 15:55:43 +02:00
Berke Viktor df33905ad1 Relocate typedef.h 2012-10-21 04:41:59 +02:00
Berke Viktor d05d298bbb Get rid of yet another implicit declaration 2012-07-21 16:25:08 +02:00
Berke Viktor e7f723539d Some aid for compiler warnings 2012-07-21 14:26:19 +02:00
Berke Viktor 35821f3875 Fix string handling for Turkish locale 2012-06-16 13:01:47 +02:00
Berke Viktor 132ef6cb50 initial patches for linux compatibility 2011-12-11 17:34:02 +01:00
berkeviktor@aol.com 69aedf51ce recognize all installed dictionaries and select the required ones via spell_langs 2011-08-07 18:26:31 +02:00
berkeviktor@aol.com 08e5778b19 spell checker support for multiple languages 2011-08-07 13:41:43 +02:00
berkeviktor@aol.com 87b68a17ad add option for changing spell checker color 2011-06-05 06:12:31 +02:00
berkeviktor@aol.com d03d6e606b add wdk changes to named branch 2011-02-28 18:59:32 +01:00
berkeviktor@aol.com 4a6ceffb98 add xchat r1489 2011-02-24 04:14:30 +01:00