[NTG-context] no protrusion or hz

2010-04-12 Thread Michael Saunders
\definefontfeature[default][mode=node,language=dflt,script=latn,kern=yes,liga=yes,tlig=yes,trep=yes]
\definefontfeature[body][default][protrusion=quality,expansion=quality]

\starttypescript [test]
\definetypeface[test][rm][serif][palatino][default][features=body]
\stoptypescript

\usetypescript[test]

\setupalign[hanging,hz]
\setupbodyfont[test,12pt]%
\mainlanguage[en-us]

\showgrid

\starttext
\addff{body}
\input{knuth}
\stoptext

Results in no protrusion or hz.   What's wrong?
___
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
___


[NTG-context] bug/feature request tracker?

2010-04-12 Thread Michael Saunders
it's not that complex to deal with it (but i'd only do it in mkiv) gien
time and motivation ... you can put a feature request in the tracker so
that i can look at it when i'm reworking marging notes the mkiv way
(first come floats)

Where is this tracker?
___
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
___


Re: [NTG-context] bug/feature request tracker?

2010-04-12 Thread Taco Hoekwater

Michael Saunders wrote:

it's not that complex to deal with it (but i'd only do it in mkiv) gien
time and motivation ... you can put a feature request in the tracker so
that i can look at it when i'm reworking marging notes the mkiv way
(first come floats)


Where is this tracker?


http://tracker.luatex.org/

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
___


Re: [NTG-context] Help needed: texshow-web/command reference

2010-04-12 Thread richard . stephens

Patrick wrote:
 
 Hi all,
 
 the garden maintainers have moved the command reference from texshow-web
(
 http://texshow.contextgarde.net)
to the wiki, below the page
 
 http://wiki.contextgarden.net/Category:Reference/en
 
 This means, everybody can update the command reference now! Hooray!
 
 The contents has been transferred automatically, but this process

 can lead to some unwanted formatting errors. To find these errors,

 we need your help:
 
 Everybody: please pick one random command from 
 
 http://wiki.contextgarden.net/Category:Reference_Cleanup
 
 and make if this looks ok. If you are finished, please remove the

 first two lines from that page and save it.
 
 If everybody from this list helps with _one_ command, we are quickly
 done with checking the new reference!
 
 
 Thanks for your help!
 
 Patrick (for the garden maintainers)

This is fantastic news, and it looks great! Thanks
Patrick.

If the 'volunteers' are REALLY keen they could also
change examples so that they have the following form:

context source=yes text=yields
Some example code for the command in question.
/context

which then outputs both the raw code and the formatted
output separated by the word yields. It makes examples so much
more useful.

Best regards

Richard





Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration
Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and
may be privileged. If you are not a named recipient, please notify the
sender immediately and do not disclose the contents to another person,
use it for any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




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


[NTG-context] line-break index bug

2010-04-12 Thread Steffen Wolfrum
Hi,


I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is this 
index/line-break bug!


See example below please:


\setuplayout[width=113mm,location=middle]
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\mainlanguage[de]
\setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
\setupalign[line,block]

\starttext

dieses ist dabei typisch für den Bereich der Architekten- oder 
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\stoptext






index_bug.pdf
Description: Adobe PDF document


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
___


Re: [NTG-context] line-break index bug

2010-04-12 Thread Thomas A. Schmitz


On Apr 12, 2010, at 10:52 AM, Steffen Wolfrum wrote:


Hi,


I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is  
this index/line-break bug!




It's not a bug, it's explained somewhere in the manual. Put the \index  
entry before the indexed word, and all is well.


Thomas
___
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
___


[NTG-context] simplebib

2010-04-12 Thread Wolfgang Werners-Lucchini
Hallo,

on the garden there is am module called 'simplebib'
which has commands \bibitem and \bibsource

Are these two commands meant alternativly?

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Help needed: texshow-web/command reference

2010-04-12 Thread Patrick Gundlach
 
 This is fantastic news, and it looks great! Thanks Patrick. 

You're welcome! Lots of people have encouraged me to do so, so any input is 
welcome!

 
 If the 'volunteers' are REALLY keen they could also change examples so that 
 they have the following form: 
 
 context source=yes text=yields 
  Some example code for the command in question. 
 /context 
 
 which then outputs both the raw code and the formatted output separated by 
 the word yields. It makes examples so much more useful. 

This is a great suggestion! There are still approx. 50% of the commands to be 
checked, so if anyone on the lists has one or two spare minutes, again, the 
page is at

http://wiki.contextgarden.net/Category:Reference_Cleanup

Patrick

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


Re: [NTG-context] simplebib

2010-04-12 Thread Wolfgang Schuster

Am 12.04.10 13:18, schrieb Wolfgang Werners-Lucchini:

Hallo,

on the garden there is am module called 'simplebib'
which has commands \bibitem and \bibsource

Are these two commands meant alternativly?
   

Both are unrelated to each other, they are two different ways to create
a bibiliography without the bib module and a bib file.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] line-break index bug

