Re: Support for Japanese characters.

2001-10-29 Thread MATSUMOTO Masakazu

At Sat, 27 Oct 2001 16:26:14 +0200,
Michael Nordstrvm wrote:
 
 On Sat, Oct 27, 2001, David A. Desrosiers wrote:
   I think I'm going to make my own web-page which has patches for Plucker
   original sources.
  
  Why not integrate your useful changes into the main Plucker tree?
 
 Or even better, why not take a look at the code in the 'i18n' branch?
 
 It already has support for multibyte chars and as soon as the search
 function also has multibyte support I will add it to the main trunk.

Here is the patch for i18n branch to enable search.

Two files are modified.

* search.c: DoSearch()
pattern string is splitted at multibyte boundary, and copied 
into a private array wpattern[] in advance.

* paragraph.c: WriteLine(), DrawParagraph()
Tricky minus 1 operation to patternCount is abolished by 
reordering conditions in the main loop of WriteLine().

Please take a look.


 new-patch-for-i18n.gz


Re: Problem with Delete All (was: Default categories)

2001-10-29 Thread Michael Nordström

On Mon, Oct 29, 2001, MATSUMOTO Masakazu wrote:
 I'm using the binary which i compiled. 

Compiled from the source code in the 1.1.13 package or from some
locally modified source code?

 OK. I will check the source when I have time, but please let me know
 where did you fix when I reported the bug at first time.

I changed the order in the DeleteAllDocuments function (dbmgrform.c),
so that it started from the bottom of the list when removing documents.

BTW, while working on the VFS support I found a similar problem in 
InitDocList (categorydata.c) that could mess up the list of documents
if you remove documents from outside the viewer.

Let me know if you need some more help,
/Mike



Re: Russian Translation of Plucker (complete?)

2001-10-29 Thread Michael Nordström

On Sun, Oct 28, 2001, Oleg V. Krulikovsky wrote:
 Practice  shows  reverse  statement  for main menu - characters fit on
 over  another.

Are you sure that the Russian rcp file is correct (e.g. that correct
codepage is used)?

Nothing in Plucker should limit the format of the menu items, but
there are other factors, too (Russian OS, pilrc, prc-tools, ...)

/Mike




debug.c

2001-10-29 Thread Max Bian
Hi.
I am interested in hacking plucker. I found debug.c interesting. There are some functions to send the debug messages to serial port. My question is how to access these messages at real time?
In POSE, the serial port is mapped to localhost:6416 in the default setup. I am not sure how I read from there. A telnet connection to that address always gives me garbage.
While I am testing the pose logging setting on serial port, I'd appreciate a help on this from official developers.
Thanks!
MaxDo You Yahoo!?
Make a great connection at Yahoo! Personals.

Re: move to Python 2.x?

2001-10-29 Thread Bill Janssen

 python2.2 seems to have
 some problem on mips, so is also not included.

2.2 was still in beta last week, so I'm not terribly surprised.

Bill



Re: Plucker (Windows) atoi(.5) failure

2001-10-29 Thread Bill Janssen

Peter,

You're just tripping over invalid HTML.  Someone's got a HR
SIZE=.5 in there, which is an invalid size specification (see
http://www.w3.org/TR/html4/types.html#type-pixels -- has to be an
integer).  Nothing to do with images.

We could error-check these values more carefully in the parser...

Bill




Re: integrating plucker with other apps

2001-10-29 Thread Maciej Mochol

 It is possible to launch the viewer from another app, but it has no
 practical use, since global variables are not accessible. That also
 means that static local variables are not accessible and, even worse,
 you cannot access code outside of segment 0.

How about creating temporary db, used for interfacing, and then calling 
plucker with specific launch code ? It could be integrated with VFS. 
Worse thing - how to return :)

best regards
Maciej Mochol



Re: debug.c

2001-10-29 Thread Max Bian

Hi,

I haven't heard anything back from developers, but I got a solution to the
problem.

I modified the file debug.c, and changed all the serial code to POSE
HostControl API functions.  Now I can use tail -f to watch my debugging
messages in a terminal without the tricky serial port thing.

