From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/70097 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Export to xhtml and useurl Date: Mon, 18 Jul 2011 23:51:08 +0200 Message-ID: References: <4E242A91.7050904@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1762870568==" X-Trace: dough.gmane.org 1311025903 7296 80.91.229.12 (18 Jul 2011 21:51:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2011 21:51:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 18 23:51:38 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qivir-0002Db-Mh for gctc-ntg-context-518@m.gmane.org; Mon, 18 Jul 2011 23:51:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DD6F8CAE48; Mon, 18 Jul 2011 23:51:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27Q16CH3V2mK; Mon, 18 Jul 2011 23:51:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0624CAE3F; Mon, 18 Jul 2011 23:51:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8AA98CAE3F for ; Mon, 18 Jul 2011 23:51:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FjQnoIwUK-lK for ; Mon, 18 Jul 2011 23:51:10 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 57620CAB80 for ; Mon, 18 Jul 2011 23:51:10 +0200 (CEST) Original-Received: from mail-ew0-f41.google.com (mail-ew0-f41.google.com [209.85.215.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6ILp9ep005161 for ; Mon, 18 Jul 2011 23:51:09 +0200 Original-Received: by ewy9 with SMTP id 9so2651523ewy.14 for ; Mon, 18 Jul 2011 14:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Zp+rgZjVfr8IdPyEy5hrsZ8X5zMyLQzWVpinOuht4eI=; b=PLSji72q//YXSKe+N+5KCEwGWw4QZbBx01kTsh8qfKejf4bhHif5uMQDOlRk0QKvpo BGqS+COQkjhCZtcX1IpMTVnUjHUxPdQ6RZH/abOolfiippwUNoaZfC8BCmssf5hFtPm2 pAGAZSgXhzhUmPZgF0G4my9W4zGbfPEJxaSB8= Original-Received: by 10.14.15.17 with SMTP id e17mr2397643eee.96.1311025869005; Mon, 18 Jul 2011 14:51:09 -0700 (PDT) Original-Received: by 10.14.22.75 with HTTP; Mon, 18 Jul 2011 14:51:08 -0700 (PDT) In-Reply-To: <4E242A91.7050904@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aF9xP9Xf - 5e54774a2810 - 20110718 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:70097 Archived-At: --===============1762870568== Content-Type: multipart/alternative; boundary=0016e65bc38836a49f04a85efff6 --0016e65bc38836a49f04a85efff6 Content-Type: text/plain; charset=ISO-8859-1 2011/7/18 Hans Hagen > On 16-7-2011 12:32, Cecil Westerhof wrote: > >> I need to export my document. For this I use: >> \setupbackend[export=yes,**xhtml=yes,css=yes] >> >> I have update my document with start and stop for chapter, section and >> subsection, but I have one problem. I have: >> \useURL >> [UUID] >> [http://en.wikipedia.org/wiki/**Uuid >> ] >> [] >> [universally unique identifier] >> and when I also have: >> \from[UUID] >> >> I get: >> system> end file documentatie.tex at line 3398 >> )> tex-gyre/texgyreheros-**bolditalic.otf>{/home/cecil/** >> ConTeXt/tex/texmf/fonts/enc/**dvips/lm/lm-mathsy.enc}> cecil/ConTeXt/tex/texmf/fonts/**opentype/public/tex-gyre/** >> texgyreheros-bold.otf>> opentype/public/tex-gyre/**texgyreheros-regular.otf>> home/cecil/ConTeXt/tex/texmf/**fonts/type1/public/lm/lmsy10.**pfb> >> backend> export> finalizing >> ! LuaTeX error ...TeXt/tex/texmf-context/tex/** >> context/base/back-exp.lua:328: >> bad argument #2 to 'write' (string expected, got nil). >> > > a real small test file is needed > This works: \setupinteraction[ color=blue, contrastcolor=red, focus=standard, state=start, ] %\setupbackend[export=yes,xhtml=yes,css=yes] \useURL [UUID] [http://en.wikipedia.org/wiki/Uuid] [] [universally unique identifier] \starttext This new id is generated much like an \from[UUID]. The reason for the change was that in this way a client number could be generated offline and/or different databases could be merged without the risk that id's would clash. \stoptext But when the \setupbackend is taken out of comment, it goes wrong. -- Cecil Westerhof --0016e65bc38836a49f04a85efff6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
2011/7/18 Hans Hagen <pragma@wxs.nl>
On 16-7-2011 12:32, Cecil Westerhof wrote:
I need to export my document. For this I use:
=A0 =A0 \setupbackend[export=3Dyes,xhtml=3Dyes,css=3Dyes]

I have update my document with start and stop for chapter, section and
subsection, but I have one problem. I have:
\useURL
=A0 [UUID]
=A0 [http:= //en.wikipedia.org/wiki/Uuid]
=A0 []
=A0 [universally unique identifier]
and when I also have:
\from[UUID]

I get:
system> =A0end file documentatie.tex at line 3398
=A0)</home/cecil/ConTeXt/tex/texmf/fonts/opentype/public/= tex-gyre/texgyreheros-bolditalic.otf>{/home/cecil/ConTeXt/= tex/texmf/fonts/enc/dvips/lm/lm-mathsy.enc}</home/cecil/Co= nTeXt/tex/texmf/fonts/opentype/public/tex-gyre/texgyreheros-b= old.otf></home/cecil/ConTeXt/tex/texmf/fonts/opentype/p= ublic/tex-gyre/texgyreheros-regular.otf></home/cecil/Co= nTeXt/tex/texmf/fonts/type1/public/lm/lmsy10.pfb>
backend> =A0export> =A0finalizing
! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/back-exp.l= ua:328:
bad argument #2 to 'write' (string expected, got nil).

a real small test file is needed

This works:
\s= etupinteraction[
=A0 color=3Dblue,
=A0 contrastcolor=3Dred,
=A0 fo= cus=3Dstandard,
=A0 state=3Dstart,
]

%\setupbackend[export=3Dy= es,xhtml=3Dyes,css=3Dyes]

\useURL
=A0 [UUID]
=A0 [http://en.wikipedia.org/wiki/Uuid]
=A0 []
=A0 [universally u= nique identifier]

\starttext

This new id is generated much li= ke an \from[UUID]. The reason for the
change was that in this way a client number could be generated offline
a= nd/or different databases could be merged without the risk that id'swould clash.

\stoptext

But when the \setupbackend is taken o= ut of comment, it goes wrong.

--
Cecil Westerhof
--0016e65bc38836a49f04a85efff6-- --===============1762870568== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1762870568==--