Re: CopyToMemo feature

2001-10-18 Thread Bill Janssen

Cool!

Bill



CopyToMemo feature

2001-10-18 Thread MATSUMOTO Masakazu

I'm testing the feature to copy text and link URLs to memopad, which
has been wanted on this list.

When "Copy To Memo" in the menu is selected, it forces to redraw 
screen and copies the text in the viewport to the memo. URLs of the
links in the viewport is also added after the tag strings.

I think there must be much better way to take snapshot without
redrawing full paragraph, and also the links should better be listed 
at the bottom of the memo instead of in the lines, and so on.

Anyway i want your opinion.

/matto



Index: anchor.c
===
RCS file: /cvs/plucker/plucker_src/viewer/anchor.c,v
retrieving revision 1.28
diff -C3 -r1.28 anchor.c
*** anchor.c20 Jul 2001 20:14:05 -  1.28
--- anchor.c19 Oct 2001 04:48:35 -
***
*** 414,417 
--- 414,422 
  }
  else
  newAnchor->state = ANCHOR_UNUSED;   /* oh :( */
+ }
+ 
+ Int16 GetCurrentAnchorReference()
+ {
+   return currentAnchor->reference;
  }
Index: anchor.h
===
RCS file: /cvs/plucker/plucker_src/viewer/anchor.h,v
retrieving revision 1.20
diff -C3 -r1.20 anchor.h
*** anchor.h18 Jul 2001 20:01:35 -  1.20
--- anchor.h19 Oct 2001 04:48:35 -
***
*** 52,56 
--- 52,57 
  void StopAnchor( const TextContext* tContext, const Int16 height );
  void StopImageAnchor( TextContext* tContext, const Int16 height,
  const Int16 width );
+ Int16 GetCurrentAnchorReference( void );
  
  #endif
Index: document.c
===
RCS file: /cvs/plucker/plucker_src/viewer/document.c,v
retrieving revision 1.45
diff -C3 -r1.45 document.c
*** document.c  18 Jul 2001 20:01:36 -  1.45
--- document.c  19 Oct 2001 04:48:37 -
***
*** 306,311 
--- 306,314 
  
  WinSetClip( &viewportBounds );
  
+ if(GetHardcopyMode()==true)
+   OpenMemo(Prefs()->dbName);
+ 
  while ( numOfParagraphs-- ) {
  lastCursor = cursor;
  
***
*** 335,346 
--- 338,353 
  metaParagraph++;
  paragraph_index++;
  }
+ if(GetHardcopyMode()==true)
+   CloseMemo();
+ 
  MemHandleUnlock( metaRecord );
  WinResetClip();
  }
  
  
  
+ 
  /* Scroll record up */
  static void ScrollUp
  (
Index: externalform.c
===
RCS file: /cvs/plucker/plucker_src/viewer/externalform.c,v
retrieving revision 1.19
diff -C3 -r1.19 externalform.c
*** externalform.c  18 Jul 2001 20:01:36 -  1.19
--- externalform.c  19 Oct 2001 04:48:39 -
***
*** 32,41 
  
  void SetLinkIndex( Int16 index ) PLKRDB_SECTION;
  void AddURLToField( FieldType* fldPtr, Int16 index ) PLKRDB_SECTION;
  void WriteMemo( FieldType* field ) PLKRDB_SECTION;
  
  static void ExternalLinksFormInit( void ) PLKRDB_SECTION;
! 
  
  /***
   *
--- 32,45 
  
  void SetLinkIndex( Int16 index ) PLKRDB_SECTION;
  void AddURLToField( FieldType* fldPtr, Int16 index ) PLKRDB_SECTION;
+ void WriteMemo_new( FieldType* field ) PLKRDB_SECTION;
  void WriteMemo( FieldType* field ) PLKRDB_SECTION;
  
  static void ExternalLinksFormInit( void ) PLKRDB_SECTION;
! void OpenMemo(Char *text) PLKRDB_SECTION;
! void CloseMemo(void) PLKRDB_SECTION;
! void ScribeMemo(Char *text,UInt16 length) PLKRDB_SECTION;
! void AddURLToMemo( Int16 index ) PLKRDB_SECTION;
  
  /***
   *
***
*** 220,226 
  }
  
  
- 
  /* Event handler for the externallinks form */
  Boolean ExternalLinksFormHandleEvent
  (
--- 224,229 
***
*** 263,265 
--- 266,446 
  
  return handled;
  }
+ 
+ static DmOpenRef MemopadDB=NULL;
+ static UInt16 index;
+ static UInt32 offset;
+ /* Write the text from a TextField to a Memo */
+ void OpenMemo
+ (
+  Char *title
+ )
+ {
+ UInt16  mode;
+ mode = dmModeReadWrite;
+ if ( ( MemopadDB = DmOpenDatabaseByTypeCreator( 'DATA', 'memo', mode ) ) != NULL 
+)
+   {
+   //always open new memo, because paragraph size often exceeds 3000 bytes
+   MemHandle   recH;
+   UInt32 secs;
+   DateTimeType dateTime;
+   Charheader[ 60 ];
+   UInt16 length;
+   
+   secs = TimGetSeconds();
+   TimSecondsToDateTime( secs, &dateTime );
+   StrPrintF( header, "%4d-%02d-%02d %02d:%02d %s\n", 
+  dateTime.year, dateTime.month, dateTime.day, dateTime.hour, 
+dateTime.minute,title );
+   length=StrLen(header);
+   recH = DmNewRecord( MemopadDB, &index, length+1 );
+   if ( recH != NULL ) {
+ Charnull;
+ MemPtr  recP;
+ UInt16  attr;
+ Int16   category;
+ 
+ null = '\0';
+ recP = Me

Re: character sets in HTML files?

2001-10-18 Thread Bill Janssen

>   Remember, implementing an XML parser is no trivial matter. If the
> XML page or application fails validation, the page is bitbucketed. In the
> current scheme, Plucker tries to make sense of what's left of the broken
> HTML, but with XML, that's not allowed.

Luckily, Python 2 comes with three XML parsers.  I've been reading up on
them and trying to figure out which is the simplest to use for Plucker.

> > Indeed, but I thought XML was in unicode?  Or did I dream that? Probably
> > did, as I'm sure I've seen encoding="iso-8859-1" in some files,
> > actually.
> 
>   It is indeed unicode, however, you can override it.

There are two things going on.

Every XML and/or HTML document allows the full Unicode character set.
Period.  Every HTML document can contain any Unicode character.  But
they are expressed differently in the document depending on what
charset encoding is being used.  If a simple encoding like US-ASCII is
used, characters not in that character set are expressed as "&#;",
where  is the decimal value for the Unicode character code.
That's why you sometimes see things like "—" (em-dash) in HTML
files.

See http://www.w3.org/TR/2000/REC-xml-20001006#charsets for XML, and
http://www.w3.org/TR/html4/charset.html#h-5.1 for HTML, for more on
all this.

One of the practical consequences of all this is that when you receive
an HTML document, for example, in UTF-16LE or ISO-8859-5 charset
encoding, you need to transform it to a local charset encoding (say
US-ASCII or ISO-9959-1) before you can even parse it.  One of the
advantages of using Python 2 for parsing is that it can work with a
complete 32-bit Unicode charset encoding (UTF-8), rather than just a
locale-specific subset, and includes support for transforming many
(most) subsets into UTF-8.

Bill




MathML2.0?

2001-10-18 Thread Zailong Bian

Is Plucker going to support this?  It would be really nice...


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



Re: character sets in HTML files?

2001-10-18 Thread David A. Desrosiers


> Should plucker just parse XML and feed non-xml stuff to tidy to
> reformat?  Just an idea to simplify things.  I think it simplifies
> things, at least.

Remember, implementing an XML parser is no trivial matter. If the
XML page or application fails validation, the page is bitbucketed. In the
current scheme, Plucker tries to make sense of what's left of the broken
HTML, but with XML, that's not allowed.

> Indeed, but I thought XML was in unicode?  Or did I dream that? Probably
> did, as I'm sure I've seen encoding="iso-8859-1" in some files,
> actually.

It is indeed unicode, however, you can override it.


/d





Re: character sets in HTML files?

2001-10-18 Thread MJ Ray

Bill Janssen <[EMAIL PROTECTED]> writes:

> As soon as we add an XML component to the parser...  It's on my list.

Should plucker just parse XML and feed non-xml stuff to tidy to
reformat?  Just an idea to simplify things.  I think it simplifies
things, at least.

> Actually, if you read the XHTML specs, you'll see that they refer you
> back to the HTML specs for many, even most, things.

Indeed, but I thought XML was in unicode?  Or did I dream that?
Probably did, as I'm sure I've seen encoding="iso-8859-1" in some
files, actually.

-- 
MJR



Re: Anthrax Plucker Doc - thank you and a quick question

2001-10-18 Thread David A. Desrosiers


> I was wondering if you've considered adding a few Q&A's on the
> Biological warfare aspects of Anthrax?

> Again, well done,  Look forward to similar releases in the future,

I'm accepting any and all suggestions (and have gotten quite a few
so far. For example, "Anthrax" is a different disease in France, so I have
to correct that in 1.3).

Do you have any particular questions you'd like me to cover?


/d





Re: plucker and WAP?

2001-10-18 Thread David A. Desrosiers


> I notice that http://www.ananova.com/ advertises pages for WAP phones.
> Anyone here making use of those pages via plucker for their Palm?

If they are truly using WAP and WML in their implementation, I doubt
that the current Python parser that Holger and Bill Janssen have written
will correctly grok that content. If, however, it's just "light HTML", then
the chances are pretty high.

This one will work though:

http://www.ananova.com/pocket/

(and yes, it was from PODS)



/d





Re: making plucker-build easier to use?

2001-10-18 Thread David A. Desrosiers


> Well, to be more accurate, under the windows MacOS has an environment
> very much familar to a Unix / Linux developer.  Whether that OS is
> technically a Unix or Unix-like is probably not the issue for this
> mailing list.

Right, religious OS turf wars aside, here's the count of operating
systems that have either successfully, moderately-successfully, or with some
hacks, been able to use Plucker currently:

* Linux (all flavors)
   - repeated problems with Redhat 7.x Python builds
* OS/2 Warp 3 and 4 and Aurora
* Solaris
* HP-UX
* AIX
* Windows98/98SE/NT4/2000/ME (no testers for XP yet)
* BSD (both FreeBSD and NetBSD)

* Macintosh (prior to MacOSX)
   - any OSX testers want to help? I know of only one so far

That's a pretty good segment of operating systems and environments.
I think we're doing good so far.

One of the questions I have though, is what does Palm plan to do to
support their Palm Desktop offering and Hotsync conduit stuff for the
ongoing migration of Macintosh/Apple users to the new OSX environment? The
rules change slightly.. Then again, Palm did spin off their OS business,
perhaps they're going to focus on more hardware and tools than the OS
itself..



/d






Anthrax Plucker Doc - thank you and a quick question

2001-10-18 Thread EmHehl
Title: Message



Just thought I'd 
drop a quick note to say great job on th Anthrax doc.  Very well researched 
and written.  Enjoyable and informative read.
 
I was wondering if 
you've considered adding a few Q&A's on the Biological warfare aspects of 
Anthrax? You've done an outstanding job of succintly explaining the bacteria and 
how it naturally occurs (as well as symptoms, etc) but seem to stop short before 
explaining how it is refined, delivered, etc in a warfare setting (which we seem 
to be observing now).
 
Again, well 
done,  Look forward to similar releases in the future,
 
Regards,
 
Eric


plucker and WAP?

2001-10-18 Thread Larry W. Virden

I notice that http://www.ananova.com/ advertises pages for WAP phones.
Anyone here making use of those pages via plucker for their Palm?
-- 
Never apply a Star Trek solution to a Babylon 5 problem.
Larry W. Virden  http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-



Re: Where to get Robert O'Connor's betas?

2001-10-18 Thread David A. Desrosiers


> > I couldn't find Robert O'Connor's email address on his website
> > neither on this list...
>
> Maybe you should look in the AUTHORS file included in the Plucker
> package ;-)

Or on the Plucker website, on the download page...

Or on his original message about the german viewer...

Or on the files in the cvs, both directly and on the web...

We're all pretty easy to find  =)


/d





Re: making plucker-build easier to use?

2001-10-18 Thread Larry W. Virden

Well, to be more accurate, under the windows MacOS has an environment very
much familar to a Unix / Linux developer.  Whether that OS is technically
a Unix or Unix-like is probably not the issue for this mailing list.
-- 
Never apply a Star Trek solution to a Babylon 5 problem.
Larry W. Virden  http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-



Re: making plucker-build easier to use?

2001-10-18 Thread Larry W. Virden

Re: macosx

MacOS X has a shell, and in fact IS unix under the windows.  It just also
comes with a GUI 'shell' remarkedly like the Finder of older MacOS machines.
-- 
Never apply a Star Trek solution to a Babylon 5 problem.
Larry W. Virden  http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-



Re: making plucker-build easier to use?

2001-10-18 Thread Bill Janssen

>   Macintosh will still be a problem, since there is no shell.

Perhaps there is under OS X.

Bill



Re: Plucker conduit

2001-10-18 Thread Michael Nordström

On Mon, Oct 15, 2001, Bill Nalen/Towers Perrin wrote:
> Is there an interest in this?

Of course there is.

How does it compare to the python parser (speed and memory usage)?
E.g. I have tried to convert a quite large document (44MB) into
Plucker format and ran out of memory when the parser required more
than 300MB ;-)

/Mike



Re: Where to get Robert O'Connor's betas?

2001-10-18 Thread Michael Nordström

On Thu, Oct 18, 2001, A. Merleau wrote:
> So I'd want to know if it is possible to find an english version of the
> viewer with color support somewhere (or, better, a french one),

If Robert doesn't have any objections to the changes I suggested 
to him, then I'd guess he can commit the viewer changes to CVS.

> I couldn't find Robert O'Connor's email address on his website
> neither on this list...

Maybe you should look in the AUTHORS file included in the Plucker
package ;-)

/Mike



Where to get Robert O'Connor's betas?

2001-10-18 Thread A. Merleau

Hello,

Sorry for the newbie question, but I'm very curious about Plucker latest
developments.

I saw screenshots of the beautiful work of Robert O'Connor with color
support for page elements in Plucker viewer
(http://www.rob.md/projects/plucker/2001_10_06/index.htm) and Plucker
Desktop for Windows
(http://www.rob.md/projects/plucker/2001_10_13/index.htm).

Unfortunately, the only version of the viewer available for download on
his page is in german and I don't understand nothing in this language. I
tried to build the prc file myself with the resources files he provides,
I've donwloaded all the tools from Palm dev website, installed it on my
system, but after some hours I had to abandon because I couldn't get it
to work and dind't understand anything in building a prc file, even
after reading the help/how-to install files provided by Palm...
(BTW, does somone know a good step-by-step guide to install and use this
dev software in Windows? How-tos exists for Linux, but for Windows it's
harder to find...)

So I'd want to know if it is possible to find an english version of the
viewer with color support somewhere (or, better, a french one), and if
someone has a link to try Plucker desktop... Sorry for annoying
everybody here with this request but I couldn't find Robert O'Connor's
email address on his website neither on this list...
I'm don't know anything about developing Palm software but I'm very used
to test applications (BTW I own a M505 and a WinXP PC), find and report
problems... So I'd be very happy to help the plucker dev team this
way...

You can send me files or informations at
aml-palm/at/netcourrier.com

Cheers,
Aurélien M. LAUBUS




Feature-Wunsch

2001-10-18 Thread Hans-Peter Fieber

Hallo,

Ich wünsche mir die Möglichkeit, Text im plucker zu markieren und 
wie URLs in einen Merkzettel zu kopieren. Weiters wäre ein
automatischer Textscroll toll.


mit freundlichen Grüßen
Hans-Peter Fieber   http://www.doppelhorn.de
-- 
"nukular! Das Wort heißt 'nukular!'"
(Homer Simpson)



Re: making plucker-build easier to use?

2001-10-18 Thread Larry W. Virden


From: Bill Janssen <[EMAIL PROTECTED]>

>> What about to use the filename only (cut of the drive, path and
>> extension) and if it still to long cut from the end?
>
>The reason I wanted to use more of the URL was that if the filename
>matched another filename already in the Document Library, that first
>document would be deleted.  I wanted to maximize the likelihood that
>the doc name wouldn't accidentally match another doc name.

But in the case of using the first part of the URL, if two or more documents
come from the same basic directory, the later one would overwrite the
former ones, right?
-- 
Never apply a Star Trek solution to a Babylon 5 problem.
Larry W. Virden  http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should 
be construed as representing my employer's opinions.
-><-



Re: making plucker-build easier to use?

2001-10-18 Thread David A. Desrosiers


> I'm going to pursue this a bit further on Windows, first.  There must be
> some way to write binary output.

We should also have Alexander test this on OS/2, though in my
recollection when I ran it, it was more Unix-like than Windows-like.

Macintosh will still be a problem, since there is no shell.



/d