* XML
@ 2008-10-07 22:14 johannes_graumann
2008-10-08 6:34 ` XML luigi scarso
2008-10-09 7:50 ` XML Wolfgang Schuster
0 siblings, 2 replies; 22+ messages in thread
From: johannes_graumann @ 2008-10-07 22:14 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1.1: Type: text/plain, Size: 902 bytes --]
Hello,
The family is gone for the week, so I have time to play ...
What I'm doing is the following(using the attached files):
context --ctx=t-openoffice BoldOnlyContent.xml
Which works nicely.
I'd like to make this work like so:
context --ctx=t-openoffice VersuchBoldOnly.odt
but whether I change the respective line in t-openoffice.tex to
\xmlprocess{main}{zip://*/content.xml}{}
or
\xmlprocess{main}{*/content.xml}{}
- no luck ... how to do this?
Hans let me know how to parse xml styles on the fly, but I fail to generalize
this further. When uncommenting the line
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
in t-openoffice.tex this doesn't work as expected:
context --ctx=t-openoffice BoldAndItalicContent.xml
Any hints on how to fix this?
I have asked related questions in the past, but have now a bit of time to
investigate further ...
Thanks, Joh
[-- Attachment #1.1.2: t-openoffice.tex --]
[-- Type: text/x-tex, Size: 878 bytes --]
\startenvironment t-openoffice.tex
\startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
\stopxmlsetups
\xmlregistersetup{office}
\startxmlsetups text:p
\xmlflush{#1}\par
\stopxmlsetups
\startxmlsetups text:span
\bgroup
\xmlfilter{main}{office:automatic-styles/style:style/style:text-properties/command(do:style:text-properties)}
\xmlflush{#1}
\egroup
\stopxmlsetups
\startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
% \xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
\stopxmlsetups
\xmlmapvalue {fo:font-weight} {bold} {\bf}
\xmlmapvalue {fo:font-style} {italic} {\it}
\starttext
%\xmlprocess{main}{zip://*/content.xml}{}
\xmlprocess{main}{content.xml}{}
\stoptext
\stopenvironment
[-- Attachment #1.1.3: BoldOnlyContent.xml --]
[-- Type: text/xml, Size: 3357 bytes --]
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:field="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:field:1.0" office:version="1.1"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="DejaVu Sans" svg:font-family="'DejaVu Sans'" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T1" style:family="text"><style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/></style:style><style:style style:name="T2" style:family="text"><style:text-properties fo:font-style="italic" fo:font-weight="bold" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-style-complex="italic" style:font-weight-complex="bold"/></style:style><style:style style:name="T3" style:family="text"><style:text-properties fo:font-style="italic" style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color" fo:font-weight="bold" style:font-style-asian="italic" style:font-weight-asian="bold" style:font-style-complex="italic" style:font-weight-complex="bold"/></style:style></office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/></text:sequence-decls><text:p text:style-name="Standard">Versuch <text:span text:style-name="T1">Bold Versuch</text:span></text:p></office:text></office:body></office:document-content>
[-- Attachment #1.1.4: t-openoffice.ctx --]
[-- Type: text/plain, Size: 386 bytes --]
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:message>open office processing</ctx:message>
<ctx:preprocess/>
<ctx:flags>
<ctx:flag>purge</ctx:flag>
<ctx:flag>texengine=luatex</ctx:flag>
<ctx:flag>interface=en</ctx:flag>
</ctx:flags>
<ctx:process>
<ctx:resources>
<ctx:environment>t-openoffice.tex</ctx:environment>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
[-- Attachment #1.1.5: VersuchBoldOnly.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 7682 bytes --]
[-- Attachment #1.1.6: BoldAndItalicContent.xml --]
[-- Type: text/xml, Size: 3229 bytes --]
<?xml version="1.0" encoding="UTF-8"?>
<office:document-content xmln:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:field="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:field:1.0" office:version="1.1"><office:scripts/><office:font-face-decls><style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/><style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/><style:font-face style:name="DejaVu Sans" svg:font-family="'DejaVu Sans'" style:font-family-generic="system" style:font-pitch="variable"/></office:font-face-decls><office:automatic-styles><style:style style:name="T1" style:family="text"><style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/></style:style><style:style style:name="T2" style:family="text"><style:text-properties fo:font-style="italic" fo:font-weight="normal" style:font-style-asian="italic" style:font-weight-asian="normal" style:font-style-complex="italic" style:font-weight-complex="normal"/></style:style><style:style style:name="T3" style:family="text"><style:text-properties fo:font-weight="normal" style:font-weight-asian="normal" style:font-weight-complex="normal"/></style:style></office:automatic-styles><office:body><office:text><text:sequence-decls><text:sequence-decl text:display-outline-level="0" text:name="Illustration"/><text:sequence-decl text:display-outline-level="0" text:name="Table"/><text:sequence-decl text:display-outline-level="0" text:name="Text"/><text:sequence-decl text:display-outline-level="0" text:name="Drawing"/></text:sequence-decls><text:p text:style-name="Standard">Versuch <text:span text:style-name="T1">Bold Versuch </text:span><text:span text:style-name="T2">Italic Versuch</text:span></text:p></office:text></office:body></office:document-content>
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-07 22:14 XML johannes_graumann
@ 2008-10-08 6:34 ` luigi scarso
2008-10-08 8:02 ` XML Johannes Graumann
2008-10-09 7:50 ` XML Wolfgang Schuster
1 sibling, 1 reply; 22+ messages in thread
From: luigi scarso @ 2008-10-08 6:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 93 bytes --]
A bit OT
Do you know
http://opendocumentfellowship.com/development/projects/odfpy
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 214 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-08 6:34 ` XML luigi scarso
@ 2008-10-08 8:02 ` Johannes Graumann
2008-10-08 8:11 ` XML luigi scarso
0 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-08 8:02 UTC (permalink / raw)
To: ntg-context
luigi scarso wrote:
> A bit OT
> Do you know
> http://opendocumentfellowship.com/development/projects/odfpy
To do what in this context :) ?
Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-08 8:02 ` XML Johannes Graumann
@ 2008-10-08 8:11 ` luigi scarso
0 siblings, 0 replies; 22+ messages in thread
From: luigi scarso @ 2008-10-08 8:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 288 bytes --]
On Wed, Oct 8, 2008 at 10:02 AM, Johannes Graumann <johannes_graumann@web.de
> wrote:
> luigi scarso wrote:
>
> > A bit OT
> > Do you know
> > http://opendocumentfellowship.com/development/projects/odfpy
>
> To do what in this context :) ?
>
pre-parsing
As I wrote, a bit OT.
--
luigi
[-- Attachment #1.2: Type: text/html, Size: 739 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-07 22:14 XML johannes_graumann
2008-10-08 6:34 ` XML luigi scarso
@ 2008-10-09 7:50 ` Wolfgang Schuster
2008-10-09 18:13 ` XML Johannes Graumann
1 sibling, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2008-10-09 7:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Oct 8, 2008 at 12:14 AM, <johannes_graumann@web.de> wrote:
> Hello,
>
> The family is gone for the week, so I have time to play ...
>
> What I'm doing is the following(using the attached files):
> context --ctx=t-openoffice BoldOnlyContent.xml
> Which works nicely.
>
> I'd like to make this work like so:
> context --ctx=t-openoffice VersuchBoldOnly.odt
> but whether I change the respective line in t-openoffice.tex to
> \xmlprocess{main}{zip://*/content.xml}{}
> or
> \xmlprocess{main}{*/content.xml}{}
> - no luck ... how to do this?
\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
or
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
> Hans let me know how to parse xml styles on the fly, but I fail to generalize
> this further. When uncommenting the line
> \xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
> in t-openoffice.tex this doesn't work as expected:
> context --ctx=t-openoffice BoldAndItalicContent.xml
> Any hints on how to fix this?
You could use this for the start but it behavious a little bit weird.
\unprotect
\def\switchfontstyle
{\ifx\fontalternative\c!tf \it \else
\ifx\fontalternative\c!bf \bi \else
\it \fi\fi}
\protect
\xmlmapvalue {fo:font-style} {italic} {\switchfontstyle}
> I have asked related questions in the past, but have now a bit of time to
> investigate further ...
Regards,
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-09 7:50 ` XML Wolfgang Schuster
@ 2008-10-09 18:13 ` Johannes Graumann
2008-10-14 7:24 ` XML Wolfgang Schuster
0 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-09 18:13 UTC (permalink / raw)
To: ntg-context
Wolfgang Schuster <schuster.wolfgang <at> googlemail.com> writes:
> \xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
>
> or
>
> \usezipfile[\inputfilename.odt]
> \xmlprocess{main}{*/content.xml}{}
Thank you very much - very nice!
> You could use this for the start but it behavious a little bit weird.
>
> \unprotect
>
> \def\switchfontstyle
> {\ifx\fontalternative\c!tf \it \else
> \ifx\fontalternative\c!bf \bi \else
> \it \fi\fi}
>
> \protect
>
> \xmlmapvalue {fo:font-style} {italic} {\switchfontstyle}
Hmm ... if I understand this correctly this is aimed at dealing with nested
bold/italic attributes?
While I'm certainly going to fall over this rather soon, I think the issue here
is that the following excerpt, where "T1" and "T2" correspond to bold and italic
definitions further up, is misinterpreted such that the opening "text:span" of
the "T1" section is taken for the beginning of the "T2" section instead and "T2"
is accordingly applied to the whole construct ...
<text:p text:style-name="Standard">
Versuch
<text:span text:style-name="T1">
Bold Versuch
</text:span>
<text:span text:style-name="T2">
Italic Versuch
</text:span>
</text:p>
Where in Hans' snippet below might that be fixable?
\startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
\stopxmlsetups
xmlregistersetup{office}
\startxmlsetups text:p
\xmlflush{#1}\par
\stopxmlsetups
\startxmlsetups text:span
\bgroup
\xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
/command(do:style:text-properties)}
\xmlflush{#1}
\egroup
\stopxmlsetups
Thanks for any further hints,
Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-09 18:13 ` XML Johannes Graumann
@ 2008-10-14 7:24 ` Wolfgang Schuster
2008-10-16 8:24 ` XML Johannes Graumann
` (2 more replies)
0 siblings, 3 replies; 22+ messages in thread
From: Wolfgang Schuster @ 2008-10-14 7:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Thu, Oct 9, 2008 at 8:13 PM, Johannes Graumann
<johannes_graumann@web.de> wrote:
> Wolfgang Schuster <schuster.wolfgang <at> googlemail.com> writes:
>
>> \xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
>>
>> or
>>
>> \usezipfile[\inputfilename.odt]
>> \xmlprocess{main}{*/content.xml}{}
>
> Thank you very much - very nice!
>
>> You could use this for the start but it behavious a little bit weird.
>>
>> \unprotect
>>
>> \def\switchfontstyle
>> {\ifx\fontalternative\c!tf \it \else
>> \ifx\fontalternative\c!bf \bi \else
>> \it \fi\fi}
>>
>> \protect
>>
>> \xmlmapvalue {fo:font-style} {italic} {\switchfontstyle}
>
> Hmm ... if I understand this correctly this is aimed at dealing with nested
> bold/italic attributes?
>
> While I'm certainly going to fall over this rather soon, I think the issue here
> is that the following excerpt, where "T1" and "T2" correspond to bold and italic
> definitions further up, is misinterpreted such that the opening "text:span" of
> the "T1" section is taken for the beginning of the "T2" section instead and "T2"
> is accordingly applied to the whole construct ...
>
> <text:p text:style-name="Standard">
> Versuch
> <text:span text:style-name="T1">
> Bold Versuch
> </text:span>
> <text:span text:style-name="T2">
> Italic Versuch
> </text:span>
> </text:p>
>
> Where in Hans' snippet below might that be fixable?
>
> \startxmlsetups office
> \xmlsetsetup{main}{text:p|text:span}{*}
> \stopxmlsetups
> xmlregistersetup{office}
>
> \startxmlsetups text:p
> \xmlflush{#1}\par
> \stopxmlsetups
>
> \startxmlsetups text:span
> \bgroup
>
> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
> /command(do:style:text-properties)}
> \xmlflush{#1}
> \egroup
> \stopxmlsetups
\startxmlsetups text:span
\bgroup
\xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
\xmlflush{#1}
\egroup
\stopxmlsetups
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-14 7:24 ` XML Wolfgang Schuster
@ 2008-10-16 8:24 ` Johannes Graumann
2008-10-18 7:28 ` XML olivier Turlier
2008-10-16 8:27 ` XML Johannes Graumann
2008-10-19 20:38 ` XML Johannes Graumann
2 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-16 8:24 UTC (permalink / raw)
To: ntg-context
Wolfgang Schuster wrote:
> \startxmlsetups text:span
> \bgroup
> \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
> \xmlflush{#1}
> \egroup
> \stopxmlsetups
Just saw this now ... will try tonight. Thanks!
Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-14 7:24 ` XML Wolfgang Schuster
2008-10-16 8:24 ` XML Johannes Graumann
@ 2008-10-16 8:27 ` Johannes Graumann
2008-10-19 20:38 ` XML Johannes Graumann
2 siblings, 0 replies; 22+ messages in thread
From: Johannes Graumann @ 2008-10-16 8:27 UTC (permalink / raw)
To: ntg-context
Wolfgang Schuster wrote:
> \startxmlsetups text:span
> \bgroup
> \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
> \xmlflush{#1}
> \egroup
> \stopxmlsetups
Just saw this now ... will try tonight. Thanks!
Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-16 8:24 ` XML Johannes Graumann
@ 2008-10-18 7:28 ` olivier Turlier
2008-10-19 13:25 ` XML Johannes Graumann
0 siblings, 1 reply; 22+ messages in thread
From: olivier Turlier @ 2008-10-18 7:28 UTC (permalink / raw)
To: ntg-context
Johannes Graumann wrote:
>
> Just saw this now ... will try tonight. Thanks!
>
> Joh
Thanks Johannes for your efforts to port Openoffice into a usable editor for
context (if I'm guessing right your aim ...)
I've tried your files, whith corrections from Wolfgang : it's working.
But then I've added lists and images : it's not working.
At my user level, I don't understand what you're doing, but maybe others are
like me : write texts in OO and finely tune them via luatex (given the
understanding of t-openoffice.tex ...) : so we can easily import existing
docs, etc.
TIA for any answer
--
olivier Turlier
Marseille
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-18 7:28 ` XML olivier Turlier
@ 2008-10-19 13:25 ` Johannes Graumann
0 siblings, 0 replies; 22+ messages in thread
From: Johannes Graumann @ 2008-10-19 13:25 UTC (permalink / raw)
To: ntg-context
olivier Turlier wrote:
> Thanks Johannes for your efforts to port Openoffice into a usable editor
> for context (if I'm guessing right your aim ...)
You are, but my efforts are limited so far ... and what I have has been contributed by Hans and Wolfgang ... lutex/context is still far beyond me at this point, but I'm trying ...
> I've tried your files, whith corrections from Wolfgang : it's working.
> But then I've added lists and images : it's not working.
Geeeeeeee! So far this CAN only do bold and italic text.
> At my user level, I don't understand what you're doing, but maybe others
> are like me : write texts in OO and finely tune them via luatex (given the
> understanding of t-openoffice.tex ...) : so we can easily import existing
> docs, etc.
Don't hold your breath. This is a pure hobbyist tinkering project ... won't be fast if it comes about at all ...
Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-14 7:24 ` XML Wolfgang Schuster
2008-10-16 8:24 ` XML Johannes Graumann
2008-10-16 8:27 ` XML Johannes Graumann
@ 2008-10-19 20:38 ` Johannes Graumann
2008-10-22 6:50 ` XML Wolfgang Schuster
2 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-19 20:38 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 783 bytes --]
Wolfgang Schuster wrote:
>> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
>> /command(do:style:text-properties)}
>> \xmlflush{#1}
>> \egroup
>> \stopxmlsetups
>
> \startxmlsetups text:span
> \bgroup
> \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
> \xmlflush{#1}
> \egroup
> \stopxmlsetups
Hello Wolfgang,
I just don't get it to run. Using the attached and
context --ctx=t-openoffice Attempt.odt
I get the result in the pdf ... strange whitespace and no bold anywhere to be seen. Can you give me another nudge ... I start to understand what Hans and you are actually doing, but this is still beyond me.
Cheers, Joh
[-- Attachment #2: Attempt.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 8037 bytes --]
[-- Attachment #3: Attempt.pdf --]
[-- Type: application/pdf, Size: 5287 bytes --]
[-- Attachment #4: t-openoffice.ctx --]
[-- Type: application/xml, Size: 386 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #5: t-openoffice.tex --]
[-- Type: text/x-tex; name="t-openoffice.tex", Size: 1041 bytes --]
%context --ctx=t-openoffice BoldAndItalicContent.xml
\startenvironment t-openoffice.tex
\startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
\stopxmlsetups
\xmlregistersetup{office}
\startxmlsetups text:p
\xmlflush{#1}\endgraf
\stopxmlsetups
\startxmlsetups text:span
\bgroup
\xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:textproperties)}
\xmlflush{#1}
\egroup
\stopxmlsetups
\startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
\stopxmlsetups
\xmlmapvalue{fo:font-weight}{bold}{\bf}
\xmlmapvalue{fo:font-style}{italic}{\it}
\starttext
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
\stoptext
\stopenvironment
[-- Attachment #6: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-19 20:38 ` XML Johannes Graumann
@ 2008-10-22 6:50 ` Wolfgang Schuster
2008-10-22 14:56 ` XML Johannes Graumann
2008-10-22 21:04 ` XML Johannes Graumann
0 siblings, 2 replies; 22+ messages in thread
From: Wolfgang Schuster @ 2008-10-22 6:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1292 bytes --]
On Sun, Oct 19, 2008 at 10:38 PM, Johannes Graumann
<johannes_graumann@web.de> wrote:
> Wolfgang Schuster wrote:
>>> \xmlfilter{main}{office:automatic-styles/style:style/style:text-properties
>>> /command(do:style:text-properties)}
>>> \xmlflush{#1}
>>> \egroup
>>> \stopxmlsetups
>>
>> \startxmlsetups text:span
>> \bgroup
>> \xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
>> \xmlflush{#1}
>> \egroup
>> \stopxmlsetups
>
> Hello Wolfgang,
>
> I just don't get it to run. Using the attached and
> context --ctx=t-openoffice Attempt.odt
> I get the result in the pdf ... strange whitespace and no bold anywhere to be seen. Can you give me another nudge ... I start to understand what Hans and you are actually doing, but this is still beyond me.
I attached a fixed version, the errors in your version are:
- your wrote "do:style:textproperties" instead of "do:style:text-properties"
for the "text:span" element , the hyphen was missing
- the begin of the line in \startxmlsetups text:span ... \stopxmlsetups
contained a lot of control codes and they inserted the whitespace,
could be a problem with your editor, which one do you use?
Wolfgang
[-- Attachment #2: t-openoffice.tex --]
[-- Type: application/x-tex, Size: 999 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-22 6:50 ` XML Wolfgang Schuster
@ 2008-10-22 14:56 ` Johannes Graumann
2008-10-22 21:04 ` XML Johannes Graumann
1 sibling, 0 replies; 22+ messages in thread
From: Johannes Graumann @ 2008-10-22 14:56 UTC (permalink / raw)
To: ntg-context
Wolfgang Schuster wrote:
> I attached a fixed version, the errors in your version are:
Thank you for your time!
> - your wrote "do:style:textproperties" instead of
> "do:style:text-properties"
> for the "text:span" element , the hyphen was missing
Ok, that was plain stupid.
> - the begin of the line in \startxmlsetups text:span ... \stopxmlsetups
> contained a lot of control codes and they inserted the whitespace,
> could be a problem with your editor, which one do you use?
I realized that once I saw the post on the newsgroup ... kate must have screwed up. I'm in the still relatively unstable kde4, which may have contributed.
Thanks again, Joh
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-22 6:50 ` XML Wolfgang Schuster
2008-10-22 14:56 ` XML Johannes Graumann
@ 2008-10-22 21:04 ` Johannes Graumann
2008-10-22 21:30 ` XML Hans Hagen
1 sibling, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-22 21:04 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
I keep gnawing on this now ...
Added the following (see attachment):
\xmlval{fo:color}{\xmlatt{#1}{color}}{}
and
\xmlmapvalue{fo:color}{#ff0000}{\color[red]}
Which works just fine (given you use "\setupcolors[state=start]" as well), but is there a way to generically paste the "ff0000" bit into the place of "red"? I played around with "system=rgb", but context won't take "ff0000" as a parameter ...
Another question: underlining in ConTeXt (as far as I can discern) needs a "\startunderline"/"\stopunderline" pair, no? Accordingly the combination of
\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
and
\xmlmapvalue{style:text-underline-style}{solid}{?}
doesn't work ... what's the proper construct to have xmlflush flanked by underline statements?
And even more ... how to match
<style:text-properties style:text-position="sub 58%"/>
generically, such that "sub*" (which doesn't work) might be used in a combination of
\xmlval{style:text-position}{\xmlatt{#1}{text-position}}{}
and
\xmlmapvalue{style:text-position}{sub*}{\subscript}
and any percentage following "sub" will be matched? Essentially I'm asking here how to use the regex "sub.*" in xmlmapvalue ...
Thanks for your time - the learning curve is steep. Where can one look up stuff like this?
Joh
[-- Attachment #2: Attempt.odt --]
[-- Type: application/vnd.oasis.opendocument.text, Size: 9324 bytes --]
[-- Attachment #3: t-openoffice.ctx --]
[-- Type: application/xml, Size: 386 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: t-openoffice.tex --]
[-- Type: text/x-tex; name="t-openoffice.tex", Size: 1515 bytes --]
%context --ctx=t-openoffice BoldAndItalicContent.xml
\startenvironment t-openoffice.tex
\startxmlsetups office
\xmlsetsetup{main}{text:p|text:span}{*}
\stopxmlsetups
\xmlregistersetup{office}
\startxmlsetups text:p
\xmlflush{#1}\endgraf
\stopxmlsetups
\startxmlsetups text:span
\bgroup
\xmlfilter{main}{office:automatic-styles/style:style[@style:name='\xmlatt{#1}{style-name}']/style:text-properties/command(do:style:text-properties)}
\xmlflush{#1}
\egroup
\stopxmlsetups
\startxmlsetups do:style:text-properties
\xmlval{fo:font-weight}{\xmlatt{#1}{font-weight}}{}% todo: namespaces in attributes
\xmlval{fo:font-style}{\xmlatt{#1}{font-style}}{}
\xmlval{fo:color}{\xmlatt{#1}{color}}{}
\xmlval{style:text-position}{\xmlatt{#1}{text-position}}{}
%\xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
\stopxmlsetups
\xmlmapvalue{fo:font-weight}{bold}{\bf}
\xmlmapvalue{fo:font-style}{italic}{\it}
\xmlmapvalue{fo:color}{#ff0000}{\color[ff0000]}
% \xmlmapvalue{style:text-position}{sub 58\%}{\subscript}
% \xmlmapvalue{style:text-position}{super*}{\superscript}
%\xmlmapvalue{style:text-underline-style}{solid}{\startunderline}{\stopunderline}
\starttext
\setupcolors[state=start]
%\xmlprocess{main}{zip:///\inputfilename.odt?name=content.xml}{}
\usezipfile[\inputfilename.odt]
\xmlprocess{main}{*/content.xml}{}
\stoptext
\stopenvironment
[-- Attachment #5: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-22 21:04 ` XML Johannes Graumann
@ 2008-10-22 21:30 ` Hans Hagen
2008-10-26 14:05 ` XML Johannes Graumann
0 siblings, 1 reply; 22+ messages in thread
From: Hans Hagen @ 2008-10-22 21:30 UTC (permalink / raw)
To: mailing list for ConTeXt users
Johannes Graumann wrote:
> I keep gnawing on this now ...
>
> Added the following (see attachment):
>
> \xmlval{fo:color}{\xmlatt{#1}{color}}{}
>
> and
>
> \xmlmapvalue{fo:color}{#ff0000}{\color[red]}
>
> Which works just fine (given you use "\setupcolors[state=start]" as well), but is there a way to generically paste the "ff0000" bit into the place of "red"? I played around with "system=rgb", but context won't take "ff0000" as a parameter ...
>
> Another question: underlining in ConTeXt (as far as I can discern) needs a "\startunderline"/"\stopunderline" pair, no? Accordingly the combination of
>
> \xmlval{style:text-underline-style}{\xmlatt{#1}{text-underline-style}}{}
>
> and
>
> \xmlmapvalue{style:text-underline-style}{solid}{?}
>
> doesn't work ... what's the proper construct to have xmlflush flanked by underline statements?
>
> And even more ... how to match
>
> <style:text-properties style:text-position="sub 58%"/>
>
> generically, such that "sub*" (which doesn't work) might be used in a combination of
>
> \xmlval{style:text-position}{\xmlatt{#1}{text-position}}{}
>
> and
>
> \xmlmapvalue{style:text-position}{sub*}{\subscript}
>
> and any percentage following "sub" will be matched? Essentially I'm asking here how to use the regex "sub.*" in xmlmapvalue ...
>
> Thanks for your time - the learning curve is steep. Where can one look up stuff like this?
\starttext
\startluacode
document.commands = document.commands or { }
function document.commands.somehexcolor(str)
local r, g, b = str:match("#(..)(..)(..)")
r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0,
tonumber(b,16) or 0
tex.sprint(string.format("\\colored[r=%s,g=%s,b=%s]",r/255,g/255,b/255))
end
\stopluacode
\setupcolors[state=start]
\def\WhatAMess#1{\ctxlua{document.commands.somehexcolor("#1")}}
{test \WhatAMess{\letterhash FF3344} test}
\stoptext
-----------------------------------------------------------------
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-22 21:30 ` XML Hans Hagen
@ 2008-10-26 14:05 ` Johannes Graumann
2008-10-27 10:42 ` XML Wolfgang Schuster
0 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-26 14:05 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 793 bytes --]
This is sending me down the right paths (at least showing me the sign post ;0) - I know I'm a pain in the neck, but the attached minimal (mirroring your proposal with the "colored" snippet fixed) compiles to to "black" "test"s ...
What's wrong?
Thanks, Joh
Hans Hagen wrote:
> \starttext
>
> \startluacode
> document.commands = document.commands or { }
> function document.commands.somehexcolor(str)
> local r, g, b = str:match("#(..)(..)(..)")
> r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0,
> tonumber(b,16) or 0
>
> tex.sprint(string.format("\\colored[r=%s,g=%s,b=%s]",r/255,g/255,b/255))
> end
> \stopluacode
>
> \setupcolors[state=start]
>
> \def\WhatAMess#1{\ctxlua{document.commands.somehexcolor("#1")}}
>
> {test \WhatAMess{\letterhash FF3344} test}
>
> \stoptext
>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: versuch.tex --]
[-- Type: text/x-tex; name="versuch.tex", Size: 524 bytes --]
\starttext
\startluacode
document.commands = document.commands or { }
function document.commands.somehexcolor(str)
local r, g, b = str:match("#(..)(..)(..)")
r, g, b = tonumber(r,16) or 0, tonumber(g,16) or 0, tonumber(b,16) or 0
tex.sprint(string.format("\\color[r=%s,g=%s,b=%s]",r/255,g/255,b/255))
end
\stopluacode
\setupcolors[state=start]
\def\WhatAMess#1{\ctxlua{document.commands.somehexcolor("#1")}}
{test \WhatAMess{\letterhash FF3344} test}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-26 14:05 ` XML Johannes Graumann
@ 2008-10-27 10:42 ` Wolfgang Schuster
2008-10-27 20:16 ` XML Johannes Graumann
0 siblings, 1 reply; 22+ messages in thread
From: Wolfgang Schuster @ 2008-10-27 10:42 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sun, Oct 26, 2008 at 3:05 PM, Johannes Graumann
<johannes_graumann@web.de> wrote:
> This is sending me down the right paths (at least showing me the sign post ;0) - I know
> I'm a pain in the neck, but the attached minimal (mirroring your proposal with the "colored"
> snippet fixed) compiles to to "black" "test"s ...
>
> What's wrong?
Hans used "\colored" and you use "\color".
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-27 10:42 ` XML Wolfgang Schuster
@ 2008-10-27 20:16 ` Johannes Graumann
2008-10-29 7:09 ` XML Wolfgang Schuster
0 siblings, 1 reply; 22+ messages in thread
From: Johannes Graumann @ 2008-10-27 20:16 UTC (permalink / raw)
To: ntg-context
! Undefined control sequence.
l.1 \colored
[r=1,g=0.2,b=0.26666666666667]
\WhatAMess ...ocument.commands.somehexcolor("#1")}
l.16 {test \WhatAMess{\letterhash FF3344}
test}
?
That's why I went "color" ...
Joh
Wolfgang Schuster wrote:
> On Sun, Oct 26, 2008 at 3:05 PM, Johannes Graumann
> <johannes_graumann@web.de> wrote:
>
>> This is sending me down the right paths (at least showing me the sign
>> post ;0) - I know I'm a pain in the neck, but the attached minimal
>> (mirroring your proposal with the "colored" snippet fixed) compiles to to
>> "black" "test"s ...
>>
>> What's wrong?
>
> Hans used "\colored" and you use "\color".
>
> Wolfgang
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2008-10-27 20:16 ` XML Johannes Graumann
@ 2008-10-29 7:09 ` Wolfgang Schuster
0 siblings, 0 replies; 22+ messages in thread
From: Wolfgang Schuster @ 2008-10-29 7:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 2073 bytes --]
Hi Joha´nnes,
I attached a modified version of t-openoffice.tex (I hope you have a
color blindness :-),
it's not very good but I hope it helps you.
Wolfgang
On Mon, Oct 27, 2008 at 9:16 PM, Johannes Graumann
<johannes_graumann@web.de> wrote:
> ! Undefined control sequence.
> l.1 \colored
> [r=1,g=0.2,b=0.26666666666667]
> \WhatAMess ...ocument.commands.somehexcolor("#1")}
>
> l.16 {test \WhatAMess{\letterhash FF3344}
> test}
> ?
>
> That's why I went "color" ...
>
> Joh
>
> Wolfgang Schuster wrote:
>
>> On Sun, Oct 26, 2008 at 3:05 PM, Johannes Graumann
>> <johannes_graumann@web.de> wrote:
>>
>>> This is sending me down the right paths (at least showing me the sign
>>> post ;0) - I know I'm a pain in the neck, but the attached minimal
>>> (mirroring your proposal with the "colored" snippet fixed) compiles to to
>>> "black" "test"s ...
>>>
>>> What's wrong?
>>
>> Hans used "\colored" and you use "\color".
>>
>> Wolfgang
>> ___________________________________________________________________________________
>> 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 : https://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___________________________________________________________________________________
>
>
> ___________________________________________________________________________________
> 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 : https://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
>
[-- Attachment #2: t-openoffice.tex --]
[-- Type: application/x-tex, Size: 2574 bytes --]
[-- Attachment #3: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: XML
2005-09-22 6:29 XML Jessica Holle
@ 2005-09-22 6:39 ` Henning Hraban Ramm
0 siblings, 0 replies; 22+ messages in thread
From: Henning Hraban Ramm @ 2005-09-22 6:39 UTC (permalink / raw)
Am 2005-09-22 um 08:29 schrieb Jessica Holle:
> Is it possible to fill a table or a document in ConTeXt with content
> from a XML file?
> Where do I find documentation about this? I didn't find something in
> the PDF's
Adam just posted these links:
http://pragma-ade.com/general/manuals/example.pdf
http://pragma-ade.com/general/magazines/mag-0008.pdf
You find more at http://wiki.contextgarden.net/XML
Grüßlis vom Hraban!
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)
^ permalink raw reply [flat|nested] 22+ messages in thread
* XML
@ 2005-09-22 6:29 Jessica Holle
2005-09-22 6:39 ` XML Henning Hraban Ramm
0 siblings, 1 reply; 22+ messages in thread
From: Jessica Holle @ 2005-09-22 6:29 UTC (permalink / raw)
Hi,
I've a question.
Is it possible to fill a table or a document in ConTeXt with content
from a XML file?
Where do I find documentation about this? I didn't find something in
the PDF's
Thx
Jessica
^ permalink raw reply [flat|nested] 22+ messages in thread
end of thread, other threads:[~2008-10-29 7:09 UTC | newest]
Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07 22:14 XML johannes_graumann
2008-10-08 6:34 ` XML luigi scarso
2008-10-08 8:02 ` XML Johannes Graumann
2008-10-08 8:11 ` XML luigi scarso
2008-10-09 7:50 ` XML Wolfgang Schuster
2008-10-09 18:13 ` XML Johannes Graumann
2008-10-14 7:24 ` XML Wolfgang Schuster
2008-10-16 8:24 ` XML Johannes Graumann
2008-10-18 7:28 ` XML olivier Turlier
2008-10-19 13:25 ` XML Johannes Graumann
2008-10-16 8:27 ` XML Johannes Graumann
2008-10-19 20:38 ` XML Johannes Graumann
2008-10-22 6:50 ` XML Wolfgang Schuster
2008-10-22 14:56 ` XML Johannes Graumann
2008-10-22 21:04 ` XML Johannes Graumann
2008-10-22 21:30 ` XML Hans Hagen
2008-10-26 14:05 ` XML Johannes Graumann
2008-10-27 10:42 ` XML Wolfgang Schuster
2008-10-27 20:16 ` XML Johannes Graumann
2008-10-29 7:09 ` XML Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2005-09-22 6:29 XML Jessica Holle
2005-09-22 6:39 ` XML Henning Hraban Ramm
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).