Import from OpenLP xml sometimes skips "-" inside text (non english text)

Bug #1701879 reported by Adrian Rigo on 2017-07-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenLP
Low
Unassigned

Bug Description

OpenLP on windows (latest 2 versions) on import from OpenLP xml format, sometimes skips dashes (-) inside verses.

Example:

xml: ne-a
Imported displays: nea

We comfirmed that the xml file contains the dash.
If edited in OpenLP and exported to xml it now shows: ne--a.

We compared with Beyond Compare and looks like those are two different characters.

One is skiped and one is parsed and imported.

As this is UTF8 it looks like the importer only accepts one character code for dash.

Tomas Groth (tomasgroth) wrote :

Could you provide an example file? That would make it easier to debug...

Adrian Rigo (rigocalin) wrote :

Just a short explanation to the XML files.

The first one is the XML that I wanted to import in OpenLP. It contains the correct text.
When importing it, OpenLP skips the dashes.

Then I imported, corrected the text in OpenLP and exported it back to xml.

The result is that now I have two dashes in the XML file.

Raoul Snyman (raoul-snyman) wrote :

This is might be because of Window's "fancy" characters (quotes, dashes and the like) that tend to mess things up?

Raoul Snyman (raoul-snyman) wrote :

Hi,

I just looked at your XML files (not in OpenLP, just raw), and the first XML file doesn't have the - character in it, and the second one only has a single character in it. Also, they both say they were created in OpenLP. So you'll need to upload the real original file with the problem.

Phill (phill-ridout) on 2017-10-30
Changed in openlp:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers