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

Support loading of dictionary from custom data stream #4

Open
annulen opened this issue Apr 11, 2016 · 0 comments
Open

Support loading of dictionary from custom data stream #4

annulen opened this issue Apr 11, 2016 · 0 comments

Comments

@annulen
Copy link

annulen commented Apr 11, 2016

hnj_hyphen_load expects file name which could be passed to fopen(), however I'd like to load dictionaries from Qt resources [1]. In this case there is no actual file on disk, but it could be read into memory with Qt API. I can see the next possible solutions:

  1. Add public function accepting callback for reading lines
  2. Add public function loading character buffer containing whole dictionary

I think (1) is easier to implement, while (2) may be considered simpler API.

Would such feature be welcome in libhyphen?

[1] Background: I'm working on QtWebKit, libhyphen is used for CSS hyphens, and I'd like to simplify redistribution of library on platforms like Windows where installing dictionaries system-wide dictionaries is not an option

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

No branches or pull requests

1 participant