Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The way params are stored in lib.plist makes the file invalid according to DTD #100

Open
rimas-kudelis opened this issue Oct 2, 2024 · 0 comments

Comments

@rimas-kudelis
Copy link
Contributor

A lib.dtd file currently becomes invalid according to the DTD if PSF params are stored in it.

The Property List DTD defines very strictly what data and what tag names are acceptable.

Instead of storing params like the documentation currently suggests:

<key>org.sil.pysilfontparams</key>
<array>
  <indentIncr>\t</indentIncr>  
  <glifElemOrder>lib,unicode,note,image,guideline,anchor,outline,advance</glifElemOrder>
</array>

it would be much more appropriate to store it slightly differently, for example, like this:

<key>org.sil.pysilfontparams</key>
<dict>
  <key>indentIncr</key>
  <string>\t</string>
  <key>glifElemOrder</key>
  <array>
    <string>lib</string>
    <string>unicode</string>
    <string>note</string>
    <string>image</string>
    <string>guideline</string>
    <string>anchor</string>
    <string>outline</string>
    <string>advance</string>
  </array>
</dict>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant