[NTG-context] correction of the question about \useURL

2009-08-07 Thread rene hassel
Hello Members,

I have a problem with the use of \useURL

\useURL[pragma-document-url][http://www.pragma-ade.com/document-1.htm]http://www.pragma-ade.com/document-1.htm%5D%5B%5D%5Bpragma-document
[][pragma-document]


with \from[pragma-document-url] I get
http://www.pragma-ade.com/document-1.htm
in the text, but not pragma-document


\useURL[geocities-url][http://www.geocities.com/alex_stef/mylist.html]http://www.geocities.com/alex_stef/mylist.html%5D%5B%5D%5Bgeocities
[][geocities]

works well with \from[geocities-url]
(In the first question I wrote: \from[geocities])
I get a reference to geocities.


May be is the problem the difference between the .htm and the .html file?


Then is the question how to handle .htm files?



best regards,

Rene van Hassel
___
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
___


Re: [NTG-context] texworks with context on linux

2009-08-07 Thread Alex Lubberts
On do, 2009-08-06 at 23:02 +0200, Hans Hagen wrote:
  * ... almost. In the TeXworks.ini file I also had to replace all
  occurunces of 'mtxrun.cmd' (doesn't work on linux, is this correct for
  Windows?) with 'mtxrun'.
 
 needs testing

Well... it works! Except ofcourse starting the server, there I should
replace cmd.exe with bash or something like that. Haven't tried that
yet. But main thing is: typesetting works.

Regards,
Alex

-- 
Alex Lubberts a...@lubberts.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
___


Re: [NTG-context] fontfeatures

2009-08-07 Thread Wolfgang Schuster


Am 06.08.2009 um 23:17 schrieb Hans Hagen:


Wolfgang Schuster wrote:




what happened with the option to set font features with more  
memorizable names

you mentioned in http://www.ntg.nl/pipermail/ntg-context/2007/028330.html
It would be nice to write \definefontfeature[mine][smallcaps=yes]  
instead
of \definefontfeature[mine][smcp=yes] where you have to know the  
four letter

code for the feature.


as mapping is already kin dof present, if you add

for k, v in pairs(to_features) do
   to_features[gsub(k, ,)] = v
   k = lower(k)
   to_features[k] = v
   to_features[gsub(k, ,)] = v
end

to font-ott.lua then you can say:

\starttext


We should restrict this to one alternative (besides smcp=yes) and
the last variant seems to me like the context way (lowercase keys
without spaces in it).


% \definefontfeature[smallcaps][smcp=yes,script=latn]
% \definefontfeature[smallcaps][SmallCapitals=yes,script=latn]
% \definefontfeature[smallcaps][Small Capitals=yes,script=latn]
% \definefontfeature[smallcaps][small capitals=yes,script=latn]
\definefontfeature[smallcaps][smallcapitals=yes,script=latn]

\definedfont[cambria*smallcaps] test

\stoptext

of course you need to memorize the huge feature name table


Why, you can make a table where there normal feature name (Uppercase  
with spaces)
is listed together with the normalized form (lowercase, no spaces) and  
the four

letter form.

if needed we can add some extra common entries, like smallcaps and  
oldstyle but someone needs to collect them


Sure, the wiki is a good place for this.

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


[NTG-context] \currentdate and language deo

2009-08-07 Thread Thomas A . Schmitz

Hi all,

something doesn't work with language deo in the latest current.  
Testfile:


\mainlanguage[deo]

\starttext

test: \currentdate

\stoptext

Switching language to de makes the file compile.

All best

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


Re: [NTG-context] fontfeatures

2009-08-07 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 06.08.2009 um 23:17 schrieb Hans Hagen:


Wolfgang Schuster wrote:




what happened with the option to set font features with more 
memorizable names
you mentioned in 
http://www.ntg.nl/pipermail/ntg-context/2007/028330.html
It would be nice to write \definefontfeature[mine][smallcaps=yes] 
instead
of \definefontfeature[mine][smcp=yes] where you have to know the four 
letter

code for the feature.


as mapping is already kin dof present, if you add

for k, v in pairs(to_features) do
   to_features[gsub(k, ,)] = v
   k = lower(k)
   to_features[k] = v
   to_features[gsub(k, ,)] = v
end

to font-ott.lua then you can say:

\starttext


We should restrict this to one alternative (besides smcp=yes) and
the last variant seems to me like the context way (lowercase keys
without spaces in it).


% \definefontfeature[smallcaps][smcp=yes,script=latn]
% \definefontfeature[smallcaps][SmallCapitals=yes,script=latn]
% \definefontfeature[smallcaps][Small Capitals=yes,script=latn]
% \definefontfeature[smallcaps][small capitals=yes,script=latn]
\definefontfeature[smallcaps][smallcapitals=yes,script=latn]

\definedfont[cambria*smallcaps] test

\stoptext

of course you need to memorize the huge feature name table


Why, you can make a table where there normal feature name (Uppercase 
with spaces)
is listed together with the normalized form (lowercase, no spaces) and 
the four

letter form.


well, your asked for smallcaps and got smallcapitals and remembering the 
 (sometimes long verbose names is no fun either)


we might even want to strip everything except a-z0-9

Terminal Forms #2
Above-Base Substitutions

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


Re: [NTG-context] fontfeatures

2009-08-07 Thread Wolfgang Schuster


Am 07.08.2009 um 11:10 schrieb Hans Hagen:

Why, you can make a table where there normal feature name  
(Uppercase with spaces)
is listed together with the normalized form (lowercase, no spaces)  
and the four

letter form.


well, your asked for smallcaps and got smallcapitals and remembering  
the (sometimes long verbose names is no fun either)


we might even want to strip everything except a-z0-9

Terminal Forms #2
Above-Base Substitutions



I know, I did this already in the last version of my simplefonts  
module where I played
with this to enable certain features which are not part of the  
standard fontfeatures.


Example: \setmainfont[Delicious][oldstylefigures=yes]

What have to be removed are: spaces, number sign, hyphen, slash

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


Re: [NTG-context] fontfeatures

2009-08-07 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 07.08.2009 um 11:10 schrieb Hans Hagen:

Why, you can make a table where there normal feature name (Uppercase 
with spaces)
is listed together with the normalized form (lowercase, no spaces) 
and the four

letter form.


well, your asked for smallcaps and got smallcapitals and remembering 
the (sometimes long verbose names is no fun either)


we might even want to strip everything except a-z0-9

Terminal Forms #2
Above-Base Substitutions



I know, I did this already in the last version of my simplefonts module 
where I played
with this to enable certain features which are not part of the standard 
fontfeatures.


Example: \setmainfont[Delicious][oldstylefigures=yes]

What have to be removed are: spaces, number sign, hyphen, slash


better is to keep, as in:

for k, v in pairs(to_features) do
local stripped = gsub(k,%-, )
to_features[stripped] = v
local stripped = gsub(k,[^a-zA-Z0-9],)
to_features[stripped] = v
end
for k, v in pairs(to_features) do
to_features[lower(k)] = v
end

(btw, i uploaded a beta with some of last weeks fixes)

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


Re: [NTG-context] correction of the question about \useURL

2009-08-07 Thread Peter Münster
On Fri, 7 Aug 2009, rene hassel wrote:

 I have a problem with the use of \useURL
 
 \useURL[pragma-document-url][http://www.pragma-ade.com/document-1.htm][][pragma-document]
 
 
 with \from[pragma-document-url] I get
 http://www.pragma-ade.com/document-1.htm
 in the text, but not pragma-document

Hello Rene,

Could you please post a minimal example showing the problem? What version
of context do you use, and what engine?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/

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


[NTG-context] Latest beta doesn't load modules

2009-08-07 Thread Thomas A. Schmitz

Hi Hans,

the latest beta is unabel to load external modules. luatools knows  
where the module is:


luatools t-simpleslides.tex
/Users/tas/texmf/tex/context/third/simple-slides/t-simpleslides.tex

And yet, it claims it's unable to find it (after saying it has loaded  
the module):


system  : module simpleslides.tex loaded
! I can't find file `t-simpleslides'.
to be read again
   \relax
\dodoreadfile ...ax \inputgivenfile \readfilename
  \relax \the  
\everyafterrea...

\next ...)}\settrue \moduleisloaded } \donothing }
  \stopreadingfile
