ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt meeting Lua tutorials
@ 2010-08-21 11:48 Taco Hoekwater
  2010-08-21 12:43 ` luigi scarso
                   ` (4 more replies)
  0 siblings, 5 replies; 17+ messages in thread
From: Taco Hoekwater @ 2010-08-21 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

Today I started preparations for my activities at the ConTeXt meeting.

There are two small lua tutorials in the program, and I am looking
for input on both. There is one that is supposed to be a general
beginner's introduction, and one specifically about fonts.

For both, I am looking for input on what subjects I should cover?

Since both tutorials will end up as articles/wiki pages, it makes
sense to ask everybody on the list for input (but requests by actual
attendees will be scored considerably higher).

Best wishes,
Taco

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
@ 2010-08-21 12:43 ` luigi scarso
  2010-08-22 14:37 ` Henning Hraban Ramm
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 17+ messages in thread
From: luigi scarso @ 2010-08-21 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Aug 21, 2010 at 1:48 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
> Hi all,
>
> Today I started preparations for my activities at the ConTeXt meeting.
>
> There are two small lua tutorials in the program, and I am looking
> for input on both. There is one that is supposed to be a general
> beginner's introduction, and one specifically about fonts.
>
> For both, I am looking for input on what subjects I should cover?
>
1)data description (cfr.
http://www.lua.org/pil/10.1.html
)
for beginner

2)a luatex program similar to showttf for fonts tutorial

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
  2010-08-21 12:43 ` luigi scarso
@ 2010-08-22 14:37 ` Henning Hraban Ramm
  2010-08-23 13:47   ` Hans Hagen
  2010-08-23 16:37 ` Mojca Miklavec
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 17+ messages in thread
From: Henning Hraban Ramm @ 2010-08-22 14:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 2010-08-21 um 13:48 schrieb Taco Hoekwater:

> Hi all,
>
> Today I started preparations for my activities at the ConTeXt meeting.
>
> There are two small lua tutorials in the program, and I am looking
> for input on both. There is one that is supposed to be a general
> beginner's introduction, and one specifically about fonts.
>
> For both, I am looking for input on what subjects I should cover?
>
> Since both tutorials will end up as articles/wiki pages, it makes
> sense to ask everybody on the list for input (but requests by actual
> attendees will be scored considerably higher).


I'm planning to work on my LilyPond module during the meeting and  
would like to replace the catcode tinkering with some clean Lua logic,  
if possible. Don't know what will be required for that.
And I guess I could use some image/PDF analyzing, e.g. to finally get  
inline-music working.

