Request: Special font support

Discuss technical problems and features here
User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2528
Joined: Sun Jul 26, 2015 7:21 pm
Location: California, Germany and France
Languages: Spanish, English, French trilingual - German (B2/C1) on/off study: Persian, Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 7032
Contact:

Request: Special font support

Postby zenmonkey » Tue Aug 04, 2015 7:17 pm

I've been trying to figure out how to post in some of the rarer alphabets that I've worked on and I'm currently looking into (Rashi and Solitreo scripts, but also Hebrew cursive, Estrangela, Herodian, Imperial Aramaic, etc...) It would be fantastic if we could extend the forum to include support for fonts.

Looking into it, this does not seem to be too complicated and let me suggest the following:

1) a bbcode that would be [ font=xxx ] text goes here [/font=xxx ] where the font would reference a CSS style
- this is outlined here :
https://www.phpbb.com/support/docs/en/3 ... in-phpbb3/
https://www.phpbb.com/community/viewtop ... &t=1931165

2) Users that wanted to see the special font, just need to install it on their PC - otherwise the text would revert to the browsers default fonts. In order to do so, we could keep a thread pointing to a list of fonts used.

For example, this should be in Reshi script, but comes out in Standard Hebrew:

אגדדהעח

while it should look like this:
Screen Shot 2015-08-04 at 21.17.34.png



And just for clarity - I know we have a virtual keyboard for IPA and other characters - font support is for how those characters are shown.
You do not have the required permissions to view the files attached to this post.
2 x
I am a leaf on the wind, watch how I soar

User avatar
daegga
Blue Belt
Posts: 565
Joined: Thu Jul 09, 2015 12:00 am
Location: Upper Austria
Languages: Bavarian (spoken), German
-- ≥ C1 passive --
English (IELTS 8.5)
Scandinavian (a: N>D>S)
-- along the way --
French, Italian
-- can read with dict --
Old Norse
Language Log: https://forum.language-learners.org/vie ... 15&t=17055
x 970
Contact:

Re: Request: Special font support

Postby daegga » Tue Aug 04, 2015 7:36 pm

zenmonkey wrote:2) Users that wanted to see the special font, just need to install it on their PC - otherwise the text would revert to the browsers default fonts. In order to do so, we could keep a thread pointing to a list of fonts used.


Wouldn't it be possible to use web fonts instead?
1 x
jag nöjer mig med tystnad

User avatar
emk
Black Belt - 1st Dan
Posts: 1708
Joined: Sat Jul 18, 2015 12:07 pm
Location: Vermont, USA
Languages: English (N), French (B2+)
Badly neglected "just for fun" languages: Middle Egyptian, Spanish.
Language Log: viewtopic.php?f=15&t=723
x 6722
Contact:

Re: Request: Special font support

Postby emk » Tue Aug 04, 2015 8:09 pm

zenmonkey wrote:I've been trying to figure out how to post in some of the rarer alphabets that I've worked on and I'm currently looking into (Rashi and Solitreo scripts, but also Hebrew cursive, Estrangela, Herodian, Imperial Aramaic, etc...) It would be fantastic if we could extend the forum to include support for fonts.

This feels like a whole bunch of complicated questions wrapped up into one, and I would like to think through the implications a bit first.

First, I'd like to propose a general design principal: Ideally, this site should have the ability to display any writing system supported by Unicode, and be able to do so conveniently and with good performance. Non-Unicode languages would probably need to be dealt with on a case-by-case basis. I mean, there's no reason we couldn't support even far-out things like the Manuel de codage for Egyptian if there were sufficient demand. ;-)

Image
(a dynamically generated image using Gardiner codes and the MdC, but there's no BBCode for this right now!)

But good Unicode support is a respectable baseline, I think.

For example, if there are open source webfonts that we ought install, I'm willing to discuss it with rdearman, as long as it doesn't kill download times. Or if we needed to add new font names to our site wide CSS override to ensure good results with a particular Unicode block, we could probably do that, too.

zenmonkey wrote:2) Users that wanted to see the special font, just need to install it on their PC - otherwise the text would revert to the browsers default fonts. In order to do so, we could keep a thread pointing to a list of fonts used.

Hmm. This requires a writer to pick out fonts, and a reader to download them and install them on their PC. I feel like you might get a bigger audience by posting images of interesting writing styles, perhaps? Also, a lot of us read on mobile devices, which don't usually allow installing local fonts.

On the other hand, images can be a pain to prepare and upload.
0 x

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2528
Joined: Sun Jul 26, 2015 7:21 pm
Location: California, Germany and France
Languages: Spanish, English, French trilingual - German (B2/C1) on/off study: Persian, Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 7032
Contact:

