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

Japanese dictionary deconjugation and capturing clipboard text #24

Open
shiki-tm opened this issue May 10, 2024 · 9 comments
Open

Japanese dictionary deconjugation and capturing clipboard text #24

shiki-tm opened this issue May 10, 2024 · 9 comments

Comments

@shiki-tm
Copy link

I don't know anything about coding or about the mdx/mdd formats so I apologize if this is a stupid question.

I was wondering if deconjugation of Japanese dictionaries is supported by your app? I have a whole collection of Japanese dictionaries but if I ever search for a word that's conjugated, I get 0 search results back. I just wanted to know if that's a limitation of my dictionaries, the app or of the dictionary format.

Also, how do I get the "capture clipboard text" setting working? I'm not sure what the word lookup mode is. Is it possible to capture clipboard text while looking up a word in another app through the context menu (copy)?
Since dict tango doesn't show up in the context menu depending on the app. Is there any way to fix that?

Thank you for continuing to update this app!
I look forward to your reply.

@Jimex
Copy link
Owner

Jimex commented May 10, 2024

I was wondering if deconjugation of Japanese dictionaries is supported by your app? I have a whole collection of Japanese dictionaries but if I ever search for a word that's conjugated, I get 0 search results back. I just wanted to know if that's a limitation of my dictionaries, the app or of the dictionary format.

Can you upload the mdx file and the sample word for me to investigate?

Also, how do I get the "capture clipboard text" setting working? I'm not sure what the word lookup mode is. Is it possible to capture clipboard text while looking up a word in another app through the context menu (copy)?
Since dict tango doesn't show up in the context menu depending on the app. Is there any way to fix that?

The "Clipboard" function has been disabled in Android 9 and newer versions. To quickly look up words using DictTango, follow these steps:

  1. Navigate to settings and enable "Capture Clipboard text."
  2. Return to the main screen and tap "Foreground Service."
  3. Activate both "Enable foreground service" and "Display floating button" on the foreground service screen.
  4. After copying text from any app, tap the DictTango floating button, then select "Text that you copied" from the pop-up window.

@shiki-tm
Copy link
Author

Thanks for explaining the capture clipboard text feature!

Jitendex dictionary can be downloaded here:
https://jitendex.org/pages/downloads.html

Any conjugated word is fine as an example such as "まくってる" from 捲る.

@Jimex
Copy link
Owner

Jimex commented May 11, 2024

Any conjugated word is fine as an example such as "まくってる" from 捲る.

I'm not quite following your point. Can you provide a screen recording for a demonstration?

@shiki-tm
Copy link
Author

Screen_Recording_20240511_125034_DictTango.mp4

With the occasional exception of 1 dictionary that only is used for redirecting, none of the dictionaries show anything. I'm in the correct dictionary group, so I don't think I'm doing something wrong. I'm not sure if this is expected behavior from the app or not.

I just thought of a good, unrelated idea:
Can you add a button to the notification bar to turn on the Foreground service ?
A button like in this screenshot:
Screenshot_20240511_124939_DX

Thank you for taking the time to talk to me.

@Jimex
Copy link
Owner

Jimex commented May 11, 2024

but if I ever search for a word that's conjugated, I get 0 search results back.

let's focus on this first, you mentioned that you get 0 search results back, but from the screen recording I can see that there is a result

And if you click the three-dots menu item on the context menu, you will see the "DictTango" menu item and then you can just click it for a fast lookup.

image

@shiki-tm
Copy link
Author

That result is not useful, and doesn't show up for lots of words. Just happened to show up for that word. I really think there's a problem or a lack of deconjugation.

Also, I can't select dict tango in my context menu. That's another problem I've noticed. Sometimes the button does appear but sometimes it doesn't. Depends on the app. Usually if it's the "white" context menu, it doesn't appear but if it's the "black" context menu, it does.

Screenshot_20240511_131008_DX
Screenshot_20240511_131410_Kiwi Browser

@Jimex
Copy link
Owner

Jimex commented May 11, 2024

When you tap on a word in the list, it will display its content. To view the word list, tap the word at the top and enter the word that you want to match.

image

image

@shiki-tm
Copy link
Author

Yes but if the verb or adjective is conjugated, like most of the time, then sometimes you can't know what's the dictionary form of a word and it won't show up in the search results..

@KonstantinDjairo
Copy link

it's not trivial to implement a deinflector, but it's possible
but that would affect how dictTango treats input in general, so if someone is willing to implement a japanese deinflector for DictTango, i suggest adding an option to enable it, rather than having it enabled by default

an example of working deinflector is:
https://git.ajattix.org/hashirama/rdricpp

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

3 participants