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

Created and Added all the languages that support Emoji #440

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

SethiShreya
Copy link
Contributor

@SethiShreya SethiShreya commented Oct 19, 2024

Signed off by Shreya Sethi
[email protected]

This PR addresses issue #397

  • added a JSON file which includes all the languages that support emoji datatype to compare to
  • created a centralized generate_emoji_keywords.py in scribe_data/unicode which takes a language, and output directory from main.py to generate emoji
  • Configure other files to integrate it well

@andrewtavis @Ekikereabasi-Nk please review it and give your feedback :)

Copy link

Thank you for the pull request!

The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :)

If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Data rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you!

Maintainer checklist

  • The linting and formatting workflow within the PR checks do not indicate new errors in the files changed

  • The CHANGELOG has been updated with a description of the changes for the upcoming release and the corresponding issue (if necessary)

@Ekikereabasi-Nk
Copy link
Contributor

@SethiShreya nice work

@andrewtavis andrewtavis self-requested a review October 21, 2024 11:11
@andrewtavis andrewtavis added the hacktoberfest-accepted Accepted as a part of Hacktoberfest label Oct 21, 2024
# Check if the language code exists in the dictionary
for code, name in languages.items():
if name == language:
print(f"Emoji Generation for language : {language} is supported")
Copy link
Contributor

@axif0 axif0 Oct 21, 2024

Choose a reason for hiding this comment

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

For lower and capitalization user input language, we need to dynamically handle it by language.lower()

file_path=output_dir,
formatted_data=emoji_keywords_dict,
query_data_in_use=True,
language=language,
Copy link
Contributor

@axif0 axif0 Oct 21, 2024

Choose a reason for hiding this comment

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

We should use language.capitalize(), therefore no No such file or directory: 'scribe_data_json_export/english/emoji_keywords.json' will cause. In file data-type should be '{user_given_directory}/English/emoji_keywords.json'

Then we can call scribe-data get -lang English -dt emoji_keywords -od ./output_data and get the file in output_data

@axif0
Copy link
Contributor

axif0 commented Oct 21, 2024

cc: @mhmohona Can you please review in a new environment if you have free time in hand, as you got windows OS? Also, by applying the upper issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Accepted as a part of Hacktoberfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants