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

How to type/display शृंगार with Kokila font? #973

Closed
kaanchan opened this issue Sep 18, 2022 · 19 comments
Closed

How to type/display शृंगार with Kokila font? #973

kaanchan opened this issue Sep 18, 2022 · 19 comments
Assignees

Comments

@kaanchan
Copy link

kaanchan commented Sep 18, 2022

Kokila font is presented on https://learn.microsoft.com/en-us/typography/font-list/kokila as a font "primarily meant for use in displaying Hindi text in documents." One Hindi word we are unable to represent is Kokila in शृंगार, namely the display of the first conjunct (शृं). It shows as श्रृं.

Current and expected are depicted below:
image

The closest I can get is below, which is incorrect:
image

This thread discusses the issue in greater detail: https://groups.google.com/g/technical-hindi/c/ozHt0UyJ5Aw?pli=1

Is there any solution for displaying शृंगार as per correct/standard Hindi using Kokila font?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@tiroj
Copy link

tiroj commented Sep 18, 2022

Kokila lacks the special ligature glyph needed to represent the traditional form of this combination.

If adding this ligature, @alib-ms, consider also the ligature with the vocalic r̄ sign, although this would be very rare and specific to Sanskrit:
image

@alib-ms
Copy link
Collaborator

alib-ms commented Sep 19, 2022

Thank you for the feedback. I have created a work item to add these missing ligatures in the Kokila font family.

@alib-ms alib-ms self-assigned this Sep 19, 2022
@kaanchan
Copy link
Author

@alib-ms Any idea when a release date for a new version of Kokila font family that includes that work item could be (even if a very non-committal, broad estimate)? Anything I can do to contribute to that effort to accelerate a new release with that work item?

@kaanchan
Copy link
Author

kaanchan commented Sep 20, 2022

Kokila lacks the special ligature glyph needed to represent the traditional form of this combination.

@tiroj , I assume the श्र ligature is a whole glyph in this case? And the modification would be to remove the part of the glyph which adds 'r' sound, then update a table that defines when to replace
image with image ?

@tiroj
Copy link

tiroj commented Sep 20, 2022

Yes. All the –Ra letters with merged rakar stroke are ligature glyphs, and so would be the special forms with vocalic vowel signs, as in the Sanskrit Text font.

This may be of interest to you. This is the complete set of consonant+vowel special ligatures in the Tiro Devanagari Sanskrit font. Some of these are pretty specific to Sanskrit, so might not be suitable for a font primarily targeting modern Hindi use, but perhaps let Ali know if you think any more of these are missing from Kokila and should be added?
image
/dDa_dSignVocalicR /dDa_dSignVocalicRr /dDDa_dSignVocalicR /dRa_dSignU /dRa_dSignUu /dRa_dSignVocalicR /dRa_dSignVocalicL /dRa_dSignVocalicRr /dRa_dSignVocalicLl /dSha_dSignVocalicR /dSha_dSignVocalicRr /dHa_dSignU /dHa_dSignUu /dHa_dSignVocalicR /dHa_dSignVocalicRr /dHRa_dSignU /dHRa_dSignUu

@alib-ms
Copy link
Collaborator

alib-ms commented Feb 28, 2023

Sorry for the delay in responding. I am working on this issue. I will update the post as this issue is resolved in the various fonts.
image

@kaanchan
Copy link
Author

kaanchan commented Mar 1, 2023

@alib-ms Great to hear! Please let me know if/how I can help with any testing and verifcation.

@kaanchan
Copy link
Author

kaanchan commented Mar 1, 2023

If adding this ligature, @alib-ms, consider also the ligature with the vocalic r̄ sign, although this would be very rare and specific to Sanskrit:

We also work with a large Sankrit corpus. It is often mixed with Hindi, so this would be very useful and complete in implemenation even if rarely used. Thanks for pointing it out @tiroj .

@alib-ms
Copy link
Collaborator

alib-ms commented Mar 1, 2023

Quick before and after.
image

kaanchan please share some valid words with both ligatures.

@alib-ms
Copy link
Collaborator

alib-ms commented Mar 2, 2023

image
image

@kaanchan
Copy link
Author

kaanchan commented Mar 3, 2023

kaanchan please share some valid words with both ligatures.

@alib-ms This is what the editing department was able to share immediately:
शृंगार
शृंखला
शृगाल

Every word I can find online using शृ starts with शृंग or शृंख. E.g. https://hinkhojdictionary.com/search-word.php?word=%E0%A4%B6%E0%A5%83%E0%A4%82&ie=UTF-8

They could not come up with any words from memory that use the double Ri ligature, but acknowledged it would be a Sankrit use-case.

We do do a fair bit of Hindu + Sankrit documentation, research, and editing so if/when that scenario arrives, it will be great if Kokila handles it.

@alib-ms
Copy link
Collaborator

alib-ms commented Mar 3, 2023

Thank you, kaanchan! Appreciate your help.
I got the Kokila font family almost completed. As noted above I have added both ligatures. I will also update the Aparajita and Utsaah font families accordingly.

@tiroj
Copy link

tiroj commented Mar 3, 2023

The long ṝ vowel is, so far as I know, non-naturally occurring in Sanskrit phonology, so may never occur in any actual words. It is a sort of theoretical construct that completes the algorithmic models of Sanskrit grammarians.

@kaanchan
Copy link
Author

kaanchan commented Mar 9, 2023

@alib-ms

kaanchan please share some valid words with both ligatures.

Here are some Sanskrit words from sanskritdictionary.com:
अभिविशॄ
अपिशॄ
अवशॄ
निःशॄ
निर्विशॄ
पराशॄ
परिशॄ

It appears to be a full root per Paninian grammar (I don't actually know what I'm talking about in this case):
image
Note how the above text had to mix the two forms of ś because their typeface did not support the śṝ combination you are now supporting for Kokila!

And here is an example of śṝ (शॄ) rendered in siddhanta-cakravat-webfont. A nice use-case for a font being able to generate this combination.
image

@kaanchan
Copy link
Author

kaanchan commented Apr 5, 2023

@alib-ms How will a user be able to input
image
without the IME automatically inserting a श instead?

Also, if a ZWJ (zero-width joiner follows), will it show that glyph in its half form?

@alib-ms
Copy link
Collaborator

alib-ms commented Apr 6, 2023

To type this word “शृंगार” the user will type the following sequence of characters.
U+0936 U+0943 U+0902 U+0917 U+093E U+0930
Using the Kokila font, the results:
image
image

No special formatting is needed. input method will be exactly the same only the results will differ from old font vs new font. if you add the Zero Width Joiner then you will not get the ligature form.

@kaanchan
Copy link
Author

kaanchan commented Apr 8, 2023

@alib-ms How will a user be able to input
image

Is there any way to input this ligature, in particular? Curious because it says "in source". If so, how can it be done? This question is separate from the new ligature which allows for creating words like shringar.

@fontdesigner
Copy link

I have Developed a Vedakshar typeface just like metal Typeface

Vedakshar Text

@alib-ms
Copy link
Collaborator

alib-ms commented Jul 12, 2023

I have resolved the reported issues with our Devanagari fonts. The updated fonts will be included in the upcoming release of Office and the Windows 11 update. If you have any further questions or concerns, please feel free to reopen the issue. I sincerely appreciate your valuable input and feedback. Thank you very much.

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

No branches or pull requests

4 participants