RolandDreger / indesign-word-import

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

Get list type in indesign #17

Open davidmaissen opened 1 year ago

davidmaissen commented 1 year ago

Hi, thx for this amazing script. is there any plan to map the list type in indesign (e.g. as an XML attribute)? This would be especially helpful for documents without a clean formatting structure.

RolandDreger commented 1 year ago

Hi,

that's a good idea, an attribute whether it's an ordered or unordered list, with bullet or decimal. That's what you mean, right?

Regarding lists, another improvement is also planned, that can be implemented together.

davidmaissen commented 1 year ago

yes, that's exactly what i mean. i'm looking forward to seeing the improvement regarding lists. thanks a lot.

RolandDreger commented 1 year ago

So, finally found the time to address the issue. New attributes for the list items: list-format and list-start. Both values belong for the whole list.

list-format

Possible values are, for example: decimal, lowerRoman, bullet, cardinalText, custom; 001, 002, 003, ..., ...

list-start

Bildschirmfoto 2023-04-01 um 17 13 46 Bildschirmfoto 2023-04-01 um 17 15 44 Bildschirmfoto 2023-04-01 um 17 20 46

The Word and InDesign lists are organized slightly differently, so they can't be mapped 1:1. But hopefully the attributes will help to reproduce the lists in InDesign.