From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95815 Path: news.gmane.org!.POSTED!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Dotted characters Date: Tue, 16 Aug 2016 09:43:12 +0200 Message-ID: <0FCC6C71-7BD9-49C3-9FEC-784DF4BD9175@elvenkind.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/mixed; boundary="===============7328828189261212917==" X-Trace: blaine.gmane.org 1471333441 23217 195.159.176.226 (16 Aug 2016 07:44:01 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 16 Aug 2016 07:44:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 16 09:43:56 2016 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 1bZZ2R-0005t6-34 for gctc-ntg-context-518@m.gmane.org; Tue, 16 Aug 2016 09:43:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C86D814AB7; Tue, 16 Aug 2016 09:43:29 +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 e26n6D7BEv97; Tue, 16 Aug 2016 09:43:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D5A1114B11; Tue, 16 Aug 2016 09:43:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E2CAC14AB4 for ; Tue, 16 Aug 2016 09:43:26 +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 wEjeqIzCSmT6 for ; Tue, 16 Aug 2016 09:43:25 +0200 (CEST) Original-Received: from server5b.aanhet.net (server5b.aanhet.net [5.39.185.224]) by zapf.ntg.nl (Postfix) with ESMTP id 6DDF814A84 for ; Tue, 16 Aug 2016 09:43:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by server5b.aanhet.net (Postfix) with ESMTP id 46B9D13F for ; Tue, 16 Aug 2016 09:43:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at server5.aanhet.net Original-Received: from server5b.aanhet.net ([127.0.0.1]) by localhost (server5b.aanhet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpMtLTHKZDeZ for ; Tue, 16 Aug 2016 09:43:13 +0200 (CEST) Original-Received: from tacos-mbp.fritz.box (boo.demon.nl [83.163.247.99]) by server5b.aanhet.net (Postfix) with ESMTPSA id F2F1B11F for ; Tue, 16 Aug 2016 09:43:12 +0200 (CEST) In-Reply-To: X-Mailer: Apple Mail (2.3124) 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:95815 Archived-At: --===============7328828189261212917== Content-Type: multipart/alternative; boundary="Apple-Mail=_E8644A05-FEEC-4A84-9C06-50422F88AF60" --Apple-Mail=_E8644A05-FEEC-4A84-9C06-50422F88AF60 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Luk=C3=A1=C5=A1, > On 16 Aug 2016, at 09:17, Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. = wrote: >=20 > Hello, >=20 > I'm preparing a child copybook. > I'd like to write a uppercased letter "as is" followed by its shape = drawn with dots - something like >=20 > /\ . > / \ . . > /____\ ..... > / \ . . >=20 > I guess that some MP "trick(s)" might be used; > also, a "simple" font should be used to be drawn dotted, which uses = "single drawings" to draw each line of the character. Most anything can be programmed, but in this case the task is very = difficult.=20 Modern fonts always use filled paths instead of stroke lines, so an = =E2=80=9CA=E2=80=9D consists of two paths: the outer shape and the = middle triange are separate: _ / \ / \ /\ / _ \ /__\ /_/ \_\ there is no easy way to convert that into a dotted line that matches the = =E2=80=98black parts=E2=80=99 of the glyph shape. Perhaps you could use = two regular fonts: one sans-serif and one with dotted lines? There are = some free fonts with dotted lines that can be found on the web, e.g. = here: http://www.fontspace.com/category/dotted-line Another option would be draw the =E2=80=98normal=E2=80=99 uppercase = letter directly as a metapost path. In that case it would be rather = simple to create a generic dotted path from that using =E2=80=98setdash=E2= =80=99. However, without manual work, it will not look as good as = pre-drawn font, because for a =E2=80=98nice=E2=80=99 dotted path you = need to make sure that the dots in the crossbar of an =E2=80=98A=E2=80=99 = line up nicely with the dots in the diagonal outer strokes, which is = quite hard to do. Best wishes, Taco Taco Hoekwater Elvenkind BV --Apple-Mail=_E8644A05-FEEC-4A84-9C06-50422F88AF60 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi Luk=C3=A1=C5=A1,

On 16 Aug 2016, at 09:17, Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. = <LPr@pontex.cz> = wrote:

Hello,

I'm preparing a child copybook.
I'd like to = write a uppercased letter "as is" followed by its shape drawn with dots = - something like

  /\     =   .
 /  \     . .
/____\   .....
/      \ . =     .

I guess that some MP = "trick(s)" might be used;
also, a "simple" font should be = used to be drawn dotted, which uses "single drawings" to draw each line = of the character.

Most anything can be programmed, but in = this case the task is very difficult. 

Modern fonts always use filled paths = instead of stroke lines, so an =E2=80=9CA=E2=80=9D consists of two = paths: the outer shape and the middle triange are = separate:
  =   _
   / \
  /   \         =  /\
 /  _  \       =  /__\
/_/=   \_\

there is no easy way to convert that into a dotted line that = matches the =E2=80=98black parts=E2=80=99 of the glyph shape. Perhaps = you could use two regular fonts: one sans-serif and one with dotted = lines? There are some free fonts with dotted lines that can be found on = the web, e.g. here: http://www.fontspace.com/category/dotted-line

Another option would be = draw the =E2=80=98normal=E2=80=99 uppercase letter directly as a = metapost path. In that case it would be rather simple to create a = generic dotted path from that using =E2=80=98setdash=E2=80=99. However, = without manual work, it will not look as good as pre-drawn font, because = for a =E2=80=98nice=E2=80=99 dotted path you need to make sure that the = dots in the crossbar of an =E2=80=98A=E2=80=99 line up nicely with the = dots in the diagonal outer strokes, which is quite hard to do.

Best wishes,
Taco





Taco = Hoekwater
Elvenkind BV




= --Apple-Mail=_E8644A05-FEEC-4A84-9C06-50422F88AF60-- --===============7328828189261212917== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7328828189261212917==--