ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Quickly invoke a self-defined index sorting file?
@ 2025-01-12  8:58 autumnus 
  2025-01-12 11:01 ` [NTG-context] " Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: autumnus  @ 2025-01-12  8:58 UTC (permalink / raw)
  To: ntg-context

hi,

I defined an index file for sorting Chinese. (a bit large with almost 4MB)

https://github.com/Soanguy/ConTeXt-Chinese-Example/blob/master/sorting/sort-alpha.lua

But I have to pre-reference this file with input every time to enable it. 
How do I fuse these files with my local context system and use setup to enable it directly.

I want directly use
%%%
\setupregister[index][n=4,language=cn-alpha,]
%%%

instead of 
%%%%
\input sort-alpha.lua
\setupregister[index][
  n=4,
  language={cn-alpha},]
%%%

In addition to this, I found that the following notification appeared on the tex terminal, 
probably because there are too many characters in the index file (tens of thousands of characters). 
Can I avoid this notification?

tex memory      > bumping category 'token' succeeded, details: all=16000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=2000000 | min=2000000 | ptr=1999080 | set=10000000 | stp=1000000 | top=2000000
tex memory      > bumping category 'token' succeeded, details: all=24000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=3000000 | min=2000000 | ptr=2999080 | set=10000000 | stp=1000000 | top=3000000
tex memory      > bumping category 'token' succeeded, details: all=32000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=4000000 | min=2000000 | ptr=3999080 | set=10000000 | stp=1000000 | top=4000000
tex memory      > bumping category 'token' succeeded, details: all=40000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=5000000 | min=2000000 | ptr=4999080 | set=10000000 | stp=1000000 | top=5000000
tex memory      > bumping category 'token' succeeded, details: all=48000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=6000000 | min=2000000 | ptr=5999080 | set=10000000 | stp=1000000 | top=6000000
tex memory      > bumping category 'token' succeeded, details: all=56000000 | ext=0 | ini=568315 | itm=8 | max=10000000 | mem=7000000 | min=2000000 | ptr=6999080 | set=10000000 | stp=1000000 | top=7000000

autumnus
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-01-12 16:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-12  8:58 [NTG-context] Quickly invoke a self-defined index sorting file? autumnus 
2025-01-12 11:01 ` [NTG-context] " Hans Hagen
2025-01-12 11:53   ` autumnus 
2025-01-12 12:18     ` Hans Hagen
2025-01-12 13:54       ` autumnus 
2025-01-12 15:59         ` Hans Hagen via ntg-context

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).