horizontal space in CJK document
Dear list, Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]? \setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored \dorecurse{100}{口} % without \setscript[hanzi], the line is not properly wrapped \stoptext Many thanks, Sylvain
Maybe the ideographic space U+3000 works.
在 2023年2月21日週二 03:42,Sylvain Hubert via ntg-context
Dear list,
Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]?
\setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
\dorecurse{100}{口} % without \setscript[hanzi], the line is not properly wrapped \stoptext
Many thanks, Sylvain
___________________________________________________________________________________ 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 webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
Thanks, but I guess the space width would be fixed.
I just found a hack: 口口\hspace[big]\hbox{}口口 does the trick.
On Tue, 21 Feb 2023 at 06:46, fv leung via ntg-context
Maybe the ideographic space U+3000 works.
在 2023年2月21日週二 03:42,Sylvain Hubert via ntg-context
寫道: Dear list,
Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]?
\setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
\dorecurse{100}{口} % without \setscript[hanzi], the line is not properly wrapped \stoptext
Many thanks, Sylvain
___________________________________________________________________________________ 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 webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________ 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 webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net
___________________________________________________________________________________
Sylvain Hubert via ntg-context
Dear list,
Does anyone know how to insert a horizontal space in a CJK document with \setscript[hanzi]?
\setscript[hanzi] \definefontfamily[mainface][rm][notoserifcjkhk][] \setupbodyfont[mainface] \starttext 口口\hspace[big]口口 % with \setscript[hanzi], the \hspace is ignored
\dorecurse{100}{口} % without \setscript[hanzi], the line is not properly wrapped \stoptext
Many thanks, Sylvain
测\kern 1em 试。 -- Best regards, Li Yanrui
participants (3)
-
fv leung
-
Li Yanrui (李延瑞)
-
Sylvain Hubert