Re: [NTG-context] hyphenatedurl (WHY?)

2008-07-11 Thread Steffen Wolfrum

Am 12.07.2008 um 00:50 schrieb Aditya Mahajan:
> On Fri, 11 Jul 2008, Hans Hagen wrote:
>
>> Steffen Wolfrum wrote:
>>> Hi,
>>>
>>> God bless the command \hyphenatedurl{...} !
>>>
>>> Only, I am wondering why it starts a new line not *after* but  
>>> *before*
>>> the slash, dot or whatever there is to structure a long url.
>>> Is this an english/dutch convention, completely different than
>>
>> i just took what i liked (i.e. found less confusing); since i hate  
>> long
>> url's (one reason why one can have clickable ones with alternative
>> rendering) i don't care to much either .. anything looks bad in  
>> running
>> text -)
>
> Sometimes, you need to refer to long URLs in bibliographies. For the
> tugboat articles, I ended up doing line breaking by hand :(
>
>>> paragraph wrapping? Or is it common usus, just me never noticed it
>>> outside ConTeXt??
>>
>> in mkiv you can set up your own preferences with
>>
>> \sethyphenatedurlnormal
>> \sethyphenatedurlbefore
>> \sethyphenatedurlafter
>>
>> and in mkii you can play with
>>
>> \chardef\urlsplitmode = 1 | 2 | 3 | 4

That's it!

> Did not know about this. Thanks.

Now it is written down ... Googleable ;o)

I am happy for every secret undocumented command that is mentioned on  
this list.
Somehow this list's archive actually is the missing ConTeXt-manual ...


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


Re: [NTG-context] listings.sty

2008-07-11 Thread Hans Hagen
Mohamed Bana wrote:
> Hans Hagen  wxs.nl> writes:
> 
>> there will be a new pretty print mechanism which provided more control 
>> in mkiv
>>
>> Hans
>>
> 
> Hi Hans,
> 
> Will it support more or less the same features?

yes, and more

-
   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] listings.sty

2008-07-11 Thread Aditya Mahajan
On Fri, 11 Jul 2008, Mohamed Bana wrote:

> Hans Hagen  wxs.nl> writes:
>
>>
>> there will be a new pretty print mechanism which provided more control
>> in mkiv
>>
>> Hans
>>
>
> Hi Hans,
>
> Will it support more or less the same features?

Which features of listings do you find are missing from ConTeXt? Since I 
rarely use listings, it is very hard for me evaluate what ConTeXt is 
lacking. If you can explicitly point out the features that you want, it 
will be much easier to ensure that are implemented.

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


Re: [NTG-context] hyphenatedurl (WHY?)

2008-07-11 Thread Aditya Mahajan
On Fri, 11 Jul 2008, Hans Hagen wrote:

> Steffen Wolfrum wrote:
>> Hi,
>>
>> God bless the command \hyphenatedurl{...} !
>>
>> Only, I am wondering why it starts a new line not *after* but *before*
>> the slash, dot or whatever there is to structure a long url.
>> Is this an english/dutch convention, completely different than
>
> i just took what i liked (i.e. found less confusing); since i hate long
> url's (one reason why one can have clickable ones with alternative
> rendering) i don't care to much either .. anything looks bad in running
> text -)

Sometimes, you need to refer to long URLs in bibliographies. For the 
tugboat articles, I ended up doing line breaking by hand :(

>> paragraph wrapping? Or is it common usus, just me never noticed it
>> outside ConTeXt??
>
> in mkiv you can set up your own preferences with
>
> \sethyphenatedurlnormal
> \sethyphenatedurlbefore
> \sethyphenatedurlafter
>
> and in mkii you can play with
>
> \chardef\urlsplitmode = 1 | 2 | 3 | 4

Did not know about this. Thanks.

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


Re: [NTG-context] listings.sty

2008-07-11 Thread Mohamed Bana
Hans Hagen  wxs.nl> writes:

> 
> there will be a new pretty print mechanism which provided more control 
> in mkiv
> 
> Hans
> 

Hi Hans,

Will it support more or less the same features?

___
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] LinuxLibertine and math with LuaTeX

2008-07-11 Thread Hans Hagen
Holzminister wrote:
> Hi!
> 
> With the help of this great mailing-list I managed to type text with the
> opentype version of LinuxLibertine. But the math font still falls back
> to Latin Modern (I think). Is there a way to get mathsymbols typed with
> LinuxLibertine, too?

