MeltwaterArchive / editor

GUI editor
MIT License
86 stars 45 forks source link

Editor Generates Invalid CSDL, Possibly Due to RTL Language Content #54

Open michaelahlers opened 9 years ago

michaelahlers commented 9 years ago

Output from the Visual Editor with Arabic language terms produces a CSDL query that fails validation (and compilation), with message "Error: We are unable to parse this stream. At line 4 position 43 we were expecting a colon (:)".

The offending query follows:

// JCSDL_MASTER 1dd66349649bcb953d6176220f99edd2 1|2
// JCSDL_VERSION 2.1
// JCSDL_START b4c00e8901cdb5a2e494d0ba3769d7fb interaction.content,contains_near,35-25 1
interaction.content contains_near "السفارة الأمريكية,هجوم:10"
// JCSDL_END
OR
// JCSDL_START 7dc96cb8c04d81f56401b0f380139b39 interaction.content,contains_near,35-18 2
interaction.content contains_near "هجوم,الأميركيون:10"
// JCSDL_END
// JCSDL_MASTER_END

Here are two screenshots to verify everyone sees the correct text direction:

visual editor with query

visual editor query output