2010-04-12 Thread Steffen Wolfrum

Am 12.04.2010 um 11:09 schrieb Thomas A. Schmitz:

 
 On Apr 12, 2010, at 10:52 AM, Steffen Wolfrum wrote:
 
 Hi,
 
 
 I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is this 
 index/line-break bug!
 
 
 It's not a bug, it's explained somewhere in the manual. Put the \index entry 
 before the indexed word, and all is well.


I am setting text that authors indexed in MSWord ... and they don't care where 
to put the \index (often it is placed IN the word ;o)
And I don't dare to touch thousands of index marks!

BTW: it always worked with MkII. 
Please let it work again in MkIV, too. 


For I can't change the behavior of people setting their index marks, MkIV 
should be as tolerant in that respect as MkII is.


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
___


Re: [NTG-context] line-break index bug

2010-04-12 Thread Wolfgang Schuster

Am 12.04.10 10:52, schrieb Steffen Wolfrum:

Hi,

I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is this 
index/line-break bug!

See example below please:

\setuplayout[width=113mm,location=middle]
\usetypescript[postscript]
\definetypeface[postscript][rm][serif][times][default]
\mainlanguage[de]
\setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
\setupalign[line,block]

\starttext

dieses ist dabei typisch für den Bereich der Architekten- oder 
Ingenieurleistungen\index{Ingenieurleistungen}. Warum?

\stoptext
   

Can you test

\unexpanded\def\forcecolorhack{\penalty\leaders\hrule\normalhskip\zeropoint}

in your document.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] \nocap does not work

2010-04-12 Thread Marco
Hi,

I wanted to wikify the command »\nocap« and tried it out. But it does
seen to have any effect, see the example from the manual:

\starttext
\cap {People that have gathered their \cap {capital} at the cost of
other people are not seldom \nocap {decapitated} in revolutionary
times.}
\stoptext

The word »decapitated« ist also capitalized.

MTXrun | current version: 2010.04.07
This is LuaTeX, Version beta-0.60.0-2010040422

Marco


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


Re: [NTG-context] line-break index bug

2010-04-12 Thread Steffen Wolfrum

Am 12.04.2010 um 15:41 schrieb Wolfgang Schuster:

 Am 12.04.10 10:52, schrieb Steffen Wolfrum:
 Hi,
 
 I am sorry, but in  ConTeXt  ver: 2010.04.10 MKIV there still is this 
 index/line-break bug!
 
 See example below please:
 
 \setuplayout [width=113mm,location=middle]
 \usetypescript[postscript]
 \definetypeface[postscript][rm][serif][times][default]
 \mainlanguage[de]
 \setupbodyfont[postscript,10pt] \setupinterlinespace[line=12pt]
 \setupalign[line,block]
 
 \starttext
 
 dieses ist dabei typisch für den Bereich der Architekten- oder 
 Ingenieurleistungen\index{Ingenieurleistungen}. Warum?
 
 \stoptext
   
 Can you test
 
 \unexpanded\def\forcecolorhack{\penalty\leaders\hrule\normalhskip\zeropoint}
 
 in your document.




It works! Marvellous ;o)


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
___


Re: [NTG-context] How to define your own math character (MK-IV)

2010-04-12 Thread gummybears
Hi Hans  Aditya

Please be patient as I am not a developer just someone who writes
documents.

I discovered the integral symbols starting at the double integral
are now composed by repeating the normal integral symbol
n-times. However in an earlier email I commented that they didn't
look right (something to do with setting the displaystyle (I think))

Then I discovered the Asana math font which has correct glyphs
The missing symbols for math-vfu.lua are

