Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PCMan opened this issue Feb 9, 2016 · 3 comments
Open

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

PCMan opened this issue Feb 9, 2016 · 3 comments

Comments

@PCMan
Copy link
Contributor

PCMan commented Feb 9, 2016

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.

@czchen
Copy link
Member

czchen commented Feb 9, 2016

The scenario of this API is?

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

@PCMan
Copy link
Contributor Author

PCMan commented Feb 10, 2016

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.

@czchen
Copy link
Member

czchen commented Feb 11, 2016

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants