ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
Cc: Pablo Rodriguez <oinos@gmx.es>
Subject: [NTG-context] Re: weird \inlinetypebuffer interaction
Date: Thu, 9 May 2024 12:57:30 +0200	[thread overview]
Message-ID: <8b43f5ff-5558-2fe7-9880-3e96b5cbb9b4@gmail.com> (raw)
In-Reply-To: <d1a3fc28-1db2-ac78-38bd-7f8823bc12e5@gmx.es>

Pablo Rodriguez via ntg-context schrieb am 08.05.2024 um 18:05:
> On 5/7/24 22:37, Wolfgang Schuster wrote:
>> [...]
>> \typebuffer disables automatic \endash and \emdash with the
>> \nohyphencollapsing command
>> but the command isn't used for \typeinlinebuffer.
> Many thanks for your explanation, Wolfgang.
> 
> Since \type doesn’t collapse hyphens, wouldn’t it be possible to add
> \nohyphencollapsing to \typeinlinebuffer just for the sake of output
> consistency?

You can make \typeinlinebuffer behave like \type by adding a second 
initializer which besides other things prevents hyphen collapsing.


buff-ver.mkxl:

\protected\def\buff_verbatim_type_buffer_indeed_inline#1#2%
   {\cdef\currenttype{#1}%
    \buff_verbatim_initialize_type_one
+  \buff_verbatim_initialize_type_two
    \dostarttaggedchained\t!verbatim\currenttype\??type
    \clf_typebuffer
      name   {#2}%
      strip  {\v!yes}%
      regime {\currentregime}%
      method {\p_buff_option}%
      nature {inline}% is default anyway
    \relax
    \dostoptagged}

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

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-05-09 10:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-06 18:06 [NTG-context] " Pablo Rodriguez via ntg-context
2024-05-06 20:45 ` [NTG-context] " Wolfgang Schuster
2024-05-07 17:40   ` Pablo Rodriguez via ntg-context
2024-05-07 20:37     ` Wolfgang Schuster
2024-05-08 16:05       ` Pablo Rodriguez via ntg-context
2024-05-09 10:57         ` Wolfgang Schuster [this message]
2024-05-09 13:18           ` Pablo Rodriguez via ntg-context
2024-05-14 14:07             ` Pablo Rodriguez via ntg-context

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=8b43f5ff-5558-2fe7-9880-3e96b5cbb9b4@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@gmx.es \
    /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).