Skip to content

not add space character for CJK #351

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

Closed
wants to merge 1 commit into from
Closed

Conversation

napasa
Copy link

@napasa napasa commented Jun 21, 2018

No description provided.

@napasa
Copy link
Author

napasa commented Jun 21, 2018

Hi, Is it like this .
ヽ(✿゚▽゚)ノ

qt/src/Utils.cc Outdated
return false;
} else {
continue;
}
Copy link
Owner

Choose a reason for hiding this comment

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

This else continue block is redundant.

qt/src/Utils.hh Outdated
@@ -47,6 +47,8 @@ QByteArray download(QUrl url, QString& messages, int timeout = 60000);

QString getSpellingLanguage(const QString& lang = QString());

bool SpacedWord(const QString& text);
Copy link
Owner

Choose a reason for hiding this comment

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

Use spacedWord for camel case consistency.

@manisandro
Copy link
Owner

So as I understand, you decide to add a space between to words if Utils::SpacedWord returns true for both the left and the right word. But Utils::SpacedWord only checks the first character of a word. Does this make sense? Isn't it better to determine whether to add a space based on the last character of the left word and the first character of the right word (in the case of left-to-right text)?

@napasa
Copy link
Author

napasa commented Jun 22, 2018

you are a good teacher

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.

2 participants