From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105969 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sam May Newsgroups: gmane.comp.tex.context Subject: Quotation dash issues with semantic markup Date: Sun, 29 Dec 2019 20:03:10 -0800 Message-ID: <20191230040309.GA21481@nzxt-gentoo> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0938207020644399519==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="234043"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 30 05:03:52 2019 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 esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ilmHX-000yhX-Qq for gctc-ntg-context-518@m.gmane.org; Mon, 30 Dec 2019 05:03:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 90A381647F0; Mon, 30 Dec 2019 05:03: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 f5FS0SREj1WT; Mon, 30 Dec 2019 05:03:18 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id F18AB164825; Mon, 30 Dec 2019 05:03:17 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B06EE164823 for ; Mon, 30 Dec 2019 05:03:16 +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 IOMzqDM6qjB2 for ; Mon, 30 Dec 2019 05:03:16 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.210.175; helo=mail-pf1-f175.google.com; envelope-from=ag.eitilt@gmail.com; receiver= Original-Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (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 C8EF61647F0 for ; Mon, 30 Dec 2019 05:03:15 +0100 (CET) Original-Received: by mail-pf1-f175.google.com with SMTP id x185so17657729pfc.5 for ; Sun, 29 Dec 2019 20:03:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :openpgp:user-agent; bh=AHI1GxP5khBZnX7XKA/i5QxA7gFnseaW76UOSj3nFcs=; b=hkLOCNqm94m6RHt5IRxa6CQSEy3hXOP5JeNewouh0s6E8nFrx8DWW7FIkak98f0GxI KhZsz4M44wOuL5q+2YUoZdjrfqy3rHk/LOf+ZhB5sjsSurUhdZzpiwrDIRlonjU5Kf0G Yfx+pcr85B+ZDWZF9tCRSbL61J3VKzMhqbMAl4tbSA2qMkuGkXtwE6pxAX67MCIuIBFr 0DF0IFXnZl5leX3R4sZoegtyMIkZugKb6p1p3ekB9nENjPvqfkgo7JqOGJ34FcJHLbF8 GUkrWX5YrIM3VUqAACOQBSg0IsBeHNN4eeGyYyNi6IIybEKC+zxfMRfIgYNJBCPm6u6z BXfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:openpgp:user-agent; bh=AHI1GxP5khBZnX7XKA/i5QxA7gFnseaW76UOSj3nFcs=; b=PTZJpnmHt60K1Uwn83hkm5gSsnH76Otv8CxKCsFxZGjQMAXJJmjiCbLHfkVa6Io/Tn AdtJvtC/QZ2kEyAaOVw+8OCwvPFZTwfA+I7QkUgJD1sm0P2CINAtiyiQO/8sPNu3cW/Y cemj2qHhUuCxAEaX6NTBsEDzgc0TsVj63u6nbz9u5AL8+g0QcVZffC0zebWvDwYznRFN 9tts62Avcl75U3B1wbF49IK6rDZxdumSvVHBMtROb61kAWLHRYS6AI0Z4z5nRU6uKOsm N+71i/wZCEIkdZef3K9Zvj3S1Zg0uxo23b4DoZiD+EKTApQUx0jnDvaMmlVCK/OUG7/a 7jBg== X-Gm-Message-State: APjAAAWxA/Ysn3nGVyMuAKfLTNHFMSmuf7qGMWvoOQoMBLvfc4C2AYZu jHSiS7r7qJLVTlqXxr09UlVlQyXYSg== X-Google-Smtp-Source: APXvYqw0tRGhhgpmCWtpIJVunwvPZ01HvUOWedUgdc8gjULC/4HIsyeZdrynHhkYiJ2iGvAyqn/8/w== X-Received: by 2002:a63:8041:: with SMTP id j62mr69715846pgd.41.1577678593115; Sun, 29 Dec 2019 20:03:13 -0800 (PST) Original-Received: from nzxt-gentoo (nat-out-5.ykwc.net. [199.68.205.5]) by smtp.gmail.com with ESMTPSA id b19sm34145876pfo.56.2019.12.29.20.03.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Dec 2019 20:03:12 -0800 (PST) X-PGP-Key: 54D8D9C3137411342DABE962FE2E399DBB4F4B8A OpenPGP: id=54D8D9C3137411342DABE962FE2E399DBB4F4B8A; preference=sign 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.org gmane.comp.tex.context:105969 Archived-At: --===============0938207020644399519== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline --KFztAG8eRSV9hGtP Content-Type: multipart/mixed; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=ascii Content-Disposition: attachment; filename="exmp-dialogue.txt" Content-Transfer-Encoding: quoted-printable Any of you able to help me get my quotation dashes into line when=20 automatically inserted by the semantic commands? I'm sure a number of you= =20 look at this style and cringe, but A. I'm not looking for grammatical input= ,=20 and B. I'm intending this for a non-English language where the quotation da= sh=20 (though still not most common) isn't as out of place. See attachment for actual examples, but I'm looking for a dash at each side= of=20 the quotation, /except/ at the very end of a paragraph. I additionally wan= t=20 dialogue tags (via \aside, and located within quotations) to not print thei= r=20 surrounding decoration if they're directly next to the larger dash of the= =20 quotation. Unfortunately, the only way I can think of doing the first is b= y=20 checking if the next token's \par, and that gets thrown off by the internal= =20 logic of \quotation; I'm not at all sure how to start going about the aside= s. It would also be nice if a quote ending in a period carried the 'broad'=20 spacing to the other side of the (ending) quote dash -- the dash before 'Al= so'=20 in the examples would be packed on the left and broad on the right. I know= =20 this might be a lot trickier to code, and only consider it a bonus. An additional issue with \removeunwantedspaces only seems to affect the=20 command forms. When inserted directly, the spacing acts as desired in the = PDF=20 (as expected, the XML doesn't understand the order). Also, the right |>|= =20 doesn't require either of the explicit spacing instructions (beyond being= =20 non-breaking) while the others do. The quotation dash itself only /looks/ as I want it; when I highlight and c= opy=20 the text or export it to the XML backend, it's still two dashes next to eac= h=20 other. Instead, I'd like it to be the Unicode bar U+2015. I'm not sure if= =20 TEX/LUATEX allows that difference between appearance and interaction (I do= =20 know PDF does), so if there's some way of adding a new glyph to the font --= =20 one that mimics the other dashes even if the font changes -- I'd love to=20 actually use the proper codepoint. As is, that doesn't work in the standar= d=20 font(s). Thanks for the help! I know it's quite a bit of an ask. Sam --UlVJffcvxoiEqYs2 Content-Type: application/x-tex Content-Disposition: attachment; filename="exmp-dialogue.tex" Content-Transfer-Encoding: quoted-printable \setuplanguage[en]=0A [leftquotation=3D\quotedash~,=0A rightquotation=3D~\q= uotedash,=0A leftsentence=3D\removeunwantedspaces~\endash\space,=0A midsent= ence=3D\removeunwantedspaces~\endash\space,=0A% leftsentence=3D\endash~,=0A= % midsentence=3D~\endash,=0A rightsentence=3D~\endash]=0A\define\quotedash{= \emdash\endash}=0A=0A%\setupbackend[export=3Dyes]=0A=0A\starttext=0A=0A\sta= rtsection[title=3DIntroduction]=0AAny of you able to help me get my quotati= on dashes into line when automatically =0Ainserted by the semantic commands= ? I'm sure a number of you look at this style =0Aand cringe, but \cap{A.} = I'm not looking for grammatical input, and \cap{B.} =0AI'm intending this f= or a non-English language where the quotation dash (though =0Astill not mos= t common) isn't as out of place.=0A\stopsection=0A=0A\startsection[title=3D= Desired rendering]=0A\quotedash~Speech should always have a dash at the sta= rt, but none at the end =0Aof a paragraph.=0A=0A\quotedash~Dialog asides sh= ould not duplicate dashes,~\endash\ he =0Asaid.~\quotedash\ Also, this does= n't reflect the spacing mentioned in section =0A\in[extra]. \quotedash~nor= , as above, add ones at the end of paragraphs. =0A\endash~he continued.=0A= \stopsection=0A=0A\startsection[title=3DActual output]=0A\speech{Speech sho= uld always have a dash at the start, but none at the end of a =0Aparagraph.= }=0A=0A\speech{Dialog asides should not duplicate dashes, \aside{he said.}}= Also, note =0Athe spacing isn't removed despite \type{\removeunwantedspace= s}, but instead =0Aduplicated. \speech{nor, as above, add ones at the end = of paragraphs. =0A\aside{he continued.}}=0A\stopsection=0A=0A\startsection= [title=3DAdditional considerations and observations,reference=3Dextra]=0AIt= would also be nice if a quote ending in a period carried the \quote{broad}= =0Aspacing to the other side of the (ending) quote dash |=3D| the dash bef= ore =0A\quote{Also} above would be packed on the left and broad on the righ= t. I know =0Athis might be a lot trickier to code, and only consider it a = bonus.=0A=0AThe issue with \type{\removeunwantedspaces} only seems to affec= t the command =0Aforms. When inserted directly |<| as here |>| the spacing= acts as desired in =0Athe \cap{PDF} (as expected, the \cap{XML} doesn't un= derstand the order). Also, =0Athe right \type{|>|} doesn't require either = of the explicit spacing =0Ainstructions (beyond being non-breaking) while t= he others do; try switching the =0Acommented lines and re-rendering.=0A=0AT= he quotation dash itself only \emph{looks} as I want it; when I highlight a= nd =0Acopy the text or export it to the \cap{XML} backend, it's still two d= ashes next =0Ato each other. Instead, I'd like it to be the Unicode bar U+= 2015. I'm not =0Asure if \TEX/\LUATEX\ allows that difference between appe= arance and interaction =0A(I do know \cap{PDF} does), so if there's some wa= y of adding a new glyph to the =0Afont |<| one that mimics the other dashes= even if the font changes |>| I'd love =0Ato actually use the proper codepo= int. As is, that doesn't work in the standard =0Afont(s): [\char"2015].=0A= \stopsection=0A=0A\stoptext=0A --UlVJffcvxoiEqYs2-- --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEVNjZwxN0ETQtq+li/i45nbtPS4oFAl4JdvcACgkQ/i45nbtP S4qncBAApNI9Lns8fJxbGoMotcSphJQ5pc6mooRSmxkhaqYESnA9fmxRVE4/pfFg BFsw9RqAYkRoiuF+ig4WfbESycz3zqUty6DqEzb7zrWMBuEXLoWZLuPBBZDNz6Mw bpVaNO+oQOkl2rvLOlFKI5JPQopWSAJnvelq0uIui4d8ynhQPFMT7LQh7nSxgAv0 iwhZyYJZs7bKSjNITH2YNdUDzQE6OpnV+AI+CECJcmbHv9IpgTG4FzoZwsF49AjN rW6YElicvFH10NW2DJYVQ+fArajnVHS9csC9BeCZ7iJIZ39ABeswEzjasJFFIqmU xvLbYzyHUcK9M/BO5kjK3jYhm1jrMhwrH3edXyXWJnEhYy8Vw7xxFyVL3nT5uiwo MxeiWc9Ge1xeBd+P5QjM/Gm03AhiD0KpB7C+PPkRi2OYKkqDJWEm2IREmEdWk89R OaveCuqlvwwHP6boEaDoaRyV/txKJweqlzDp4wVS6xkWtlFGAOpC/WA9Jhm6w+uu 6QguzAbLPRHX6rFpKu7pxuYewUk42ePyStRdWC8or9bAoWPNUdzwhhVojokzC7np qzvEW3vxtBlqnzWrAzB/adtwQsiTyJtKAZ01Y971mS/oPRCXlwCZZ/9eo2gWDEIw bJ6GIORK5xpQ4hVa0kaRxmnuYU4gy2qZN5cu6XhIU5inhetfV8s= =w5Dq -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP-- --===============0938207020644399519== 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== --===============0938207020644399519==--