From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99640 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Typefile with Chinese, Korean or Japanase text Date: Wed, 06 Dec 2017 12:00:15 +0100 Message-ID: <5A27CDBF.9010304@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0539434341106613370==" X-Trace: blaine.gmane.org 1512559145 8388 195.159.176.226 (6 Dec 2017 11:19:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 11:19:05 +0000 (UTC) User-Agent: Postbox 5.0.19 (Macintosh/20170908) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Dec 06 12:18:59 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 1eMXj0-0001kV-4Z for gctc-ntg-context-518@m.gmane.org; Wed, 06 Dec 2017 12:18:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8296B8A0180; Wed, 6 Dec 2017 12:00:41 +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 if0G2GgFJI_f; Wed, 6 Dec 2017 12:00:32 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F4AD8A0177; Wed, 6 Dec 2017 12:00:32 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 031208A0176 for ; Wed, 6 Dec 2017 12:00:31 +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 2GlR3Z2pkSqQ for ; Wed, 6 Dec 2017 12:00:29 +0100 (CET) Original-Received: from mail-wr0-f180.google.com (mail-wr0-f180.google.com [209.85.128.180]) (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 1265C8A016E for ; Wed, 6 Dec 2017 12:00:19 +0100 (CET) Original-Received: by mail-wr0-f180.google.com with SMTP id v105so3435054wrc.3 for ; Wed, 06 Dec 2017 03:00:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=dNObo02WucDxST2syBX1ijzphHAZkmy2+AN9PCF9DgU=; b=LppRjKu1fh1sp3UPz4XQfThPVpT+zycr415YC8MDQoGNlL7b/bPrh8lGOz2tPDyFQg qmaVK14Y/6pkUZXD5scnQO4KZHiOR88196oQb1Ct4ArmFBtg0HS93uxaID1rVAWzZNTy R6WD6CDgE1AQ4/yiYK+izhbe0uVwMVeLWAb7PHGVUKB7EuRfNSDd45Ns0hpd0oOhRwK0 fXlh9OaC6kk/5ZMvKb01osMVLNkjj9/IRciftAsS8QLySiTyVZxwpzm+d/bMNYu1UsnE J89+m/mkOacimXF6Sy5aomMSfNSkE9G2THCytzc/Jgy4PV1S2en+sNO6SyfXfBciDUKk j8Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=dNObo02WucDxST2syBX1ijzphHAZkmy2+AN9PCF9DgU=; b=PiM4Wy9rN1VZeISeWDjZonVFmPHUEXlH0ocQZC8AJ1IcXHindnqPqNQvqCggu8P2Tb 7vgt9rcSAMPbo8mD5ryfeitPaBCb/fWpKcM+JE7NwIt+SjsTy7CUWa+GNzCn6RMyDM8E 6QABpTHBhYm6IrvQzqmP8/X9W4M43tiJnCXti6MJ48S/7iCJr9XNwQS/ZFwlcM0YWsv4 e3o+xjuJ3OxB0SjK59zHAVmhegAVZ30OaDKHiFu1t9WSq/j0J16tQiGWcaGhu2rH1jrT TqCqv8IMg9MUKXxPlnu0bCmAs/rep+acrhrdvWSeAF8EXxnHWns/z1KPoS+LVNe3SAC0 Rj5A== X-Gm-Message-State: AKGB3mJUytw3bwpxB20VdPJTWoN5XZ0SANX2l/gt3+UtIeb9PemTTMT8 mXwdbs2hSxmqXXU9OZ133ayVOp0z X-Google-Smtp-Source: AGs4zMb7IbPoOmic7UJ82d0FY+vRtsSJhIDhCrmI4CNUwUvoJ3F42eEvtcjLLe1KBSVZXk4BUA203g== X-Received: by 10.223.199.203 with SMTP id y11mr14033848wrg.37.1512558018461; Wed, 06 Dec 2017 03:00:18 -0800 (PST) Original-Received: from [192.168.1.8] (x5ce2ed80.dyn.telefonica.de. [92.226.237.128]) by smtp.gmail.com with ESMTPSA id s195sm2856465wmb.33.2017.12.06.03.00.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 03:00:18 -0800 (PST) In-Reply-To: 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:99640 Archived-At: This is a multi-part message in MIME format. --===============0539434341106613370== Content-Type: multipart/alternative; boundary="------------010405000701010204090301" This is a multi-part message in MIME format. --------------010405000701010204090301 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit > Wim Neimeijer > 6. Dezember 2017 um 00:32 > The thing here is, I am not an ConText expert just an user. I am > working on a manual (200+ pages) where including code snippets > is just a small part of the document and not something isolated. Not > sure what to do next as the wiki explains a lot > but not this. > You need fonts [1-3] which contains hangul characters (don’t forget to set a math font because it is used for the symbols in enumerations) and you have to enable linebreaking for korean with the \setscript command. %%%% begin example \definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean] \definefontfamily [mainface] [rm] [DejaVu Serif] \definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean] \definefontfamily [mainface] [ss] [DejaVu Sans] \definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] [features=none,preset=range:korean] \definefontfamily [mainface] [tt] [DejaVu Sans Mono] [features=none] \definefontfamily [mainface] [mm] [DejaVu Math] \setupbodyfont[mainface] \setscript[hangul] \starttext 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로 모아 엮어졌습니다. {\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로 모아 엮어졌습니다.} \starttyping 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로 모아 엮어졌습니다. \stoptyping \stoptext %%%% end example [1] https://www.freekoreanfont.com/nanum-myeongjo-free-download/ [2] https://www.freekoreanfont.com/nanum-gothic-free-download/ [3] https://www.freekoreanfont.com/nanum-gothic-coding-free-download/ Wolfgang --------------010405000701010204090301 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
6. Dezember 2017 um 00:32
The thing here is, I am not an ConText expert just an user. I am working on a manual (200+ pages) where including code snippets
is just a small part of the document and not something isolated. Not sure what to do next as the wiki explains a lot 
but not this. 

You need fonts [1-3]  which contains hangul characters (don’t forget to set a math font because it is used for the symbols in enumerations) and you have to enable linebreaking for korean with the \setscript command.

%%%% begin example
\definefallbackfamily [mainface] [rm] [Nanum Myeongjo] [preset=range:korean]
\definefontfamily     [mainface] [rm] [DejaVu Serif]

\definefallbackfamily [mainface] [ss] [Nanum Gothic] [preset=range:korean]
\definefontfamily     [mainface] [ss] [DejaVu Sans]

\definefallbackfamily [mainface] [tt] [Nanum Gothic Coding] [features=none,preset=range:korean]
\definefontfamily     [mainface] [tt] [DejaVu Sans Mono] [features=none]

\definefontfamily     [mainface] [mm] [DejaVu Math]

\setupbodyfont[mainface]

\setscript[hangul]

\starttext

이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.

{\ss 이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.}

\starttyping
이 FAQ 은 자주 반복되는 질문과 그에 대한 대답을 간단명료한 양식으로
모아 엮어졌습니다.
\stoptyping

\stoptext
%%%% end example

[1] https://www.freekoreanfont.com/nanum-myeongjo-free-download/
[2] https://www.freekoreanfont.com/nanum-gothic-free-download/
[3] https://www.freekoreanfont.com/nanum-gothic-coding-free-download/

Wolfgang
--------------010405000701010204090301-- --===============0539434341106613370== 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 --===============0539434341106613370==--