From: Khaled Hosny <khaledhosny@eglug.org>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Font goodies color schemes by Unicode number
Date: Wed, 29 Feb 2012 15:57:07 +0200 [thread overview]
Message-ID: <20120229135707.GA8802@khaled-laptop> (raw)
[-- Attachment #1: Type: text/plain, Size: 607 bytes --]
Hi all,
Was exploring font goodies and color schemes and so far works great,
very nice feature, thanks Hans.
Now I've to small questions/feature requests:
Can color schemes be
defined using Unicode code points, e.g.: { 0x064E, 0x064F } instead of
glyph names (e.g. I'd like to have a font independent goody to color
Arabic combining marks and no glyph substitution is involved so Unicode
code points should work for most fonts).
Second question, can it be (ab)used to color a whole font with the same
color (can be handy sometimes), e.g. using a special wildcard or
something: { "*" }.
Regards,
Khaled
[-- Attachment #2: amiri.tex --]
[-- Type: text/x-tex, Size: 518 bytes --]
\definefontfeature[arabic][arabic][goodies=amiri, colorscheme=default]
\definecolor[colorscheme:1:1][r=1]
\definecolor[colorscheme:1:2][g=1]
\definecolor[colorscheme:1:3][b=1]
\definecolor[colorscheme:2:1][c=.55]
\definecolor[colorscheme:2:2][m=.55]
\definecolor[colorscheme:2:3][y=.55]
\setupalign[r2l]
\starttext
\definedfont[name:amiri*arabic at 36pt]
\setfontcolorscheme[1]
ضَرَبَ ضُرِبَ ضَرْبًا
\setfontcolorscheme[2]
ضَرَبَ ضُرِبَ ضَرْبًا
\stoptext
[-- Attachment #3: amiri.lfg --]
[-- Type: text/plain, Size: 415 bytes --]
return {
name = "Amiri",
version = "1.00",
comment = "Goodies that complement the Amiri font.",
author = "Khaled Hosny",
colorschemes = {
default = {
[1] = {
"uni064E", "uni064B",
},
[2] = {
"uni064F", "uni064C",
},
[3] = {
"uni0650", "uni064D",
},
}
}
}
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2012-02-29 13:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 13:57 Khaled Hosny [this message]
2012-02-29 15:57 ` Wolfgang Schuster
2012-02-29 16:33 ` Hans Hagen
2012-03-02 23:09 ` Hans Hagen
2012-03-24 20:23 ` Khaled Hosny
2012-03-25 14:44 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120229135707.GA8802@khaled-laptop \
--to=khaledhosny@eglug.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).