* Asking context to switch to a different font for a single character in many places [not found] <20211231183026.52c17af6.ref@desktop.home> @ 2021-12-31 13:00 ` Ajith R via ntg-context 2021-12-31 15:24 ` kauśika via ntg-context 0 siblings, 1 reply; 8+ messages in thread From: Ajith R via ntg-context @ 2021-12-31 13:00 UTC (permalink / raw) To: Mailing List for ConTeXt Users; +Cc: Ajith R Hi, I am trying to prepare a moderate sized document in Malayalam using Context. Overall I have been successful. However, there are a few rough edges for which I need help. This is the fifth problem I face. Is it possible to instruct Context to use a font in general, except for a single character? I want to show the space character with open box,␣ U+2423. However, the font doesn't have that character. The open box character shows up in many places within an otherwise Malayalam text. So, switching font is not possible. For the time being, I am using a substitution. However, I would like to know if it is possible. Thanks, ajith ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2021-12-31 13:00 ` Asking context to switch to a different font for a single character in many places Ajith R via ntg-context @ 2021-12-31 15:24 ` kauśika via ntg-context 2022-01-01 8:07 ` Ajith R via ntg-context 0 siblings, 1 reply; 8+ messages in thread From: kauśika via ntg-context @ 2021-12-31 15:24 UTC (permalink / raw) To: Mailing List for ConTeXt Users; +Cc: kauśika, Ajith R via ntg-context On Friday, December 31, 2021 6:30:26 PM IST Ajith R via ntg-context wrote: > Is it possible to instruct Context to use a font in general, except for > a single character? Since you have mentioned elsewhere that you have \definefontfamily[…] you can set a fallback font family with \definefallbackfamily[…] and choose a font which has the character you want: ⋮ \definefallbackfamily[mainfont][rm][Latin Modern] [range=controlpictures,force=yes] \definefontfamily[mainfont] […] ⋮ \setupbodyfont[mainfont] The 'controlpictures' Unicode block (≡ U+2400 – U+243F) contains the character you want. kauśika ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2021-12-31 15:24 ` kauśika via ntg-context @ 2022-01-01 8:07 ` Ajith R via ntg-context 2022-01-01 8:58 ` kauśika via ntg-context 0 siblings, 1 reply; 8+ messages in thread From: Ajith R via ntg-context @ 2022-01-01 8:07 UTC (permalink / raw) To: kauśika; +Cc: Ajith R, Mailing List for ConTeXt Users On Fri, 31 Dec 2021 20:54:16 +0530 kauśika <citturs@gmail.com> wrote: > On Friday, December 31, 2021 6:30:26 PM IST Ajith R via ntg-context > wrote: > > Is it possible to instruct Context to use a font in general, except > > for a single character? > > Since you have mentioned elsewhere that you have \definefontfamily[…] > you can set a fallback font family with \definefallbackfamily[…] and > choose a font which has the character you want: > > ⋮ > \definefallbackfamily[mainfont][rm][Latin Modern] > [range=controlpictures,force=yes] > \definefontfamily[mainfont] […] > ⋮ > \setupbodyfont[mainfont] > > The 'controlpictures' Unicode block (≡ U+2400 – U+243F) contains the > character you want. > > kauśika > > Hi Kausika, This is what I tried - \definefallbackfamily [mainfont] [rm] [Latin Modern] [range=controlpictures,force=yes] \definefontfamily [mainfont] [rm] [RIT-Rachana] [features=malayalam-two] \setupbodyfont [mainfont] \starttext \title{മലയാളലിപികളുടെ ആവൃത്തി നിർണ്ണയം} ␣ \stoptext This doesn't print the open box. If I remove the definefontfamily command or define font family using only Latin Modern, open box is printed, but not the title. What am I missing? Thanks, ajith ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2022-01-01 8:07 ` Ajith R via ntg-context @ 2022-01-01 8:58 ` kauśika via ntg-context 2022-01-01 10:04 ` Ajith R via ntg-context 2022-01-01 10:06 ` Ajith R via ntg-context 0 siblings, 2 replies; 8+ messages in thread From: kauśika via ntg-context @ 2022-01-01 8:58 UTC (permalink / raw) To: Ajith R; +Cc: kauśika, Mailing List for ConTeXt Users On Saturday, January 1, 2022 1:37:49 PM IST Ajith R wrote: > This doesn't print the open box. If I remove the definefontfamily > command or define font family using only Latin Modern, open box is > printed, but not the title. > > What am I missing? Try with the following: \definefallbackfamily [malayalam] [serif] [TeX Gyre Pagella][range=controlpictures,force=yes] \definefontfamily [malayalam] [serif] [RIT Rachana][features=malayalam-two] \setupbodyfont[malayalam] I have tested that this works on my system. Ensure that the TeX Gyre Pagella font is available on your system (ConTeXt ships with a copy of this font). If it still does not work check the log file for any messages regarding fallback font. kauśika ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2022-01-01 8:58 ` kauśika via ntg-context @ 2022-01-01 10:04 ` Ajith R via ntg-context 2022-01-01 10:06 ` Ajith R via ntg-context 1 sibling, 0 replies; 8+ messages in thread From: Ajith R via ntg-context @ 2022-01-01 10:04 UTC (permalink / raw) To: kauśika; +Cc: Ajith R, Mailing List for ConTeXt Users On Sat, 01 Jan 2022 14:28:12 +0530 kauśika <citturs@gmail.com> wrote: > Try with the following: > > \definefallbackfamily > [malayalam] > [serif] > [TeX Gyre Pagella][range=controlpictures,force=yes] > \definefontfamily > [malayalam] > [serif] > [RIT Rachana][features=malayalam-two] > > \setupbodyfont[malayalam] > > > I have tested that this works on my system. Ensure that the TeX Gyre > Pagella font is available on your system (ConTeXt ships with a copy > of this font). If it still does not work check the log file for any > messages regarding fallback font. > > kauśika > > Hi Kaushika, Thanks. This is working. But, I don't understand why this is working while the other wasn't even when it could display the open box when it was the solo font defined? Thanks, ajith ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2022-01-01 8:58 ` kauśika via ntg-context 2022-01-01 10:04 ` Ajith R via ntg-context @ 2022-01-01 10:06 ` Ajith R via ntg-context 2022-01-01 10:25 ` Wolfgang Schuster via ntg-context 1 sibling, 1 reply; 8+ messages in thread From: Ajith R via ntg-context @ 2022-01-01 10:06 UTC (permalink / raw) To: kauśika; +Cc: Ajith R, Mailing List for ConTeXt Users On Sat, 01 Jan 2022 14:28:12 +0530 kauśika <citturs@gmail.com> wrote: > Try with the following: > > \definefallbackfamily > [malayalam] > [serif] > [TeX Gyre Pagella][range=controlpictures,force=yes] > \definefontfamily > [malayalam] > [serif] > [RIT Rachana][features=malayalam-two] > > \setupbodyfont[malayalam] > > > I have tested that this works on my system. Ensure that the TeX Gyre > Pagella font is available on your system (ConTeXt ships with a copy > of this font). If it still does not work check the log file for any > messages regarding fallback font. > > kauśika > > Hi Kaushika, Thanks. This is working. But, I don't understand why this is working while the other wasn't even when it could display the open box when it was the solo font defined? Thanks, ajith ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2022-01-01 10:06 ` Ajith R via ntg-context @ 2022-01-01 10:25 ` Wolfgang Schuster via ntg-context 2022-01-02 7:09 ` Ajith R via ntg-context 0 siblings, 1 reply; 8+ messages in thread From: Wolfgang Schuster via ntg-context @ 2022-01-01 10:25 UTC (permalink / raw) To: mailing list for ConTeXt users, Ajith R via ntg-context; +Cc: Wolfgang Schuster Ajith R via ntg-context schrieb am 01.01.2022 um 11:06: > On Sat, 01 Jan 2022 14:28:12 +0530 > kauśika <citturs@gmail.com> wrote: > >> Try with the following: >> >> \definefallbackfamily >> [malayalam] >> [serif] >> [TeX Gyre Pagella][range=controlpictures,force=yes] >> \definefontfamily >> [malayalam] >> [serif] >> [RIT Rachana][features=malayalam-two] >> >> \setupbodyfont[malayalam] >> >> >> I have tested that this works on my system. Ensure that the TeX Gyre >> Pagella font is available on your system (ConTeXt ships with a copy >> of this font). If it still does not work check the log file for any >> messages regarding fallback font. >> >> kauśika > Hi Kaushika, > > Thanks. This is working. > But, I don't understand why this is working while the other wasn't even > when it could display the open box when it was the solo font defined? You used "Latin Modern" which isn't a valid font name, the correct name is "Latin Modern Roman". Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Asking context to switch to a different font for a single character in many places 2022-01-01 10:25 ` Wolfgang Schuster via ntg-context @ 2022-01-02 7:09 ` Ajith R via ntg-context 0 siblings, 0 replies; 8+ messages in thread From: Ajith R via ntg-context @ 2022-01-02 7:09 UTC (permalink / raw) To: Wolfgang Schuster; +Cc: Ajith R, mailing list for ConTeXt users On Sat, 1 Jan 2022 11:25:34 +0100 Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote: > > You used "Latin Modern" which isn't a valid font name, the correct > name is "Latin Modern Roman". > > Wolfgang > Hi, Thanks for that info. So, when I used "Latin Modern" as the font definition, Context falls back to a system defined default? Was that the reason why in that situation, Context was able to display the open box, though not able to display Malayalam? Thanks, ajith ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-01-02 7:09 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20211231183026.52c17af6.ref@desktop.home> 2021-12-31 13:00 ` Asking context to switch to a different font for a single character in many places Ajith R via ntg-context 2021-12-31 15:24 ` kauśika via ntg-context 2022-01-01 8:07 ` Ajith R via ntg-context 2022-01-01 8:58 ` kauśika via ntg-context 2022-01-01 10:04 ` Ajith R via ntg-context 2022-01-01 10:06 ` Ajith R via ntg-context 2022-01-01 10:25 ` Wolfgang Schuster via ntg-context 2022-01-02 7:09 ` Ajith R via ntg-context
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).