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

Add more Unicode shortcuts #5

Open
DenverCoder1 opened this issue Oct 8, 2020 · 6 comments
Open

Add more Unicode shortcuts #5

DenverCoder1 opened this issue Oct 8, 2020 · 6 comments
Labels
beginner-friendly enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed up-for-grabs

Comments

@DenverCoder1
Copy link
Owner

DenverCoder1 commented Oct 8, 2020

Issue

Is there a Unicode symbol you need to type often but can't access easily from Gboard?

If it doesn't already exist in the shortcuts dictionary, you can create an issue for it or add it yourself.

Notes about formatting

Gboard requires a very specific format for shortcut files to work.

image

Each line of the file containing a shortcut must have: the shortcut (ex. \sum), a single tab ( ), the symbol (ex. ), and another a single tab ( ) at the end of the line.

Note: Some editors automatically convert tabs to spaces, you can try to avoid this by copy-pasting the tabs from a different line to ensure the spacing is correct.

Shortcut guidelines

Shortcuts must be the same as the command from LaTeX or resemble the LaTeX shortcuts. If typing the symbol is complex in LaTeX, a shorter shortcut may be used as long as it is in the style of LaTeX commands.

It is at the discretion of the project maintainer to decide whether a certain shortcut should be accepted or not.

Contributing

@adi-mohan
Copy link

Hi @DenverCoder1
How do you create this dictionary.txt? Do you first make a list of symbols in .tex and then convert it to .txt, or some other algo?

@DenverCoder1
Copy link
Owner Author

How do you create this dictionary.txt? Do you first make a list of symbols in .tex and then convert it to .txt, or some other algo?

@adi-mohan The original was created by using the export function from the Gboard settings. After that it is just modified manually in any text editor but the formatting must be preserved.

@adi-mohan
Copy link

Thanks for the explanation @DenverCoder1 . Additionally, I wanted to know how do you reproduce the LaTeX symbols in .txt , I have tried Atom, Notepad, etc , but all of them miss-out on compiling the symbols correctly. I presume that even if I use some kind of LaTeX editor, then during converting it to .txt format, I will again stumble upon the issue mentioned above.

@DenverCoder1
Copy link
Owner Author

@adi-mohan The project is very simple. There are not really any LaTeX symbols involved, but rather I have taken Unicode characters that look like LaTeX symbols (for example ∑ sum) and created Gboard shortcuts for them. These symbols can be found on sites such as compart and fileformat.info and they can be copy-pasted to create shortcuts.

@andrewasche
Copy link
Contributor

question is this symbol included ±, I didn't see it in there and assume it would be a good addition

@DenverCoder1
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner-friendly enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed up-for-grabs
Projects
None yet
Development

No branches or pull requests

3 participants