From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id B37E72745E for ; Thu, 14 Mar 2024 14:51:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3DF2348413B for ; Thu, 14 Mar 2024 14:51:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HZC8P__OmBXH for ; Thu, 14 Mar 2024 14:51:09 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C900F48424B for ; Thu, 14 Mar 2024 14:49:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 499F3483F8A for ; Thu, 14 Mar 2024 14:48:54 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i44wA8vZM0f4 for ; Thu, 14 Mar 2024 14:48:53 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.48; helo=mail-wm1-f48.google.com; envelope-from=otared@gmail.com; receiver= Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 78521483F84 for ; Thu, 14 Mar 2024 14:48:53 +0100 (CET) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-413f4cb646dso3068445e9.1 for ; Thu, 14 Mar 2024 06:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710424133; x=1711028933; darn=ntg.nl; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :from:to:cc:subject:date:message-id:reply-to; bh=nXlJGOz2jH8mRHFsX9IBoxsqRu006iG0KrWl8sebUls=; b=BQREeOPHcMniZxRuolU6E2wlZ3CIBB9lSTk0OZDq0tMu9uPhR1UE+mv4niDg1e/qJL 9KFyb6G0uIgqwlevOHza1OJIYuyBHEuiZ+u4cWy0rnIYWc1wFYkQHfNIekYfSBCcJO/r udTY2y2M5oyQ8ZaLGXEevt3LTB/p8Xn2Er2T39+3oWLDeXd6VYJ7shcukii2Z7VjdHya dfEylN2oRFwO9BpV4UO12Sef7efduSreQB3eJDUBib8jGJRrqOQr/zZR+eCJNq+0cyi7 3+gb5wmiUPzPVUQ1udgpbHc1hQzPCF5nPJi28K7jslihMoE0qPsG4YrwDxhRlQF4Yhs7 lqsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710424133; x=1711028933; h=message-id:in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nXlJGOz2jH8mRHFsX9IBoxsqRu006iG0KrWl8sebUls=; b=m5UG2ZvKOFmJPBFFrcBlsukE6vSSxD2b2x95nMB/C69d5En1CUwJN+pQrUq3ti1d7q djHpt7+KYQquesDKvA1JsV5cyjab/93t/Rk+tK0igY15f2phJox23ShM/qjK/OS1c1jK GIF7bdJC7/rlLYo2rOkY2+YTjp2rgisGWAApGEi9rtKNfkI+WtTRvOfNo4E0T1tt7jzQ NUx/KIzGggsCjArHgCnUcbSt0MvdeNMNSPqNCABZx8rUCnzZ5pT3oDrKAzaD8+otEEF0 nPpYxIvGzwLZEiFtWmNp2kXX7k5VsOJ4I2U7oQB9H5qIKyWklcCMcRUkn2C8DALJ3JGO I8vQ== X-Gm-Message-State: AOJu0YzapTseOYSc1ZkBPpr/NUmnZ3C3blZmXzW/z67LKJBimHZzJfME RDxxMT3I+VBr+gkaAre/eA1+vSo5nD6NG7rQHwReMK4iEYH7NIDM8s+cS7mhvLU= X-Google-Smtp-Source: AGHT+IGaFcf0BLPk0LJSXiwL/Q+WLYxClbbObfnqgasM2krbAt29ZO/kP9Zy+X+SMsE0y66m9g5e4Q== X-Received: by 2002:a05:600c:4689:b0:413:f4b5:dcec with SMTP id p9-20020a05600c468900b00413f4b5dcecmr941740wmo.40.1710424132304; Thu, 14 Mar 2024 06:48:52 -0700 (PDT) Received: from smtpclient.apple ([2a01:e34:ec02:4760:1cc8:8ce9:9891:3264]) by smtp.gmail.com with ESMTPSA id h11-20020a5d504b000000b0033e7a102cfesm790627wrt.64.2024.03.14.06.48.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2024 06:48:51 -0700 (PDT) From: Otared Kavian Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Date: Thu, 14 Mar 2024 14:48:50 +0100 References: <0EF874D1-7CDD-4E1D-93BB-779BF06D57F2@gmail.com> <15F93AA1-36F7-4897-BC44-09007AFC45D2@getmailspring.com> To: mailing list for ConTeXt users In-Reply-To: <15F93AA1-36F7-4897-BC44-09007AFC45D2@getmailspring.com> Message-Id: <361B8E66-54C4-43E3-8CC2-F78A904BE096@gmail.com> X-Mailer: Apple Mail (2.3654.120.0.1.15) Message-ID-Hash: ILO3F6GYRFX2YU3VAX5XQK74VISIFJ7J X-Message-ID-Hash: ILO3F6GYRFX2YU3VAX5XQK74VISIFJ7J X-MailFrom: otared@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: Japanese List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7795725383055261726==" --===============7795725383055261726== Content-Type: multipart/alternative; boundary="Apple-Mail=_9D528A2A-CCA9-4400-92C7-222D4C31DF56" --Apple-Mail=_9D528A2A-CCA9-4400-92C7-222D4C31DF56 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Emmanuel, Thank you for your reply: indeed I understand your approach, which is = quite efficient. I am not at all good in coding, so I naively thought = there would be a way for your setup to retrieve the information it needs = from what the user is doing. Maybe once things are settled, Hans and = Wolfgang will have a look in the Japanese part of ConTeXt so that the = user can avoid to enter the setup included in the \directlua part. Again thank you for what you are sharing. Best regards: Otared > On 14 Mar 2024, at 08:12, Emanuel Han via ntg-context = wrote: >=20 > Dear Otared, >=20 > when you read the lua code in the first \directlua{}, you should = realize that the dimensions of almost all layout elements are depending = on the value of my lua variable "paperSize". > Thanks to defining the paper size first in lua, I can apply = calculations of numeric values. >=20 > The value of paperSize is later passed on to \setuppapersize via = \setuppapersize[\directlua{tex.print(paperSize)}] >=20 > Emanuel > On M=C3=A4rz 13 2024, at 3:55 pm, Otared Kavian = wrote: > Hi Emmanuel, >=20 > Thank you so much for the new setup for writing Japanese: I tested = with both files, and noticed that with the new version the output looks = great. >=20 > I have a question about the code in the \directlua{} part of your = setup: why, for instance, the > paperSize =3D =C2=AB B5" > is defined =C2=AB by hand =C2=BB there, instead of being retrieved = from the command > \setuppapersize[B5] > issued by the user? >=20 > Actually I am using your setup for learning Japanese, and at my = beginner=E2=80=99s level I do separate words I am learning with spaces. = While with the previous version of your setup the lines were breaking = womewhat strangely, but now the spaces between words in the output are = as I intended them to be (I should also Thank Wolfgang Schuster for his = insight with the \script[nihongo], and indeed Hans for fixing so quickly = the slightest bug). >=20 > It is really a great pleasure to be in this community where help comes = from everyone and features are given on demand ! >=20 > Best regards: Otared >=20 > > On 10 Mar 2024, at 17:43, Emanuel Han via ntg-context = wrote: > > > > Hi all, > > > > I added = https://wiki.contextgarden.net/Chinese_Japanese_and_Korean#Meeting_the_JIS= _X_4051_Requirements_for_Japanese_Text_Layout > > with attached working example code and to-do list. > > > > Thanks for any contributions! > > > > The working example code is still a work in progress. Its text = layout output meets already some of the requirements (see comments in = the code). Among the ones to still be implemented are: > > > > =E2=80=A2 solid setting (no extra spacing between characters) = https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for = line-adjustment https://www.w3.org/TR/jlreq/#term.line-adjustment > > =E2=80=A2 aligning of the lines to the Kihon-hanmen (optimizing the = code below in this regard) > > =E2=80=A2 positioning and realm of headings = https://www.w3.org/TR/jlreq/#fig3_1_9 = https://www.w3.org/TR/jlreq/#fig3_1_15 et al, and = https://www.w3.org/TR/jlreq/#fig3_1_4 > > =E2=80=A2 positioning of yokugo-ruby = https://www.w3.org/TR/jlreq/#fig2_3_24 > > =E2=80=A2 inline cutting note (warichu) = https://www.w3.org/TR/jlreq/#fig2_4_1 > > =E2=80=A2 emphasis with sesame dot or bullet > > =E2=80=A2 itemization https://www.w3.org/TR/jlreq/#fig2_5_6 > > =E2=80=A2 indenting of quotation paragraphs = https://www.w3.org/TR/jlreq/#fig2_5_7 > > =E2=80=A2 tab setting https://www.w3.org/TR/jlreq/#fig2_6_1 > > =E2=80=A2 furiwake https://www.w3.org/TR/jlreq/#fig2_7_2 > > =E2=80=A2 jidori https://www.w3.org/TR/jlreq/#fig2_7_4 > > =E2=80=A2 math https://www.w3.org/TR/jlreq/#fig2_7_6 and = https://www.w3.org/TR/jlreq/#fig2_7_62 > > =E2=80=A2 tategaki (writing vertically) > > Best regards > > > > Emanuel > > On M=C3=A4rz 2 2024, at 7:00 pm, Wolfgang Schuster = wrote: > > Emanuel Han schrieb am 01.03.2024 um 16:23: > > > > Dear Wolfgang, > > > > thank you for your valuable remarks. I integrated them, see = corrected attached example. > > > > Yes, correct layout examples exist. They're all showing vertical = writing, but the rules and principles are exactly the same for = horizontal writing. > > > > =E2=80=A2 position of the headers and footers: = https://www.w3.org/TR/jlreq/#fig1_30 > > > > See my attached gongitsune.tex example how you can squeeze text in a = very narrow header/footer. > > > > =E2=80=A2 aligning lines to the text box: = https://www.w3.org/TR/jlreq/#fig1_3 > > > > You can use the lines key for \setuplayout to let ConTeXt calculate = the necessary value for the text height. > > > > =E2=80=A2 protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6 > > > > You're getting this for free because ruby text doesn't take up = vertical space, in case vertical text is working it would now stick into = the margins as expected. > > > > \starttext > > \ruledhbox{a \ruby{x}{y} b} > > \stoptext > > > > > > > > In my previous mail, I wrote wrong amounts of lines. They should be = 46 lines on one page, while the actual example doesn't show the 46th = line. > > > > It would be important to identify the reason why only 24 characters = are used to create a line when 25 could be used. Then we can develop a = method to turn that mechanism off or circumvent it. > > Quotation from https://www.w3.org/TR/jlreq: > > In principle, when composing a line with ideographic (cl-19), = hiragana (cl-15) and katakana (cl-16) characters, no extra spacing = appears between their character frame. This is called solid setting (see = Figure 5). > > > > 1. ConTeXt has a mechanism to typeset Japanese texts. > > > > 2. There are flaws in the output it produces but this nothing which = can't be fixed. > > > > 3. To fix the problems someone has to be passionate to fix them and = we're willing to help here. > > > > As you can see in my second example file japanese.tex there is a = font feature to create half sized parentheses etc. which isn't supported = yet by ConTeXt's mechanism for japanese and in case your willing to = improve it this should be taken care of as well. > > > > Wolfgang > > = ________________________________________________________= ___________________________ > > 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 > > = __________________________________________________________________________= _________ >=20 > Otared Kavian > e-mail: otared@gmail.com > Phone: +33 6 88 26 70 95 >=20 >=20 >=20 >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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! >=20 > 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 > = __________________________________________________________________________= _________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 --Apple-Mail=_9D528A2A-CCA9-4400-92C7-222D4C31DF56 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear = Emmanuel,

Thank you = for your reply: indeed I understand your approach, which is quite = efficient. I am not at all good in coding, so I naively thought there = would be a way for your setup to retrieve the information it = needs from what the user is doing. Maybe once things are settled, Hans = and Wolfgang will have a look in the Japanese part of ConTeXt so that = the user can avoid to enter the setup included in the \directlua = part.

Again = thank you for what you are sharing.

Best regards: Otared

On 14 Mar 2024, at 08:12, Emanuel Han via ntg-context <ntg-context@ntg.nl> = wrote:

Dear Otared,

when you = read the lua code in the first \directlua{}, you should realize that the = dimensions of almost all layout elements are depending on the value of = my lua variable "paperSize".
Thanks to defining = the paper size first in lua, I can apply calculations of numeric values. =

The value of paperSize is later = passed on to \setuppapersize via = \setuppapersize[\directlua{tex.print(paperSize)}]

Emanuel
On M=C3=A4= rz 13 2024, at 3:55 pm, Otared Kavian <otared@gmail.com> = wrote:
Hi = Emmanuel,

Thank you so much for the = new setup for writing Japanese: I tested with both files, and noticed = that with the new version the output looks great.

I have a question about the code in the \directlua{} part of = your setup: why, for instance, the
paperSize =3D =C2=AB= B5"
is defined =C2=AB by hand =C2=BB there, = instead of being retrieved from the command
\setuppapersize[B5]
issued by the = user?

Actually I am using your setup = for learning Japanese, and at my beginner=E2=80=99s level I do separate = words I am learning with spaces. While with the previous version of your = setup the lines were breaking womewhat strangely, but now the spaces = between words in the output are as I intended them to be (I should also = Thank Wolfgang Schuster for his insight with the \script[nihongo], and = indeed Hans for fixing so quickly the slightest bug).

It is really a great pleasure to be in this = community where help comes from everyone and features are given on = demand !

Best regards: = Otared

> On 10 Mar 2024, at = 17:43, Emanuel Han via ntg-context <ntg-context@ntg.nl> = wrote:
>
> Hi = all,
>
> with attached working example code and to-do = list.
>
> Thanks for any = contributions!
>
> The = working example code is still a work in progress. Its text layout output = meets already some of the requirements (see comments in the code). Among = the ones to still be implemented are:
>
> =E2=80=A2 solid setting (no extra spacing between = characters) https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for = line-adjustment https://www.w3.org/TR/jlreq/#term.line-adjustment
> =E2=80=A2 aligning of the lines to the Kihon-hanmen = (optimizing the code below in this regard)
> =E2=80=A2 positioning of yokugo-ruby https://www.w3.org/TR/jlreq/#fig2_3_24
> =E2=80=A2 inline cutting note (warichu) https://www.w3.org/TR/jlreq/#fig2_4_1
> =E2=80=A2 emphasis with sesame dot or bullet
> =E2=80=A2 indenting of quotation paragraphs https://www.w3.org/TR/jlreq/#fig2_5_7
> =E2=80=A2 tategaki (writing vertically)
> Best regards
>
> Emanuel
> On M=C3=A4rz 2 2024, = at 7:00 pm, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
> Emanuel Han schrieb am 01.03.2024 um 16:23:
>
> Dear Wolfgang,
>
> thank you for your valuable = remarks. I integrated them, see corrected attached example.
>
> Yes, correct layout examples = exist. They're all showing vertical writing, but the rules and = principles are exactly the same for horizontal writing.
>
> =E2=80=A2 position of the = headers and footers: https://www.w3.org/TR/jlreq/#fig1_30
>
> See my attached gongitsune.tex = example how you can squeeze text in a very narrow = header/footer.
>
> =E2=80=A2= aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3
>
> You can use the lines key for = \setuplayout to let ConTeXt calculate the necessary value for the text = height.
>
> =E2=80=A2 = protrusion of ruby: https://www.w3.org/TR/jlreq/#fig_ad1_6
>
> You're getting this for free = because ruby text doesn't take up vertical space, in case vertical text = is working it would now stick into the margins as expected.
>
> \starttext
> \ruledhbox{a \ruby{x}{y} b}
> = \stoptext
>
>
>
> In my previous mail, I wrote = wrong amounts of lines. They should be 46 lines on one page, while the = actual example doesn't show the 46th line.
>
> It would be important to = identify the reason why only 24 characters are used to create a line = when 25 could be used. Then we can develop a method to turn that = mechanism off or circumvent it.
> Quotation from = https://www.w3.org/TR/jlreq:
> In = principle, when composing a line with ideographic (cl-19), hiragana = (cl-15) and katakana (cl-16) characters, no extra spacing appears = between their character frame. This is called solid setting (see Figure = 5).
>
> 1. ConTeXt has a = mechanism to typeset Japanese texts.
>
> 2. There are flaws in the output it produces but this = nothing which can't be fixed.
>
> 3. To fix the problems someone has to be passionate to = fix them and we're willing to help here.
>
> As you can see in my second = example file japanese.tex there is a font feature to create half sized = parentheses etc. which isn't supported yet by ConTeXt's mechanism for = japanese and in case your willing to improve it this should be taken = care of as well.
>
> = Wolfgang
> = <japanese_mwe.tex>__________________________________________________= _________________________________
> 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
> = __________________________________________________________________________= _________

Otared Kavian
Phone: +33 6 88 26 70 = 95




_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________
_____________________________= ______________________________________________________
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.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive =  : https://github.com/contextgarden/context
wiki=     : https://wiki.contextgarden.net
_______________________________________________________________= ____________________

Otared Kavian
Phone: +33 6 88 26 70 95




= --Apple-Mail=_9D528A2A-CCA9-4400-92C7-222D4C31DF56-- --===============7795725383055261726== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============7795725383055261726==--