ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: Gerben Wierda <gerben.wierda@rna.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How do I get an empty line in a \framed[align=flushleft]{} item?
Date: Fri, 1 May 2020 13:58:35 +0200	[thread overview]
Message-ID: <d2ff421e-6189-11f9-0491-f7b125c64510@xs4all.nl> (raw)
In-Reply-To: <F52CE49F-FF8E-422B-B263-36DBCBD063B3@rna.nl>

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

On 5/1/2020 1:45 PM, Gerben Wierda wrote:
> 
> 
>> On 1 May 2020, at 13:28, Hans Hagen <j.hagen@xs4all.nl> wrote:
>>
>> On 5/1/2020 10:21 AM, Gerben Wierda wrote:
>>> code it back to a \ ? E.g. something like
>>>     { ‘\U{XXX}', '\' },
>> \utfchar{100}
>> \Uchar 100
> 
> Yes, but the question was: how do I code this in the XML and get it through my XML-lua-METAPOST-textext() path so that e.g. &#xB; or &#14; in the XML end up as \ in my textext() string?
> 
> E.g. a &#xA; in XML becomes a \n when lmtx XML handling has read the XML (so gets transformed on read). I’ve been thinking about the route &#xD; -> \r -> \ (so, misusing \r to code a TeX-\ in the XML, but that would probably not robust.
> 
> The question is more: what is a good UTF8 character to use (the first 32 would be good candidates if they would work and end in the strings that xml.foo() of lmtx produces).
did you try the attached approach? (a recent lmtx)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

[-- Attachment #2: strings-001.tex --]
[-- Type: application/octet-stream, Size: 675 bytes --]

[-- Attachment #3: 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:[~2020-05-01 11:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-30 20:47 Gerben Wierda
2020-04-30 20:51 ` Henning Hraban Ramm
2020-04-30 23:07   ` Gerben Wierda
2020-04-30 20:54 ` Wolfgang Schuster
2020-04-30 21:26   ` Gerben Wierda
2020-04-30 23:44   ` Gerben Wierda
2020-05-01  7:38     ` Hans Hagen
2020-05-01  8:21       ` Gerben Wierda
2020-05-01 11:28         ` Hans Hagen
2020-05-01 11:45           ` Gerben Wierda
2020-05-01 11:58             ` Hans Hagen [this message]
2020-05-01 12:00             ` 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=d2ff421e-6189-11f9-0491-f7b125c64510@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=gerben.wierda@rna.nl \
    --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).