0

Hi is there somewhere solution for Hunspell for Unity(.net 2.0). I'm working on android platform. I tried to implement WeCantSpell.HuntSpell

But i get problem with encoding : "Encoding name 'ISO8859-1' not supported" I researched a bit, and i saw it's using: "Encoding.RegisterProvider" which is introduced in net 4.5.

When i tried to implement nhunspell i got problem with initialisation. Actually problem with loading dll's.

ArgumentNullException: Argument cannot be null. Parameter name: path1 System.IO.Path.Combine (System.String path1, System.String path2) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mc‌​s/class/corlib/Syste‌​m.IO/Path.cs:138) NHunspell.MarshalHunspellDll.get_NativeDLLPath () NHunspell.MarshalHunspellDll.ReferenceNativeHunspellDll () 

Probably Hunspell is working only for windows platform? And only with net 4.5?

Are there any alternatives that use .dic and .aff files. I need this kind of solution, beacuse if i convert dic+aff to words list, for come countries files are 100MB+. From functionalities i only need to check if word exists in dict.

SOLUTION: Unity 2017 support .NET 4.5, i tried today beta version and it is working with Hunspell C# Port.

4
  • If Hunspell is a .NET 4.5 dll then you will be unable to use this with Unity which runs on .NET 2.0, there's no solution. Commented Jun 7, 2017 at 16:17
  • There is always a solution or alternative. I could modify the source and just take functionality i need or create my own version from scratch but it's time consuming. I'm seeking someone who have experience with this to share some tips. Commented Jun 8, 2017 at 5:39
  • Depending on the complexity of "what you need" it's entirely possible that it's using a feature that's not available in .NET 2.0, that's you're real problem. You can try creating a bridge (see this) but that may still not work, due to the differing .NET versions. Commented Jun 8, 2017 at 12:55
  • Yes i was thinking too about creating bridge with java port of hunspell. But i just realized unity will relese 2017 version with .NET 4.5 support. I just tried beta version and it's working with hunspell c# port. Commented Jun 8, 2017 at 13:04

1 Answer 1

0

Answer to my own question, for other guys who might get stuck like me: Unity 2017 have .NET 4.5, i tried today beta version and it is working with Hunspell C# Port.

Sign up to request clarification or add additional context in comments.

2 Comments

I saw mention of Unity 2017 the other day, but because it was still beta I didn't go look at its feature list. Nice that they've updated the underlying .NET version, that's big.
Yes, that is big step forward. Thanks anyway for helping me.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.