IDML Filter: Merge tags that differ by kerning method

Issue #777 resolved
Denis Konovalyenko created an issue

There are the following kerning methods available:

  1. Optical - when the kerning is automatically defined per character in the range
  2. Metrics - when the KerningMethod attribute is absent at all (equals to 0 in the UI)
  3. None - when the kerning value is set 0
  4. Manual - when there is a manually set value, other than 0

And this is how they look like in the UI:

756-character-kerning-method.png

And in the corresponding paragraph:

        <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/$ID/NormalParagraphStyle">
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/Optical">
                <Content>KerningMethodOptical</Content>
                <Br/>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
                <Content>KerningMethodMetrics</Content>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/Optical">
                <Br/>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/None" KerningValue="0">
                <Content>KerningMethod0</Content>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/Optical">
                <Br/>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]">
                <Content>Kerning</Content>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/Manual" KerningValue="5">
                <Content>5</Content>
            </CharacterStyleRange>
            <CharacterStyleRange AppliedCharacterStyle="CharacterStyle/$ID/[No character style]" KerningMethod="$ID/Manual" KerningValue="10">
                <Content>10</Content>
            </CharacterStyleRange>
        </ParagraphStyleRange>

For more details please refer to the attached file in the IDML format.

They probably have to be merged under the ignoreCharacterKerning parameter set to true.

Comments (3)

  1. Log in to comment