qurator-spk / neat

Named entity annotation tool
Apache License 2.0
27 stars 5 forks source link

[dnm] proof-of-concept to use MUFI font for virtual keyboard #52

Closed kba closed 3 years ago

kba commented 3 years ago

Because @cneud and I discussed this today, here's a proof-of-concept to use a MUFI font for the virtual keyboard.

I added LATIN SMALL LETTER R ROTUNDA WITH DOT BELOW as first key on the virtual keyboard which isn't available in Verdana and displays as a white square. By using the Andron Scriptor font, it is correctly displayed.

To use this, start the local font-server (for the CORS headers) with ./font-server.py. This should be hosted somewhere publicly of course. I couldn't find a CDN with MUFI fonts.

It's just a quick proof-of-concept, nothing to be merged as-is.

cneud commented 3 years ago

This is awesome! prima-aletheia-web also has fonts for special characters, possibly including non-MUFI PUA characters.

labusch commented 3 years ago

Is that ttf file subject to copyright restrictions or could we just include it in the neat package?

cneud commented 3 years ago

The prima-aletheia-web carries the Apache license, so no problem including this here.

kba commented 3 years ago

Is that ttf file subject to copyright restrictions or could we just include it in the neat package?

License according to https://mufi.info/m.php?p=mufi&i=968 (where other fonts are listed as well):

This font is a special edition of Andreas Stötzner’s Andron font project, financed by the Norwegian Research Council (NFR) and the University of Bergen. It has been issued to support scholarly editing purposes for medieval philological studies and is provided free of charge. The creator and the provider of this font (Andreas Stötzner and the Medieval Unicode Font Initiative) have to be credited in colophones of works which utilize the font. Any alterations to this font, its contents, disposition, glyph shapes and naming are against copyright law and therefore strictly forbidden. If any enhancements or improvements of the font seem to be desirable, users should forward this to MUFI in order to get their suggestions considered in future updates of the font.

labusch commented 3 years ago

I added prima-aletheia-web as font for the keyboard and as font that is used in the table cells. The font contained in the neat repo, therefore there is no need to load it from some web resource.

Now, the only thing left is, a keyboard layout that makes proper use of that font ...

cneud commented 3 years ago

Very nice! I will align with @kba to make a new layout based on https://gist.github.com/cneud/1b9b27fe60ad0366f787f9bef72131da and https://ocr-d.de/en/gt-guidelines/trans/ocr_d_koordinationsgremium_codierung.html.

cneud commented 3 years ago

I've added two layouts with the full special character set from OCR-D. Maybe we still have to split those up a bit more, but now all characters can be entered via the virtual keyboard.

Guess we can close here?