RolandDreger / indesign-word-import

Alternative Microsoft Word import for Adobe InDesign
MIT License
29 stars 4 forks source link

Mapping list for styles #18

Open RolandDreger opened 1 year ago

RolandDreger commented 1 year ago

Possibility to assign an mapping list for styles in the course of import.

Word-H1-Name → InDesign-H1-Name Word-P1-Name → InDesign-P2-Name

dscholtus commented 9 months ago

How do you do this?

RolandDreger commented 9 months ago

When importing via InDesign, you can save a style mapping in an smp file. You will then also be able to select such a file in the script dialog.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Sangam-Import-Preset reader-type="Word/RTF">
    <Style-Mappings>
        <Paragraph-Style-Mappings>
            <Mapping style-name="Code" mapped-to="Absatzformat 2" />
            <Mapping style-name="Heading 1" mapped-to="Absatzformat 1" />
        </Paragraph-Style-Mappings>
        <Character-Style-Mappings>
        </Character-Style-Mappings>
    </Style-Mappings>
    <Import-Preferences>
        ...
    </Import-Preferences>
</Sangam-Import-Preset>

But the implementation will still take some time. It is planned for early 2024, when things are a little less busy.