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

How to include suggestions for free text in the ODD schema? #13

Open
nathangibson opened this issue Jul 28, 2021 · 5 comments
Open

How to include suggestions for free text in the ODD schema? #13

nathangibson opened this issue Jul 28, 2021 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@nathangibson
Copy link
Member

Hi @wsalesky , there are some places in the manuscript descriptions where we would like to use free text (e.g., in handNote) but have some suggestions of common statements that might be inserted there. We'd like to have a multi-select option to insert these into a text box but allow them to be manually edited. We envision them being simple p elements (maybe including a label?), e.g., <p><label>ductus: connectivity</label>The ductus has a connected style.</p>

What is a reasonable way to indicate these suggestions in the ODD so that they could be programatically included in the XForms?

I think of 3 possibilities:

  1. As multiple p elements within exemplum/egXML, where your XSLT would look for @type='prose-template' and give the option of inserting any of the items in egXML
<exemplum type="prose-template" subtype="script-ductus">
    <egXML xmlns="http://www.tei-c.org/ns/Examples">
        <p><label>ductus: connectivity</label>The ductus has a connected style.</p>
        <p><label>ductus: abusive ligatures</label>The ductus has abusive ligatures.</p>
    </egXML>
</exemplum>
  1. As a valList[@type='open'] with each valItem/@ident indicating the text to be inserted, but the downside is I don't think the suggestion could contain any child elements whatsoever:
<valList type="open" >
                        <valItem ident="ductus: connectivity: The ductus has a connected style."/>
                        <valItem ident="ductus: abusive ligatures: The ductus has abusive ligatures."/>
</valList>
  1. As a content model in the content element, but this seems overly complex.

cc: @mMoliere

@nathangibson nathangibson added the question Further information is requested label Jul 28, 2021
@wsalesky
Copy link
Contributor

@nathangibson I think the first option would be the best.

@nathangibson
Copy link
Member Author

Thanks @wsalesky
@mMoliere So we could implement option 1 above.

@mMoliere
Copy link
Contributor

@nathangibson Option 1 should be easy to implement from a technical side. Now, we need to come up with attribute-values and prose text. As far as I see there is no such case in the test schema we are now designing for the XForms, right? Shall we discuss it further via Zoom in the coming days, or should we wait for Ronny to return?

@nathangibson
Copy link
Member Author

@mMoliere our current schema for XForms only covers msContents. But there were several items I think the things we talked about wanting to implement as templated text in handDesc or similar. So we don't need to discuss or do anything further in the schema yet. This is just figuring out how it should work when we get there.

@wsalesky
Copy link
Contributor

@nathangibson @mMoliere Are there any examples of this in the schema?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants