[NTG-context] Quickly invoke a self-defined index sorting file?

2025-01-12 Thread autumnus
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 a

[NTG-context] Re: Quickly invoke a self-defined index sorting file?

2025-01-12 Thread autumnus
Thanks for the explanation. After using \registerctxluafile{sort-hanzi}{}, the bumping message did not appear. In terms of daily practical use, I really don't need so many characters. I just don't have the energy to pick out those thousands of commonly used Chinese characters from these 40,000

[NTG-context] Re: Quickly invoke a self-defined index sorting file?

2025-01-12 Thread Hans Hagen
On 1/12/2025 9:58 AM, autumnus wrote: 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 the

[NTG-context] Re: Lua question - table.save, table.load

2025-01-12 Thread Jeong Dal via ntg-context
Dear Hans, I found the problem. I tested the code to give the different file name for each process, but there is no changes. Hence, it is not the problem of the file “tempList.lua” which contains the list “tfList”. It is the problem of the “tfList”. Since I put local tfList = {} be

[NTG-context] Re: Weird date output

2025-01-12 Thread Tomáš Hála
Hi autumnus, I have got no experience with Chinese but I think it is possible to change it for the future. The current settings for Chinese has been defined as (file tex/texmf-context/tex/context/base/mkxl/lang-def.mkxl, line no. 655): \c!date={\v!year,年,\space,\v!month,\v!day,日} You can chan

[NTG-context] Re: Quickly invoke a self-defined index sorting file?

2025-01-12 Thread Hans Hagen
On 1/12/2025 12:53 PM, autumnus wrote: Thanks for the explanation. After using \registerctxluafile{sort-hanzi}{}, the bumping message did not appear. In terms of daily practical use, I really don't need so many characters. I just don't have the energy to pick out those thousands of commonly use

[NTG-context] tree-sitter-context

2025-01-12 Thread Henning Hraban Ramm
Hi Paul, I tried again to get your code running for me. If I replace tree-sitter-context.pc by tree-sitter.json (attached), then the tree-sitter CLI recognizes the parser. The npm module (to be called as "npx tree-sitter") doesn’t care about the .pc file, but the cli package binary seems to e

[NTG-context] Re: Weird date output

2025-01-12 Thread autumnus
I don't know why, the text is automatically added with spaces. The correct one should be: \currentdate[year,年,M,月,day,日] \currentdate[year:cn-d,年,month,day:cn,日] ___ If your question is of interest to others as well

[NTG-context] Re: Weird date output

2025-01-12 Thread autumnus
hi, Tomáš Thank you for your help. The format that is currently more commonly used is the first one. \starttext \language[cn] \definedfont[name:adobesongstdlight] modern and mostly used : \currentdate[year,年,M,月,day,日] : 2025年1月12日 traditional and special case: \currentdate[year:cn-d

[NTG-context] Re: Quickly invoke a self-defined index sorting file?

2025-01-12 Thread autumnus
Chinese Hanzi PinYin : https://github.com/mozillazg/pinyin-data/tree/master Chinese Hanzi Stroke : https://github.com/leo-liu/zhmakeindex/blob/master/CJK/strokes.go Japanese Hanzi pronunciation: https://github.com/cjkvi/cjkvi-tables/blob/master/joyo2010.txt _

[NTG-context] Re: Quickly invoke a self-defined index sorting file?

2025-01-12 Thread Hans Hagen via ntg-context
On 1/12/2025 2:54 PM, autumnus wrote: Chinese Hanzi PinYin : https://github.com/mozillazg/pinyin-data/tree/master Chinese Hanzi Stroke : https://github.com/leo-liu/zhmakeindex/blob/master/CJK/strokes.go assuming that you donwloaded kHanyuPinlu.txt you can run the attached test file You migh

[NTG-context] Fwd: Call for Papers / BachoTeX 2025

2025-01-12 Thread Henning Hraban Ramm
The 30th GUST TeX conference - call for papers ***TeX in education*** The jubilee, thirtieth BachoTeX conference is dedicated to using TeX in and for education. Though TeX is known and used in Poland at academia, especially in STEM, for more than thirty years it still is a niche tool at lowe

[NTG-context] Re: How hard should something get \smash-ed ?

2025-01-12 Thread Mikael Sundqvist
Hi, On Mon, Jan 13, 2025 at 1:43 AM Jim wrote: > Hi, > > In plain TeX, > > $$\smash{\sum_0^n}$$ > > is set in \displaystyle, just like > > $$\smash{\sum_0^n}$$ > > > However, ConTeXt > > \starttext > $$\smash{\sum^0_n}$$ > \stoptext > > outputs the above in \textstyle, whereas > > \starttext > $

[NTG-context] Re: How hard should something get \smash-ed ?

2025-01-12 Thread Hans Hagen via ntg-context
On 1/13/2025 7:44 AM, Mikael Sundqvist wrote: Hi, On Mon, Jan 13, 2025 at 1:43 AM Jim > wrote: Hi, In plain TeX, $$\smash{\sum_0^n}$$ is set in \displaystyle, just like $$\smash{\sum_0^n}$$ However, ConTeXt \starttext $$\s

[NTG-context] How hard should something get \smash-ed ?

2025-01-12 Thread Jim
Hi, In plain TeX, $$\smash{\sum_0^n}$$ is set in \displaystyle, just like $$\smash{\sum_0^n}$$ However, ConTeXt \starttext $$\smash{\sum^0_n}$$ \stoptext outputs the above in \textstyle, whereas \starttext $$\sum^0_n$$ \stoptext is in (of course(?)) \displaystyle. Is this difference inte