Re: [NTG-context] substitutions: can i send this?

2009-03-29 Thread Khaled Hosny
On Sat, Mar 28, 2009 at 07:27:07PM -0600, Idris Samawi Hamid ادريس سماوي حامد wrote: On Fri, 27 Mar 2009 06:05:03 -0600, Khaled Hosny khaledho...@eglug.org wrote: If it's not so complex, have you considered overloading font features with fea files? Now that Adobe has (finally!) completed a

Re: [NTG-context] substitutions: can i send this?

2009-03-29 Thread Hans Hagen
Khaled Hosny wrote: That module shows exactly the problem I mentioned in my earlier message, it processes the whole input file not only the text buffers that will be actually typesetted, so If I've an \Idris macro it'll get replaced as well, or I've to parse the file myself which isn't really

Re: [NTG-context] substitutions: can i send this?

2009-03-28 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Fri, 27 Mar 2009 06:05:03 -0600, Khaled Hosny khaledho...@eglug.org wrote: (I know this an old thread, but I just happen to exactly the same feature Idris was asking for) On Thu, Oct 09, 2008 at 12:53:47AM +0200, Mojca Miklavec wrote: usage: ruby scriptname.rb input.tex output.tex

Re: [NTG-context] substitutions

2009-03-27 Thread Khaled Hosny
(I know this an old thread, but I just happen to exactly the same feature Idris was asking for) On Thu, Oct 09, 2008 at 12:53:47AM +0200, Mojca Miklavec wrote: usage: ruby scriptname.rb input.tex output.tex #!/usr/bin/env ruby subs_hash = { Mohamed = Muḥammad, Idris = ادريس, }

Re: [NTG-context] substitutions

2008-10-08 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 07 Oct 2008 12:16:42 -0600, Hans Hagen [EMAIL PROTECTED] wrote: Hans and Taco can probably tell you more. it all depends on what we want to achieve ... - we can have font fixers (dynamically extend fonts with features, but this demands knowledge of the font) - we can have

Re: [NTG-context] substitutions

2008-10-08 Thread Idris Samawi Hamid ادريس سماوي ح امد
On Tue, 07 Oct 2008 04:53:40 -0600, Mojca Miklavec [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد Sometimes I use the following for simple substitutions: \defineactivecharacter ' {\otfchar{quoteright}} But is there a more general mechanism

Re: [NTG-context] substitutions

2008-10-08 Thread Mojca Miklavec
On Wed, Oct 8, 2008 at 2:41 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: I would like to be able to do things like Mohamed - Muḥammad which would save me a lot of time in proofreading, editing, etc. It's easy to write a simple ruby/perl(or even lua) script that will do such changes for

Re: [NTG-context] substitutions

2008-10-08 Thread Idris Samawi Hamid
On Wed, 08 Oct 2008 08:46:21 -0600, Mojca Miklavec [EMAIL PROTECTED] wrote: On Wed, Oct 8, 2008 at 2:41 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: I would like to be able to do things like Mohamed - Muḥammad which would save me a lot of time in proofreading, editing, etc. It's

Re: [NTG-context] substitutions

2008-10-08 Thread Mojca Miklavec
On Wed, Oct 8, 2008 at 2:41 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: I would like to be able to do things like Mohamed - Muḥammad Before you get the mkiv code you can start collecting wrong words :) Mojca usage: ruby scriptname.rb input.tex output.tex #!/usr/bin/env ruby

Re: [NTG-context] substitutions

2008-10-07 Thread Mojca Miklavec
On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Sometimes I use the following for simple substitutions: \defineactivecharacter ' {\otfchar{quoteright}} But is there a more general mechanism to do things \definesubstitution{string1}{string2} eg

Re: [NTG-context] substitutions

2008-10-07 Thread Hans Hagen
Mojca Miklavec wrote: On Mon, Oct 6, 2008 at 1:57 AM, Idris Samawi Hamid ادريس سماوي حامد wrote: Dear gang, Sometimes I use the following for simple substitutions: \defineactivecharacter ' {\otfchar{quoteright}} But is there a more general mechanism to do things

[NTG-context] substitutions

2008-10-06 Thread Idris Samawi Hamid ادريس سماوي ح امد
Dear gang, Sometimes I use the following for simple substitutions: \defineactivecharacter ' {\otfchar{quoteright}} But is there a more general mechanism to do things \definesubstitution{string1}{string2} eg \definesubstitution{--}{–} Of course ConTeXt already provides this particular