ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
@ 2024-10-06 18:40 Felix 
  2024-10-07  7:05 ` [NTG-context] " Hans Hagen via ntg-context
  2024-10-17  4:49 ` 黄复雄
  0 siblings, 2 replies; 9+ messages in thread
From: Felix  @ 2024-10-06 18:40 UTC (permalink / raw)
  To: ntg-context

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?
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-06 18:40 [NTG-context] (ConTeXt LMTX) (Beginner) how do i set up vertical CJK? Felix 
@ 2024-10-07  7:05 ` Hans Hagen via ntg-context
  2024-10-07  7:43   ` luigi scarso
  2024-10-07 14:28   ` Florent Michel
  2024-10-17  4:49 ` 黄复雄
  1 sibling, 2 replies; 9+ messages in thread
From: Hans Hagen via ntg-context @ 2024-10-07  7:05 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 10/6/2024 8:40 PM, Felix wrote:
> 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?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07  7:05 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-10-07  7:43   ` luigi scarso
  2024-10-07 14:28   ` Florent Michel
  1 sibling, 0 replies; 9+ messages in thread
From: luigi scarso @ 2024-10-07  7:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1060 bytes --]

On Mon, 7 Oct 2024 at 09:10, Hans Hagen via ntg-context <ntg-context@ntg.nl>
wrote:

> On 10/6/2024 8:40 PM, Felix wrote:
> > 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?
>
> 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

[-- Attachment #1.2: Type: text/html, Size: 1660 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07  7:05 ` [NTG-context] " Hans Hagen via ntg-context
  2024-10-07  7:43   ` luigi scarso
@ 2024-10-07 14:28   ` Florent Michel
  2024-10-07 19:12     ` Felix 
  1 sibling, 1 reply; 9+ messages in thread
From: Florent Michel @ 2024-10-07 14:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2586 bytes --]

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 <ntg-context@ntg.nl>
a écrit :

> On 10/6/2024 8:40 PM, Felix wrote:
> > 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?
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3686 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07 14:28   ` Florent Michel
@ 2024-10-07 19:12     ` Felix 
  2024-10-07 19:18       ` Hans Hagen via ntg-context
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Felix  @ 2024-10-07 19:12 UTC (permalink / raw)
  To: ntg-context

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.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07 19:12     ` Felix 
@ 2024-10-07 19:18       ` Hans Hagen via ntg-context
  2024-10-07 19:20       ` Henning Hraban Ramm
  2024-10-07 19:20       ` Aditya Mahajan
  2 siblings, 0 replies; 9+ messages in thread
From: Hans Hagen via ntg-context @ 2024-10-07 19:18 UTC (permalink / raw)
  To: Felix, mailing list for ConTeXt users; +Cc: Hans Hagen

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07 19:12     ` Felix 
  2024-10-07 19:18       ` Hans Hagen via ntg-context
@ 2024-10-07 19:20       ` Henning Hraban Ramm
  2024-10-07 19:20       ` Aditya Mahajan
  2 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2024-10-07 19:20 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-07 19:12     ` Felix 
  2024-10-07 19:18       ` Hans Hagen via ntg-context
  2024-10-07 19:20       ` Henning Hraban Ramm
@ 2024-10-07 19:20       ` Aditya Mahajan
  2 siblings, 0 replies; 9+ messages in thread
From: Aditya Mahajan @ 2024-10-07 19:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [NTG-context] Re: (ConTeXt LMTX) (Beginner) how do i set up vertical CJK?
  2024-10-06 18:40 [NTG-context] (ConTeXt LMTX) (Beginner) how do i set up vertical CJK? Felix 
  2024-10-07  7:05 ` [NTG-context] " Hans Hagen via ntg-context
@ 2024-10-17  4:49 ` 黄复雄
  1 sibling, 0 replies; 9+ messages in thread
From: 黄复雄 @ 2024-10-17  4:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

I have an incomplete example that you can use as a basis for your goal:
https://github.com/Fusyong/luametatex-callback-playground/blob/master/vtypesetting_box.lmtx

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 <fm117575@students.panola.edu> wrote:
>
> 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?
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-10-17  5:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-06 18:40 [NTG-context] (ConTeXt LMTX) (Beginner) how do i set up vertical CJK? Felix 
2024-10-07  7:05 ` [NTG-context] " Hans Hagen via ntg-context
2024-10-07  7:43   ` luigi scarso
2024-10-07 14:28   ` Florent Michel
2024-10-07 19:12     ` Felix 
2024-10-07 19:18       ` Hans Hagen via ntg-context
2024-10-07 19:20       ` Henning Hraban Ramm
2024-10-07 19:20       ` Aditya Mahajan
2024-10-17  4:49 ` 黄复雄

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).