From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Automatic replacement?
Date: Fri, 3 May 2013 18:44:58 +0200 [thread overview]
Message-ID: <CAG5iGsA7vd_1Y6urfXdAU0fgig1QU27z++otGyvCgMVWqdQE_g@mail.gmail.com> (raw)
In-Reply-To: <CAG5iGsDtaozhF+dEH=zrqucd_S6bGYZC=NuSF6cshoO0ESSsJw@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 997 bytes --]
On Fri, May 3, 2013 at 6:40 PM, luigi scarso <luigi.scarso@gmail.com> wrote:
>
>
>
> On Fri, May 3, 2013 at 5:20 PM, "H. Özoguz" <h.oezoguz@mmnetz.de> wrote:
>
>> Thanks luigi, but it does not work for my characters, see here:
>>
>> \definefont[tradoa][name:**trado*arabic at 20pt] % or
>> file:amiri-regular.ttf*... file:alq.ttf
>>
>> \directlua{ local function replace_txt (buffer)
>> buffer=string.gsub(buffer,"**اللهِ","اللَّـه") return buffer end
>> callback.register("process_**input_buffer",replace_txt)
>> }
>> \starttext
>> my text {\setupalign[r2l] \tradoa اللَّـه}
>> \stoptext
>>
>> "trado" ist just the font "traditional arabic", nearly every system have
>> it, so you should be able to compile this. It does not replace the
>> character.
>>
>> my fault, sorry.
> In the string library the function are not unicode aware (of course, I
> should say...) .
>
> it should be lpeg.replacer, but I've no time now to check
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 1816 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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-05-03 16:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-05-03 13:24 "H. Özoguz"
2013-05-03 14:05 ` luigi scarso
2013-05-04 7:11 ` Wolfgang Schuster
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=CAG5iGsA7vd_1Y6urfXdAU0fgig1QU27z++otGyvCgMVWqdQE_g@mail.gmail.com \
--to=luigi.scarso@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).