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

thirdparty: sdcv: update to better support multi-word lookups #1419

Merged
merged 1 commit into from Oct 18, 2021

Conversation

cyphar
Copy link
Contributor

@cyphar cyphar commented Oct 9, 2021

Current sdcv doesn't support multi-word lookups in the most ideal way.
In particular, as soon as any word specified in the command-line is
found to not have any dictionary results, it immediately bails. This
makes sdcv quite hard to use for Japanese deinflection and results in
less efficient batching when you have to look up many word candiates.

The patch applied is fairly trivial and was already submitted upstream
as a PR, so this patch can be dropped once it's merged upstream.

Ref: Dushistov/sdcv#77
Needed by koreader/koreader#8312.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com


This change is Reviewable

@cyphar cyphar changed the title sdcv: patch to better support multi-word lookups thirdparty: sdcv: patch to better support multi-word lookups Oct 9, 2021
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's wait a couple of days to see if it'll be merged upstream first.

@cyphar cyphar marked this pull request as draft October 13, 2021 03:49
@cyphar
Copy link
Contributor Author

cyphar commented Oct 13, 2021

Maintainer said they will review it in the next week, so we can wait for a week and see if it's merged by then.

Current sdcv doesn't support multi-word lookups in the most ideal way.
In particular, as soon as any word specified in the command-line is
found to not have any dictionary results, it immediately bails. This
makes sdcv quite hard to use for Japanese deinflection and results in
less efficient batching when you have to look up many word candiates.

sdcv has been updated upstream to fix this issue, so update to that
commit.

Ref: Dushistov/sdcv#77
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
@cyphar
Copy link
Contributor Author

cyphar commented Oct 17, 2021

Merged upstream. /ping @Frenzie

@cyphar cyphar marked this pull request as ready for review October 17, 2021 22:47
@cyphar cyphar changed the title thirdparty: sdcv: patch to better support multi-word lookups thirdparty: sdcv: update to better support multi-word lookups Oct 17, 2021
@Frenzie Frenzie merged commit ee3e246 into koreader:master Oct 18, 2021
@cyphar cyphar deleted the sdcv-multiple-lookups branch October 18, 2021 07:08
roygbyte pushed a commit to roygbyte/koreader-base that referenced this pull request Mar 3, 2022
…er#1419)

Current sdcv doesn't support multi-word lookups in the most ideal way.
In particular, as soon as any word specified in the command-line is
found to not have any dictionary results, it immediately bails. This
makes sdcv quite hard to use for Japanese deinflection and results in
less efficient batching when you have to look up many word candiates.

sdcv has been updated upstream to fix this issue, so update to that
commit.

Ref: Dushistov/sdcv#77
Needed by koreader/koreader#8312.
Signed-off-by: Aleksa Sarai cyphar@cyphar.com
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

Successfully merging this pull request may close these issues.

None yet

2 participants