bug-unrtf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-unrtf] `unrtf --latex` not translating defined chars + more


From: Christian Sonne
Subject: [bug-unrtf] `unrtf --latex` not translating defined chars + more
Date: Tue, 31 Jan 2006 22:43:47 +0100
User-agent: Mutt/1.5.11

Hi, this is my first post to this list, and - well as this seems to be
the first actual mail on it, I'm not even sure anybosy but is even
subscribed - but here goes:

using unrtf-0.19.9 to convert rtf to latex, I notice that certain chars
are not translated, even though they seem to be defined in latex.c in
the ANSI-table

examples are:
% char 0xe1
% char 0xeb
% char 0xf1
% char 0xfa

even though latex.c (clearly?) lists these:
/* 0xe0 */ "\\`{a}","\\'{a}","\\o{a}",
--------------------^ 0xe1
/* 0xe8 */ "\\`{e}","\\'{e}","\\o{e}","\\\"{e}",
--------------------------------------^ 0xeb
/* 0xf0 */ "\\eth ","\\~{n}","\\`{o}","\\'{o}",
--------------------^ 0xf1
/* 0xf8 */ "\\slash{o}","\\`{u}","\\'{u}","\\o{u}",
---------------------------------^ 0xfa

I suspect more examples could be found, but these are the ones I just
spotted while writing this.

other than that - 0x2a (which is in the ascii-table) is translated to
{\ast}, but since the \ is not escaped, this translates to the
control-sequence \a followed by 'st' - I assume this should have been
\\ast ? (asterisk *)

I also notice that the rtf-sequence \u8211\'2d is ignored by unrtf, or
rather, replaced with a blank space, but it should have been --- in
latex (long dash is converted automatically from three regular dashes)
- this is actually even listed in the ANSI-table under 0x96/97, and
  seems to have been added recently (23 Jul 05)

As I said, there are probably more examples of defined chars not getting
translated, and I'm happy to report any others I might find (that is, if
anybody responds to this email), and if I figure out why it happens, a
patch will be heading your way :-)


Best regards
-- 
Christian Sonne 
Stud. IT at Technical University of Denmark
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GM/S/CS/O d? s: a--->? C++ UL++>$ P+ L++ E--- W++ N o@ K? w !O M-- V?
PS++(+) PE@ Y-- PGP-@ t+ 5? X++ R@ tv++ b+(++) DI+>++ D G@ e>+++++
h! r-(--) y?
------END GEEK CODE BLOCK------
http://geeksbynature.dk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]