cspeterson / splatmoji

Quickly look up and input emoji and/or emoticons/kaomoji on your GNU/Linux desktop via pop-up menu.
MIT License
212 stars 19 forks source link

Would you be williing pull requests for kaomoji? #39

Open iacchus opened 3 years ago

iacchus commented 3 years ago

I'm thinking on adding more kaomoji to the databases like this, would you like to be receiving pull requests if I do?

also, how are they organized in the file? by unicode code point?

EDIT: as well as adding more keywords so they can be easily found.

zark0-UwU commented 3 years ago

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:

[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ノ(° -°ノ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

iacchus commented 3 years ago

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:

[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ノ(° -°ノ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

Hello, I made an script which is not working, it is 95-98% done it is working now and 100% done and it reads and write in the same model as the database which splatmoji uses, which is:

<kaomoji>, <tab, \t>, <keyword>, [<comma>, [space], <keyword2>] ... etc

<kaomoji>, [<tab, \t>, <keyword>, [<comma>, [space], <keyword2>]] ... etc

(keywords can be made optional as they can be added later without any issues.)

<> means obligatory and [] means optional. You can check the format here. It can easily converted to json if needed, in my software, when reading the DB it reads in a searchable manner in ram if i can recall well.

When executed it shows a cli prompt so for you to enter a emoji. If the emoji exists in the database, it shows the current keywords and you have the option to delete the kaomoji, delete some keyword, add a keyword and if the kaomoji doesn't yest exist etc.

But it has some bug that I didn´t find and left it behind. It is a little bug which is not writing the db correctly Already fixed., The repository is iacchus/splatmoji-kaomoji-edit-tool. The .bkp files are the edition tests I was making.

If you want to try just clone the repo and run kaomojitool.py, (python3 needed) but it is bugged fixed already. (Not writing the db sometimes.)

Make it executable (chmod +x kaomojitool.py on gnu/linux then ./kaomojitool.py emoticons.tsv) or run python kaomojitool.py emoticons.tsv. It reads the emoticons.tsv within the repository.

zark0-UwU commented 3 years ago

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:

[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ノ(° -°ノ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

Hello, I made an script which is not working, it is 95-98% done and it reads and write in the same model as the database which splatmoji uses, which is:

<kaomoji>, <tab, \t>, <keyword>, [<comma>, [space], <keyword2>] ... etc

<> means obligatory and [] means optional. You can check the format here. It can easily converted to json if needed, in my software, when reading the DB it reads in a searchable manner in ram if i can recall well.

When executed it shows a cli prompt so for you to enter a emoji. If the emoji exists in the database, it shows the current keywords and you have the option to delete the kaomoji, delete some keyword, add a keyword and if the kaomoji doesn't yest exist etc.

But it has some bug that I didn´t find and left it behind. It is a little bug which is not writing the db correctly, The repository is iacchus/splatmoji-kaomoji-edit-tool. The .bkp files are the edition tests I was making.

If you want to try just clone the repo and run kaomojitool.py, (python3 needed) but it is bugged. (Not writing the db sometimes.)

Make it executable (chmod +x kaomojitool.py on gnu/linux then ./kaomojitool.py) or run python kaomojitool.py. It reads the emoticons.tsv within the repository.

Hey! your project sounds cool, wil ease a lot the improvement of this project, expect a few pull request from me (⌒.−)=★ tho still don´t understand the kaomoji db standard for this project, haven´t loooked at it so rigorously yet also not so good at bash scrips (even tho i use linux) I use Arch BTW ヾ(。◕ฺ∀◕ฺ)ノ

iacchus commented 3 years ago

I like this idea, since being able to enlarge the kaomoji "DB", but the kaomoji need to be searchable, just like they are now, so the should have at least 1 keyword, maybe deploying in a json file? like this:

[
{kaomoji: "(★^O^★)", keywords: ["happy","Star"] },
{kaomoji: "┬──┬◡ノ(° -°ノ)", keywords: ["table", "flip"]}
]

it would be easy to check for duplicates and would allow people to add them to their installation even if you don´t aprove them

Hello, I made an script which is not working, it is 95-98% done and it reads and write in the same model as the database which splatmoji uses, which is: <kaomoji>, <tab, \t>, <keyword>, [<comma>, [space], <keyword2>] ... etc <> means obligatory and [] means optional. You can check the format here. It can easily converted to json if needed, in my software, when reading the DB it reads in a searchable manner in ram if i can recall well. When executed it shows a cli prompt so for you to enter a emoji. If the emoji exists in the database, it shows the current keywords and you have the option to delete the kaomoji, delete some keyword, add a keyword and if the kaomoji doesn't yest exist etc. But it has some bug that I didn´t find and left it behind. It is a little bug which is not writing the db correctly, The repository is iacchus/splatmoji-kaomoji-edit-tool. The .bkp files are the edition tests I was making. If you want to try just clone the repo and run kaomojitool.py, (python3 needed) but it is bugged. (Not writing the db sometimes.) Make it executable (chmod +x kaomojitool.py on gnu/linux then ./kaomojitool.py) or run python kaomojitool.py. It reads the emoticons.tsv within the repository.

Hey! your project sounds cool, wil ease a lot the improvement of this project, expect a few pull request from me (⌒.−)=★ tho still don´t understand the kaomoji db standard for this project, haven´t loooked at it so rigorously yet also not so good at bash scrips (even tho i use linux) I use Arch BTW ヾ(。◕ฺ∀◕ฺ)ノ

The DB format is this way: each line contains:

First, the kaomoji characters. Second, a tab character (which separates the kaomoji from the keywords.) Then, a comma-separated list of keywords, possibly using space characters after the commas, which can be ignored.

So we read each line, split by TAB (\t) character/ the first part is the kaomoji, the second is the list of keywords. Then you split the list of keywords by the comma (,) character, remove the whitespace from the beginning and from the ending of each keyword of the list and we are done.

The script uses the python language.

iacchus commented 3 years ago

Sorry, @zark0-UwU , I was looking at the code now and the mode of executing it is: ./kaomojitool.py emoticons.tsv