(ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
https://pastebin.com/Cg8ZPDVK I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this?
On 10/6/2024 8:40 PM, Felix wrote:
I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this?
there is something mentioned in followingup-directions.tex i removed top to bottom directions from luametatex because it made no sense; one cannot do vertical typesettign without also looking at the layout and other things instead of directions we do rotation at the glyph level and such which has less interference and more flexible but ... i haven't looked at it recently (could be broken by other features) as there is little demand for it Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, 7 Oct 2024 at 09:10, Hans Hagen via ntg-context
On 10/6/2024 8:40 PM, Felix wrote:
I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this?
there is something mentioned in followingup-directions.tex
i removed top to bottom directions from luametatex because it made no sense; one cannot do vertical typesettign without also looking at the layout and other things
instead of directions we do rotation at the glyph level and such which has less interference and more flexible
but ... i haven't looked at it recently (could be broken by other features) as there is little demand for it
Hans
For japanese, I think that the only reference for luatex (actually lualatex) is https://ctan.org/tex-archive/macros/luatex/generic/luatexja -- luigi
Hi,
Out of curiosity, I tried compiling the followingup manual with ConTeXt
LMTX 2024.09.25. I did not check the whole manual, but section 6 seems to
render fine as far as I can tell, up to two small issues (not sure whether
they are due to changes in ConTeXt or to font issues on my side):
* I had to replace NotoSansCJKtc-VF with the name of the font file
(NotoSansCJK-Regular.ttc) in followingup-directions.tex . (I suspect that
may be due to my system not having the ‘right’ font installed.
* The glyphs are not rotated in Figure 6.12. Figure 6.11 looks correct,
though.
So at least one of the methods mentioned in
followingup-directions.tex seems to work with the latest version of ConTeXt
LMTX.
Cheers,
Florent
Le lun. 7 oct. 2024 à 08:10, Hans Hagen via ntg-context
On 10/6/2024 8:40 PM, Felix wrote:
I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this?
there is something mentioned in followingup-directions.tex
i removed top to bottom directions from luametatex because it made no sense; one cannot do vertical typesettign without also looking at the layout and other things
instead of directions we do rotation at the glyph level and such which has less interference and more flexible
but ... i haven't looked at it recently (could be broken by other features) as there is little demand for it
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
___________________________________________________________________________________ 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
___________________________________________________________________________________
Where does one find this "followingup-directions.tex"? The only thing I am aware of existing is the ConTeXt wiki. It is very hard to navigate through this language's resources for me, perhaps that is due to this being the 'first' language I am truly trying to learn without the help of AI like I did with LaTeX. searching for followingup-directions.tex in context wiki shows nothing.
On 10/7/2024 9:12 PM, Felix wrote:
Where does one find this "followingup-directions.tex"? The only thing I am aware of existing is the ConTeXt wiki. It is very hard to navigate through this language's resources for me, perhaps that is due to this being the 'first' language I am truly trying to learn without the help of AI like I did with LaTeX. searching for followingup-directions.tex in context wiki shows nothing.
better trust your own intelligence ... these documents are in the distribution under the doc tree Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 07.10.24 um 21:12 schrieb Felix:
Where does one find this "followingup-directions.tex"? The only thing I am aware of existing is the ConTeXt wiki. It is very hard to navigate through this language's resources for me, perhaps that is due to this being the 'first' language I am truly trying to learn without the help of AI like I did with LaTeX. searching for followingup-directions.tex in context wiki shows nothing.
"followingup.pdf" is a manual in the distribution*, "directions" is one chapter. But the code shown is very low level, probably not suitable for productive typesetting. *) in texmf-context/doc/context/documents/general/manuals Hraban
On Mon, 7 Oct 2024, Felix wrote:
Where does one find this "followingup-directions.tex"? The only thing I am aware of existing is the ConTeXt wiki. It is very hard to navigate through this language's resources for me, perhaps that is due to this being the 'first' language I am truly trying to learn without the help of AI like I did with LaTeX. searching for followingup-directions.tex in context wiki shows nothing.
See the list of manuals and documentation: https://www.pragma-ade.nl/overview.htm The followingup manual is here: https://www.pragma-ade.nl/general/manuals/followingup.pdf#page=29.07 Aditya
I have an incomplete example that you can use as a basis for your goal:
https://github.com/Fusyong/luametatex-callback-playground/blob/master/vtypes...
In addition, I have made a module,
https://github.com/Fusyong/vertical-typesetting
that makes the whole page vertical. That is, you can take the PDF of
the content that needs to be vertical
and insert it into a new file.
Unfortunately, it doesn't work in the latest ConTeXt version, and Hans
promised to fix this problem.
On Mon, Oct 7, 2024 at 2:42 AM Felix
I have the code listed above and I am wondering how I can get CJK text to be in a vertical form (along with Vietnamese. I know l2r as an option exists in startalignment, but there seems to not be a vertical equivalent for vertical text. How do I achieve this? ___________________________________________________________________________________ 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 ___________________________________________________________________________________
participants (7)
-
Aditya Mahajan
-
Felix
-
Florent Michel
-
Hans Hagen
-
Henning Hraban Ramm
-
luigi scarso
-
黄复雄