sanskrit-lexicon / csl-websanlexicon

0 stars 1 forks source link

Fonts 2020 #15

Open gasyoun opened 3 years ago

gasyoun commented 3 years ago

@funderburkjim view-source:https://www.sanskrit-lexicon.uni-koeln.de/scans/awork/apidev/simple-search/v1.0/list-0.2s.html

(1) <title>list-0.2s Cologne</title> change to <title>Cologne Digital Sanskrit Dictionaries Simple Search</title>

(2) We've got font-family: siddhanta_deva; for Sanskrit fonts. Even the italics is no real italics, it's some screwed web font. MW uses widely Clarendon (like https://www.dafontfree.io/clarendon-font-free/) for headwords, so can we.

funderburkjim commented 3 years ago

<title>Cologne Digital Sanskrit Dictionaries Simple Search</title>

I agree a better title is needed.

However, the above proposed title is too long.

Suggest shorter <title>Cologne Sanskrit Simple Search</title>

What do you think?

funderburkjim commented 3 years ago

https://www.dafontfree.io/clarendon-font-free/)

I could not see how to actually download clarendon fonts.

Also, this appears to be a click-bait for a commercial site. Not clear that Cologne web-site usage would be free.

Please comment if you still want to pursue Clarendon for italics.

gasyoun commented 3 years ago

What do you think?

Great.

Please comment if you still want to pursue Clarendon for italics.

No, Clarendon does not have good italics. But the original dictionaries have Clarendon for bolded words.

gasyoun commented 3 years ago

https://www.sanskrit-lexicon.uni-koeln.de/scans/LANScan/2020/web/webtc1/index.php

upadd

The uncovering of sandhi can be treated as in the book in our self-made web font, without using _. Should we?

gasyoun commented 3 years ago

@funderburkjim Firefox italics is not working and has become unreadable for ā and ī, an elder student wrote today. Seems additional line of code is needed for Firefox for the italics to work.

munih

funderburkjim commented 3 years ago

Downloaded Firefox and confirm that the macrons are missing in Italic font. And that it is particular to Firefox (e.g., Edge browser displays the italic a-macron correctly).

Any suggestions regarding how to deal with browser specific Font display problem?

Have confirmed that the problem italic text is displayed with oldstandard_italic web font.

funderburkjim commented 3 years ago

Also getting this warning in Firefox console:

Cookie “input” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite

Also, font display problems are occurring for other users in Firefox: https://support.mozilla.org/en-US/questions/1286512

funderburkjim commented 3 years ago

The change 'Use oldstandarditalic font for italics in mw display.' was made at this csl-websanlexicon commit.

And similar changes made at this csl-apidev commit.

funderburkjim commented 3 years ago

A size problem

After much examination, I think the problem relates to size of display, not related to Firefox. Here is Chrome browser image, at normal magnification 100%) - the macrons almost invisible.

image

Here also is Chrome, at 150% magnification. Macrons clearly visible.

image

Same story with Firefox.

So the problem is not with Firefox, but with the display of macrons in oldstandarditalic.otf font.

I think the best thing to do is to drop the usage of oldstandaritalic.otf font.

@gasyoun Agree?

gasyoun commented 3 years ago

So the problem is not with Firefox, but with the display of macrons in oldstandarditalic.otf font.

To test this hypothesis let us go for https://software.sil.org/charis/

I think the best thing to do is to drop the usage of oldstandaritalic.otf font.

Firefox does not display italics as should, so anyway it is an additional issue and just dropping will not help.

funderburkjim commented 3 years ago

Briefly examined charis. Looks complicated. What is the web font file name that you suggest?

funderburkjim commented 3 years ago

Changed to use CharisSIL-I.woff instead of oldstandarditalic.otf.

Definitely clearer than before:

image

You may need to removed cached files, in addition to Ctrl-F5.

gasyoun commented 3 years ago

Definitely clearer than before

Yes, but italics is generated in some strange way.

And Firefox still goes bad.

https://stackoverflow.com/questions/6541885/firefox-webfonts-not-loading exploring what is missing for FF.

funderburkjim commented 3 years ago

A user (Amram) indicated that some text in AP display is unexpectedly italic:

image

Obviously, changing fonts and styles is tricky, and my recent changes have had some unexpected side-effects.

For now, the damage does not appear severe to me; and I do not plan to make further changes now.

gasyoun commented 3 years ago

Obviously, changing fonts and styles is tricky, and my recent changes have had some unexpected side-effects

Understood.