Example Psion documents


Subject: Example Psion documents
From: Frodo Looijaard (frodol@dds.nl)
Date: Tue Dec 19 2000 - 18:41:30 CST


Hi folks,

First off, attached to this is a small patch that must be applied on
top of the larger one I sent yesterday. It fixes color support, and
changes the property PROPS to props, to make it work with current CVS.

As requested there are three Psion documents attached to this:
  * 'Example Word' is an example Psion Word document which includes almost
    possible layout (except page-level layout);
  * 'Example TextEd' is a very short and simple Psion TextEd document;
  * `ASCII_Codes.psi' contains all characters the Psion knows about
    in a Psion Word file.

The last document is included to show that something goes wrong in the
conversion of ASCII characters above 0x80. I do the conversion as follows
(see IE_Imp_Psion::prepareCharacters for the exact code):

  char *input; /* parameter */
  class UT_Mbtowc mbtowc;
  int i /* index on input of character we will convert; in the real code
           we range it over a larger part of the input */
  UT_UCSChar uc;
  wchar_t wc;

  mbtowc.setInCharset("CP1252");
  if (!mbtowc.mbtowc(wc,input[i]))
    // We reach this point which is not good :-(
  uc = (UT_UCSChar) wc;
  if (!(gbBlock->ins(gbBlock->getLength(),&uc,1)))
     return UT_FALSE;

This may tie in to the discussion about signed characters; or it may not,
and I may just have hit some other problem. "CP1252" is known to my
iconv implementation, so that part should work...

Have fun with it,
  Frodo

-- 
Frodo Looijaard <frodol@dds.nl>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.







This archive was generated by hypermail 2b25 : Tue Dec 19 2000 - 18:41:41 CST