Asana math font
0x222B normal integral \int
0x222C double integral \iint
0x222D triple integral \iiint
0x222E contour integral \oint
0x222F surface integral \oiint
0x2230 volume integral \oiiint

I also need the space-time integral \nt (4 i's) but could
not find it in the Asana font

Note for the other math stuff the Asana math font does not work
like vectors and such. For $\vec{r}, \vec{R}$ the vector symbol is shifted
to the right and not aligned above the character (hope this make some sense
otherwise
forget it for the moment).

Kind regards
gummybears
___
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
___


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Wolfgang Schuster

Am 12.04.10 15:47, schrieb Marco:

Hi,

I wanted to wikify the command »\nocap« and tried it out. But it does
seen to have any effect, see the example from the manual:

\starttext
\cap {People that have gathered their \cap {capital} at the cost of
other people are not seldom \nocap {decapitated} in revolutionary
times.}
\stoptext

The word »decapitated« ist also capitalized.
   
With MkIV \cap and \nocap is no longer necessary when you have a 
opentype font

with the smcp (smallcapitals) and c2sc (capitals to smallcapitals) features.

\definefontfeature[caps]  [smcp=yes,c2sc=yes]
\definefontfeature[nocaps][smcp=no,c2sc=no]

\setupbodyfont[termes]

\starttext
{\addff{caps} People that have gathered their {\tx capital} at the cost of
other people are not seldom {\addff{nocaps} decapitated} in revolutionary
times.}
\stoptext

The result is different from \cap because everything is set as smallcapitals
so here is the MkIV defintion for \nocap.

\unexpanded\def\notsmallcapped{\groupedcommand{\setcharactercasing[\plustwo]\char\zerocount}{}}

\starttext
\cap {People that have gathered their \cap {capital} at the cost of
other people are not seldom \nocap {decapitated} in revolutionary times.}
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplebib

2010-04-12 Thread Wolfgang Werners-Lucchini
  on the garden there is am module called 'simplebib'
  which has commands \bibitem and \bibsource
 
  Are these two commands meant alternativly?
 
 Both are unrelated to each other, they are two different ways to
 create a bibiliography without the bib module and a bib file.
 
 Wolfgang

Sorry, I meant the first only.

There are two commands \bibitem and \bibsource which are not clear to 
me.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] simplebib

2010-04-12 Thread Wolfgang Schuster

Am 12.04.10 19:40, schrieb Wolfgang Werners-Lucchini:

on the garden there is am module called 'simplebib'
which has commands \bibitem and \bibsource

Are these two commands meant alternativly?

   

Both are unrelated to each other, they are two different ways to
create a bibiliography without the bib module and a bib file.

Wolfgang
 

Sorry, I meant the first only.

There are two commands \bibitem and \bibsource which are not clear to me.
   

When i decode the code (ugly formatting) correct this works:

\starttext

bla \in{book}[knuth:1] bla

bla \bibref[knuth:2]{} bla

bla \bibref[knuth:3]{} bla

\startbibliography

\bibitem[knuth:1]{} Donald E. Knuth, The \TeX book

\bibitem[knuth:2]{Knuth} Donald E. Knuth, The \METAFONT-book

\bibsource[key=knuth:3,title=The Art of Computer Programming,...]

\stopbibliography

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Hans Hagen

On 12-4-2010 7:26, Wolfgang Schuster wrote:

Am 12.04.10 15:47, schrieb Marco:



\unexpanded\def\notsmallcapped{\groupedcommand{\setcharactercasing[\plustwo]\char\zerocount}{}}


added

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Marco
 With MkIV \cap and \nocap is no longer necessary when you have a 
 opentype font
 with the smcp (smallcapitals) and c2sc (capitals to smallcapitals)
 features.
Thanks for your explanation. But why doesn't your example work with the
latin modern fonts? Don't they have these features? I'd be surprised
when they don't have small caps.

I'm against wikifying MKII stuff. Maybe I'll add a MKII-only note. When
I'm not completely mistaken I think its use should fade away in the near
future. So creating documentation for MKII is a waste of time.

Why are non-working commands like this not removed in MKIV? An undefined
control sequence is easier debuggable than weird behaviour in my opinion.

