Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

Personal Pocket PC Wiki

Reply
 
LinkBack Thread Tools Display Modes
  #81 (permalink)  
Old 09-03-2008, 11:59 AM
Woinowski's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 105
Awards Showcase
Beta Tester 
Total Awards: 1
Default Would like to help - what is the exact problem?

Hi Tony,

I just looked at your samples and without running them I think they look fine.

So, do you have more specific problems with Regexes?

Maybe a classical UNIX manpage could help you, too: regex(7): POSIX.2 regex - Linux man page

Regards
Jens
__________________
Unclutter your code -- use an obfuscator
Reply With Quote
  #82 (permalink)  
Old 09-03-2008, 09:23 PM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

The main problem is my lack of knowledge.

The regex that I have post works well. I believe that if I can convert the rest of the sub "parseBlade" (or at least most of it) to regex instead of looping through the file checking every single character, then it will be much faster.

I have attached my wikipage "Ford". On my ppc it takes around 2 minutes to load. Now with my current parseBlade sub it is down to around or under a minute.

I need help to crete regex for the unsorted lists and sorted lists which can be nested.

Thanks Heaps any and all help appreciated
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #83 (permalink)  
Old 09-04-2008, 02:07 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Compressed Text

How about removing unnecessary spaces before parsing it? That seems like it would be easy to do with regex, especially if you are loading the whole file into a string.

Your test file didn't have any complicated spacing (ie two words separated by a space) so I used notepad's "replace/all" to remove the spaces and then parsed it in the older parser. The file was 1/2 the size and loaded much quicker.
Reply With Quote
  #84 (permalink)  
Old 09-04-2008, 10:23 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Thanks Don,
I didn't think of that. That removed about 2000 cycles out of the parser checking to see if those spaces needing anything doing to them. & yes regex fixed it brilliantly.

I wish I understood regex better, I could probably take over the world they are so powerful. Although there not the whole answer.

I have other even longer pages without the white space to cleanup so I will constantly be looking for ways to speed up things.

Quote:
Originally Posted by digitaldon37 View Post
How about removing unnecessary spaces before parsing it? That seems like it would be easy to do with regex, especially if you are loading the whole file into a string.

Your test file didn't have any complicated spacing (ie two words separated by a space) so I used notepad's "replace/all" to remove the spaces and then parsed it in the older parser. The file was 1/2 the size and loaded much quicker.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam

Last edited by tsteward : 09-04-2008 at 11:48 AM.
Reply With Quote
  #85 (permalink)  
Old 09-04-2008, 12:04 PM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Ok I have been programming my fingers off. My head is just about fried.
The latest version has been posted back in message #1.

I have achieved pretty much what I originally set out to do. Of course now I want more. Don't we always.

Anyway although this is labeled version 0.60 consider it a beta V1 release. I now would like people to report bugs (PPC version only). Its time for me to stop adding features and cleanup things.

Version 0.60(beta 1)
  • Added speed up code for section links. They nolonger re-load the whole page and re-parse the whole page.
  • Fixed up section linking to create desciptive links.
  • Cancel button in editing nolonger re-loads and re-parses the page un-necessarily.
  • Using link button on shortcut form will give a list of of available pages if no text is highlighted
  • Fixed section and live links
  • Now uses temp html file
  • Fixed check wiki syntax menu now checks the correct menu item
  • Fixed tables again
  • Fixed wiki parser not allowing <,>,# or $ in normal text
  • Added edit short cut buttons - tourn on or off via options
  • Added Insert Contents menu option to edit menu
  • Added About form
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #86 (permalink)  
Old 09-05-2008, 07:45 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Found and Squashed Bugs for version Beta 1:
  • If you click on a section link, then click on any link to another page it only half works.
Found & Not Squashed Bugs:
  • Links to sections on a differant page - don't work at all.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #87 (permalink)  
Old 09-05-2008, 03:41 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Checklist

Tony,

Attached is a checklist I put together to help me go test all of the features. Please add/edit and add to your #1 post if you wish.

