From: Hans Hagen <j.hagen@xs4all.nl>
To: jbf <roma83537@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: register for biblical citations
Date: Fri, 16 Apr 2021 15:08:57 +0200 [thread overview]
Message-ID: <66b8c942-b7b1-7f8b-5177-411fd8009948@xs4all.nl> (raw)
In-Reply-To: <85187e83-c84c-1d18-d2dd-3b2b19d13c57@gmail.com>
On 4/16/2021 12:22 PM, jbf wrote:
> There was no mention of the indicator anywhere in what I copied from
> your example. I did try indicator=no just now in case it should be made
> explicit:
You use a couple of chartacters that will be filtered (crlf and so). Try
weird ones, like:
sorters.definitions["biblical"] = {
method = interfaces.variables.before,
replacements = {
{ "Gen", "\\x01\\x01" },
{ "Ex", "\\x01\\x02" },
{ "Lev", "\\x01\\x03" },
{ "Deut", "\\x01\\x04" },
{ "Lam", "\\x01\\x05" },
{ "Dan", "\\x01\\x06" },
{ "Joel", "\\x02\\x01" },
{ "Ps", "\\x02\\x02" },
{ "Prov", "\\x02\\x03" },
{ "Sir", "\\x02\\x04" },
{ "Mt", "\\x02\\x05" },
{ "Mk", "\\x02\\x06" },
},
}
or better, take a harmless unicode sequence
sorters.definitions["biblical"] = {
method = interfaces.variables.before,
replacements = {
{ "Gen", utf.char(0xFF01) },
{ "Ex", utf.char(0xFF02) },
{ "Lev", utf.char(0xFF03) },
{ "Deut", utf.char(0xFF04) },
{ "Lam", utf.char(0xFF05) },
{ "Dan", utf.char(0xFF06) },
{ "Joel", utf.char(0xFF07) },
{ "Ps", utf.char(0xFF08) },
{ "Prov", utf.char(0xFF09) },
{ "Sir", utf.char(0xFF0A) },
{ "Mt", utf.char(0xFF0B) },
{ "Mk", utf.char(0xFF0C) },
},
}
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-04-16 13:08 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-14 21:16 jbf
2021-04-15 8:08 ` Hans Hagen
2021-04-15 9:28 ` jbf
2021-04-16 7:24 ` Hans Hagen
2021-04-16 9:47 ` jbf
2021-04-16 10:06 ` Hans Hagen
2021-04-16 10:22 ` jbf
2021-04-16 10:57 ` r.ermers
2021-04-16 22:33 ` jbf
2021-04-16 13:08 ` Hans Hagen [this message]
2021-04-16 22:39 ` jbf
2021-04-17 5:04 ` jbf
2021-04-17 7:10 ` Hans Hagen
2021-04-16 10:54 ` Henning Hraban Ramm
2021-04-16 22:37 ` 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=66b8c942-b7b1-7f8b-5177-411fd8009948@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).