marco


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


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Khaled Hosny
On Mon, Apr 12, 2010 at 09:23:02PM +0200, Marco wrote:
  With MkIV \cap and \nocap is no longer necessary when you have a 
  opentype font
  with the smcp (smallcapitals) and c2sc (capitals to smallcapitals)
  features.
 Thanks for your explanation. But why doesn't your example work with the
 latin modern fonts? Don't they have these features? I'd be surprised
 when they don't have small caps.

They don't have a small caps OpenType feature (smcp) for a reason beyond
to me, they however have an old-fashioned separate small caps font.

I would liked to send patches to LM fonts project, but they don't have
a source repository and their work flow depends on proprietary software
that I cannot afford.


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


[NTG-context] Undefined control sequence in ConTeXt ver: 2010.04.10 13:44 MKIV

2010-04-12 Thread Bernhard Rosensteiner
Hello,

i just updated my minimals and now i get an undefined control sequence error 
with my previous working file
attached is the log file. Please help!

best regards
Bernhard




Proposal_MicroCT.log
Description: Binary data
___
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
___


[NTG-context] Undefined control sequence in ConTeXt ver: 2010.04.10 13:44 MKIV

2010-04-12 Thread Bernhard Rosensteiner
Hello,

i just updated my minimals and now i get an undefined control sequence error 
with my previous working file
attached is the log file. Please help!

best regards
Bernhard




Proposal_MicroCT.log
Description: Binary data
___
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
___


Re: [NTG-context] Typographical Engineering in Context

2010-04-12 Thread Idris Samawi Hamid ادريس سماوي ح امد



On Sun, 11 Apr 2010 02:40:29 -0600, Otared Kavian ota...@gmail.com wrote:


On 3 avr. 2010, at 19:00, Idris Samawi Hamid ادريس سماوي حامد wrote:

News flash: it's already there! See attached.



Hi Idriss,

That's wonderful!


:-)


Could you please tell us what font you have used


It's very experimental at the moment, but I hope to have a release by the  
end of this year or earlier ... still working on the details of how to  
release it etc...


and give us the font features turned on to get that kind of coloring and  
« kashide »?


Those are not font features, but rather a goodies package by Hans that  
allows one to set glyphs for coloring.


The trick in this case is that I separate the main shapes from the dots in  
the font, otherwise this won't work with any other arabic font afaik.


Can you send an example ConTeXt file that produces what you sent as a  
png file?


It's part of a larger file, and somewhat useless as a sample for a moment,  
but I'll contact you offlist for some discussion about it if u're  
interested.


:-)

