ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Automatic replacement?
Date: Sat, 4 May 2013 09:11:44 +0200	[thread overview]
Message-ID: <FA086786-D1C2-4C92-BB02-636B7C50850B@gmail.com> (raw)
In-Reply-To: <CAG5iGsB0Rj+hc-twBGu_iHQ7dvviof3kTYc=LJ7uLnQrcP8drw@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1041 bytes --]


Am 03.05.2013 um 16:05 schrieb luigi scarso <luigi.scarso@gmail.com>:

> 
> 
> 
> On Fri, May 3, 2013 at 3:24 PM, "H. Özoguz" <h.oezoguz@mmnetz.de> wrote:
> Is it possible to define an automatic replacement?
> 
> I want to replace every
> 
> اللَّـه
> by
> اللهِ
> 
> First is a combination of letters, second is the correct arabic one-symbol for the name "Allah". I know, I can do this in the editor, but would helpful, if it is possible in the compiling.
> 
> Huseyin
> 
> 
> \directlua{ local function replace_txt (buffer) buffer=string.gsub(buffer,"A","BB") return buffer end 
> callback.register("process_input_buffer",replace_txt)
> }
> 
> \starttext my text A \stoptext 
> 
> copied & pasted in real time at 16:04 on friday May 3 from the Hans's talk at bachotek 2013 about luatex and plain tex.
> Please test with your characters.

\usemodule[translate]

\starttext

\translateinput[Apple][Orange]

\enableinputtranslation

Apple, Banana and Strawberry.

\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 2058 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

  reply	other threads:[~2013-05-04  7:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-03 13:24 "H. Özoguz"
2013-05-03 14:05 ` luigi scarso
2013-05-04  7:11   ` Wolfgang Schuster [this message]
2013-05-03 15:20 "H. Özoguz"
2013-05-03 16:27 ` luigi scarso
2013-05-03 16:29 ` Keith J. Schultz
2013-05-04 10:06   ` Arthur Reutenauer
2013-05-04 10:20   ` luigi scarso
2013-05-03 16:40 ` luigi scarso
2013-05-03 16:44   ` luigi scarso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FA086786-D1C2-4C92-BB02-636B7C50850B@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).