From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107500 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Marc Trius Newsgroups: gmane.comp.tex.context Subject: Re: Change hyphenation mark Date: Tue, 26 May 2020 16:30:52 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2420440974140894956==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="49108"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Tue May 26 23:31:29 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 1jdhAW-000Cfa-Dt for gctc-ntg-context-518@m.gmane-mx.org; Tue, 26 May 2020 23:31:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3868418445A; Tue, 26 May 2020 23:31:08 +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 8HZi0Flye_bI; Tue, 26 May 2020 23:31:07 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B098184546; Tue, 26 May 2020 23:31:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1CE03184544 for ; Tue, 26 May 2020 23:31:06 +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 g2jDVjD1F8i5 for ; Tue, 26 May 2020 23:31:05 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.160.171; helo=mail-qt1-f171.google.com; envelope-from=derpayatz@gmail.com; receiver= Original-Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) (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 1F78B18445A for ; Tue, 26 May 2020 23:31:05 +0200 (CEST) Original-Received: by mail-qt1-f171.google.com with SMTP id k22so2727779qtm.6 for ; Tue, 26 May 2020 14:31:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hvF/UxLon5SfvSbuiL0nABrWDX0kNZ56hg3/GmyOorw=; b=HuTnHeR8A7TA0sHJ2trI3YVW2v/eCrWDBuJxdy38RtKi9aI84YQudGLyQgDS7aR6s1 114TKJ1+hqCFgcQUeyJyYyIShfC0twPNLLLL9h5R4ZOfw6TSBDphEQ7CcESobj4XN5bL t3/C76iGTdTXBVkUHsER3h8GxADgcB4iTWyzkq0MDweF9Ik/Kd1T7CQrRs4vtEa1tshm fnOO7zQii6poTk5MUfF4JnSwtV9YYuB/5r6skeaubb5TA3iEUnkJZCNJlosPSaR1qDXE U66P0RwGkajadPGk5D1layhDLNnfQBdDXEwc91OAvS7PLUoZkre0J7NDrCrdNitg6VA8 EzmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hvF/UxLon5SfvSbuiL0nABrWDX0kNZ56hg3/GmyOorw=; b=WrXSK9ZumXihx5UqMdQAK5j19F+HqHlxWnQny/ubbNY4C7teUgG0CkmWtXNZ68BU/p SIQOvC1SIfR5K7BcaVjccSo9uB7d2oa8xx67kHmO7uXZ5TIg9snEq3Oh3vSR/ElREN9e OpOOW79wo55Ubl+lpy9BO/6WOpbtclpfrG1+bdY6gjigfzLKQOKCeoCxMG623LgJvWHb oiEdk+JPbtbbVtiJauJb2aj/rJkD3lfqjKEKjzf7moVGr4KoaxzEAXeYnqC8zn1wiXnM 1Y/KqmxjpZlsVOZSt6lHXbPHBIyO7rjmzcHTejFiM8UUiUVZb7wox/6DBf2orTM+5qw0 7jeA== X-Gm-Message-State: AOAM532n74X+hK2PRVTsDbnT1GEx/Sx/iN6eDmpry7ix4cQyKCQjnnIi gfkUukwQB7P0s8hSY/I6oNS70vGTj2dMUL1GrDE= X-Google-Smtp-Source: ABdhPJyKLBldcjDmfEMsMCcleqAceuyregpBw3/BbY0o9dd1kFyUaucnMgBjrpslXS68noqqH+UeBWd+EXwjQyillPo= X-Received: by 2002:ac8:7ca1:: with SMTP id z1mr857628qtv.334.1590528663598; Tue, 26 May 2020 14:31:03 -0700 (PDT) In-Reply-To: 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:107500 Archived-At: --===============2420440974140894956== Content-Type: multipart/alternative; boundary="000000000000ffbbb405a693cff1" --000000000000ffbbb405a693cff1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you! It makes a big difference. I distinctly remember reading somewhere that the hyphen character can't be replaced... But it was last year so I couldn't tell you where. I have an environment that provides the first ten Hebrew numerals, which I am using for the front matter: \def\hebrewnumber#1% {\ifcase#1 \or =D7=90 \or =D7=91 \or =D7=92 \or =D7=93 \or =D7=94 \or =D7=95 \or =D7=96 \or =D7=97 \or =D7=98 \or =D7=99 \else -\fi} \defineconversion[hebrewnumerals][\hebrewnumber] I assume that the right way to do it, that would allow for more numbers, is in Lua, the way that Roman numerals are done. Unfortunately I couldn't quite figure out how to do it. Right now I don't have more than ten pages of front matter, but if you are willing to help with implementation, I can explain how Hebrew numerals work. Thank you, Marc Trius On Tue, May 26, 2020 at 3:51 PM Hans Hagen wrote: > On 5/26/2020 10:17 PM, Marc Trius wrote: > > > I would like to use a different hyphenation mark (=D6=BE, U+05be) in Yi= ddish, > > as it is the standard in that language. It's my understanding from > > reading the wiki that this is currently impossible=E2=80=94I am wonderi= ng if > > there is a hack that could accomplish this. > It would be pretty bad if we couldn't do that ... but you need to define > yiddish first (maybe more needs to be setup ... but that's up to you > tolet us know, labels, what patterns and such). > > \installlanguage > [yiddish] > [righthyphenchar=3D"05BE, > righthyphenchar=3D`*, % for testing > default=3Den] > > \starttext > > \input tufte > > \language[yiddish] > > \input tufte > > \stoptext > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > --000000000000ffbbb405a693cff1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you! It makes a big difference. I distinctly re= member reading somewhere that the hyphen character can't be replaced...= But it was last year so I couldn't tell you where.

I have an environment that provides the first ten Hebrew numerals, wh= ich I am using for the front matter:

\def\hebrewnumber#1%
=C2=A0{\ifc= ase#1 \or =D7=90
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= \or =D7=91
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or = =D7=92
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7= =93
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=94=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=95
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=96
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=97
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=98
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \or =D7=99
=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 \else -\fi}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0
\defineconversion[hebrewnumerals][\hebrewnumber]

I assume that the right way to do it, that wo= uld allow for more numbers, is in Lua, the way that Roman numerals are done= . Unfortunately I couldn't quite figure out how to do it. Right now I d= on't have more than ten pages of front matter, but if you are willing t= o help with implementation, I=C2=A0 can explain how Hebrew numerals work.

Thank you,
Marc Trius

On= Tue, May 26, 2020 at 3:51 PM Hans Hagen <j.hagen@xs4all.nl> wrote:
On 5/26/2020 10:17 PM, Marc Trius wrote:

> I would like to use a different hyphenation mark (=D6=BE, U+05be) in Y= iddish,
> as it is the standard in that language. It's my understanding from=
> reading the wiki that this is currently impossible=E2=80=94I am wonder= ing if
> there is a hack that could accomplish this.
It would be pretty bad if we couldn't do that ... but you need to defin= e
yiddish first (maybe more needs to be setup ... but that's up to you tolet us know, labels, what patterns and such).

\installlanguage
=C2=A0 =C2=A0[yiddish]
=C2=A0 =C2=A0[righthyphenchar=3D"05BE,
=C2=A0 =C2=A0 righthyphenchar=3D`*, % for testing
=C2=A0 =C2=A0 default=3Den]

\starttext

\input tufte

\language[yiddish]

\input tufte

\stoptext

-----------------------------------------------------------------
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0Hans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Ridderstraat 27 | 80= 61 GH Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www.= pragma-pod.nl
-----------------------------------------------------------------
--000000000000ffbbb405a693cff1-- --===============2420440974140894956== 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== --===============2420440974140894956==--