From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/112183 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: languages Date: Sun, 18 Jul 2021 21:37:10 +0200 Message-ID: <9dcd8377-e695-b371-4c43-0db84167dbf0@gmail.com> References: <3DC2AB5C-197E-495F-A74C-1D04BD576A83@ziggo.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6424220824231025561==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16831"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.48 To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 18 21:37:59 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5Cbv-0004Cu-QJ for gctc-ntg-context-518@m.gmane-mx.org; Sun, 18 Jul 2021 21:37:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4DA66285D8F; Sun, 18 Jul 2021 21:37:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 LpU-AQCsMWmO; Sun, 18 Jul 2021 21:37:15 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DA995285D8E; Sun, 18 Jul 2021 21:37:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 349B4285D76 for ; Sun, 18 Jul 2021 21:37:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-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 dqDbRCNrQBx6 for ; Sun, 18 Jul 2021 21:37:13 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.52; helo=mail-wm1-f52.google.com; envelope-from=wolfgang.schuster.lists@gmail.com; receiver= Original-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4A8052854FF for ; Sun, 18 Jul 2021 21:37:13 +0200 (CEST) Original-Received: by mail-wm1-f52.google.com with SMTP id y21-20020a7bc1950000b02902161fccabf1so11468735wmi.2 for ; Sun, 18 Jul 2021 12:37:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=O7w4ENiz3THJjmsbiXfa3hJnHgXIlMmNkfoFq/vxN/c=; b=Ump5G99QAAkmtgFZHSD7vX0uxZ24FuDwo31ah51BJGPmZ3/5iSTIz5g5dJDSCpPXLf 1dOpG3XaLQXN3xDp5F4qowbT1MdwKJKtdJkVKAxDGLytpjhrDEWtj8t9ODJG6TZolBKe wbTnlASooy99fcMQxIemao1m1H1cgszTzdPNhwN5U7it352bt+i/DV7Lk320kflA4pNn 2Q1Deh16jG9L0k3Fx4manXwsueSKBZGikouavorqpjIFXz8tEBwzdN563MAR+fLzTAVb 2JwnWPtHL3D7zyouLr7WvlasPBTJFpZTN1E6of6ZVXIn9yP9wkOuq0uKnC51WLj8iKon OKiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=O7w4ENiz3THJjmsbiXfa3hJnHgXIlMmNkfoFq/vxN/c=; b=sddAAo6obuiRakM/lFPMoYwufVYn+UU5/MuZxRwpGn3a/Swam8Yk/dZ9KCGSyqWrql wryj4maDkhjidqh9wWrLV+9kcxfo/H0R7ru3p/jRRvOTnN01d5PASa+Xe5+EVnepsrfH lNpwBEfAlZvNiPzVM2NLSVx0OMCRjZZUtzE04FWR74NXsEET8YH4hhgC2BaMSZIN2kEj qkf/rff1UD1KtJc4VKAhKwBghOGzgy+rNYMD/JovJe98y6d1y9iCcHndT+KYLokJVaz5 NYo9heb2OcPPL0Gjfh8dUrjUBa+gPkHeI//ZcGVUW5p5J7KKXqGnKpY+8tI4Y+FDzJqf YDjA== X-Gm-Message-State: AOAM5317ya/exp1v6cLd/C7ikgpVTyxoUOmcp8UPmrTpSvRAea5zoVDm 1Q0H6k7gDuFwv39rl/1f/cs= X-Google-Smtp-Source: ABdhPJwDrBALNOYaHXi3SoIbGN+1jgvNNLsaIAuY/nX48+sN5VSb/87IhtJpAT4l4ODfJKe4ADBCbQ== X-Received: by 2002:a7b:ce8b:: with SMTP id q11mr21922256wmj.80.1626637032894; Sun, 18 Jul 2021 12:37:12 -0700 (PDT) Original-Received: from ?IPv6:2a02:810d:a8bf:d45c:8d91:b306:6819:4e66? ([2a02:810d:a8bf:d45c:8d91:b306:6819:4e66]) by smtp.gmail.com with ESMTPSA id r18sm18033957wrt.96.2021.07.18.12.37.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jul 2021 12:37:12 -0700 (PDT) In-Reply-To: <3DC2AB5C-197E-495F-A74C-1D04BD576A83@ziggo.nl> Content-Language: en-US X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:112183 Archived-At: This is a multi-part message in MIME format. --===============6424220824231025561== Content-Type: multipart/alternative; boundary="------------A38D4A800ACF217A8181348D" Content-Language: en-US This is a multi-part message in MIME format. --------------A38D4A800ACF217A8181348D Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hans van der Meer schrieb am 18.07.2021 um 16:39: > Here is something I think that should be added to the documentation. > > /In the ConTeXt garden (page Command/mainlanguage) the description is:/ > > mainlanguage Set the language of auto-generated language elements, > like the title of the table of contents or the appendix. > > /On the Command/language page:/ > > Change the hyphenation rules, quotation marks, all that sort of thing, > to that of a different language. (The default language is English.) > > Testing showed that \mainlanguage sets both \currentlanguage and > \currentmainlanguage to the same value, while \language sets > \currentlanguage only. > > My suggestion is to add info to this behaviour to the mainlanguage > page, reflecting the fact that \mainlanguage does set both > \currentlanguage and \currentmainlanguage.Which is not apparent from > the current documentation. It's a wiki, it's possible to add the information yourself. > Another solution would be to separate \language and \mainlanguage > completely. An option I would prefer for clarity, because now the > order of calling \language and \mainlanguage makes a difference. 1. You're breaking nearly every existing document. 2. \language is only needed when you use more than 1 language in a document, otherwise \mainlanguage is enough to change labels and hyphentation patterns. Wolfgang --------------A38D4A800ACF217A8181348D Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Hans van der Meer schrieb am 18.07.2021 um 16:39:
Here is something I think that should be added to the documentation.

In the ConTeXt garden (page Command/mainlanguage) the description is:

mainlanguage Set the language of auto-generated language elements, like the title of the table of contents or the appendix.

On the Command/language page:

Change the hyphenation rules, quotation marks, all that sort of thing, to that of a different language. (The default language is English.)

Testing showed that \mainlanguage sets both \currentlanguage and \currentmainlanguage to the same value, while \language sets \currentlanguage only.

My suggestion is to add info to this behaviour to the mainlanguage page, reflecting the fact that \mainlanguage does set both \currentlanguage and \currentmainlanguage.Which is not apparent from the current documentation. 

It's a wiki, it's possible to add the information yourself.

Another solution would be to separate \language and \mainlanguage completely. An option I would prefer for clarity, because now the order of calling \language and \mainlanguage makes a difference.

1. You're breaking nearly every existing document.

2. \language is only needed when you use more than 1 language in a document, otherwise \mainlanguage is enough to change labels and hyphentation patterns.

Wolfgang

--------------A38D4A800ACF217A8181348D-- --===============6424220824231025561== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6424220824231025561==--