tika icon indicating copy to clipboard operation
tika copied to clipboard

iWork Pages: recognize multi-paragraph placeholders

Open chaimleib opened this issue 5 years ago • 0 comments

If a placeholder (aka "ghost-text") spans across a paragraph break, the first <sf:ghost-text> element contains an sfa:ID attribute, which references a later <sf:ghost-text-ref> element by its matching sfa:IDREF attribute.

Example:

<sf:p sf:style="paragraph-style-32">
  <sf:ghost-text sfa:ID="SFWPGhostTextField-0">Lorem
  ipsum dolor sit amet, consectetur adipiscing elit, set...
  <sf:br /></sf:ghost-text>
</sf:p>
<sf:p sf:style="paragraph-style-32">
  <sf:ghost-text-ref sfa:IDREF="SFWPGhostTextField-0">At
  vver eos et accusam dignissum qui blandit est praesent...
  <sf:br /></sf:ghost-text-ref>
</sf:p>
<sf:p sf:style="paragraph-style-32">
  <sf:ghost-text-ref sfa:IDREF="SFWPGhostTextField-0">
  Plloaso mako nuto uf cakso dodtos anr koop a cupy uf...
  munityuw uw.</sf:ghost-text-ref>
  <sf:br />
</sf:p>
<sf:p sf:style="paragraph-style-32">
  <sf:ghost-text sf:localize="true">Sincerely yours</sf:ghost-text>,
  <sf:br />
</sf:p>

example-1.pages.zip

chaimleib avatar Mar 28 '19 03:03 chaimleib