ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sam May <ag.eitilt@gmail.com>
To: ntg-context@ntg.nl
Subject: Quotation dash issues with semantic markup
Date: Sun, 29 Dec 2019 20:03:10 -0800	[thread overview]
Message-ID: <20191230040309.GA21481@nzxt-gentoo> (raw)


[-- Attachment #1.1.1: exmp-dialogue.txt --]
[-- Type: text/plain, Size: 2187 bytes --]

Any of you able to help me get my quotation dashes into line when 
automatically inserted by the semantic commands?  I'm sure a number of you 
look at this style and cringe, but A. I'm not looking for grammatical input, 
and B. I'm intending this for a non-English language where the quotation dash 
(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 
the quotation, /except/ at the very end of a paragraph.  I additionally want 
dialogue tags (via \aside, and located within quotations) to not print their 
surrounding decoration if they're directly next to the larger dash of the 
quotation.  Unfortunately, the only way I can think of doing the first is by 
checking if the next token's \par, and that gets thrown off by the internal 
logic of \quotation; I'm not at all sure how to start going about the asides.

It would also be nice if a quote ending in a period carried the 'broad' 
spacing to the other side of the (ending) quote dash -- the dash before 'Also' 
in the examples would be packed on the left and broad on the right.  I know 
this might be a lot trickier to code, and only consider it a bonus.

An additional issue with \removeunwantedspaces only seems to affect the 
command forms.  When inserted directly, the spacing acts as desired in the PDF 
(as expected, the XML doesn't understand the order).  Also, the right |>| 
doesn't require either of the explicit spacing instructions (beyond being 
non-breaking) while the others do.

The quotation dash itself only /looks/ as I want it; when I highlight and copy 
the text or export it to the XML backend, it's still two dashes next to each 
other.  Instead, I'd like it to be the Unicode bar U+2015.  I'm not sure if 
TEX/LUATEX allows that difference between appearance and interaction (I do 
know PDF does), so if there's some way of adding a new glyph to the font -- 
one that mimics the other dashes even if the font changes -- I'd love to 
actually use the proper codepoint.  As is, that doesn't work in the standard 
font(s).

Thanks for the help!  I know it's quite a bit of an ask.

Sam

[-- Attachment #1.1.2: exmp-dialogue.tex --]
[-- Type: application/x-tex, Size: 3011 bytes --]

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2019-12-30  4:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30  4:03 Sam May [this message]
2019-12-30  9:19 ` Hans Hagen
2020-01-17 19:11   ` Wolfgang Schuster
2020-01-18  9:30     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191230040309.GA21481@nzxt-gentoo \
    --to=ag.eitilt@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).