From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99486 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Sava_Maksimovi=C4=87?= Newsgroups: gmane.comp.tex.context Subject: ASCII input - non ASCII output Date: Tue, 7 Nov 2017 13:48:04 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4040753384339886939==" X-Trace: blaine.gmane.org 1510058914 10962 195.159.176.226 (7 Nov 2017 12:48:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 12:48:34 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 07 13:48:28 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC3In-0002Vz-KF for gctc-ntg-context-518@m.gmane.org; Tue, 07 Nov 2017 13:48:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9E6AB1022057; Tue, 7 Nov 2017 13:48:19 +0100 (CET) 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 X0fLO-lKtBAy; Tue, 7 Nov 2017 13:48:19 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 038C610203DD; Tue, 7 Nov 2017 13:48:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA29710203DD for ; Tue, 7 Nov 2017 13:48:17 +0100 (CET) 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 VJEzaXc-EqX9 for ; Tue, 7 Nov 2017 13:48:17 +0100 (CET) Original-Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4406F10203D4 for ; Tue, 7 Nov 2017 13:48:07 +0100 (CET) Original-Received: by mail-oi0-f46.google.com with SMTP id a132so9978119oih.11 for ; Tue, 07 Nov 2017 04:48:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0KyMojkEV/XVPimMV52UlvC5c+nVeQxRNlRGOw2Nt/E=; b=t9rlwzhoG9sLaugRkuneSoLTb2JYs2P2GnM4VSOW5xruWec1X0irLPVhD5gYQ8W2KB 3mGIB574gyUNC5CUWDjt5yq+dJ8KAA3lBZGE1CUQYOxiXRmx8K+qGGjC37yvBGjd0hsF Hvw/ISkT742cZmmJgLiLs3THf6pwSGSoAf06En2WYsbsmgXAA3UoL7tQKaPdTc8fIExp ntYtoZHiO1QhB5MEQdcypgHeRN/ax4j0CJoqVQu/5TFgbR3LGNX7HENX4JQ97uY4+y1S g7p023Y1VaOrQqu+zdKcqhXojsc2AZTMZIk7ETttAS6P3BvzctG4bMArxvhwDTYBDFD9 0vog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0KyMojkEV/XVPimMV52UlvC5c+nVeQxRNlRGOw2Nt/E=; b=QwKn2zh87qoacKrQFJXn9yzzzxc2QeVCqYmSkvmqqXQltvrgM4W1CQv91bpZJlj3RJ HwRbyn9Gkr/YoMqOthIZ5UpNk1KH/9w4PtnRZoouZbbYFPya5Y/kKDTY2j370/EjPQg8 Hns3AQCvPIFygQANNY5Z9DNxW9MxxSGtBsG4Pdn8/uv0vahkhBrHKJXJO6nirk5xhymZ g2Law+ZINVcWO+Lf0BoPmkRPKnmlPGnFOhycjBvnN3ig1qRv10HJqTLOzAJ4DAFrfzUJ rlMEamNms+i9v3xAr20YBVyKyPQwtf2x5KNO4BULEiJjbfMJpeuRgEnU5jO0QiJyfmMs 8cdA== X-Gm-Message-State: AMCzsaVCKMjdyJc64smAteCWC68dARnl33MYMmVOgNfntVtMQkzQzTid Lo0IYg8OFOOwwh7YvwLE9SZiXtrWJh5v1yI+Sfd9So/l X-Google-Smtp-Source: ABhQp+SnrHDwH9WxOISOPvbcoZfER+Yn/wtxEZw/pGchl7gbctT0RUc+UDiH3pob8wRPiMxbCIxTrGOh1v5eh1rOhrM= X-Received: by 10.202.1.75 with SMTP id 72mr10451051oib.107.1510058885480; Tue, 07 Nov 2017 04:48:05 -0800 (PST) Original-Received: by 10.74.42.78 with HTTP; Tue, 7 Nov 2017 04:48:04 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:99486 Archived-At: --===============4040753384339886939== Content-Type: multipart/alternative; boundary="001a1137b2ec758741055d63fb6b" --001a1137b2ec758741055d63fb6b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Is there a way in context, that for some *text* ascii input (in source .tex file) define mapping in internal tex system ? For example, if i put two ascii characters "dj" in .tex file, can i get cyrillic character "=D1=92" in .pdf ? And so on, for input b, v, g, d, ... to get output =D0=B1, =D0=B2, =D0=B3, = =D0=B4, ... Or more general, for every letter/string in unicode to define the way that it should be read. It's benefit for non ascii language users, because in that case they don't need to switch keyboard layout all the time between command, math input and text input. In Latex, package fontenc(precisely OT2 encoding) do that things. Minimal example: \starttext a, b, v, g, d, dj, e, zh, z \stoptext should produce a, =D0=B1, =D0=B2, =D0=B3, =D0=B4, =D1=92, =D0=B5, =D0=B6, =D0=B7 Best regards, Sava Maksimovic (=D0=A1=D0=B0=D0=B2=D0=B0 =D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0= =BC=D0=BE=D0=B2=D0=B8=D1=9B :) ) --001a1137b2ec758741055d63fb6b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Is there a way in contex= t, that for some text ascii input (in source .tex file) define mappi= ng in internal tex system ?

For example, if i put = two ascii characters "dj" in .tex file, can i=C2=A0 get cyrillic = character "=D1=92" in .pdf ?
And so on, for input b, v,= g, d, ... to get output =D0=B1, =D0=B2, =D0=B3, =D0=B4, ...

=
Or more general, for every letter/string in unicode to define th= e way that it should be read.

It's benefit for= non ascii language users, because in that case they don't need to swit= ch keyboard layout all the time between command, math input and text input.=

In Latex, package fontenc(precisely OT2 encoding)= do that things.

Minimal example:

\starttext

a, b, v, g, d, dj, e, zh, z

\stoptext

should produce

a, =D0=B1, =D0=B2, =D0=B3, =D0=B4, =D1=92, =D0=B5, = =D0=B6, =D0=B7

Best regards,
Sava Maksim= ovic (=D0=A1=D0=B0=D0=B2=D0=B0 =D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=D0=BE= =D0=B2=D0=B8=D1=9B :) )


--001a1137b2ec758741055d63fb6b-- --===============4040753384339886939== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4040753384339886939==--