Here are a couple of things I noticed:

1. In edit mode, the "[]" always prints "[" even if I'm trying to close the tag.
2. Grey space on top after switching between landscape and portrait mode

I also noticed that when I copied the "ppcw.ini" file from desktop to pda I got an error. The problem is the ini setting for the directory - the PDA chokes on the PC directory string. We may want to use one value for WikiDir for the PC and a different one for the PPC, and use the one for that platform. Maybe "wikiDirPPC" and "wikiDirPC" and then assign to WikiDir depending if CPPC is true or not.

Last edited by digitaldon37 : 09-05-2008 at 03:46 PM.
Reply With Quote
  #88 (permalink)  
Old 09-06-2008, 04:28 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Hi Don,
I don't get any grey space when switching on my ppc. I have tried in view mode and in edit mode. The only time I do is if I go into config and turn of shortcut buttons. But as stated on that screen changes will not apply until restart.

Yes the "[" situation is lazyness on my part I will fix that.

I agree with the ini problem. I was thinking like a programmer and I personally don't sync the ini file, but you can bet a user would and that would only leed to frustration for them.

Thanks for your comments

Quote:
Originally Posted by digitaldon37 View Post
Tony,

Attached is a checklist I put together to help me go test all of the features. Please add/edit and add to your #1 post if you wish.

Here are a couple of things I noticed:

1. In edit mode, the "[]" always prints "[" even if I'm trying to close the tag.
2. Grey space on top after switching between landscape and portrait mode

I also noticed that when I copied the "ppcw.ini" file from desktop to pda I got an error. The problem is the ini setting for the directory - the PDA chokes on the PC directory string. We may want to use one value for WikiDir for the PC and a different one for the PPC, and use the one for that platform. Maybe "wikiDirPPC" and "wikiDirPC" and then assign to WikiDir depending if CPPC is true or not.
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #89 (permalink)  
Old 09-06-2008, 11:39 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

Hi Don,
Sorry I have only just attempted to use this new file but it will not just pluging. You have changed the name of the sub. also declared something I cant remember at the moment.

You might like to look into this.

Regards
Tony

Quote:
Originally Posted by digitaldon37 View Post
Attached: wiki_parser (slash syntax)
* added new syntax markup
* fixed heading markup (would trigger on dates ie 7/27/08 created /2 headings)
* added debugMode to append error message on output for invalid markup
* added calls to FormatFileName (to replace spaces with %20, etc)

To Do:

1. Add ability to combine markups (can't use links in a table for now)
2. Add external web & file handler
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
  #90 (permalink)  
Old 09-06-2008, 11:46 AM
Basic4ppc Veteran
 
Join Date: Apr 2008
Location: Gosford NSW Australia
Posts: 223
Send a message via MSN to tsteward
Default

I thought I had it fixed but alas I'm stuck.

If you click on a section link to a header in the current page it works perfect on both pc and ppc.
Then if you click on a standard link it works on the pc but on the ppc it only half works. It loads and parses the new file but does not refresh the browser. If you hold down the stylus and select refresh from the popup menu the page is then displayed. The same thing happens if you click on a section link to a new page.

Any ideas on how and where I can refresh the browser?

Current code attached.
Subs concerned are:
Sub web_navigating
Sub Parse(url)
Sub RefreshWeb
__________________
PC: Dual core 3.4ghz 2gb ram
PPC: I-mate Jasjam
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Pocket Wiki digitaldon37 Open Source Projects 4 12-30-2009 02:12 AM
Written a Personal Wiki? tsteward Questions (Windows Mobile) 3 08-01-2008 04:34 AM
Pocket Chess Database JamesC Share Your Creations 3 07-27-2008 04:07 AM
B4P Wiki meinewelle Questions (Windows Mobile) 5 05-30-2008 06:55 AM
print class for pocket pc tanrikuluahmet Basic4ppc Wishlist 1 10-01-2007 09:10 AM


All times are GMT. The time now is 12:56 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0