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

2022-12-27 Thread via ntg-context
have tried to fix it, it should > hopefully work now. > > Sincerely, > Zdeněk Svoboda > > Dne 28. 12. 22 v 3:01 黄复雄 via ntg-context napsal(a): > >> You can probably test with uploading a font the the work directory. > >> > > Hans, > > thanks for the tip. &

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

2022-12-27 Thread via ntg-context
> > You can probably test with uploading a font the the work directory. > Hans, thanks for the tip. I uploaded a noto-cjk font file, NotoSerifCJKsc-Regular.otf, to the root directory. Also, my typography file, test.tex, is in the root directory, and it reads ```context

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

2022-12-26 Thread via ntg-context
Dear Zdeněk Svoboda. I tried your platform, it's great and it will definitely help to promote ConTeXt. Thanks for your work. I am from China and I would like to know, does this platform support CJK fonts (e.g. https://github.com/googlefonts/noto-cjk)? if yes, then is there any examples of usage?

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: > > Hi, > >

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

2022-11-11 Thread via ntg-context
Dear Max, I am very grateful that you took the time to tweak and test my non-running code snippet and found the problem. > local box = node.hpack(hss + b, "exactly", 0) You are absolutely right, the cause of the problem was that I wasn't using node.hpack(). Actually, I tried to use it, but used

[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
> I noticed an issue with multiple glyphs but am not sure why ... (so we > need very small examples to figure it out). I have observed a phenomenon that when the base text contains glues/spaces, an error occurs, as in the following example. Coincidentally, when using \setscript[hanzi], the macro

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

2022-09-03 Thread via ntg-context
> you can try this in scrp-cjk.lua (remake the format) > > local chinese_8 = { > jami_initial = nobreak_shrink_break_stretch, > korean = nobreak_autoshrink_break_stretch, > chinese = stretch_break, -- nobreak_autoshrink_break_stretch, > hiragana =

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
> > > Dear Hans, > > > > I found that ConTeXt injected two infinity penalties between a close > > punctuation and a open punctuation, for example between `”` and `“`, or > > between `:` and `“`, so can not break at these places, as showed in > > following doc. But actually, we may sometimes need

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

2022-08-02 Thread via ntg-context
I sent this email four days ago and it may not have been delivered? --- Dear Hans, I found that ConTeXt injected two infinity penalties between a close punctuation and a open punctuation, for example between `”`

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

2022-07-29 Thread via ntg-context
Dear Hans, I found that ConTeXt injected two infinity penalties between a close punctuation and a open punctuation, for example between `”“`, or `:“`, as showed in the following Chinese document. But actually, we need to break between them sometime. Please note that there is no space around full

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

2022-07-29 Thread via ntg-context
Thanks, Hans. My module works again now, with the help of tex.preparelinebreak(). For potential readers: tex.preparelinebreak(list) modifyed my list for tex.linebreak(list) to: # by user in advance, necessary # by user in advance, necessary ... # The last glue here, in the end of the

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

2022-07-15 Thread via ntg-context
Thanks, Hans I modified my list to: 2873 : par vmodepar> 3113 : glue indentskip> 3119 : glue parinitleftskip> 2879 : glue parinitrightskip> 2891 : glyph unset> ... 639 : glyph unset> 3089 : kern userkern> 2334 : glue userskip> 3095 : rule normal> 3101 : glue

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

2022-07-15 Thread via ntg-context
I mistakenly sent the following letter to lua...@tug.org yesterday. I hope it won't cause anyone any trouble. Thanks to luigi for pointing out the error. - Hi all, I just updated my ConTeXt to system > ConTeXt ver: 2022.07.06 21:42 LMTX