Another plan WRT the documentation subject:  I'll try to make a  
ConTeXt "cheat sheet", but that won't need Lua ;-)


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-22 14:37 ` Henning Hraban Ramm
@ 2010-08-23 13:47   ` Hans Hagen
  2010-08-23 14:37     ` Henning Hraban Ramm
  0 siblings, 1 reply; 17+ messages in thread
From: Hans Hagen @ 2010-08-23 13:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm

On 22-8-2010 4:37, Henning Hraban Ramm wrote:
>
> Am 2010-08-21 um 13:48 schrieb Taco Hoekwater:
>
>> Hi all,
>>
>> Today I started preparations for my activities at the ConTeXt meeting.
>>
>> There are two small lua tutorials in the program, and I am looking
>> for input on both. There is one that is supposed to be a general
>> beginner's introduction, and one specifically about fonts.
>>
>> For both, I am looking for input on what subjects I should cover?
>>
>> Since both tutorials will end up as articles/wiki pages, it makes
>> sense to ask everybody on the list for input (but requests by actual
>> attendees will be scored considerably higher).
>
>
> I'm planning to work on my LilyPond module during the meeting and would
> like to replace the catcode tinkering with some clean Lua logic, if
> possible. Don't know what will be required for that.
> And I guess I could use some image/PDF analyzing, e.g. to finally get
> inline-music working.
>
> Another plan WRT the documentation subject: I'll try to make a ConTeXt
> "cheat sheet", but that won't need Lua ;-)

didn't you once made a math cheat sheet?

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-23 13:47   ` Hans Hagen
@ 2010-08-23 14:37     ` Henning Hraban Ramm
  0 siblings, 0 replies; 17+ messages in thread
From: Henning Hraban Ramm @ 2010-08-23 14:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/8/23 Hans Hagen <pragma@wxs.nl>:

>> Another plan WRT the documentation subject: I'll try to make a ConTeXt
>> "cheat sheet", but that won't need Lua ;-)
>
> didn't you once made a math cheat sheet?

Who, me? ;-)

I made a formulary for the printing industry (including basic algebra,
geometry, statistics etc.), but that was a bit more than a "sheet",
and it was my only LaTeX project.

Greetlings, Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
  2010-08-21 12:43 ` luigi scarso
  2010-08-22 14:37 ` Henning Hraban Ramm
@ 2010-08-23 16:37 ` Mojca Miklavec
  2010-08-23 18:22   ` Taco Hoekwater
  2010-08-23 22:36 ` Aditya Mahajan
  2010-08-24 18:37 ` Oliver Buerschaper
  4 siblings, 1 reply; 17+ messages in thread
From: Mojca Miklavec @ 2010-08-23 16:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[the following is just some brainstorming]

On Sat, Aug 21, 2010 at 13:48, Taco Hoekwater wrote:
> Hi all,
>
> Today I started preparations for my activities at the ConTeXt meeting.
>
> There are two small lua tutorials in the program, and I am looking
> for input on both. There is one that is supposed to be a general
> beginner's introduction, and one specifically about fonts.
>
> For both, I am looking for input on what subjects I should cover?

For fonts, agreed with Luigi, it would be nice to see some lua code that
a) takes a bunch of fonts as input (like:
regular/italic/bold/bolditalic/script) and writes some simple sentence
with all variants; switching options on and off (after thinking a bit,
this can just as well be done in almost-plain-TeX in LuaTeX, so maybe
it's not such a good idea)
b) takes a font as input and makes a really nice graphical representation:
- font name (under different OS systems?), file name, ...
- available features
- glyph repertoire (index/Unicode point/name/big drawing)
- alternatives of the same glyph (under small caps or when alternative
styles play some role), ... [i know it's incomplete]
- ...
- takes some input string and writes out that sentence under different
permutations of available features (with some user's help)
c) shows some OpenType math tricks (visually?) or even does the same
as showttf/poin b, but for math (challenge :) :) :)

One of possible ideas for an advanced example (just brainstorming; you
need to judge whether it makes sense or not; it might be too long &
complicated, but it would be instructive to see both parsing and
drawing at the same time):
- parse some very simple text input
- draw the image with mplib
For example, one could try to parse:
    http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html
(but with some strict restrictions, like: no cycles allowed, no
reactions, ... only element names, =, # and parenthesis with at most
one branch; no nested ones)
and then try to draw a full circle for every element and connect the
circles with single/double/triple lines (no attempt for optimal
placement and nothing complicated).

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-23 16:37 ` Mojca Miklavec
@ 2010-08-23 18:22   ` Taco Hoekwater
  2010-08-23 21:39     ` luigi scarso
  2010-08-24  3:31     ` David Rogers
  0 siblings, 2 replies; 17+ messages in thread
From: Taco Hoekwater @ 2010-08-23 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 08/23/2010 06:37 PM, Mojca Miklavec wrote:
> [the following is just some brainstorming]
>
>
> For fonts, agreed with Luigi, it would be nice to see some lua code that
> a) takes a bunch of fonts as input (like:
> regular/italic/bold/bolditalic/script) and writes some simple sentence
> with all variants; switching options on and off (after thinking a bit,
> this can just as well be done in almost-plain-TeX in LuaTeX, so maybe
> it's not such a good idea)

This teaches nothing that really needs the lua font interface, so I
do not think that is such a good idea either.

> b) takes a font as input and makes a really nice graphical representation:
> - font name (under different OS systems?), file name, ...
> - available features
> - glyph repertoire (index/Unicode point/name/big drawing)
> - alternatives of the same glyph (under small caps or when alternative
> styles play some role), ... [i know it's incomplete]
> - ...
> - takes some input string and writes out that sentence under different
> permutations of available features (with some user's help)

This sounds interesting (and, also important, doable up to a reasonable
point within the available time).

> c) shows some OpenType math tricks (visually?) or even does the same
> as showttf/poin b, but for math (challenge :) :) :)

OpenType Math really uses next to no lua code, it is almost all coded
in the executable proper, so it would be hard to do something
illustrative that is not overly complex on purpose at the same time.
As a beginner's tutorial, that is probably a step too far.

Myself, I was thinking of how to create a virtual font on the fly.
but b) definitely sounds interesting.

> One of possible ideas for an advanced example (just brainstorming; you
> need to judge whether it makes sense or not; it might be too long&
> complicated, but it would be instructive to see both parsing and
> drawing at the same time):
> - parse some very simple text input
> - draw the image with mplib
> For example, one could try to parse:
>      http://www.daylight.com/dayhtml/doc/theory/theory.smiles.html
> (but with some strict restrictions, like: no cycles allowed, no
> reactions, ... only element names, =, # and parenthesis with at most
> one branch; no nested ones)
> and then try to draw a full circle for every element and connect the
> circles with single/double/triple lines (no attempt for optimal
> placement and nothing complicated).

Should be ok, if I cheat a bit on the creation of metapost macros.
I had a somewhat similar idea myself, for parsing turtle graphics,
but that needed quite a bit of lpeg for which we may not have enough
time, so I had almost given up on parsing stuff. this chemistry stuff
is doable within the time constraints, I think.

Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-23 18:22   ` Taco Hoekwater
@ 2010-08-23 21:39     ` luigi scarso
  2010-08-24  3:31     ` David Rogers
  1 sibling, 0 replies; 17+ messages in thread