in principle on ecan start remapping them but since most fonts lack 
symbols one gets a real weird mess then

some day soon we will have gyre math fonts

(often palatino math looks ok with non cm fonts)


-
   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] hyphenatedurl (WHY?)

2008-07-11 Thread Hans Hagen
Jesse Alama wrote:
> Steffen Wolfrum <[EMAIL PROTECTED]> writes:
> 
>> God bless the command \hyphenatedurl{...} !
>>
>> Only, I am wondering why it starts a new line not *after* but *before*  
>> the slash, dot or whatever there is to structure a long url.
>> Is this an english/dutch convention, completely different than  
>> paragraph wrapping? Or is it common usus, just me never noticed it  
>> outside ConTeXt??
> 
> I can't speak for Dutch conventions, but here are some rules concerning
> URL's according to the Chicago Manual of Style, 15th edition:
> 
>   "Where it is necessary to break a URL or an e-mail address, no hyphens
>   should be used.  The break should be made between elements, after a
>   colon, a slash, a double slash, or the symbol @ but before a period or
>   any other punctuation or symbols.  To avoid confusion, a URL that
>   contains a hyphen should never be broken at the hyphen.  If a
>   particularly long element must be broken to avoid a seriously loose
>   line, it should be broken between syllables according to the
>   guidelines offered above." (7.44, p. 298)

the hyphen is a funny rule ... if an url is not to be hyphenated but 
just broken, than a hyphen is just a hyphen (anyway, context will not 
add a hyphen)

> to country), though I would be surprised if it varied all that much,
> since URL's are a fairly new typographical entity.

just in case one didn't notice ... acrobat interprets the text stream 
and makes url's active (unless this is disabled)


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] LinuxLibertine and math with LuaTeX

2008-07-11 Thread Olivier Guéry
2008/7/11 Holzminister <[EMAIL PROTECTED]>:
> Hi!
>
> With the help of this great mailing-list I managed to type text with the
> opentype version of LinuxLibertine. But the math font still falls back
> to Latin Modern (I think). Is there a way to get mathsymbols typed with
> LinuxLibertine, too?
>
> My code so far:
>
> % engine=luatex
>
> \starttypescript [serif] [linuxlibertine]
>  \setups[font:fallback:serif]
>  \definefontsynonym [Serif]   [LinLibertine-Regular]
>  \definefontsynonym [SerifBold]   [LinLibertine-Bold]
>  \definefontsynonym [SerifItalic] [LinLibertine-Italic]
>  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
>  \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
> \stoptypescript
>
> \starttypescript [serif] [linuxlibertine]
>  \definefontsynonym [LinLibertine-Regular][name:Linux Libertine O]
>  [features=default]
>  \definefontsynonym [LinLibertine-Bold]   [name:Linux Libertine O Bold]   
>  [features=default]
>  \definefontsynonym [LinLibertine-Italic] [name:Linux Libertine O Italic] 
>  [features=default]
>  \definefontsynonym [LinLibertine-BoldItalic] [name:Linux Libertine O Bold 
> Italic] [features=default]
>  \definefontsynonym [LinLibertine-Caps]   [name:Linux Libertine O 
> Capitals][features=default]
> \stoptypescript
>
> \starttypescript [linuxlibertine]
>  \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
> \stoptypescript
>
>
> \usetypescript[linuxlibertine]
> \setupbodyfont[linuxlibertine]
>
> \starttext
>
> Normal text.
>
> \startformula
> \alpha + \beta = 10
> \stopformula
>
> \stoptext

I've test here, with the last LinuxLibertine (v2.8.14)
I have to change this :
 \definefontsynonym [LinLibertine-Regular][name:Linux Libertine O]
[features=default]
To that :
  \definefontsynonym [LinLibertine-Regular][name:LinLibertineO]
[features=default]

Like you, \alpha and \beta look the same in the LinLibertine version
and the Lm-Mondern one.
But the « + » and « = 10 » are in LinLibertine.

I've notice that the « onum=yes » don't work (in or out formula).

Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] hyphenatedurl (WHY?)

2008-07-11 Thread Hans Hagen
Steffen Wolfrum wrote:
> Hi,
> 
> God bless the command \hyphenatedurl{...} !
> 
> Only, I am wondering why it starts a new line not *after* but *before*  
> the slash, dot or whatever there is to structure a long url.
> Is this an english/dutch convention, completely different than  

