Re: [NTG-context] modifying URL wrapping rules

2008-11-25 Thread Steffen Wolfrum
Am 21.11.2008 um 23:53 schrieb Hans Hagen: Mojca Miklavec wrote: hack hack hack hack I tried solutions with special patterns sveral times but the problem is in mixed languages, i.e. english text mixed with url-language; there are some limitations (in pdftex for instance the

Re: [NTG-context] modifying URL wrapping rules

2008-11-25 Thread Hans Hagen
Steffen Wolfrum wrote: Conclusion please: Is \ForMojcaWhoLikesHacks an improvement of \hyphenatedurls in terms of being closer to this Chicago style sort of standard? no, a hack just for mojca, not finished, and since inmath mode hardly configurable with respect to fonts etc [And thus

Re: [NTG-context] modifying URL wrapping rules

2008-11-24 Thread Lars Huttar
On 11/21/2008 4:53 PM, Hans Hagen wrote: Mojca Miklavec wrote: hack hack hack hack I tried solutions with special patterns sveral times but the problem is in mixed languages, i.e. english text mixed with url-language; there are some limitations (in pdftex for instance the same

Re: [NTG-context] modifying URL wrapping rules

2008-11-24 Thread Hans Hagen
Lars Huttar wrote: Also, I don't see a way to prevent breaking between two slashes... unless you treat them as part of a separate hbox: \hbox{http://}\ForMojcaWhoLikesHacks{www.sil.org/silesr/} which is not a big problem. it's no problem to catch the // but in general this method is not

Re: [NTG-context] modifying URL wrapping rules

2008-11-24 Thread Lars Huttar
On 11/24/2008 8:45 AM, Hans Hagen wrote: Lars Huttar wrote: Also, I don't see a way to prevent breaking between two slashes... unless you treat them as part of a separate hbox: \hbox{http://}\ForMojcaWhoLikesHacks{www.sil.org/silesr/} which is not a big problem. it's no problem to

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Hans Hagen
Lars Huttar wrote: On 11/19/2008 2:35 PM, Lars Huttar wrote: 2) Even though I have \sethyphenatedurlafter / instead of \sethyphenatedurlbefore /, there are four cases where a URL is broken before a slash, e.g.: http://www.sil.org/.../009 /YAMBASSA.html. and no cases where a URL is broken

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Lars Huttar
On 11/21/2008 2:22 AM, Hans Hagen wrote: Lars Huttar wrote: On 11/19/2008 2:35 PM, Lars Huttar wrote: 2) Even though I have \sethyphenatedurlafter / instead of \sethyphenatedurlbefore /, there are four cases where a URL is broken before a slash, e.g.: http://www.sil.org/.../009

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Lars Huttar
On 11/21/2008 2:22 AM, Hans Hagen wrote: i leave it to others to react on the rest of your mail (some users have been tuning the mechanism too) Hans On 11/21/2008 9:45 AM, Steffen Wolfrum wrote: Am 21.11.2008 um 16:35 schrieb Lars Huttar: Hello, Did either of you, Aditya or Steffen,

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Lars Huttar
On 11/21/2008 12:01 PM, Lars Huttar wrote: So as far as we know, nobody has successfully used \sethyphenatedurlbefore/after/etc. to tune the url-breaking mechanism. Has anybody else on the list done this? If not, maybe the mkii implementation has never worked for that purpose... it's

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Mojca Miklavec
On Fri, Nov 21, 2008 at 8:31 PM, Lars Huttar wrote: On 11/21/2008 12:01 PM, Lars Huttar wrote: So as far as we know, nobody has successfully used \sethyphenatedurlbefore/after/etc. to tune the url-breaking mechanism. Has anybody else on the list done this? OK... I have a working

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Hans Hagen
Mojca Miklavec wrote: hack hack hack hack I tried solutions with special patterns sveral times but the problem is in mixed languages, i.e. english text mixed with url-language; there are some limitations (in pdftex for instance the same codes are used fo rthe whole par (i.e. mixed

Re: [NTG-context] modifying URL wrapping rules

2008-11-21 Thread Mojca Miklavec
On Fri, Nov 21, 2008 at 11:53 PM, Hans Hagen [EMAIL PROTECTED] wrote: Mojca Miklavec wrote: hack hack hack hack I tried solutions with special patterns sveral times but the problem is in mixed languages, i.e. english text mixed with url-language; there are some limitations (in pdftex

Re: [NTG-context] modifying URL wrapping rules

2008-11-20 Thread Hans Hagen
Lars Huttar wrote: On 11/19/2008 2:35 PM, Lars Huttar wrote: However, I have a few unsolved problems here. 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after' mechanism, to tell it not to break a URL between two slashes, as in http://;. At first I thought that since our text

Re: [NTG-context] modifying URL wrapping rules

2008-11-20 Thread Lars Huttar
On 11/20/2008 2:29 AM, Hans Hagen wrote: Lars Huttar wrote: On 11/19/2008 2:35 PM, Lars Huttar wrote: However, I have a few unsolved problems here. 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after' mechanism, to tell it not to break a URL between two slashes, as in

Re: [NTG-context] modifying URL wrapping rules

2008-11-20 Thread Lars Huttar
On 11/19/2008 2:35 PM, Lars Huttar wrote: 2) Even though I have \sethyphenatedurlafter / instead of \sethyphenatedurlbefore /, there are four cases where a URL is broken before a slash, e.g.: http://www.sil.org/.../009 /YAMBASSA.html. and no cases where a URL is broken after a slash (except

Re: [NTG-context] modifying URL wrapping rules

2008-11-19 Thread Lars Huttar
On 11/18/2008 3:44 PM, Arthur Reutenauer wrote: From what I can tell, the .tex file loads one of the other three: \loadmarkfile{lang-url} \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending on the ConTeXt version you're running (MkII / MkIV). In Mark IV, the Lua

Re: [NTG-context] modifying URL wrapping rules

2008-11-19 Thread Lars Huttar
On 11/19/2008 2:35 PM, Lars Huttar wrote: However, I have a few unsolved problems here. 1) I don't see a way, with the '\sethyphenatedurlbefore' or 'after' mechanism, to tell it not to break a URL between two slashes, as in http://;. At first I thought that since our text only had a few

Re: [NTG-context] modifying URL wrapping rules

2008-11-18 Thread Arthur Reutenauer
From what I can tell, the .tex file loads one of the other three: \loadmarkfile{lang-url} \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending on the ConTeXt version you're running (MkII / MkIV). In Mark IV, the Lua code is then put in lang-url.lua, which is input by

Re: [NTG-context] modifying URL wrapping rules

2008-11-18 Thread Lars Huttar
On 11/18/2008 3:44 PM, Arthur Reutenauer wrote: From what I can tell, the .tex file loads one of the other three: \loadmarkfile{lang-url} \loadmarkfile loads either lang-url.mkii or lang-url.mkiv, depending on the ConTeXt version you're running (MkII / MkIV). In Mark IV, the Lua

Re: [NTG-context] modifying URL wrapping rules

2008-11-18 Thread Arthur Reutenauer
OK... but I'm not sure what I would do differently if I'm not worrying about the \loadmarkfile mechanism... Still modify the lang-url.mkii file? Sure. I simply meant that you only needed to produce a single file, your modified lang-url.mkii, whereas if you wanted to develop for both MkII and