ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: latest beta doesn't process my xml files
Date: Tue, 20 Oct 2009 22:26:35 +0200	[thread overview]
Message-ID: <4ADE1CFB.6070400@wxs.nl> (raw)
In-Reply-To: <0841989B-024F-43FA-8CF7-C88C3FD414CE@uni-bonn.de>

Thomas A. Schmitz wrote:
> 
> On Oct 20, 2009, at 3:52 PM, Hans Hagen wrote:
> 
>> in lxml-ent.lua ...
>>
>> function xml.resolved_entity(str)
>>    local e = xml.entities[str]
>>    if e then
>>        local te = type(e)
>>        if te == "function" then
>>            e(str)
>>        elseif e then
>>            texsprint(ctxcatcodes,e)
>>        end
>>    else
>>        texsprint(ctxcatcodes,"\\xmle{",str,"}{",utfupper(str),"}") -- 
>> we need to use our own upper
>>    end
>> end
>>
> 
> Thank you Hans, but that's not yet the solution. I still get the same 
> error. I thought it might be related to the fact that I had the entity 
> &hfill; in my titles, but even after removing it, I still get the error.
> 
> 
> 
>> there has been quite some changes in the xml machinery; what exactly 
>> do you do with entities?
>>
> 
> Well, I just map a few special characters and commands to entities. In 
> my environment, I have
> 
> \setupxml[entities=mkii]
> 
> and then stuff like this:
> 
> \defineXMLentity[smallspace]{\,}
> \defineXMLentity[percent]{\percent}
> \defineXMLentity[onequarter]{\onequarter}
> \defineXMLentity[threequarter]{\threequarter}
> \defineXMLentity[onehalf]{\onehalf}
> \defineXMLentity[textellipsis]{\textellipsis}
> \defineXMLentity[nbsp]{~}
> \defineXMLentity[hfill]{\hfill}
> 
> Is there a different way for doing this now?

mkii xml is no longer enabled by default in mkiv ... can you try the low 
level newby

\xmlsetentity{smallspace}{\,}

(otherwise, send me a test file)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


      reply	other threads:[~2009-10-20 20:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-19 21:02 Thomas A. Schmitz
2009-10-20 13:52 ` Hans Hagen
2009-10-20 20:12   ` Thomas A. Schmitz
2009-10-20 20:26     ` Hans Hagen [this message]

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=4ADE1CFB.6070400@wxs.nl \
    --to=pragma@wxs.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).