argument ...es \f!thirdprefix {simpleslides.tex}
  \dododousemodules  
\empty {...

\firstoftwoarguments #1#2-#1

\dodousemodules ...}}{\dododousemodules {#1-}{#2}}
  \ifconditional  
\moduleislo...

...
l.6

Same file compiles fine with current stable.

All best

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


Re: [NTG-context] Latest beta doesn't load modules

2009-08-07 Thread Wolfgang Schuster


Am 07.08.2009 um 22:49 schrieb Thomas A. Schmitz:

the latest beta is unabel to load external modules. luatools knows  
where the module is:


can you make a example or test it first with a newer luatex because i  
have no problems with modules


This is LuaTeX, Version beta-0.42.0-2009080712
ConTeXt  ver: 2009.08.07 11:22 MKIV  fmt: 2009.8.7  int: english/english

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


Re: [NTG-context] Latest beta doesn't load modules

2009-08-07 Thread Thomas A. Schmitz


On Aug 7, 2009, at 11:00 PM, Wolfgang Schuster wrote:

can you make a example or test it first with a newer luatex because  
i have no problems with modules


This is LuaTeX, Version beta-0.42.0-2009080712
ConTeXt  ver: 2009.08.07 11:22 MKIV  fmt: 2009.8.7  int: english/ 
english


Oops, sorry for the noise: this was on my laptop. Just tried on my  
desktop, and here it works indeed. Must be something else; I will  
report back.


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