ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Grammar
Date: Wed, 28 Jul 2010 02:00:15 +0200	[thread overview]
Message-ID: <4C4F730F.8010503@wxs.nl> (raw)
In-Reply-To: <20100727231209.GI26009@atos.labs.wmid.amu.edu.pl>

On 28-7-2010 1:12, Marcin Borkowski wrote:
> Dnia Tue, Jul 27, 2010 at 09:53:18AM -0700, Rory Molinari napisa&#322;(a):
>> I usually flip a coin to choose between "he" and "she" before I start
>> a document, and stick with it.  (If I think the issue might be of
>> interest to the reader I add a footnote explaining this.)
>
> I like that!  Although I bet that sooner or later some stupid feminist
> will accuse you of cheating (unless you toss the "female" side more
> often, in which case she'll be waiting for this tendency to change;)...)

as normally one can swap he/she without problems, we can make a module 
for that ..

% Of course one can now wonder if \heshe or \shehe should be defined first.

\getrandomcount\scratchcounter{0}{10}

\ifnum\scratchcounter<5
     \enablemode[gender:male]
     \edef\heshe {he}
     \edef\HeShe {He}
     \edef\hisher{His}
\else
     \enablemode[gender:female]
     \edef\heshe {she}
     \edef\HeShe {She}
     \edef\hisher{Her}
\fi

\let\shehe \heshe
\let\SheHe \HeShe
\let\herhis\hisher

\starttext

I wonder if \heshe\ likes reading this article.

\stoptext

(looks like i need to move some initialization code as the seed is set 
at starttext time which is too late)


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2010-07-28  0:00 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-24 22:50 Semantic data in ConTeXt? Matija Šuklje
2010-07-25 10:02 ` Hans Hagen
2010-07-25 21:33   ` Matija Šuklje
2010-07-25 21:39     ` Martin Schröder
2010-07-25 21:50       ` Matija Šuklje
2010-07-25 21:41     ` Martin Schröder
2010-07-25 21:50       ` Wolfgang Schuster
2010-07-26  7:13       ` Hans Hagen
2010-07-25 23:47     ` Grammar (was: Semantic data in ConTeXt?) David Rogers
2010-07-26  8:23       ` Matija Šuklje
2010-07-26  9:48         ` John Haltiwanger
2010-07-26 10:06           ` Grammar Hans Hagen
2010-07-26 10:20             ` Grammar luigi scarso
2010-07-26 11:56               ` Grammar Matija Šuklje
2010-07-26 12:38                 ` Grammar Hans Hagen
2010-07-26 19:33                 ` Grammar Martin Schröder
2010-07-26 20:44                   ` Grammar Matija Šuklje
2010-07-27 16:53           ` Grammar (was: Semantic data in ConTeXt?) Rory Molinari
2010-07-27 23:12             ` Marcin Borkowski
2010-07-28  0:00               ` Hans Hagen [this message]
2010-07-28  9:33                 ` Grammar John Haltiwanger
2010-07-28  0:18               ` Grammar (was: Semantic data in ConTeXt?) Rory Molinari
2010-07-28  0:20                 ` Marcin Borkowski
2010-07-27  6:10       ` Alan BRASLAU
2010-07-26 16:23 Grammar Richard Stephens
2010-07-26 20:20 ` Grammar John Haltiwanger
2010-07-26 20:48   ` Grammar Khaled Hosny
2010-07-26 21:25   ` Grammar Hans Hagen
2010-07-27  8:47   ` Grammar Marcin Borkowski
2010-07-27 13:06     ` Grammar John Haltiwanger
2010-07-27 13:17       ` Grammar Hans Hagen
2010-07-27 13:24         ` Grammar luigi scarso
2010-07-27 13:26         ` Grammar Procházka Lukáš
2010-07-27 13:38           ` Grammar Taco Hoekwater
2010-07-27 15:16           ` Grammar Matija Šuklje
2010-07-27 15:28             ` Grammar Arthur Reutenauer
2010-07-27 15:38               ` Grammar Matija Šuklje
2010-07-27 13:31       ` Grammar Arthur Reutenauer
2010-07-27 14:12         ` Grammar John Haltiwanger
2010-07-27 15:04           ` Grammar Arthur Reutenauer
2010-07-27 14:10       ` Grammar David Rogers
2010-07-27 14:15         ` Grammar Hans Hagen
2010-07-27 16:33           ` Grammar David Rogers
2010-07-27 16:59             ` Grammar Matija Šuklje
2010-07-27 17:03               ` Grammar Taco Hoekwater
2010-07-27 15:27       ` Grammar Matija Šuklje
2010-07-27 17:08         ` Grammar John Haltiwanger
2010-07-27 23:10         ` Grammar Marcin Borkowski
2010-07-27 23:40           ` Grammar Hans Hagen
2010-07-28  9:28           ` Grammar Henning Hraban Ramm
2010-07-28 13:14             ` Grammar Alain Delmotte
2010-07-27 22:57       ` Grammar Marcin Borkowski
2010-07-28  5:00         ` Grammar David Rogers
2010-07-28 12:45           ` Grammar Marcin Borkowski
2010-07-28  9:29         ` Grammar John Haltiwanger
2010-07-28  9:39           ` Grammar Thomas A. Schmitz
2010-07-28 13:00             ` Grammar Marcin Borkowski
2010-07-28 13:12           ` Grammar Marcin Borkowski

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=4C4F730F.8010503@wxs.nl \
    --to=pragma@wxs.nl \
    --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).