i just took what i liked (i.e. found less confusing); since i hate long 
url's (one reason why one can have clickable ones with alternative 
rendering) i don't care to much either .. anything looks bad in running 
text -)

> paragraph wrapping? Or is it common usus, just me never noticed it  
> outside ConTeXt??

in mkiv you can set up your own preferences with

\sethyphenatedurlnormal
\sethyphenatedurlbefore
\sethyphenatedurlafter

and in mkii you can play with

\chardef\urlsplitmode = 1 | 2 | 3 | 4

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] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum

Am 11.07.2008 um 22:44 schrieb Taco Hoekwater:

> In mkiv you can simply do:
>
>  \edef\foldername{\ctxlua{tex.sprint(lfs.currentdir())}}
>
> (assuming the jobname file lives inside the current directory)


quite comfortable ;o)

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


Re: [NTG-context] Fedora 9 (Linux) Installation

2008-07-11 Thread Taco Hoekwater
Taco Hoekwater wrote:
> [EMAIL PROTECTED] wrote:
>> Hi,
>>
>> Can someone please take a look at this before the thread disappears.
>>
>> Thanks
>>
>> On Jul 7 2008, [EMAIL PROTECTED] wrote:
>>
>>> Ok the test document (first.tex) compiles, great!
>>>
>>> But I can't seem to install fonts.  
>>>
>>> $ texfont --ve=microsoft --co=consolas --makepath --install
>>>
>>> TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004
>>>
>>> processing aborted : unknown tex root  
>>>
>>> --help : show some more info
> 
> You probably gave to add a --fontroot argument as well.

_have_, not _gave_, sorry.

___
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] Fedora 9 (Linux) Installation

2008-07-11 Thread Taco Hoekwater
[EMAIL PROTECTED] wrote:
> Hi,
> 
> Can someone please take a look at this before the thread disappears.
> 
> Thanks
> 
> On Jul 7 2008, [EMAIL PROTECTED] wrote:
> 
>> Ok the test document (first.tex) compiles, great!
>>
>> But I can't seem to install fonts.  
>>
>> $ texfont --ve=microsoft --co=consolas --makepath --install
>>
>> TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004
>>
>> processing aborted : unknown tex root  
>>
>> --help : show some more info

You probably gave to add a --fontroot argument as well.

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


Re: [NTG-context] foldername instead of jobname

2008-07-11 Thread Taco Hoekwater
Steffen Wolfrum wrote:
> Hi,
> 
> marking=on often uses \jobname.
> 
> My file's name is not as important as its respective folder name.
> 
> Is it possible to read and reuse this folder's name?

In mkii you would have to do something with \write18, I fear.

In mkiv you can simply do:

   \edef\foldername{\ctxlua{tex.sprint(lfs.currentdir())}}

(assuming the jobname file lives inside the current directory)


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


Re: [NTG-context] hyphenatedurl (WHY?)

2008-07-11 Thread Jesse Alama
Steffen Wolfrum <[EMAIL PROTECTED]> writes:

> God bless the command \hyphenatedurl{...} !
>
> Only, I am wondering why it starts a new line not *after* but *before*  
> the slash, dot or whatever there is to structure a long url.
> Is this an english/dutch convention, completely different than  
> paragraph wrapping? Or is it common usus, just me never noticed it  
> outside ConTeXt??

I can't speak for Dutch conventions, but here are some rules concerning
URL's according to the Chicago Manual of Style, 15th edition:

  "Where it is necessary to break a URL or an e-mail address, no hyphens
  should be used.  The break should be made between elements, after a
  colon, a slash, a double slash, or the symbol @ but before a period or
  any other punctuation or symbols.  To avoid confusion, a URL that
  contains a hyphen should never be broken at the hyphen.  If a
  particularly long element must be broken to avoid a seriously loose
  line, it should be broken between syllables according to the
  guidelines offered above." (7.44, p. 298)

There's another section of the book (17.11) where they say the same
thing, and give examples:

  http://press-pubs.uchicago
.edu/founders/

  http://www.uiowa.edu/
~vpr/research/organize/humalink.htm

  http://www.pubmedcentral.nih.gov/b.cgi
?artid=19161

  http://www.internetnews.com/ec
-news/article/0,,4_353451.html

Does anyone have any other references handy that could adjudicate on the
matter?  Perhaps this varies from language to language (or even country
to country), though I would be surprised if it varied all that much,
since URL's are a fairly new typographical entity.

Jesse

-- 
Jesse Alama ([EMAIL PROTECTED])
___
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] hyphenatedurl (WHY?)

