[Okular-devel] [Bug 211990] New: metadata format is locale dependant

bugzilla at gronbaek.net bugzilla at gronbaek.net
Mon Oct 26 22:10:13 CET 2009


https://bugs.kde.org/show_bug.cgi?id=211990

           Summary: metadata format is locale dependant
           Product: okular
           Version: 0.9.2
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: okular-devel at kde.org
        ReportedBy: bugzilla at gronbaek.net


Version:           0.9.2 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

When exporting an annotated PDF to an Okular document archive, the metadata.xml
file will contain locale dependant information. Specifically the coordinates of
any annotations will be stored with the locale delimiter.

A document stored with the Danish locale will have the following coordinate
format:
<line closed="1" >
      <point x="0,2466307277628032" y="0,5881168177240684" />
      <point x="0,5849056603773585" y="0,5861027190332326" />
      <point x="0,5822102425876011" y="0,6545820745216515" />
      <point x="0,2452830188679245" y="0,6545820745216515" />
</line>
with a comma (,) as the delimiter. If this document is open on a machine with
for example an English locale, all annotations are shown in the review sidebar,
but not in the actual document. Closing/exporting the document will change all
annotations to the form <point x="0.0" y="0.0" /> which will render the
document useless on the machine with the original locale.

A search and replace for , to . (comma to dot) in the metadata.xml file will
work as a workaround.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list