After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666340 - problems with cyrillic text in latex export
problems with cyrillic text in latex export
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export HTML
git master
Other Linux
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2011-12-16 05:26 UTC by Andreas J. Guelzow
Modified: 2011-12-16 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample .gnumeric file (4.81 KB, application/gnumeric)
2011-12-16 05:26 UTC, Andreas J. Guelzow
Details
resulting latex file (8.47 KB, text/plain)
2011-12-16 05:26 UTC, Andreas J. Guelzow
Details

Description Andreas J. Guelzow 2011-12-16 05:26:07 UTC
Created attachment 203629 [details]
sample .gnumeric file

I am attaching two file:
1) A gnumeric file containing a brief cyrillic passage.
2) The result of exporting that file to a latex file.
When texing the file one gets:

! Undefined control sequence.
\u-default-1055 #1->\CYRP 
                          
l.185 ...edright}\gnumbox[l]{Приоритет 1}
Comment 1 Andreas J. Guelzow 2011-12-16 05:26:37 UTC
Created attachment 203630 [details]
resulting latex file
Comment 2 Andreas J. Guelzow 2011-12-16 05:37:48 UTC
Note that inserting the usepackage command:

\usepackage[T2A]{fontenc}

allows  the code to be compiled correctly.

The t2a encoding provides the appropriate russian font encoding support.

I am wondering how to properly solve this. Adding that command would be trivial but would require the appropriate packages to be present. So we don't really want to do that in general...
Comment 3 Andreas J. Guelzow 2011-12-16 20:06:27 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.

Note that we are now scanning all strings for their script and write
\usepackage[T2A]{fontenc}
if we see any cyrillic characters. If we determine other encodings needed for other scripts we should modify the check accordingly.