2008-07-11 Thread Steffen Wolfrum
Hi,

God bless the command \hyphenatedurl{...} !

Only, I am wondering why it starts a new line not *after* but *before*  
the slash, dot or whatever there is to structure a long url.
Is this an english/dutch convention, completely different than  
paragraph wrapping? Or is it common usus, just me never noticed it  
outside ConTeXt??

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


Re: [NTG-context] Fedora 9 (Linux) Installation

2008-07-11 Thread abbg770
Hi,

Can someone please take a look at this before the thread disappears.

Thanks

On Jul 7 2008, [EMAIL PROTECTED] wrote:

> Ok the test document (first.tex) compiles, great!
> 
> But I can't seem to install fonts.  
> 
> $ texfont --ve=microsoft --co=consolas --makepath --install
> 
> TeXFont 2.2.1 - ConTeXt / PRAGMA ADE 2000-2004
> 
> processing aborted : unknown tex root  
> 
> --help : show some more info
> 
> 
> > Does (or rather "did") this even work in the old minimal distribution?
> > I think that I had to CD to $HOME/tex and source setuptex from there.
> 
> I don't quiet understand what you mean.
> 
> 
> Could someone please just update that wiki page, running into issues like 
> these really does eat up ones time.
> 
> Thanks alot
> 
> On Jul 7 2008, Mojca Miklavec wrote:
> 
> > On Sun, Jul 6, 2008 at 9:03 AM, Taco Hoekwater  wrote:
> > > [EMAIL PROTECTED] wrote:
> > >>
> > >> a.  source ~/.context_env $PWD/tex => results in nothing.
> > >
> > > What happens if you run the following command manually?
> > >
> > >   $ source $(HOME)/tex/setuptex $(HOME)/tex
> > >
> > > (assuming you unpacked directly in your home)
> > 
> > Does (or rather "did") this even work in the old minimal distribution?
> > I think that I had to CD to $HOME/tex and source setuptex from there.
> > 
> > Mojca
> > 
> > PS: these big zips are (or at least used to be) a bit outdated. A
> > slightly newer (unofficial) version is here:
> > http://minimals.contextgarden.net/pragma/
> > http://minimals.contextgarden.net/setup/ 
> > ___
> >  
> > 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 
> > ___
> > 
> 
> 

-- 
Thanks
Mohamed Bana

___
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] LinuxLibertine and math with LuaTeX

2008-07-11 Thread Holzminister
Hi!

With the help of this great mailing-list I managed to type text with the
opentype version of LinuxLibertine. But the math font still falls back
to Latin Modern (I think). Is there a way to get mathsymbols typed with
LinuxLibertine, too?

My code so far:

% engine=luatex

\starttypescript [serif] [linuxlibertine]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif]   [LinLibertine-Regular]
  \definefontsynonym [SerifBold]   [LinLibertine-Bold]
  \definefontsynonym [SerifItalic] [LinLibertine-Italic]
  \definefontsynonym [SerifBoldItalic] [LinLibertine-BoldItalic]
  \definefontsynonym [SerifCaps]   [LinLibertine-Caps]
\stoptypescript

\starttypescript [serif] [linuxlibertine]
  \definefontsynonym [LinLibertine-Regular][name:Linux Libertine O] 
[features=default]
  \definefontsynonym [LinLibertine-Bold]   [name:Linux Libertine O Bold]
[features=default]
  \definefontsynonym [LinLibertine-Italic] [name:Linux Libertine O Italic]  
[features=default]
  \definefontsynonym [LinLibertine-BoldItalic] [name:Linux Libertine O Bold 
Italic] [features=default]
  \definefontsynonym [LinLibertine-Caps]   [name:Linux Libertine O 
Capitals][features=default]
\stoptypescript

\starttypescript [linuxlibertine]
 \definetypeface [\typescriptone] [rm] [serif] [linuxlibertine] [default]
\stoptypescript


\usetypescript[linuxlibertine]
\setupbodyfont[linuxlibertine]

\starttext

Normal text.

\startformula
\alpha + \beta = 10
\stopformula

\stoptext



Regards,
Eyke
___
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] hyphenated(ugly)url [URGENT]

2008-07-11 Thread Steffen Wolfrum
Yes!

St.

Am 11.07.2008 um 11:37 schrieb Wolfgang Schuster:

