ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: luatex feature question/request
Date: Fri, 04 Apr 2008 10:33:23 +0200	[thread overview]
Message-ID: <47F5E7D3.407@elvenkind.com> (raw)
In-Reply-To: <47F5DDDF.9040304@wxs.nl>



Hans Hagen wrote:
> Marcin Borkowski wrote:
>> Hello!
>>
>> I was just wondering, whether something like this is possible in luatex
>> - and if not, if it might be implemented;).  I'd like to be able to
>> transform somehow the input right *before* TeX sees it.  What I mean is
>> e.g. a transformation using regexps.  Application I have in mind is as
>> follows: in Polish, there are a few prepositions which are one-letter
>> words; it's a bad custom to leave them hanging at the end of a line.
>> Such an option could automatically put ties (~) instead of spaces after
>> them - a feature sometimes requested by Polish TeX users.
> 
> input parsing is not needed here, it's easier to to do this on the node 
> list; remind me in a few months (it's rather trivial to implmenent since 
> the infrastructure is already in mkiv)

Hans is right, the node list should be altered instead of the input,
because you can never be sure that "\TEX\ i \METAFONT\" is not
hidden inside a definition somewhere.

There actually is a way to modify the input lines just before they
are parsed by luatex, but that is really only suitable for converting
8-bit encodings to utf-8. (I was going to post an example abusing
that method, but there are way many things that can go wrong, so I
changed my mind)

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
___________________________________________________________________________________


  reply	other threads:[~2008-04-04  8:33 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04  5:09 Marcin Borkowski
2008-04-04  7:50 ` Hans Hagen
2008-04-04  8:33   ` Taco Hoekwater [this message]
2008-04-04  8:38     ` luigi scarso
2008-04-04  8:52       ` Taco Hoekwater
2008-04-04  8:58         ` Olivier Guéry
2008-04-04  9:08           ` Hans Hagen
2008-04-04 11:02             ` Olivier Guéry
2008-04-04 11:15               ` Wolfgang Schuster
2008-04-04 12:26                 ` Olivier Guéry
2008-04-04 12:55                   ` Peter Münster
2008-04-04 13:15                     ` Olivier Guéry
2008-04-04 15:15                       ` Peter Münster
2008-04-04 20:23                         ` Olivier Guéry
2008-04-04 12:26               ` Hans Hagen
2008-04-04 13:09                 ` Olivier Guéry
2008-04-15 19:18                   ` Hans Hagen
2008-04-15 19:54                     ` Olivier Guéry
2008-04-16  0:40                     ` Arthur Reutenauer
2008-04-16  8:50                       ` Hans Hagen
2008-04-16 10:19                         ` Olivier Guéry
2008-04-16 12:46                           ` Peter Münster
2008-04-16 14:20                             ` Hans Hagen
2008-04-04 10:16           ` Peter Münster
2008-04-04  9:19         ` luigi scarso
2008-04-04 19:26         ` Peter Münster
2008-04-04 19:48           ` Aditya Mahajan
2008-04-04 20:03             ` Peter Münster
2008-04-04 20:07             ` Hans Hagen
2008-04-04 20:20           ` Taco Hoekwater
2008-04-04  9:57   ` Marcin Borkowski
2008-07-04 10:54 Marcin Borkowski
2008-07-04 14:23 ` Idris Samawi Hamid ادريس سماوي حامد
2008-07-04 15:01   ` Olivier
2008-07-04 17:38     ` Idris Samawi Hamid ادريس سماوي حامد
2008-07-04 20:34       ` Hans Hagen
2008-07-04 20:39   ` Hans Hagen

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=47F5E7D3.407@elvenkind.com \
    --to=taco@elvenkind.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).