Peace
Idris
--
Professor Idris Samawi Hamid, Editor-in-Chief
International Journal of Shi`i Studies
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Hans Hagen

On 12-4-2010 9:43, Khaled Hosny wrote:

On Mon, Apr 12, 2010 at 09:23:02PM +0200, Marco wrote:

With MkIV \cap and \nocap is no longer necessary when you have a
opentype font
with the smcp (smallcapitals) and c2sc (capitals to smallcapitals)
features.

Thanks for your explanation. But why doesn't your example work with the
latin modern fonts? Don't they have these features? I'd be surprised
when they don't have small caps.


They don't have a small caps OpenType feature (smcp) for a reason beyond
to me, they however have an old-fashioned separate small caps font.


this is because they are cm compatible (the initial objective of the 
project was a merge of all those variants)


in the future we might have extra lm fonts that have those features but 
the team is still not sure if this should be done ... it makes much 
sense for consistency to have smallcaps merged in the normal shapes but 
even then there would be a separate smallcaps font as well



I would liked to send patches to LM fonts project, but they don't have
a source repository and their work flow depends on proprietary software
that I cannot afford.


concerning the workflow you're wrong ... they use public tools like 
metatype1 which is free ... and they're currently building a tool chain 
for the math fonts


concerning the repos you're right ... given earlier experiences with 
lack of quality assurance in public fonts the lm/gyre project follows 
strickt procedures and only the core team can patch ... of course you 
can send suggestions and patches but the core team decides


fyi: the gyre team (gust font foundation) has now reverted to the core 
urw fonts for which they got the copyright and it made it possible to 
get rid of some ugly artefacts and glyphs (again, lack of qa had 
rendered the latest public urw fonts somewhat useless)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


Re: [NTG-context] Undefined control sequence in ConTeXt ver: 2010.04.10 13:44 MKIV

2010-04-12 Thread Hans Hagen

On 12-4-2010 9:55, Bernhard Rosensteiner wrote:

Hello,

i just updated my minimals and now i get an undefined control sequence error 
with my previous working file
attached is the log file. Please help!


in page-flt you cann patch

%def\dofloatflushedinfo

-

\def\dofloatflushedinfo

(i'm in the process of upgrading float management)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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
___


[NTG-context] Internet archive integration into bibliography

2010-04-12 Thread Matija Šuklje
Hullo,

lately I got an great idea(TM) concerning citing internet sources.

\\ Initial problem:
the internet is ever changing, what says on a page today, might not be 
there tomorrow and in ten years' time the page might not exist at all.

\\ Solution so far:
just smack the date (and time) next to the link. I've seen that often and 
my faculty expects this from me as well.

\\ Problem with the solution so far:
it doesn't solve anything really.

\\ Solution(TM):
along with the URL and date, add the Internet Archive's link from that time 
next to it as well.

The ‘Solution(TM)’ is a bit tedious though, so it'd be great if ConTeXt 
could automate this process a bit. What I'm thinking is, if ConTeXt could 
take the URL and date stored in the bibliography (.bbl) and combine it 
together to form a URL of the Internet Archive's Wayback Machine to point 
to that particular page at that particular time.

In the document's bibliography then it could be rendered something like 
this:

Wikipedia: ConTeXt; http://en.wikipedia.org/wiki/ConTeXt; as seen on the 
day: 12th of April 2010 at 13:45

With http://en.wikipedia.org/wiki/ConTeXt; being a hyperlink to just that 
and 12th of April 2010 being a hyperlink to 
http://web.archive.org/web/20100412134500/en.wikipedia.org/wiki/ConTeXt

Note: using any date and time works OK with the archive.org, since if the 
date doesn't exist in its database, it falls back to the last archived site 
before the date requested.


What do you think? Would this make sense? If so, should we enable it by 
default?



Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Building a guitar chord using MP

2010-04-12 Thread Vyatcheslav Yatskovsky

Hurray!

I've got first draft version of guitar chord building macro. (With the 
help of this excellent manual http://www.tug.org/docs/metapost/mpman.pdf )


% -- working version ---
\startuseMPgraphic{chordgrid}{e,B,G,D,A,E}
def fretmark(expr a,b) =
% a = string number
% b = fret number
pickup pencircle scaled 3pt;
drawdot(b*7-3, a*4.5-4.5);
enddef;

drawoptions(withpen pencircle scaled 0.4pt withcolor black) ;
draw hlingrid(0, 5, 1, 0.8cm, 1cm) ;
draw vlingrid(0, 4, 1, 1cm, 0.8cm) ;

fretmark(1,\MPvar{e});
fretmark(2,\MPvar{B});
fretmark(3,\MPvar{G});
fretmark(4,\MPvar{D});
fretmark(5,\MPvar{A});
fretmark(6,\MPvar{E});
\stopuseMPgraphic

\define[6]\Ch
{\dontleavehmode
\useMPgraphic{chordgrid}{e={#1},B={#2},G={#3},D={#4},A={#5},E={#6}}%
\hskip2mm}

\starttext
\Ch{1}{3}{1}{2}{1}{4}
\stoptext


However, my current trouble is chord caption (like Am). Except wrong 
placement of the label, adding seventh non-numerical argument to the 
macro throws an error.


% -- does not work ---
\startuseMPgraphic{chordgrid}{e,B,G,D,A,E,Cptn}
def fretmark(expr a,b) =
% a = string number
% b = fret number
pickup pencircle scaled 3pt;
drawdot(b*7-3, a*4.5-4.5);
enddef;

drawoptions(withpen pencircle scaled 0.4pt withcolor black) ;
draw hlingrid(0, 5, 1, 0.8cm, 1cm) ;
draw vlingrid(0, 4, 1, 1cm, 0.8cm) ;

fretmark(1,\MPvar{e});
fretmark(2,\MPvar{B});
fretmark(3,\MPvar{G});
fretmark(4,\MPvar{D});
fretmark(5,\MPvar{A});
fretmark(6,\MPvar{E});

label.top(\MPvar{Cptn}, (2,0));
\stopuseMPgraphic

\define[7]\Ch
{\dontleavehmode
\useMPgraphic{chordgrid}{e={#1},B={#2},G={#3},D={#4},A={#5},E={#6},Cptn={#7}}%
\hskip2mm}

\starttext
\Ch{1}{3}{1}{2}{1}{4}{Am}
\stoptext


! Missing number, treated as zero.
to be read again
   A
\theMPvariable -A
  m
argument ...\hbox {\scratchdimen \theMPvariable
  sp}\ifdim \wd 
\scratchbox ...

\secondoftwoarguments #1#2-#2

\prepareMPvariable ...epareMPvariable {\@@meta #1}
  \fi
\next1 #1,-\prepareMPvariable {#1}
   \doprocesscommaitem
...
l.29 \Ch{1}{3}{1}{2}{1}{4}{Am}

?


Regards,
Vyatcheslav
___
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
___


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Khaled Hosny
On Mon, Apr 12, 2010 at 11:41:59PM +0200, Hans Hagen wrote:
 On 12-4-2010 9:43, Khaled Hosny wrote:
 On Mon, Apr 12, 2010 at 09:23:02PM +0200, Marco wrote:
 With MkIV \cap and \nocap is no longer necessary when you have a
 opentype font
 with the smcp (smallcapitals) and c2sc (capitals to smallcapitals)
 features.
 Thanks for your explanation. But why doesn't your example work with the
 latin modern fonts? Don't they have these features? I'd be surprised
 when they don't have small caps.
 
 They don't have a small caps OpenType feature (smcp) for a reason beyond
 to me, they however have an old-fashioned separate small caps font.
 
 this is because they are cm compatible (the initial objective of the
 project was a merge of all those variants)
 
 in the future we might have extra lm fonts that have those features
 but the team is still not sure if this should be done ... it makes
 much sense for consistency to have smallcaps merged in the normal
 shapes but even then there would be a separate smallcaps font as
 well

A separate small caps font made sense for Type1 fonts (where CM
compatibility would matter), but for OpenType fonts I fail to see the
reasoning for this.

 I would liked to send patches to LM fonts project, but they don't have
 a source repository and their work flow depends on proprietary software
 that I cannot afford.
 
 concerning the workflow you're wrong ... they use public tools like
 metatype1 which is free ... and they're currently building a tool
 chain for the math fonts

I was referring to OpenType programming where they use Adobe AFDKO which
is a proprietary software that run only on proprietary OS, and with lack
of sources I can't even provide patches against the feature files, I can
make modified fonts but I don't think they will accept it. Even
MetaType1, it is written with only Windows users in mind; I can't use
the supplied batch files and I can't understand them (with no
documentation at all) to write a replacement.

 concerning the repos you're right ... given earlier experiences with
 lack of quality assurance in public fonts the lm/gyre project
 follows strickt procedures and only the core team can patch ... of
 course you can send suggestions and patches but the core team
 decides

Closed development is not the solution for lack of proper QA, proper QA
is the solution; you can have open development model with public repos,
bug tracker, roadmaps etc. and still maintain a strict QA process, there
are many free software projects with very high QA standards but still
running an open development model. With open development you encourage
potential contributors who may or my not very valuable to you project.

 fyi: the gyre team (gust font foundation) has now reverted to the
 core urw fonts for which they got the copyright and it made it
 possible to get rid of some ugly artefacts and glyphs (again, lack
 of qa had rendered the latest public urw fonts somewhat useless)

There is still a long way to go, the Greek glyph for example are ranging
from suboptimal to pure crap.

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
___


Re: [NTG-context] \nocap does not work

2010-04-12 Thread Marco
  They don't have a small caps OpenType feature (smcp) for a reason
  beyond to me, they however have an old-fashioned separate small
  caps font.
 
 this is because they are cm compatible (the initial objective of the 
 project was a merge of all those variants)
Thanks for the explanation.

I think merging would be the best option. That way we have a modern
typeface. Maybe we can carry around the seperate small caps for
compatibility. That doesn't seem to harm.

marco


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


[NTG-context] footnote marks fail

2010-04-12 Thread Michael Saunders
Footnotes are normally marked with superior figures both in the text
and before the footnote itself.  Context's defaults prevent this, and
I can't figure out how to change the defaults.

1. The defaults

So that no imagination is necessary, here is a minimal example:

\starttext
text\footnote{footnote}
\stoptext

I have to guess what Context is doing.  It looks like it's taking the
regular numbers from the font, shrinking them somehow and elevating
them.  It does this in unequal amounts for the marks in text and the
marks before footnotes.  In both cases, the number is so light it's
barely readable.  In the case of the mark before the footnote, it's
raised much too high.

Normal, professional fonts have superior figures in them that are used
for footnote marks.  It _should_ be possible to use them, that is.
All I want to do is turn off the default scaling and raising behavior
of Context footnote marks so I can do this, and finally get normal
looking footnotes.  No doubt, people will object that they don't have
my font in the room with them, and it is therefore impossible to think
about the problem. So, I repeat myself:  all I want to do is turn off
the default scaling and raising.

2. My first stab at correcting this.

WARNING:  I have a font with the opentype features 'sups' and 'numr'.
You might not have this font, but it is still possible to think about
the problem:  the problem is not my font, but Context's defaults.

\definefontfeature[su][default][sups=yes]%superior
\definefontfeature[nu][default][numr=yes]%numerator

\newcommand{\fnstyle}{\switchtobodyfont[12pt]\addff{su}}
\setupnote[footnote][numbercommand=\fnstyle,textcommand=\fnstyle\tfa]

(Note: my body font is 12pt.)

This is as close as I could get to correcting the problem.  When I do
this, the marks in text look a little too low, too short and much too
bold.  It looks like Context is still scaling and elevating on its
own.  The marks before the footnotes are much too large and far, far
too high.  Context seems to be trying to squeeze them between the
lines.   This also seems to force extra space between the separate
footnotes, even though I have grid on.

If I try using numerators instead of superiors (they look the same but
are lower), the marks in text look too bold and far too low.  The
marks before the footnotes are at the right height, but too big.

DISCLAIMER:  it is not necessary to own my font in order to think
about this problem.  The issue is the default scaling and raising that
Context applies to footnote marks.  I want to turn it off.
___
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
___


[NTG-context] RSFS Font

2010-04-12 Thread Troy Henderson
I'm trying to follow

http://wiki.contextgarden.net/rsfs

to get a script L in math mode (to denote Laplace Transform) but to no
avail.  I followed the code in the first section, but I get the
following compilation error.  Any help is appreciated.

Troy

---

context foo.tex
MTXrun | run 1: luatex
--fmt=/opt/context-minimals/tex/texmf-cache/luatex-cache/context/ccfefc91ec3ed68af1aeed1f470fef4d/formats/cont-en
--lua=/opt/context-minimals/tex/texmf-cache/luatex-cache/context/ccfefc91ec3ed68af1aeed1f470fef4d/formats/cont-en.lui
--backend=pdf ./foo.tex
This is LuaTeX, Version beta-0.52.0-2010031622
 \write18 enabled.
(/home/thenders/classes/2010/spring/ma304/foo.tex

ConTeXt  ver: 2010.03.30 18:56 MKIV  fmt: 2010.3.31  int: english/english

system  : cont-new loaded
(/opt/context-minimals/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/opt/context-minimals/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/opt/context-minimals/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys loaded
(/opt/context-minimals/tex/texmf-local/tex/context/user/cont-sys.tex
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-def.mkiv)
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-lua.tex)
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-siz.tex
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-siz.mkiv))
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-otf.tex
(/opt/context-minimals/tex/texmf-context/tex/context/base/type-otf.mkiv)))
system  : foo.top loaded
(foo.top)
fonts   : preloading latin modern fonts
(/opt/context-minimals/tex/texmf-local/tex/context/luc/type-luc.tex){/opt/context-minimals/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/opt/context-minimals/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
bodyfont: 12pt rm is loaded
language: language en is active
{/opt/context-minimals/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
systems : begin file foo.tex at line 16
! Undefined control sequence.
\scr -\fam \purefamily
{scriptfamily}
l.18 ${\scr
ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
?
___
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
___


Re: [NTG-context] Undefined control sequence in ConTeXt ver: 2010.04.10 13:44 MKIV

2010-04-12 Thread Wolfgang Schuster

Am 12.04.10 21:53, schrieb Bernhard Rosensteiner:

Hello,

i just updated my minimals and now i get an undefined control sequence error 
with my previous working file
attached is the log file. Please help!
   

Make a minimal example!

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___