> On Fri, Jul 11, 2008 at 11:15 AM, Steffen Wolfrum
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I need to typeset a document containing several nice url's like
>>
>>
>> \enableregime[utf]
>> \starttext
>>
>> see 
>> \hyphenatedurl{www.europa.eu.int/rapid/start/cgi/guesten.ksh?p_action.gettxt=gt&doc=SPEECH/00/475%7C0%7CRAPID&lg=DE
>> }
>>
>> \stoptext
>>
>> Any idea??
>
> Use the following patch for the moment.
>
> \let\normalhyphenatedurl\hyphenatedurl
>
> \bgroup
>
> \catcode`\%=11
>
> \gdef\hyphenatedurl
>  {\bgroup
>   \catcode`\%=11
>   \expandafter\egroup
>   \normalhyphenatedurl}
>
> \egroup
>
> Regards,
> 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
> ___

___
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] foldername instead of jobname

2008-07-11 Thread Steffen Wolfrum
Hi,

marking=on often uses \jobname.

My file's name is not as important as its respective folder name.

Is it possible to read and reuse this folder's name?


Thanks,

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


Re: [NTG-context] Hyphenmark and composed words

2008-07-11 Thread Charles P. Schaum
The whole issue of typesetting URL's is dodgy because style manuals like
Chicago don't want them broken.

Now, Chicago is pretty conservative and has the idea that people are
going to type stuff in verbatim from printed bubs and furthermore that
they will always interpret a line break as a return keystroke.

They also want archival type info stored in the bib entry, as if
archive.org did not exist.

I don't see, however, that squishing a URL down to minuscule type sizes
is the answer, because using a loupe to read a URL is nuts.
Electronically, this is simply BFD. One might consider using a verbatim
or typewriter font switch and have that signal continuity over line
breaks. That has been my approach for print matter. Still, I have
avoided hyphenating a URL unless it already has one, and even then if
the hyphen breaks in such a way that the linear composition is way
underfull on a line, you get stuck with an ugly line. I generally break
a URL at a virgule (/) closest to a good line break.

Incidentally, David Fussner has been working on a Chicago style for
Philipp Lehman's biblatex. He has been in communication with Joseph
Reagle and me, who had done independent work on the same thing. Will
something like biblatex ever appear in ConTeXt, and how might that
happen?

I know that Lehmann has been busy, but the whole idea of a
user-extensible bib syntax that doesn't require kludging bibtex is
great. Even better would be to have a set of BNF/RE style files like
Endnotes, though the implementation eludes me. Lehman's biblatex seems
to do that via LaTeX.

Charles

On Fri, 2008-07-11 at 12:22 +0200, Wolfgang Schuster wrote:
> On Fri, Jul 11, 2008 at 11:52 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
> > 2008/7/11 Wolfgang Schuster <[EMAIL PROTECTED]>:
> >> On Fri, Jul 11, 2008 at 3:45 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
> >>> Hello,
> >>>
> >>> I tried to force hyphen in composed word with this : « composed||word
> >>> » as explain in the manual.
> >>> (Strange that context can't know that he can cut composed words after
> >>> the dash, maybe it's only a french rule).
> >>>
> >>> In french, the hyphenmark is « - », not « – » (endash).
> >>>
> >>> So I tried \setuphyphenmark [sign = -] but no effect, I still get a « – ».
> >>> This syntax : « composed|-|word » works.
> >>
> >> \definetextmodediscretionary {}
> >>  
> >> {\hyphenliketextmodediscretionary\defaultdiscretionaryhyphen\defaultdiscretionaryhyphen\empty\defaultdiscretionaryhyphen}
> >>
> >> \setuphyphenmark[sign=-]
> >
> > It works. Is this the new usual syntax (please, no ! ;)) or just a 
> > workaround ?
> 
> Just a workaroung, it's up to Hans to fix this in some way.
> 
> A short solution for the moment is:
> 
> \def\compoundhyphen{-}
> 
> > Is there something to setup that hyphenate should alway cut composed
> > words after the « - » ?
> > For the moment, I must enter all composed word with « || » ? Like « où
> > va||t||il ? » instead of « où va-t-il ? »
> 
> For MkII, I don't think so, MkIV should be possible but Hans or Taco can
> give you a better answer. You shouldn't forget in some cases like 'X-Rays'
> a break after the hyphen is not allowed.
> 
> > We should never cut like this :
> > «foo bar com-
> > posed-word »
> > but
> > « foo bar composed-
> > word. »
> 
> Regards,
> 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
> ___

___
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] Hyphenmark and composed words