From: luigi scarso @ 2010-08-23 21:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, Aug 23, 2010 at 8:22 PM, Taco Hoekwater <taco@elvenkind.com> wrote:
> On 08/23/2010 06:37 PM, Mojca Miklavec wrote:
>> b) takes a font as input and makes a really nice graphical representation:
>> - font name (under different OS systems?), file name, ...
>> - available features
>> - glyph repertoire (index/Unicode point/name/big drawing)
>> - alternatives of the same glyph (under small caps or when alternative
>> styles play some role), ... [i know it's incomplete]
>> - ...
>> - takes some input string and writes out that sentence under different
>> permutations of available features (with some user's help)
>
> This sounds interesting (and, also important, doable up to a reasonable
> point within the available time).
Just to add that I have compiled showttf for linux (gcc, 32 bit)
windows seven (mingw, 32bit)

-- 
luigi
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
                   ` (2 preceding siblings ...)
  2010-08-23 16:37 ` Mojca Miklavec
@ 2010-08-23 22:36 ` Aditya Mahajan
  2010-08-24 18:37 ` Oliver Buerschaper
  4 siblings, 0 replies; 17+ messages in thread
From: Aditya Mahajan @ 2010-08-23 22:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 21 Aug 2010, Taco Hoekwater wrote:

> Hi all,
>
> Today I started preparations for my activities at the ConTeXt meeting.
>
> There are two small lua tutorials in the program, and I am looking
> for input on both. There is one that is supposed to be a general
> beginner's introduction, and one specifically about fonts.
>
> For both, I am looking for input on what subjects I should cover?
>
> Since both tutorials will end up as articles/wiki pages, it makes
> sense to ask everybody on the list for input (but requests by actual
> attendees will be scored considerably higher).

Some things that took a lot of trial and error for me to learn:

* Write a macro that passes its argument as a string to a lua function

* Write a macro that passes its argument as a function to a lua function

* Write a macro that passes a lua function to another lua function.

* Write a macro that passes an anonymous function to another lua function.

For example, I should be able to do:

\ToString{ABC with all " sorts ' of [[ weird [=[ characters [==[ [===[ 
[====[}

\ToTable{ ['A'] = B, ['B'] = A }


\ToFunction{ table.merge }

\ToFunction{ function (a, b) do return (a+b) end }

Slightly more advanced is how write a \setup command that can take these 
as an argument and pass it to a luafunction. For example

\setupwhatever
    [ string={ABC with all " sorts ' of [[ weird [=[ charactes [===[ 
[====[",
      table={ ['A'] = B, ['B'] = A },
      function = {table.merge},
      anon={funcion (a,b) do return (a+b) end},
    ]

On hindsight, these are simple. But there is no documentaion on how 
lua sees the TeX arguments, and you need to understand how \directlua 
expands its arguments...something that can be very frustrating in the 
beginning.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-23 18:22   ` Taco Hoekwater
  2010-08-23 21:39     ` luigi scarso
@ 2010-08-24  3:31     ` David Rogers
  1 sibling, 0 replies; 17+ messages in thread
From: David Rogers @ 2010-08-24  3:31 UTC (permalink / raw)
  To: ntg-context

* Taco Hoekwater <taco@elvenkind.com> [2010-08-23 20:22]:

>On 08/23/2010 06:37 PM, Mojca Miklavec wrote:
>>[the following is just some brainstorming]
>>
>>
>>For fonts, agreed with Luigi, it would be nice to see some lua code that
>>a) takes a bunch of fonts as input (like:
>>regular/italic/bold/bolditalic/script) and writes some simple sentence
>>with all variants; switching options on and off (after thinking a bit,
>>this can just as well be done in almost-plain-TeX in LuaTeX, so maybe
>>it's not such a good idea)
>
>This teaches nothing that really needs the lua font interface, so I
>do not think that is such a good idea either.

This brings up a possible point:
Some introductory matter on "What lua is and is not good for/needed
for".


-- 
Thanks
David
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
                   ` (3 preceding siblings ...)
  2010-08-23 22:36 ` Aditya Mahajan
@ 2010-08-24 18:37 ` Oliver Buerschaper
  2010-08-25  8:05   ` Steffen Wolfrum
  4 siblings, 1 reply; 17+ messages in thread
From: Oliver Buerschaper @ 2010-08-24 18:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

> Hi all,
> 
> Today I started preparations for my activities at the ConTeXt meeting.
> 
> There are two small lua tutorials in the program, and I am looking
> for input on both. There is one that is supposed to be a general
> beginner's introduction, and one specifically about fonts.
> 
> For both, I am looking for input on what subjects I should cover?
> 
> Since both tutorials will end up as articles/wiki pages, it makes
> sense to ask everybody on the list for input (but requests by actual
> attendees will be scored considerably higher).

Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...

Oliver


P.S. Will have to wait for the article...
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-24 18:37 ` Oliver Buerschaper
@ 2010-08-25  8:05   ` Steffen Wolfrum
  2010-08-25  9:17     ` Hans Hagen
  0 siblings, 1 reply; 17+ messages in thread
From: Steffen Wolfrum @ 2010-08-25  8:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:

>> Hi all,
>> 
>> Today I started preparations for my activities at the ConTeXt meeting.
>> 
>> There are two small lua tutorials in the program, and I am looking
>> for input on both. There is one that is supposed to be a general
>> beginner's introduction, and one specifically about fonts.
>> 
>> For both, I am looking for input on what subjects I should cover?
>> 
>> Since both tutorials will end up as articles/wiki pages, it makes
>> sense to ask everybody on the list for input (but requests by actual
>> attendees will be scored considerably higher).
> 
> Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...


+1

st.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-25  8:05   ` Steffen Wolfrum
@ 2010-08-25  9:17     ` Hans Hagen
  2010-08-25 10:46       ` John Haltiwanger
                         ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Hans Hagen @ 2010-08-25  9:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 25-8-2010 10:05, Steffen Wolfrum wrote:
>
> Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:
>
>>> Hi all,
>>>
>>> Today I started preparations for my activities at the ConTeXt meeting.
>>>
>>> There are two small lua tutorials in the program, and I am looking
>>> for input on both. There is one that is supposed to be a general
>>> beginner's introduction, and one specifically about fonts.
>>>
>>> For both, I am looking for input on what subjects I should cover?
>>>
>>> Since both tutorials will end up as articles/wiki pages, it makes
>>> sense to ask everybody on the list for input (but requests by actual
>>> attendees will be scored considerably higher).
>>
>> Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...
>
>
> +1

This is somewhat tricky. Actually I had a mechanism for that but I 
discarded the code. However there will be a feature like that some day 
as it needs a rather tight integration in the core of context's font 
handling. (btw, there is a feature for type 1 fonts that adds 'missing' 
kerns based on shape codes).

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-25  9:17     ` Hans Hagen
@ 2010-08-25 10:46       ` John Haltiwanger
  2010-08-25 10:46       ` Khaled Hosny
       [not found]       ` <98D0BF51-278A-4DE1-8834-283DD2E035B5@post.werksatz.com>
  2 siblings, 0 replies; 17+ messages in thread
From: John Haltiwanger @ 2010-08-25 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

How about including Lua library loading in the tutorial? The
discussion of converting from pre-formats like Markdown seems like a
good starting point for demonstrating how to load Lua libraries and
integrate procedural programming into a ConTeXt workflow.

Hopefully I will be there, still rounding up the cash but it looks
like I might make it.

On Wed, Aug 25, 2010 at 11:17 AM, Hans Hagen <pragma@wxs.nl> wrote:
> On 25-8-2010 10:05, Steffen Wolfrum wrote:
>>
>> Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:
>>
>>>> Hi all,
>>>>
>>>> Today I started preparations for my activities at the ConTeXt meeting.
>>>>
>>>> There are two small lua tutorials in the program, and I am looking
>>>> for input on both. There is one that is supposed to be a general
>>>> beginner's introduction, and one specifically about fonts.
>>>>
>>>> For both, I am looking for input on what subjects I should cover?
>>>>
>>>> Since both tutorials will end up as articles/wiki pages, it makes
>>>> sense to ask everybody on the list for input (but requests by actual
>>>> attendees will be scored considerably higher).
>>>
>>> Perhaps some example to modify a font at runtime? I don't know whether
>>> that's possible at all, but if yes, it would be great to see how one could
>>> modify kerning tables etc. Often a font needs to be groomed but its license
>>> places some restrictions on modifying the file itself...
>>
>>
>> +1
>
> This is somewhat tricky. Actually I had a mechanism for that but I discarded
> the code. However there will be a feature like that some day as it needs a
> rather tight integration in the core of context's font handling. (btw, there
> is a feature for type 1 fonts that adds 'missing' kerns based on shape
> codes).
>
> Hans
>
> -----------------------------------------------------------------
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-25  9:17     ` Hans Hagen
  2010-08-25 10:46       ` John Haltiwanger
@ 2010-08-25 10:46       ` Khaled Hosny
  2010-09-01 19:34         ` Steffen Wolfrum
       [not found]       ` <98D0BF51-278A-4DE1-8834-283DD2E035B5@post.werksatz.com>
  2 siblings, 1 reply; 17+ messages in thread
From: Khaled Hosny @ 2010-08-25 10:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Aug 25, 2010 at 11:17:13AM +0200, Hans Hagen wrote:
> On 25-8-2010 10:05, Steffen Wolfrum wrote:
> >
> >Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:
> >
> >>>Hi all,
> >>>
> >>>Today I started preparations for my activities at the ConTeXt meeting.
> >>>
> >>>There are two small lua tutorials in the program, and I am looking
> >>>for input on both. There is one that is supposed to be a general
> >>>beginner's introduction, and one specifically about fonts.
> >>>
> >>>For both, I am looking for input on what subjects I should cover?
> >>>
> >>>Since both tutorials will end up as articles/wiki pages, it makes
> >>>sense to ask everybody on the list for input (but requests by actual
> >>>attendees will be scored considerably higher).
> >>
> >>Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...
> >
> >
> >+1
> 
> This is somewhat tricky. Actually I had a mechanism for that but I
> discarded the code. However there will be a feature like that some
> day as it needs a rather tight integration in the core of context's
> font handling. (btw, there is a feature for type 1 fonts that adds
> 'missing' kerns based on shape codes).

And there is font feature files, which, when not broken :), look the
same to the OpenType handling code as if the feature were in the
original font i.e. no special handling needed.

Regards,
 Khaled

-- 
 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
       [not found]           ` <530D2CCA-5CE5-45BB-A407-640108712EFC@post.werksatz.com>
@ 2010-08-25 11:11             ` Hans Hagen
  0 siblings, 0 replies; 17+ messages in thread
From: Hans Hagen @ 2010-08-25 11:11 UTC (permalink / raw)
  To: Steffen Wolfrum, mailing list for ConTeXt users

On 25-8-2010 12:14, Steffen Wolfrum wrote:
>
> Am 25.08.2010 um 11:37 schrieb Hans Hagen:
>
>> On 25-8-2010 11:22, Steffen Wolfrum wrote:
>>>
>>> Am 25.08.2010 um 11:17 schrieb Hans Hagen:
>>>
>>>> On 25-8-2010 10:05, Steffen Wolfrum wrote:
>>>>>
>>>>> Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:
>>>>>
>>>>>>> Hi all,
>>>>>>>
>>>>>>> Today I started preparations for my activities at the ConTeXt meeting.
>>>>>>>
>>>>>>> There are two small lua tutorials in the program, and I am looking
>>>>>>> for input on both. There is one that is supposed to be a general
>>>>>>> beginner's introduction, and one specifically about fonts.
>>>>>>>
>>>>>>> For both, I am looking for input on what subjects I should cover?
>>>>>>>
>>>>>>> Since both tutorials will end up as articles/wiki pages, it makes
>>>>>>> sense to ask everybody on the list for input (but requests by actual
>>>>>>> attendees will be scored considerably higher).
>>>>>>
>>>>>> Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...
>>>>>
>>>>>
>>>>> +1
>>>>
>>>> This is somewhat tricky. Actually I had a mechanism for that but I discarded the code. However there will be a feature like that some day as it needs a rather tight integration in the core of context's font handling. (btw, there is a feature for type 1 fonts that adds 'missing' kerns based on shape codes).
>>>
>>> Great! How can this feature be triggered?
>>
>> happens automatically
>>
>> \usetypescriptfile[type-ghz]
>>
>> \enabletrackers[afm.features]
>>
>> \starttext
>>
>> \definetypeface[main][rm][serif][melior][default]
>>
>> \setupbodyfont[main]
>>
>> test
>>
>> \stoptext
>>
>> reports (when not cached):
>>
>> load afm>  add ligatures
>> load afm>  add tex-ligatures
>> load afm>  add extra kerns
>
>
> Where does it report these lines?
>
> I looked at terminal output and compared the log files (no difference with/without enabletrackers) in vain.
>
> "when not cached" does mean the first time typesetting, no?

fonts are cached so you will only see this if you erase the font cache

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: ConTeXt meeting Lua tutorials
  2010-08-25 10:46       ` Khaled Hosny
@ 2010-09-01 19:34         ` Steffen Wolfrum
  0 siblings, 0 replies; 17+ messages in thread
From: Steffen Wolfrum @ 2010-09-01 19:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.08.2010 um 12:46 schrieb Khaled Hosny:

> On Wed, Aug 25, 2010 at 11:17:13AM +0200, Hans Hagen wrote:
>> On 25-8-2010 10:05, Steffen Wolfrum wrote:
>>> 
>>> Am 24.08.2010 um 20:37 schrieb Oliver Buerschaper:
>>> 
>>>>> Hi all,
>>>>> 
>>>>> Today I started preparations for my activities at the ConTeXt meeting.
>>>>> 
>>>>> There are two small lua tutorials in the program, and I am looking
>>>>> for input on both. There is one that is supposed to be a general
>>>>> beginner's introduction, and one specifically about fonts.
>>>>> 
>>>>> For both, I am looking for input on what subjects I should cover?
>>>>> 
>>>>> Since both tutorials will end up as articles/wiki pages, it makes
>>>>> sense to ask everybody on the list for input (but requests by actual
>>>>> attendees will be scored considerably higher).
>>>> 
>>>> Perhaps some example to modify a font at runtime? I don't know whether that's possible at all, but if yes, it would be great to see how one could modify kerning tables etc. Often a font needs to be groomed but its license places some restrictions on modifying the file itself...
>>> 
>>> 
>>> +1
>> 
>> This is somewhat tricky. Actually I had a mechanism for that but I
>> discarded the code. However there will be a feature like that some
>> day as it needs a rather tight integration in the core of context's
>> font handling. (btw, there is a feature for type 1 fonts that adds
>> 'missing' kerns based on shape codes).
> 
> And there is font feature files, which, when not broken :), look the
> same to the OpenType handling code as if the feature were in the
> original font i.e. no special handling needed.



http://wiki.contextgarden.net/fontfeaturefiles


Steffen
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-09-01 19:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-21 11:48 ConTeXt meeting Lua tutorials Taco Hoekwater
2010-08-21 12:43 ` luigi scarso
2010-08-22 14:37 ` Henning Hraban Ramm
2010-08-23 13:47   ` Hans Hagen
2010-08-23 14:37     ` Henning Hraban Ramm
2010-08-23 16:37 ` Mojca Miklavec
2010-08-23 18:22   ` Taco Hoekwater
2010-08-23 21:39     ` luigi scarso
2010-08-24  3:31     ` David Rogers
2010-08-23 22:36 ` Aditya Mahajan
2010-08-24 18:37 ` Oliver Buerschaper
2010-08-25  8:05   ` Steffen Wolfrum
2010-08-25  9:17     ` Hans Hagen
2010-08-25 10:46       ` John Haltiwanger
2010-08-25 10:46       ` Khaled Hosny
2010-09-01 19:34         ` Steffen Wolfrum
     [not found]       ` <98D0BF51-278A-4DE1-8834-283DD2E035B5@post.werksatz.com>
     [not found]         ` <4C74E444.5040501@wxs.nl>
     [not found]           ` <530D2CCA-5CE5-45BB-A407-640108712EFC@post.werksatz.com>
2010-08-25 11:11             ` Hans Hagen

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).