[NTG-context] How to obtain the hbox's node when there is only one hbox for an entire paragraph?

2024-05-01 Thread
Dear list, What is the non-hacking way to obtain the hbox's node in a Lua hook when there is only one hbox for an entire paragraph? Best regards, Huang Fusyong (黄复雄) % start ConTeXt \startluacode Moduledata = Moduledata or {} Moduledata.jiazhu = Moduledata.jiazhu or {} ---[[ local function

[NTG-context] Re: Best way to input UTF-8

2024-02-18 Thread
I recommend you to always show missing font markers in PDF documents with \replacemissingcharacters On Mon, Feb 19, 2024 at 12:46 AM Shiv Shankar Dayal wrote: > > Hi all, > > What is the best way to input UTF-8 in LuaMetaTex? If I use the UTF-8 > characters then do not come out in text with

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread via ntg-context
Dear Zdeněk, Thanks for your prompt response. Yes, great, I got the right PDF now. Best regards 黄复雄(Huang Fysyong) Zdeněk Svoboda via ntg-context 于2022年12月28日周三 10:42写道: > > Hello Huang, > > This was probably an error on my side. > > Can you please try again now? I

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-27 Thread via ntg-context
ng source file 'NotoSerifCJKsc-Regular.otf' due to cache mismatch .. mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf, lmroman12-regular.otf, notoserifcjksc-regular.otf ...... ``` Any further hints? Best regards, 黄复雄(Huang Fusyong) __

Re: [NTG-context] New c-o-w: The XMas gift for ConTeXt users

2022-12-26 Thread via ntg-context
? or have any plans to support them? Best regards, 黄复雄(Huang Fusyong) Zdeněk Svoboda via ntg-context 于2022年12月27日周二 07:58写道: > > Hello ConTeXt community! > > I'm Zdeněk Svoboda, a master degree student at Mendel university in > Brno. I've been using ConTeXt for a while now and h

Re: [NTG-context] how to simulate \hss in luametatex?

2022-11-11 Thread via ntg-context
Hans, thank you. By your and Max's answers, I understand that there must be box.glueset for the glues in the box.list to actually work. Best regards Huang Fusyong(黄复雄) Hans Hagen via ntg-context 于2022年11月11日周五 18:52写道: > > On 11/11/2022 10:53 AM, Max Chernoff via ntg-context wrote:

Re: [NTG-context] how to simulate \hss in luametatex?

2022-11-11 Thread via ntg-context
relative. Best regards Huang Fusyong(黄复雄) Max Chernoff via ntg-context 于2022年11月11日周五 17:55写道: > > Hi, > > > I want to simulate \hss in lua end in ConTeXt/luametatex environment. > > For example, > > > > ```ConTeXt > > a{\raise 1.5ex\hbox to 0pt{\hss b}}c

[NTG-context] how to simulate \hss in luametatex?

2022-11-10 Thread via ntg-context
Hi list, I want to simulate \hss in lua end in ConTeXt/luametatex environment. For example, ```ConTeXt a{\raise 1.5ex\hbox to 0pt{\hss b}}c ``` should get 'b' on top of 'a', as follows: ```pdf b ac ``` and in lua, I see a before "b" node, width width:0, stretch:65536, shrink:65536,

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-09-03 Thread via ntg-context
macro will inject glue between Chinese, and I will get the same error. %%%begin example \starttext \ruby{a a}{b} \stoptext %%%end example Best Regards, 黄复雄(Huang Fuysong) ___ I

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-09-03 Thread via ntg-context
ces were commented. If you need to mark all the places, please let me know and I'll mark all the changes. As I've said last time, what I've done may be a bit reckless, please check and correct it. Though I've done some testing, but obviously it is not very comprehensive. With best r

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-09-02 Thread via ntg-context
> > doc for example: > > > > ```lmtx > > \setscript[hanzi] > > \usetypescriptfile[mscore] > > \usebodyfont [mschinese,20pt] > > can you upgrade the chiese section in that file for windows 10+ as the > old fonts are gone > > (i tested with \definedfont[file:mingliu.ttc*chinese @ 10pt]) I adapted

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread via ntg-context
and guidance are very welcome. Best regards, Huang Fusyong(黄复雄) Hans Hagen via ntg-context 于2022年8月22日周一 00:20写道: > > On 8/21/2022 12:10 PM, Wolfgang Schuster via ntg-context wrote: > > 黄复雄 via ntg-context schrieb am 21.08.2022 um 10:24: > >> Currently, the ruby

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread via ntg-context
vs/context-win64/tex/texmf-context/tex/..."]:37> (...tail calls...) 1 >> \setscript[hanzi] …… %%%end error Best regards, Huang Fusyong(黄复雄) Wolfgang Schuster via ntg-context 于2022年8月21日周日 18:11写道: > > 黄复雄 via ntg-context schrieb am 21.08.2022 um

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread via ntg-context
10 \starttext 11 \ruby{寖備}{jìn bèi} \ss \ruby{寖備}{jìn bèi} %\tt \ruby{寖備}{jìn bèi} mtx-context | fatal error: return code: 1 %%%end error Best regards, Huang Fusyong(黄复雄) Wolfgang Schuster via ntg-context 于2022年8月21日周日 18:11写道: > > 黄复雄 via ntg-context schrieb am 21.08.20

Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-21 Thread via ntg-context
Currently, the ruby module does not seem to support cjk fonts? I have a preliminary implementation of furigana(pinyin in Chinese) as: ```lmtx % define the pinyin font \definefont[pinyinfont][name:ahpinying*default at 9pt] % define the pinyin command \define[2]\pinyin{% \setbox1 = \hbox{#1}%

Re: [NTG-context] Can't no break between a close punctuation and a open punctuation

2022-08-02 Thread via ntg-context
one are you referring to? to scrp-cjk.lua?( yes, I will upgrade it.) or to my lmtx doc for testing?(It work fine in my Windows 10.) or to type-imp-mscore.mkiv? (It work fine in my Windows 10, and no mingliu.ttc in it.) Thanks. Huang Fusyong(黄复雄) --

[NTG-context] Can't no break between a close punctuation and a open punctuation

2022-08-02 Thread via ntg-context
0 0 655500 1 0 655500 0 so nowhere to linebreak. Thanks. Huang Fusyong(黄复雄) ___ If your question is of interest to others as well

[NTG-context] Can't no break between a close punctuation and a open punctuation

2022-07-29 Thread via ntg-context
0 655500 0 so nowhere to linebreak. Huang Fusyong(黄复雄) watch_sys_actions.lua Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : n

Re: [NTG-context] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-29 Thread via ntg-context
of the list, is removed # as same as parfillrightskip 黄复雄 于2022年7月16日周六 10:02写道: > Thanks, Hans > > I modified my list to: > >2873 : par vmodepar> >3113 : glue indentskip> >3119 : glue parinitleftskip> >2879 : glue parinitrightskip> >2891 : gly

Re: [NTG-context] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-15 Thread via ntg-context
, and observe it's work for more details. Huang Fusyong(黄复雄) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/

[NTG-context] linebreak error: no leftinit or rightinit or leftfill or rigthfill expected

2022-07-15 Thread via ntg-context
penalty userpenalty> nil : glue userskip> My question is: Which of them is necessary, and How can I node.new() one and Where should it go in the list? Any hint would be appreciated, Huang Fusyong(黄复雄) ___ If your