libchewing icon indicating copy to clipboard operation
libchewing copied to clipboard

Need public APIs to reload symbols.dat and swkb.dat.

Open PCMan opened this issue 9 years ago • 3 comments

We need public APIs to reload symbols.dat and swkb.dat. Otherwise, there needs to be some built-in timestamp checks to reload the files as needed. Providing APIs to users to reload the files seems to be easier.

PCMan avatar Feb 09 '16 11:02 PCMan

The scenario of this API is?

I think the easiest way to do so is to create another ChewingContext and replace the old one.

czchen avatar Feb 09 '16 16:02 czchen

Since we allow user-specific symbols.dat and swkb.dat, it's possible that the configuration tools might update these files while libchewing is running. Creating another ChewingContext works, but this looks more like a hack.

PCMan avatar Feb 10 '16 13:02 PCMan

@PCMan Just hack an API chewing_reload to reload everything in https://github.com/czchen/libchewing/tree/feature/chewing_reload, is that what you need?

czchen avatar Feb 11 '16 11:02 czchen