https://www.proz.com/forum/software_applications/307022-is_there_any_character_that_hunspell_ignores.html

Is there any character that Hunspell ignores?
Thread poster: CafeTran Training (X)
CafeTran Training (X)
CafeTran Training (X)
Netherlands
Local time: 03:15
Sep 29, 2016

Is there any character that I can use as a mnemonic in strings and that Hunspell ignores?

Now:

E&xporteren

Hunspell sees the ampersand as a word boundary:

Screen Shot 2016-09-29 at 10.57.29

Is there any character (either visible or invisible) that I can use to define the location of the mnemonic, but that isn't considered as a word boundary by Hunspell?


 
Rolf Keller
Rolf Keller
Germany
Local time: 03:15
English to German
Attributes can be used as markers Sep 29, 2016

CafeTran Training wrote:

Is there any character (either visible or invisible) that I can use to define the location of the mnemonic, but that isn't considered as a word boundary by Hunspell?


Attributes (color, underline, italic, ...) are ignored by Hunspell but searchable by and visible to you.


 
CafeTran Training (X)
CafeTran Training (X)
Netherlands
Local time: 03:15
TOPIC STARTER
Found it ... Sep 29, 2016

Thanks, this is a nice suggestion. Alas, my CAT tool represents formatting with tags (that are handled as word boundaries by Hunspell).

In the meantime I've found a solution:

Okay, I found that I deserved a 2nd chance. Studied this:

http://manpages.ubuntu.com/manpages/trusty/man4/hunspell.4.html

And came up with this:
... See more
Thanks, this is a nice suggestion. Alas, my CAT tool represents formatting with tags (that are handled as word boundaries by Hunspell).

In the meantime I've found a solution:

Okay, I found that I deserved a 2nd chance. Studied this:

http://manpages.ubuntu.com/manpages/trusty/man4/hunspell.4.html

And came up with this:

WORDCHARS '’0123456789ij.-\/_
# Added underscore character for use in mnemonics

# Allow use of underscore for mnemonics
IGNORE _

2 additions of the underscore to nl_NL.aff

BTW: I also added:

# Set max. number of n-gram suggestions
MAXNGRAMSUGS 3

Because Hunspell often gave too many suggestions.

Screen Shot 2016-09-30 at 14.21.53

And:

Screen Shot 2016-09-30 at 14.22.01

Not flagged as typos anymore

[Edited at 2016-09-30 12:29 GMT]
Collapse


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Is there any character that Hunspell ignores?






Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »