From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HTML_MESSAGE,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15506 invoked from network); 30 Apr 2023 10:43:14 -0000 Received: from zapf.ntg.nl (5.39.185.232) by inbox.vuxu.org with ESMTPUTF8; 30 Apr 2023 10:43:14 -0000 Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 551391C2C8D; Sun, 30 Apr 2023 12:42:54 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qh9Y7Cmugd15; Sun, 30 Apr 2023 12:42:52 +0200 (CEST) Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4DCAF1C2B62; Sun, 30 Apr 2023 12:42:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 189BD1C2B62 for ; Sun, 30 Apr 2023 12:42:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.ntg.nl Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pr3XI4PjZun7 for ; Sun, 30 Apr 2023 12:42:50 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.42; helo=mail-ed1-f42.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 zapf.ntg.nl (Postfix) with ESMTPS id 30D1C1C1009 for ; Sun, 30 Apr 2023 12:42:50 +0200 (CEST) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-506c04dd879so2498795a12.3 for ; Sun, 30 Apr 2023 03:42:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682851369; x=1685443369; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:from:to:cc:subject:date :message-id:reply-to; bh=HCeR0z7IJNs5gIc7/6BaD+zwGoKtgl+VMvd+QzWYJR4=; b=GZcH2rLIs2CgrFzdWawsb/J8bmTHyAzN6Nkq2/8l5ZGOz0hxtzgZHueKcmb/gma2VJ F9E9D8TX6CgVnOTkkPX0aoMrvTsPawU6J4fV1CzBnTQAs8tjrpidY7Rn/hn/9QRjYOEN 1b40ggQWltY4B6GkfJe6HX9WUl5Ora4Ku8MjKcuwBiLiXgdbwjCQu5yxIhqaVr/vPzSw /GtwtmT9BxH/Dn0f3cOrAPIUOWnjKnNad7sDDRsUaICOx6Rqtv4kpWUbJtDxvBVqmt7C mCYFekWSliolRQ55rfaHsjEC3OrljGWxg5Ws93qZd/8DhWNVpeH/2UcbkDLSyxxk0s2Y tnRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682851369; x=1685443369; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HCeR0z7IJNs5gIc7/6BaD+zwGoKtgl+VMvd+QzWYJR4=; b=M/HL9A5igIlgsUuHm6b0JmMImGZa//y8zH66Y17ugekv12QA65JycHC8StXI9bEYmc /XXbFquiJ9hsI+44LE7mgeOipe2jMxZFiyLM2qWe1GBJ/ZydQEoBopYVou7na04kMWm1 cF9WCpnp9AL0yBCQLub39jSc8LLCXTpmKKV5SiYzWRRefVVnwiBOPwwRXWpBBnQMTTO0 sEsCBHW+ENTwmg4WEBUlxfSTh1Yl2L/HwrofiHPfFk3hQvg+XscTtQteIpq+gneU4M8h +pMHndYdWEiUpJKO6na1Eo7REVSR4xctyrn1TnK7B58G8mYZ7eqLWUrdf1p7FPISG58Y 3SoA== X-Gm-Message-State: AC+VfDymVn3kuOausIb0YBA/3h19/9QSzvSS2JbJQvu09+cooY4QimBa 1uvHSzY0952PgECVwX9z+dgwctqRjI4= X-Google-Smtp-Source: ACHHUZ4UiajvmzwOO3P+QY69xxYNjlwH1vF55MkP3EIwgjQt/Nw6pxxgELhMwnucJNCQ2stzZvBVow== X-Received: by 2002:aa7:cc88:0:b0:509:c6e6:c002 with SMTP id p8-20020aa7cc88000000b00509c6e6c002mr3633600edt.39.1682851369513; Sun, 30 Apr 2023 03:42:49 -0700 (PDT) Received: from ?IPv6:2a02:810d:a8bf:fe08::fbb? ([2a02:810d:a8bf:fe08::fbb]) by smtp.gmail.com with ESMTPSA id n20-20020aa7d054000000b004fc01b0aa55sm11171637edo.4.2023.04.30.03.42.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Apr 2023 03:42:49 -0700 (PDT) To: mailing list for ConTeXt users References: <71493015-436b-bf88-9c66-883aa59dda07@gmail.com> <7B63FFB4-A181-43BF-A562-2C9CEAB64C21@rna.nl> Message-ID: Date: Sun, 30 Apr 2023 12:42:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.60 MIME-Version: 1.0 In-Reply-To: <7B63FFB4-A181-43BF-A562-2C9CEAB64C21@rna.nl> Content-Language: en-US Subject: Re: [NTG-context] Linebreaking in Japanese in ConTeXt X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.38 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wolfgang Schuster via ntg-context Reply-To: mailing list for ConTeXt users Cc: Wolfgang Schuster Content-Type: multipart/mixed; boundary="===============5220273171554210908==" Errors-To: ntg-context-bounces@ntg.nl Sender: "ntg-context" This is a multi-part message in MIME format. --===============5220273171554210908== Content-Type: multipart/alternative; boundary="------------01A1C17CF87A95DFB2433022" Content-Language: en-US This is a multi-part message in MIME format. --------------01A1C17CF87A95DFB2433022 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 30.04.2023 um 10:48: >> On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context >> > wrote: >> >> %%%% begin example >> \definefontfamily [noto-jp] [rm] [Noto Serif CJK JP] >> \definefontfamily [noto-jp] [ss] [Noto Sans CJK JP] >> \definetypeface   [noto-jp] [mm] [math] [pagella] [default] >> >> \setupbodyfont [noto-jp] >> >> \mainlanguage [ja] >> >> \setscript [nihongo] > > Thank you. > > How do I change that in my setup? > > My setup is creating the same stuff in different languages from XML > input (LMTX using lua and METAPOST), which means I need to adapt the > following setup (cyrillic and greek shown as the other languages with > different character sets I use) > > \startmode[JA] > \setuplanguage[ja][patterns={ja}]\mainlanguage[ja] > \stopmode When your document prints only text in a single language change the setup above to     \startmode [JA]         \setscript [nihongo]         \mainlanguage [ja]     \stopmode but for documents which use multiple script/languages at the same time replace the previous setup with     \startsetups [japanese]         \setscript [nihongo]     \stopsetups     \setuplanguage [ja] [setups=japanese] and add \language[ja] before japanese text to ensure linebreaking is enabled. Wolfgang --------------01A1C17CF87A95DFB2433022 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Gerben Wierda via ntg-context schrieb am 30.04.2023 um 10:48:
On 30 Apr 2023, at 10:04, Wolfgang Schuster via ntg-context <ntg-context@ntg.nl> wrote:

%%%% begin example
\definefontfamily [noto-jp] [rm] [Noto Serif CJK JP]
\definefontfamily [noto-jp] [ss] [Noto Sans CJK JP]
\definetypeface   [noto-jp] [mm] [math] [pagella] [default]

\setupbodyfont [noto-jp]

\mainlanguage [ja]

\setscript [nihongo]

Thank you.

How do I change that in my setup?

My setup is creating the same stuff in different languages from XML input (LMTX using lua and METAPOST), which means I need to adapt the following setup (cyrillic and greek shown as the other languages with different character sets I use)

\startmode[JA]
\setuplanguage[ja][patterns={ja}]\mainlanguage[ja]
\stopmode

When your document prints only text in a single language change the setup above to

    \startmode [JA]
        \setscript [nihongo]
        \mainlanguage [ja]
    \stopmode

but for documents which use multiple script/languages at the same time replace the previous setup with

    \startsetups [japanese]
        \setscript [nihongo]
    \stopsetups

    \setuplanguage [ja] [setups=japanese]

and add \language[ja] before japanese text to ensure linebreaking is enabled.

Wolfgang

--------------01A1C17CF87A95DFB2433022-- --===============5220273171554210908== 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://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 ___________________________________________________________________________________ --===============5220273171554210908==--