-
Notifications
You must be signed in to change notification settings - Fork 66
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
How to implement? #32
Comments
Hi @winstonrenatan, thank you for trying my library and for getting in touch with me. Please correct me in case I'm wrong but it seems that you are pretty new to programming in general. I get the impression that you should work through the basic Kotlin tutorials first. The variable Apart from that, I don't understand your specific problem that you have with Android. What is a toast in this context? Can your provide a stacktrace of an error you get? |
Hi @pemistahl, thank you for your warm welcome and help. It is true that i am quite new in programming both in general and even kotlin basics. I actually just want simply to get the language of the text as a string, then output it in a toast where the user can see it. But I still don't understand how things actually works :(
But when I do click on the button that I created, the application terminate and show me this error
Thank you for your help I really do appreciate it so much, I'm sorry if I bothers and confused you through this questions and sorry for the late reply :( |
Hello @winstonrenatan, I apologize myself now for this late response. My two-months-old little daughter is keeping me very busy at the moment. Your stacktrace is very informative. There is a bug in the file Can you please clone this project's repository, replace the line with the following code, then build the library yourself and see whether your problem is gone? I'm not able to test on Android myself. If it works, I will provide a bug fix release in the near future. Thank you. private val JAPANESE_CHARACTER_SET = try {
Regex("^[\\p{Hiragana}\\p{Katakana}\\p{Han}]+$")
} catch (e: PatternSyntaxException) {
Regex("^[\\p{IsHiragana}\\p{IsKatakana}\\p{IsHan}]+$")
} |
I'm closing this issue now because commit 0078c01 most likely fixes this problem. |
Hello I am quite new in programming with android and I am currently working on Text To Speech App. I would like to implement Lingua so the TTS app can switch to the specified language according to the Lingua results. But I found some difficulties in implementing it. This is the process that I have done:
I would like to ask if can we detectLanguageOf from a variable. for example,
and is detectedLanguage a string?
Thank you for your help! this library is really awesome!
The text was updated successfully, but these errors were encountered: