ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	jbf <roma83537@gmail.com>
Subject: Re: Twenty One versus Twenty-one
Date: Thu, 11 Feb 2021 08:44:23 +0100	[thread overview]
Message-ID: <906edebf-6424-a38b-8b9d-714c0a284672@xs4all.nl> (raw)
In-Reply-To: <8dc4619a-8375-9fb5-466f-737ab6322cae@gmail.com>

On 2/11/2021 2:20 AM, jbf wrote:
> Am currently dealing with a book that has twenty-one chapters, and the 
> author (who is visually impaired) follows a range of visually impaired 
> principles when writing and wanting things published. That's the 
> background to my question!
> 
> MWE
> 
> \setuphead[chapter][
>      header=empty,
>      alternative=middle,
>      style={\ssd},
>      number=yes,
>      conversion=Word,
>      command=\MyChapterCommand,
>      after={\blank[1cm]},
>      ]
> 
> Problem is, when we get to chapter Twenty-one (which is the correct way 
> to write it in English) it gives me 'Twenty One'. Is there a way, in my 
> setup, that I can force it to give me 'Twenty-one'? (note the hyphen and 
> the lower case for 'one').
> 
> I don't think MyChapterCommand is relevant here, but just in case, this 
> is it:
> 
> \define[2]\MyChapterCommand%
> {\framed[frame=on,bottomframe=on,leftframe=off,rightframe=off,topframe=off,align=middle] 
> 
>       {\vbox{\headtext{chapter} #1\blank#2}}}
I'll add this:

\def\verbosenumberconnector{--}

so you can define your own connectors. This is not interfaced via 
setuphead or setuplangauge or because the converter is not configured 
that way (maybe some day but I need to discuss it with Wolfgang because 
then we want to solve that for all commands and make the right choice 
for keys and so).

Up to you to wikify it.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2021-02-11  7:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-11  1:20 jbf
2021-02-11  7:44 ` Hans Hagen [this message]
2021-02-11  8:20   ` jbf
2021-02-11  9:03     ` Hans Hagen
2021-02-11  9:07       ` jbf
2021-02-11  9:38         ` Hans Hagen
2021-02-11 10:38           ` jbf

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=906edebf-6424-a38b-8b9d-714c0a284672@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    --cc=roma83537@gmail.com \
    /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).