2008-07-11 Thread Wolfgang Schuster
On Fri, Jul 11, 2008 at 11:52 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
> 2008/7/11 Wolfgang Schuster <[EMAIL PROTECTED]>:
>> On Fri, Jul 11, 2008 at 3:45 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
>>> Hello,
>>>
>>> I tried to force hyphen in composed word with this : « composed||word
>>> » as explain in the manual.
>>> (Strange that context can't know that he can cut composed words after
>>> the dash, maybe it's only a french rule).
>>>
>>> In french, the hyphenmark is « - », not « – » (endash).
>>>
>>> So I tried \setuphyphenmark [sign = -] but no effect, I still get a « – ».
>>> This syntax : « composed|-|word » works.
>>
>> \definetextmodediscretionary {}
>>  
>> {\hyphenliketextmodediscretionary\defaultdiscretionaryhyphen\defaultdiscretionaryhyphen\empty\defaultdiscretionaryhyphen}
>>
>> \setuphyphenmark[sign=-]
>
> It works. Is this the new usual syntax (please, no ! ;)) or just a workaround 
> ?

Just a workaroung, it's up to Hans to fix this in some way.

A short solution for the moment is:

\def\compoundhyphen{-}

> Is there something to setup that hyphenate should alway cut composed
> words after the « - » ?
> For the moment, I must enter all composed word with « || » ? Like « où
> va||t||il ? » instead of « où va-t-il ? »

For MkII, I don't think so, MkIV should be possible but Hans or Taco can
give you a better answer. You shouldn't forget in some cases like 'X-Rays'
a break after the hyphen is not allowed.

> We should never cut like this :
> «foo bar com-
> posed-word »
> but
> « foo bar composed-
> word. »

Regards,
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] Hyphenmark and composed words

2008-07-11 Thread Olivier Guéry
2008/7/11 Wolfgang Schuster <[EMAIL PROTECTED]>:
> On Fri, Jul 11, 2008 at 3:45 AM, Olivier Guéry <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I tried to force hyphen in composed word with this : « composed||word
>> » as explain in the manual.
>> (Strange that context can't know that he can cut composed words after
>> the dash, maybe it's only a french rule).
>>
>> In french, the hyphenmark is « - », not « – » (endash).
>>
>> So I tried \setuphyphenmark [sign = -] but no effect, I still get a « – ».
>> This syntax : « composed|-|word » works.
>
> \definetextmodediscretionary {}
>  
> {\hyphenliketextmodediscretionary\defaultdiscretionaryhyphen\defaultdiscretionaryhyphen\empty\defaultdiscretionaryhyphen}
>
> \setuphyphenmark[sign=-]

It works. Is this the new usual syntax (please, no ! ;)) or just a workaround ?

Is there something to setup that hyphenate should alway cut composed
words after the « - » ?
For the moment, I must enter all composed word with « || » ? Like « où
va||t||il ? » instead of « où va-t-il ? »
We should never cut like this :
«foo bar com-
posed-word »
but
« foo bar composed-
word. »

Cheers,
Olivier.
-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
http://nemolivier.blogspot.com
___
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] hyphenated(ugly)url [URGENT]

2008-07-11 Thread Wolfgang Schuster
On Fri, Jul 11, 2008 at 11:15 AM, Steffen Wolfrum
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need to typeset a document containing several nice url's like
>
>
> \enableregime[utf]
> \starttext
>
> see 
> \hyphenatedurl{www.europa.eu.int/rapid/start/cgi/guesten.ksh?p_action.gettxt=gt&doc=SPEECH/00/475%7C0%7CRAPID&lg=DE
> }
>
> \stoptext
>
> Any idea??

Use the following patch for the moment.

\let\normalhyphenatedurl\hyphenatedurl

\bgroup

\catcode`\%=11

\gdef\hyphenatedurl
  {\bgroup
   \catcode`\%=11
   \expandafter\egroup
   \normalhyphenatedurl}

\egroup

Regards,
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] hyphenated(ugly)url [URGENT]

2008-07-11 Thread Steffen Wolfrum
Hi,

I need to typeset a document containing several nice url's like


\enableregime[utf]
\starttext

see 
\hyphenatedurl{www.europa.eu.int/rapid/start/cgi/guesten.ksh?p_action.gettxt=gt&doc=SPEECH/00/475%7C0%7CRAPID&lg=DE
 
}

\stoptext



Any idea??

Steffen (still MKII)
___
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
___