I'm working on an application that must be translated in korean, and I have to check text input values
I tried :
constraint="matches(.,'[ᄀ-ᇿ]+')"
and
constraint="matches(.,'^\p{IsHangulJamo}+$')"
but both of them doesn't allow korean characters, however constraint="matches(.,'^\P{IsHangulJamo}+$')" seems to allow all caracters, even not korean !
Do you have an idea about somethnig I'm wrong ?
Sylvain,
I created a test case to reproduce this, but the test case runs fine (it is attached to this email, and is now included in the XForms units test in tests-xforms.xml). Can you send me some files that I can run here to reproduce the issue you are experimenting?
Alex
<test description="Constraint with Korean character" name="oxf:xforms-annotate" only="true">
<input name="instance">
<instance>
<a>ᄅ</a>
<b>ሀ</b>
</instance>
</input>
<input name="model">
<xforms:model>
<xforms:bind nodeset="/instance/*" constraint="matches(.,'[ᄀ-ᇿ]+')"/>
</xforms:model>
</input>
<output name="instance">
<instance>
<a xxforms:valid="true">ᄅ</a>
<b xxforms:valid="false">ሀ</b>
</instance>
</output>
</test>
