From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 3D6102160A for ; Sun, 12 Jan 2025 09:59:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0199C485537 for ; Sun, 12 Jan 2025 09:58:56 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:user-agent:message-id:date:date:from:from :mime-version:received:received:received:received:received; s= cgl; t=1736672335; x=1739264336; bh=R5SPlttPyRbiINEFJxbLRJWHl2dy 8x5S2J1196gF9bk=; b=OOs8yQPkTIhDZ4ZAj5nttILjDZVCchwhqGDcoJEH+Kq5 XrQMBCQhEHLd+hqEreGXZEP89Cy7QR0xo4HvNZ0oZEiOOqCa8COd6NlllM2wXm35 gX0b4bIme0U5oiuyjs2iillJJg3UNPuWOZ4tvz7Nf0opVGTFlar3q4bQW1w9I/4= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oNGYpKndMpuz for ; Sun, 12 Jan 2025 09:58:55 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 80CEB4853AC for ; Sun, 12 Jan 2025 09:58:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 34FA2485249 for ; Sun, 12 Jan 2025 09:58:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zsdlYpyXuttE for ; Sun, 12 Jan 2025 09:58:20 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id DF45E485248 for ; Sun, 12 Jan 2025 09:58:20 +0100 (CET) MIME-Version: 1.0 From: "autumnus " To: ntg-context@ntg.nl Date: Sun, 12 Jan 2025 08:58:20 -0000 Message-ID: <173667230090.1763.3540311828271775295@cgl.ntg.nl> User-Agent: HyperKitty on http://mailman.ntg.nl/ Message-ID-Hash: P6QPUAWN6HQWN53UM5NLJLNII2PX7H4R X-Message-ID-Hash: P6QPUAWN6HQWN53UM5NLJLNII2PX7H4R X-MailFrom: ai2472206007@yeah.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Quickly invoke a self-defined index sorting file? List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________