Foreign Fonts

Das Goravani goravanis at gmail.com
Wed Sep 8 17:39:03 UTC 2021


Kevin,

Truly what you said is true. Now that I have done it some I can say it doesn’t matter what font you choose for a field, menu, list, whatever.. it will do characters in another language side by side with characters from another language.. you can have 45 different languages in one menu and they will all show correctly.. I’m getting my app ready to offer translation of itself and I am truly blown away by how well this is all handled.. 

I’m underway with translation thanks to Graham Stevens demo of doing Google API Translation from an Omnis app.. 

Cheers,

Das Goravani



> On Sep 1, 2021, at 3:21 AM, Kevin Gale via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> The operating system’s text engines contain font fallback algorithms.
> 
> When the font you have chosen doesn’t contain the requested character the operating system will switch to a different font that does contain it. The font that is chosen will depend on the character, style properties of the original font and what fonts are installed.
> 
> so… As long as you have a broad set of fonts installed on your computer it shouldn’t really matter what font you originally choose.
> 
> To see font fallback in operation you can use the macOS TextEdit application. If you select a font such as Times New Roman and then type / paste some Chinese characters you will see the font switch to another one automatically.
> 
> Kev
> 
>> On 1 Sep 2021, at 02:21, Doug Easterbrook <doug at artsman.com> wrote:
>> 
>> I’m guessing here..
>> 
>> omnis is UTF8 ….  so if a character can be put in, it should show as the character you put in.    We use the wheelchair symbol for theatres displayed in a field using ludicia.
>> 
>> I had a quick search for Cyrillic character set.   
>> 
>> https://www.utf8-chartable.de/unicode-utf8-table.pl?start=1024 <https://www.utf8-chartable.de/unicode-utf8-table.pl?start=1024>
>> 
>> and another search gave me the following .. which is that lucidia supports Cyrillic — with no work on your part.   it just takes up 4 bytes per character, so that will affect length of variables.
>> 
>> Is Lucida Console a Unicode font?
>> Lucida Grande fonts (and also Lucida Console and Lucida Retro fonts) contain the 650 character WGL pan-European set (also called Windows Glyph List), which includes Unicode Basic Latin, Latin-1, Latin Extended-A, modern Greek, basic Cyrillic, to support most languages of Europe and the Americas, as well as some ...
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> hope that helps.
>> 
>> 
>> 
>> 
>> 
>> Doug Easterbrook
>> Arts Management Systems Ltd.
>> mailto:doug at artsman.com
>> http://www.artsman.com
>> Phone (403) 650-1978
>> 
>>> On August 31, 2021, at 5:15 PM, Das Goravani <goravanis at gmail.com> wrote:
>>> 
>>> 
>>> 
>>> I repaired Graham’s translation demo, it’s working now.
>>> 
>>> I am surprised about one thing, when you select Hindi or Russian or other language that uses a non-Latin alphabet, it shows up in the right font just fine. This is in a data grid. The data grid is set on Fieldstyle=CtrlDataGrid.. and the font it says that is is Lucida Grande on the Mac.
>>> 
>>> I don’t understand, how it is showing the translated text in foreign alphabets?
>>> 
>>> I haven’t added Hindi or Russian to my window fonts .. but they show just perfectly.
>>> 
>>> How is that possible?
>>> 
>>> I was thinking if I offered those languages translations I would have to have those fonts installed on the users machine and I would have to add them to my windows fonts list.. and report fonts list.. and then change the font on the field depending on language selected
>>> 
>>> But in grahams demo they should just fine without the font being changed.
>>> 
>>> How does it know which font to pick, how does it bypass the Windows Fonts List need.. 
>>> 
>>> Can I just pass Russian to a text field on a window and it will show?
>>> 
>>> Are Data Grids special in this regard?
>>> 
>>> I’m confused.. it may be simpler than I thought to offer these foreign alphabets
>>> 
>>> Can someone explain to me how this actually works?
>>> 
>>> Thanks
>>> 
>>> Das
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list