We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi, please add rtl support. just add an option to lang and dont do the reverse in lines 21 and 22;
// rtl support
if(dir === 'rtl' ){ lines = lines; rawText = raw; } else{ // reverse to use lifo, because array.shift() will consume 0(n) lines = lines.reverse(); rawText = rawText.reverse(); }
The text was updated successfully, but these errors were encountered:
Hi @danbete ,
Thank you for the suggestion, as mentioned it will be good to have as a configuration parameter to the library.
algorithm.initLineSegmentation(api_data, lang_configuration))
The default value for this can be left to right.
left to right
I will try to add support to the configurations sooner. Bu if you are interested then you can send a PR with the aforementioned changes.
Sorry, something went wrong.
No branches or pull requests
hi,
please add rtl support.
just add an option to lang
and dont do the reverse in lines 21 and 22;
if(dir === 'rtl' ){
lines = lines;
rawText = raw;
}
else{
// reverse to use lifo, because array.shift() will consume 0(n)
lines = lines.reverse();
rawText = rawText.reverse();
}
The text was updated successfully, but these errors were encountered: