Text of variables in IDML not extracted

9 views
Skip to first unread message

Marc

unread,
Feb 25, 2022, 2:58:29 AM2/25/22
to okapi-users
Dear all,

is there a possibility to extract text of variables of an IDML file?

I could not find one so far.

My IDML settings in Rainbow look like the attached screenshot.

Inside an unpacked IDML file it would be needed to extract the string
"Original Betriebsanleitung" from one of the following 2 locations
(parts of the xml structure unnecessary for understanding replaced by
"..."):

designmap.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?aid style="50" type="document" readerVersion="6.0" featureSet="257"
product="17.1(50)" ?>
<Document
xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"
DOMVersion="17.0" Self="d" StoryList="..." Name="xxx.indd"
ZeroPoint="595.275590551 0" ActiveLayer="ubf" CMYKProfile="Coated
FOGRA39 (ISO 12647-2:2004)" RGBProfile="sRGB IEC61966-2.1"
SolidColorIntent="UseColorSettings"
AfterBlendingIntent="UseColorSettings"
DefaultImageIntent="UseColorSettings" RGBPolicy="ConvertToWorkingSpace"
CMYKPolicy="CombinationOfPreserveAndSafeCmyk" AccurateLABSpots="false">
    ...
    <TextVariable Self="dTextVariablenSielaff_Dokumentenart"
Name="Sielaff_Dokumentenart" VariableType="CustomTextType">
        <CustomTextVariablePreference>
            <Properties>
                <Contents type="string">Original
Betriebsanleitung</Contents>
            </Properties>
        </CustomTextVariablePreference>
    </TextVariable>
    ...
</Document>


Or from Story_u5d244.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<idPkg:Story
xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"
DOMVersion="17.0">
    <Story Self="u5d244" AppliedTOCStyle="n" UserText="true"
IsEndnoteStory="false" TrackChanges="false" StoryTitle="$ID/"
AppliedNamedGrid="n">
        ...
        <ParagraphStyleRange
AppliedParagraphStyle="ParagraphStyle/Musterseiten Kopf/Fuß Informationen">
            <CharacterStyleRange
AppliedCharacterStyle="CharacterStyle/$ID/[No character style]"
PageNumberType="TextVariable">
                <TextVariableInstance Self="u5d2ac"
Name="xxxxxx_Dokumentenart" ResultText="Original Betriebsanleitung"
AssociatedTextVariable="dTextVariablenxxxxxx_Dokumentenart" />
            </CharacterStyleRange>
            ...
        </ParagraphStyleRange>
    </Story>
</idPkg:Story>


Is there any possibility to do this?

Can someone help?

Thank you very much in advance

best

Marc
Bildschirmfoto vom 2022-02-25 08-54-39.png
Reply all
Reply to author
Forward
0 new messages