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

Added Hindi Chars #15

Merged
merged 4 commits into from
Jan 8, 2020
Merged

Added Hindi Chars #15

merged 4 commits into from
Jan 8, 2020

Conversation

Akshat-mehrotra
Copy link
Contributor

No description provided.

@aviks
Copy link
Member

aviks commented Jan 8, 2020

Cool, thanks. but मात्रा ?

src/text.jl Outdated
@@ -269,6 +269,40 @@ font = Dict(
'š' => Bool.([0 1 0 1 0 ; 0 0 1 0 0 ; 0 0 0 0 0 ; 0 1 1 1 1 ; 1 0 0 0 0 ; 0 1 1 1 0 ; 0 0 0 0 1 ; 1 1 1 1 0 ; ]),
'Ž' => Bool.([0 1 0 1 0 ; 0 0 1 0 0 ; 0 0 0 0 0 ; 1 1 1 1 1 ; 0 0 0 1 0 ; 0 0 1 0 0 ; 0 1 0 0 0 ; 1 1 1 1 1 ; ]),
'ž' => Bool.([0 1 0 1 0 ; 0 0 1 0 0 ; 0 0 0 0 0 ; 1 1 1 1 1 ; 0 0 0 1 0 ; 0 0 1 0 0 ; 0 1 0 0 0 ; 1 1 1 1 1 ; ]),
# Hindi
Copy link
Member

Choose a reason for hiding this comment

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

Devnagari. Hindi/Marathi/Nepali can be written in the devnagari script.

@Akshat-mehrotra
Copy link
Contributor Author

If i add matras, then I would have to add every maatra to every character, that would be total of 208 characters!! What do you advise I do?

@aviks
Copy link
Member

aviks commented Jan 8, 2020

No no, matras are individual unicode characters by themselves. See https://en.wikipedia.org/wiki/Devanagari_(Unicode_block)

There is one problem -- the spacing and positioning of the matras is complex, but that is a problem for later. For now, let's get the matra shapes into the system.

@Akshat-mehrotra
Copy link
Contributor Author

Akshat-mehrotra commented Jan 8, 2020 via email

src/text.jl Outdated Show resolved Hide resolved
removed an extra space

Co-Authored-By: Kim Fung <fungtszto@gmail.com>
@Akshat-mehrotra
Copy link
Contributor Author

Akshat-mehrotra commented Jan 8, 2020

I'm making all the matars of the normal size i.e. I am not shrinking them to their perspective size right now, because doing that would make most of them indistinguishable. Edit: I am making them as tiny as possible to be as close to the real perspective size as possible

@Akshat-mehrotra
Copy link
Contributor Author

added all matars

@aviks aviks merged commit a6efadb into JuliaBerry:master Jan 8, 2020
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.

3 participants