From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Verbose numbers in swedish
Date: Sat, 17 Apr 2021 19:08:07 +0200 [thread overview]
Message-ID: <c51c03ea-5179-575a-748b-88c9b50c5e3d@gmail.com> (raw)
In-Reply-To: <CADvXv2v4e83zi_Pp=w8ACyxDxs_voOo_cQG3DUbF5+123JjPTQ@mail.gmail.com>
peter kvillegard schrieb am 17.04.2021 um 18:50:
> Hi, I'm trying to get verbose numbers (i.e. "five" instead of 5) to
> work when \mainlanguage[sv] is set. I'm new to ConTeXt so I'm still
> struggling to grasp how everything fits together, but I found the
> spanish verbose numbers in core-con.lua, and added functions for
> swedish to match that which seemed relevant. I'm attaching my
> core-con.lua if that helps. (My additions start at line 1418)
>
> My question is, are there more places in other files that also need to
> be modified for this to work? If so, I would be grateful if you could
> point me in the right direction. There must be some step that I'm
> missing.
> Thank you.
>
> MWE where I expect the word "ett" instead of "1":
> \mainlanguage[sv]
> \starttext
> \convertnumber{words}{1}
> \stoptext
ConTeXt doesn't use the source files itself when you produce a document
but uses
a format file which contains the content of the source files (which is a
lot faster).
When you make a change in one of the source files you have to create a new
format with includes these changes, to create such a format files type
context --make
on the command line.
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-04-17 17:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-17 16:50 peter kvillegard
2021-04-17 17:08 ` Wolfgang Schuster [this message]
2021-04-17 17:17 ` Hans Hagen
2021-04-17 17:50 ` peter kvillegard
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=c51c03ea-5179-575a-748b-88c9b50c5e3d@gmail.com \
--to=wolfgang.schuster.lists@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).