The change is minimum:

==
#include HostControl.h
...
HostFILE *fh;

fh = HostFOpen(/tmp/MyDebug.txt, a );
if (fh == NULL) {
// Well ...
}
if ( printFileLineTitle ) {
StrPrintF( logBuf, [ %s ] %s:%d:, title, fname, line );
StrPrintF( logMsg, %-25s, logBuf );
HostFPutS( logMsg, fh );
HostFFlush( fh );
printFileLineTitle = false;
}
if ( COUNT_TICKS ) {
StrPrintF( logMsg,  [ ticks: %ld ] , TimGetTicks() );
HostFPutS( logMsg, fh );
HostFFlush( fh );
}
StrPrintF( logMsg, %s: %s, function, msg );
HostFPutS( logMsg, fh );
HostFFlush( fh );
HostFClose( fh );
...
===

But I am still interested in knowing how to view the messages output from
serial port.

Thanks!

Max


--- Max Bian [EMAIL PROTECTED] wrote:
 
 Hi.
 I am interested in hacking plucker. I found debug.c interesting.  There are
 some functions to send the debug messages to serial port.  My question is how
 to access these messages at real time?
 In POSE, the serial port is mapped to localhost:6416 in the default setup.  I
 am not sure how I read from there.  A telnet connection to that address
 always gives me garbage.
 While I am testing the pose logging setting on serial port, I'd appreciate a
 help on this from official developers.
 Thanks!
 Max
 
 
 
 -
 Do You Yahoo!?
 Make a great connection at Yahoo! Personals.


__
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com



need more info on how URLs and mailto's are identified

2001-10-29 Thread Bill Janssen

I realized I didn't know how the URLs in the URL data records are related to the
information in the pages.  Could someone who understands it (Chris, Mike?) please
send or post an amplified description?  Thanks.

Bill



Re: Rookie questions

2001-10-29 Thread MJ Ray

Brian:
 (1) Is there a way to look at archived traffic from this list? The

Related question: how do I move to a digest subscription?

 (2) Does Plucker support horizontal layout of tables?

The problem is finding a good algorithm for handling tables that don't fit
on the palm screen, I believe.
-- 



Support for Japanese characters.-2

2001-10-29 Thread Nori Kanazawa

Hi Guys,

 This is Nori. I'm new here, and assume that my last post on
plucker-dev has been sent here, and there had been some discussions.
 Because my post was sent before start of subscription, actually I
didn't think my mail was accepted without subscription, I have not 
read all of mails following mine. 
 Last night I got an e-mail from Mr. Matsumoto, who is an author
of Japanese(Internationalizing?) patches, and discussed about what I
can do for plucker dev. and how it should be, and then I decided to
join this dev-ml. ;-)

 Anyway I have some questions, If you guys could answer these to me, I
would be appreciated!

 - UL seems transferred 'middle dot'(0xb7) on Palm Viewer, but
unfortunately Palm official Japanese-OS(which is not hack version),
can not draw the character correctly. I tried to look into source
files of viewer, but have not found lines which draw the character. I
and Mr. Matsumoto guess there is translation from UL to 'middle dot'
somewhere in parser codes. Would you point it to me?

 - 'stayonhost' keyword is supposed not to work sometimes. If 'href'
type links like '/images/black.gif' are found in html, parser thinks
it's on outside server because the name of server is '', and failed
when compare to the server name. My question is, is this what you(we)
want? or bug?

 - Sometimes fetch to '://www.foo.com/images.gif', which does not have
protocol name, does not work. I have made workaround which adds
'http' before '://' if there is no protocol name, and seems working. I
tried to deeply dive in to retriever of parser, but have not done
it. Is this a bug? 

 - I modified parser to convert text lines in HTML page to Shift JIS
code, which is only usable on Japanese Palm device, before making a pdb
file. That works for Japanese document fine, but I'm wondering how
support for multiple languages(international characters) should
be. I'm far from expert of this kind of stuffs, does somebody know
about this? Or are we happy if I would add a new option in parser like
'-sjis' which always converts characters to Shift JIS code.

Thanks,
--
 Nori