Re: Request: Special font support

Postby zenmonkey » Tue Aug 04, 2015 8:12 pm

daegga wrote:
zenmonkey wrote:2) Users that wanted to see the special font, just need to install it on their PC - otherwise the text would revert to the browsers default fonts. In order to do so, we could keep a thread pointing to a list of fonts used.


Wouldn't it be possible to use web fonts instead?


Absolutely - we could also put the fonts in the host server:

as an example the CSS would then have:

Code: Select all

@charset "utf-8";
 @font-face {
    font-family: 'Journal';
       src: url('http://your-own.site/fonts/journal/journal.woff') format('woff'),
       url('http://your-own.site/fonts/journal/journal.svg#Journal') format('svg'),
       url('http://your-own.site/fonts/journal/journal.ttf') format('truetype'),
       url('http://your-own.site/fonts/journal/journal.eot'),
       url('http://your-own.site/fonts/journal/journal.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
 }
0 x
I am a leaf on the wind, watch how I soar

User avatar
zenmonkey
Black Belt - 2nd Dan
Posts: 2528
Joined: Sun Jul 26, 2015 7:21 pm
Location: California, Germany and France
Languages: Spanish, English, French trilingual - German (B2/C1) on/off study: Persian, Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 7032
Contact:

Re: Request: Special font support

Postby zenmonkey » Tue Aug 04, 2015 8:28 pm

emk wrote:
zenmonkey wrote:I've been trying to figure out how to post in some of the rarer alphabets that I've worked on and I'm currently looking into (Rashi and Solitreo scripts, but also Hebrew cursive, Estrangela, Herodian, Imperial Aramaic, etc...) It would be fantastic if we could extend the forum to include support for fonts.

This feels like a whole bunch of complicated questions wrapped up into one, and I would like to think through the implications a bit first.

First, I'd like to propose a general design principal: Ideally, this site should have the ability to display any writing system supported by Unicode, and be able to do so conveniently and with good performance. Non-Unicode languages would probably need to be dealt with on a case-by-case basis. I mean, there's no reason we couldn't support even far-out things like the Manuel de codage for Egyptian if there were sufficient demand. ;-)

Image
(a dynamically generated image using Gardiner codes and the MdC, but there's no BBCode for this right now!)

But good Unicode support is a respectable baseline, I think.

For example, if there are open source webfonts that we ought install, I'm willing to discuss it with rdearman, as long as it doesn't kill download times. Or if we needed to add new font names to our site wide CSS override to ensure good results with a particular Unicode block, we could probably do that, too.

zenmonkey wrote:2) Users that wanted to see the special font, just need to install it on their PC - otherwise the text would revert to the browsers default fonts. In order to do so, we could keep a thread pointing to a list of fonts used.

Hmm. This requires a writer to pick out fonts, and a reader to download them and install them on their PC. I feel like you might get a bigger audience by posting images of interesting writing styles, perhaps? Also, a lot of us read on mobile devices, which don't usually allow installing local fonts.

On the other hand, images can be a pain to prepare and upload.


I think your "general design principal" works - either supporting existing unicode blocks or adding, case by case, a CSS override font (open source) to assure good visualisation.

Web fonts, like daega suggested, would probably resolve a lot of the issues - no downloading or install needed as they are embedded into the stylesheet.

Here is the thing: unicode has a block for Syriac - if your browser is set up to support it - you'll see East Syraic, maybe:

ܐܣܛܪܢܓܠܐ

But this is quite different to read than West or Estrangela

Image

Anyway - I'll get my thoughts organised on this and perhaps propose something a little more structured, based on this discussion.
It would certainly be interesting if we ha a place where people could actually write directly in these styles - pretty unique plus!
0 x
I am a leaf on the wind, watch how I soar

Zireael
Orange Belt
Posts: 158
Joined: Mon Jul 20, 2015 6:29 pm
Languages: Native: Polish
C2: English
B2: Spanish
Somewhere I don't know: German
Beginner: Arabic, Polish Sign Language
Wanderlusting: Japanese, Russian
Language Log: viewtopic.php?t=815
x 77

Re: Request: Special font support

Postby Zireael » Thu Aug 06, 2015 7:51 am

UniLang, again, has excellent support for Arabic/Urdu and CJK (Chinese/Japanese/Korean).

As for fonts, in my programming ventures I discovered Droid Sans/Droid Sans Fallback cover nearly everything I could need out of Unicode, including CJK.
0 x


Return to “Technical Support and Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests