From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107862 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Garulfo Newsgroups: gmane.comp.tex.context Subject: Re: Translation of ConTeXt interface Date: Fri, 26 Jun 2020 23:38:48 +0200 Message-ID: References: <5163FD98-A4A0-4545-95FF-86E3F6B3B0A5@elvenkind.com> <275687af-5e3b-b548-24b3-fa00892182d5@azules.eu> <20200526003645.GA893@akela.mendelu.cz> <12930461-C6D9-4BB5-A181-19AF13648AE3@bittext.nl> <14bec8e6-bf23-1af3-7ef6-7b1625ab946e@azules.eu> <2b781da3-a54f-fa17-472c-88681327d3ea@azules.eu> <7b986791-73ca-4a8f-eda9-c5d4b64d83cf@gmail.com> <6ec90a28-dcb8-dca0-3586-918d1be04710@azules.eu> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------EB387EA0A57DEE7B814BD793" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="24073"; mail-complaints-to="usenet@ciao.gmane.io" To: Wolfgang Schuster , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 26 23:39:23 2020 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 1jow4B-0006FH-9L for gctc-ntg-context-518@m.gmane-mx.org; Fri, 26 Jun 2020 23:39:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BF68218524A; Fri, 26 Jun 2020 23:38:58 +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 3FAnPablb7Cc; Fri, 26 Jun 2020 23:38:57 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D5409185268; Fri, 26 Jun 2020 23:38:57 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BFE42185266 for ; Fri, 26 Jun 2020 23:38:57 +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 AG4NTBaRIzZm for ; Fri, 26 Jun 2020 23:38:56 +0200 (CEST) Received-SPF: Softfail (mailfrom) identity=mailfrom; client-ip=80.12.242.134; helo=smtp.smtpout.orange.fr; envelope-from=garulfo@azules.eu; receiver= Original-Received: from smtp.smtpout.orange.fr (smtp12.smtpout.orange.fr [80.12.242.134]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6620318524A for ; Fri, 26 Jun 2020 23:38:56 +0200 (CEST) Original-Received: from azules.eu ([90.3.194.237]) by mwinf5d23 with ME id vxev2200257nBxE03xev2k; Fri, 26 Jun 2020 23:38:55 +0200 X-ME-Helo: azules.eu X-ME-Auth: ZGF2aWQubWFyc2FsQG9yYW5nZS5mcg== X-ME-Date: Fri, 26 Jun 2020 23:38:55 +0200 X-ME-IP: 90.3.194.237 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=azules.eu; s=mailkey; t=1593207528; bh=afa5zU5qTN5tHAuX7jlHKu0Fj3OhXLUj6xGNwYBFnOQ=; h=Subject:To:References:From:Date:In-Reply-To; b=UyQ6kpNUKf8jH0GkGoPEFOazgLowh9fvUKFKKJSQHyz8c6hO+KCHDCcRDUdoBDcYL T0UdEHlMLcgGH+59X4WjAfF7mpY84M22HE1sEb2TtVyo8WogM57hBWgOrt0npZjjPh Y6ySq6rA4pL+Xn/kj1WcC2QlqkadDPim6X0XhfXM= In-Reply-To: Content-Language: fr X-MailScanner-ID: 9349A283072.A0A53 X-MailScanner: Found to be clean X-MailScanner-From: garulfo@azules.eu 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:107862 Archived-At: This is a multi-part message in MIME format. --------------EB387EA0A57DEE7B814BD793 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit >> So, I'm still doing something wrong, because changing the translation >> of "figure" in "mult-def.lua" (in the part "variables"), only affect : >> 1- command "\startfigure    \stopfigure" >> 2- "figure" in "\setuppageinjection" > alternative = figure buffer... > You have to provide your modified mult-def.lua file, otherwise there is > no way to check what's wrong. Patch file : mult-def.lua.test1_figure.diff context --make fr context --interface=fr --global --result=setup-fr x-setups-overview.mkiv Then the pdf file shows - \demarrefigurefr as expected (p62) but - \placefigure instead of \placefigurefr (p190) - \demarreplacefigure instead of \demarreplacefigurefr (p72) >> the translation of the variable "itemize" has no impact on the >> setup-fr.pdf file produced >> But, I just found that if I actually use the translated commands in a >> test.tex file, it just works. > Same as above, provide your translations. Patch file : mult-def.lua.test2_itemize.diff Input file : test2_itemize.tex context --make fr context --interface=fr --global --result=setup-fr x-setups-overview.mkiv context test2_itemize.tex setup-fr.pdf shows "\debutitemize ... \finitemize" page 41 instead of "\debutlister ... \finlister" but the input file, with "\debutlister ... \finlister", works great. > There shouldn't be a problem with fonts because they use \s!file or > \s!name which aren't translated (unless you made the mistake and have > \c!file in your typescripts). It's possible there is a bug somewhere but > you have to provide a minimal example. Understood, I am going to check. --------------EB387EA0A57DEE7B814BD793 Content-Type: text/x-patch; charset=UTF-8; name="mult-def.lua.test1_figure.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="mult-def.lua.test1_figure.diff" --- mult-def.lua.initial 2020-06-26 10:40:39.000000000 +0200 +++ mult-def.lua 2020-06-26 14:21:55.598929654 +0200 @@ -13522,7 +13522,7 @@ ["cs"]="obrazek", ["de"]="abbildung", ["en"]="figure", - ["fr"]="figure", + ["fr"]="figurefr", ["it"]="figura", ["nl"]="figuur", ["pe"]="شکل", --------------EB387EA0A57DEE7B814BD793 Content-Type: text/x-patch; charset=UTF-8; name="mult-def.lua.test2_itemize.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="mult-def.lua.test2_itemize.diff" --- mult-def.lua.initial 2020-06-26 10:40:39.000000000 +0200 +++ mult-def.lua 2020-06-26 23:16:25.039895542 +0200 @@ -5444,7 +5444,7 @@ ["cs"]="starttext", ["de"]="starttext", ["en"]="starttext", - ["fr"]="demarretexte", + ["fr"]="debuttexte", ["it"]="iniziatesto", ["nl"]="starttekst", ["pe"]="شروع‌متن", @@ -5846,7 +5846,7 @@ ["cs"]="stoptext", ["de"]="stoptext", ["en"]="stoptext", - ["fr"]="stoppetexte", + ["fr"]="fintexte", ["it"]="terminatesto", ["nl"]="stoptekst", ["pe"]="پایان‌متن", @@ -10758,7 +10758,7 @@ ["cs"]="start", ["de"]="start", ["en"]="start", - ["fr"]="demarre", + ["fr"]="debut", ["it"]="inizia", ["nl"]="start", ["pe"]="شروع", @@ -10792,7 +10792,7 @@ ["cs"]="stop", ["de"]="stop", ["en"]="stop", - ["fr"]="stoppe", + ["fr"]="fin", ["it"]="termina", ["nl"]="stop", ["pe"]="پایان", @@ -11861,7 +11861,7 @@ ["cs"]="start", ["de"]="start", ["en"]="start", - ["fr"]="demarre", + ["fr"]="debut", ["it"]="inizia", ["nl"]="start", ["pe"]="شروع", @@ -11871,7 +11871,7 @@ ["cs"]="stop", ["de"]="stop", ["en"]="stop", - ["fr"]="stoppe", + ["fr"]="fin", ["it"]="termina", ["nl"]="stop", ["pe"]="پایان", @@ -14398,7 +14398,7 @@ ["cs"]="polozka", ["de"]="pos", ["en"]="item", - ["fr"]="element", + ["fr"]="elem", ["it"]="elemento", ["nl"]="som", ["pe"]="آیتم", @@ -14407,7 +14407,7 @@ ["itemize"]={ ["cs"]="vycet", ["de"]="aufzaehlung", - ["en"]="itemize", + ["en"]="lister", ["fr"]="lister", ["it"]="elenco", ["nl"]="opsomming", @@ -16505,7 +16505,7 @@ ["cs"]="start", ["de"]="start", ["en"]="start", - ["fr"]="demarre", + ["fr"]="debut", ["it"]="inizia", ["nl"]="start", ["pe"]="شروع", @@ -16529,7 +16529,7 @@ ["cs"]="stop", ["de"]="stop", ["en"]="stop", - ["fr"]="stoppe", + ["fr"]="fin", ["it"]="termina", ["nl"]="stop", ["pe"]="پایان", --------------EB387EA0A57DEE7B814BD793 Content-Type: text/x-tex; charset=UTF-8; name="test2_itemize.tex" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test2_itemize.tex" % interface=fr \debuttexte texte avant \debutlister \elem premier \elem second \finlister texte ensuite \fintexte --------------EB387EA0A57DEE7B814BD793 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== --------------EB387EA0A57DEE7B814BD793--