ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "luigi scarso" <luigi.scarso@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: Unicode.otf
Date: Fri, 11 Jan 2008 18:46:45 +0100	[thread overview]
Message-ID: <fe8d59da0801110946n4ae427d2l4334537b76c8262a@mail.gmail.com> (raw)
In-Reply-To: <47878B66.8020400@wxs.nl>

On Jan 11, 2008 4:29 PM, Hans Hagen <pragma@wxs.nl> wrote:
> Arthur Reutenauer wrote:
> >> Is there another solution other than fontforge ?
> >
> >   Sure, just rename the font to Unicode.ttf.  And the problem should be
> > fixed now, so try the next beta with the original name as well.
> >
> >> I mean using by using characters.data in char-def.lua:
> >>
> >>   [0x25C9] = { unicodeslot=0x25C9, category='so', description='FISHEYE' },
> >>
> >> it should be easy with a bit \ctxlua get glyph by description .
> >
> >   I guess you're better off preparing the inverse mapping and storing it
> > in advance, otherwise you would be losing a lot of time because you
> > would have to loop over characters.data to find the character you want.
>
> already taken care of ...
>
> characters.context.unicodes
> characters.context.utfcodes
> characters.context.enccodes
>
> are references to the big table (there are more tables)
I  think something like this


-- begin
-- save this in symbols.lua
Symbols={['BOX DRAWINGS LIGHT HORIZONTAL'] = 9472,
['BOX DRAWINGS HEAVY HORIZONTAL'] = 9473,
['BOX DRAWINGS LIGHT VERTICAL'] = 9474,
['BOX DRAWINGS HEAVY VERTICAL'] = 9475,
['BOX DRAWINGS LIGHT TRIPLE DASH HORIZONTAL'] = 9476,
['BOX DRAWINGS HEAVY TRIPLE DASH HORIZONTAL'] = 9477,
['BOX DRAWINGS LIGHT TRIPLE DASH VERTICAL'] = 9478,
['BOX DRAWINGS HEAVY TRIPLE DASH VERTICAL'] = 9479,
['BOX DRAWINGS LIGHT QUADRUPLE DASH HORIZONTAL'] = 9480,
['BOX DRAWINGS HEAVY QUADRUPLE DASH HORIZONTAL'] = 9481,
['BOX DRAWINGS LIGHT QUADRUPLE DASH VERTICAL'] = 9482,
['BOX DRAWINGS HEAVY QUADRUPLE DASH VERTICAL'] = 9483,
['BOX DRAWINGS LIGHT DOWN AND RIGHT'] = 9484,
['BOX DRAWINGS DOWN LIGHT AND RIGHT HEAVY'] = 9485,
['BOX DRAWINGS DOWN HEAVY AND RIGHT LIGHT'] = 9486,
['BOX DRAWINGS HEAVY DOWN AND RIGHT'] = 9487,
['BOX DRAWINGS LIGHT DOWN AND LEFT'] = 9488,
['BOX DRAWINGS DOWN LIGHT AND LEFT HEAVY'] = 9489,
['BOX DRAWINGS DOWN HEAVY AND LEFT LIGHT'] = 9490,
['BOX DRAWINGS HEAVY DOWN AND LEFT'] = 9491,
['BOX DRAWINGS LIGHT UP AND RIGHT'] = 9492,
['BOX DRAWINGS UP LIGHT AND RIGHT HEAVY'] = 9493,
['BOX DRAWINGS UP HEAVY AND RIGHT LIGHT'] = 9494,
['BOX DRAWINGS HEAVY UP AND RIGHT'] = 9495,
['BOX DRAWINGS LIGHT UP AND LEFT'] = 9496,
['BOX DRAWINGS UP LIGHT AND LEFT HEAVY'] = 9497,
['BOX DRAWINGS UP HEAVY AND LEFT LIGHT'] = 9498,
['BOX DRAWINGS HEAVY UP AND LEFT'] = 9499,
['BOX DRAWINGS LIGHT VERTICAL AND RIGHT'] = 9500,
['BOX DRAWINGS VERTICAL LIGHT AND RIGHT HEAVY'] = 9501,
['BOX DRAWINGS UP HEAVY AND RIGHT DOWN LIGHT'] = 9502,
['BOX DRAWINGS DOWN HEAVY AND RIGHT UP LIGHT'] = 9503,
['BOX DRAWINGS VERTICAL HEAVY AND RIGHT LIGHT'] = 9504,
['BOX DRAWINGS DOWN LIGHT AND RIGHT UP HEAVY'] = 9505,
['BOX DRAWINGS UP LIGHT AND RIGHT DOWN HEAVY'] = 9506,
['BOX DRAWINGS HEAVY VERTICAL AND RIGHT'] = 9507,
['BOX DRAWINGS LIGHT VERTICAL AND LEFT'] = 9508,
['BOX DRAWINGS VERTICAL LIGHT AND LEFT HEAVY'] = 9509,
['BOX DRAWINGS UP HEAVY AND LEFT DOWN LIGHT'] = 9510,
['BOX DRAWINGS DOWN HEAVY AND LEFT UP LIGHT'] = 9511,
['BOX DRAWINGS VERTICAL HEAVY AND LEFT LIGHT'] = 9512,
['BOX DRAWINGS DOWN LIGHT AND LEFT UP HEAVY'] = 9513}
--end

%%%% save this in t.tex
%% UnicodeSymbols was made by saving Unicode.otf with fontforge
\ctxluafileload{symbols.lua}{}
\definefont[WhatEver][UnicodeSymbols at 100pt]
\starttext
{\WhatEver\unicodechar{\ctxlua{tex.sprint(Symbols['BOX DRAWINGS UP
LIGHT AND LEFT HEAVY'])}}}
\stoptext

The idea is to use a normative name
(Am I wrong if I said that 'BOX DRAWINGS UP LIGHT AND LEFT HEAVY' is
normative ?)

-- 
luigi
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-01-11 17:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11  2:26 Unicode.otf luigi scarso
2008-01-11  4:03 ` Unicode.otf Arthur Reutenauer
2008-01-11  4:51   ` Unicode.otf luigi scarso
2008-01-11 15:22     ` Unicode.otf Arthur Reutenauer
2008-01-11 15:29       ` Unicode.otf Hans Hagen
2008-01-11 17:46         ` luigi scarso [this message]
2008-01-11 21:03           ` Unicode.otf Hans Hagen
2008-01-11 21:47             ` Unicode.otf Arthur Reutenauer
2008-01-11 22:09           ` Unicode.otf Arthur Reutenauer
2008-01-11 15:55       ` Unicode.otf luigi scarso
2008-01-11 18:15         ` Unicode.otf Arthur Reutenauer
2008-01-12  0:02           ` Unicode.otf luigi scarso
2008-01-12  3:21             ` Unicode.otf Arthur Reutenauer

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=fe8d59da0801110946n4ae427d2l4334537b76c8262a@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --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).