Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 15:29:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: 1 [2]   Go Down
  Print  
Author Topic: Text compression for AXE programs -  (Read 896 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
gtaforever00
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 25 November, 2011, 11:09:10
Date Registered: 26 October, 2011, 21:01:54
Posts: 10

Topic starter
Total Post Ratings: +4

View Profile
« Reply #15 on: 02 November, 2011, 04:31:02 »
+1

Ok since the last few posts, I have decided just to start over and rebuild the algorithm from scratch. Shocked  I had to add another bit to the data to make 64 characters.  The maximum compression would be around 25%.  I had to add a little data, but hopefully stay in the 20's. Roll Eyes  I have decided to use Quigibo's idea with the decoder.  Thanks for idea Quigibo. Grin  I will have rules on how to uppercase the first letter of every sentence and every single I that is part of the sentence structure.  It will automatically uppercase the first word of every sentence, uppercase every singe I, and if you want a certain character uppercase then all you have to do is add a token in front of the character to make it uppercase.  It adds a little more space to the data, but you get more control and more compression than using other ideas.

All the letters, numbers, and countless symbols will be usable.  I may start a poll to see what would be most wanted on the special symbols.  Well I think I am going to start building this beast! Evil Laugh
« Last Edit: 02 November, 2011, 08:14:01 by Qwerty.55 » Logged
C0deH4cker
LV5 Advanced (Next: 300)
*****
Offline Offline

Gender: Male
Last Login: 19 December, 2012, 22:22:42
Date Registered: 18 October, 2011, 23:19:08
Location: $9D95
Posts: 258


Total Post Ratings: +10

View Profile WWW
« Reply #16 on: 02 November, 2011, 16:36:27 »
0

Good idea with the uppercase letters! cant wait to see this when its done.
Logged

gtaforever00
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 25 November, 2011, 11:09:10
Date Registered: 26 October, 2011, 21:01:54
Posts: 10

Topic starter
Total Post Ratings: +4

View Profile
« Reply #17 on: 03 November, 2011, 20:29:23 »
0

Well I finally got the compression engine made.  It outputs in hex to TI-OS Str2 and the input is a string in the TI-OS Str1.  On the decompression,  I will probably store the decoded text in an appvar.  Does that sound ok to everyone?  I want to try and not use any free ram or variables, as I want this to be easily incorporated into any program.  I will probably use the subroutine variables r1 - r6 and the appvar.  The compression is around 20% to 25%.  The more characters you have the more compression it seems to do.
Logged
Keoni29
LV9 Veteran (Next: 1337)
*********
Offline Offline

Gender: Male
Last Login: Today at 14:58:38
Date Registered: 15 March, 2011, 16:23:33
Location: The Netherlands
Posts: 1115


Total Post Ratings: +146

View Profile WWW
« Reply #18 on: 03 November, 2011, 20:44:23 »
0

Cool! Lowercase supported?
Logged


Spoiler for Hidden:
Last signature update 10:55 april 22nd 2013
gtaforever00
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 25 November, 2011, 11:09:10
Date Registered: 26 October, 2011, 21:01:54
Posts: 10

Topic starter
Total Post Ratings: +4

View Profile
« Reply #19 on: 04 November, 2011, 19:31:56 »
0

Well here is a screenshot of the current state:




Str1 is the input it is 151 bytes
Str2 is the output and is 119 bytes shocked
Str3 is the output in hex it is 227 bytes

Instead of the Hex output,  I could just use the raw output but it does not always look pretty in TI-OS but would save space in the source.

I have started on the decompression and it is going well so far.  I have also thought about doing maybe a simple lzw compression on the already compressed data to compress it even more or even as the primary compression technique if it yields better results. Huh?  

I will still take any suggestions you may have.  I feel getting input from a group of users that would use the tool will result in a better program in the end.   Grin

Cool! Lowercase supported?

Yes lowercase will be supported through the decompression.
« Last Edit: 07 November, 2011, 19:35:25 by gtaforever00 » Logged
gtaforever00
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 25 November, 2011, 11:09:10
Date Registered: 26 October, 2011, 21:01:54
Posts: 10

Topic starter
Total Post Ratings: +4

View Profile
« Reply #20 on: 06 November, 2011, 04:18:52 »
0

Ok here is another screenie for you all. You just lost the game



23% is not too bad.  The decompression engine is coming along nicely.  I am just working out a few bugs in the code and hopefully to finish here soon.
« Last Edit: 07 November, 2011, 19:38:57 by gtaforever00 » Logged
gtaforever00
LV1 Newcomer (Next: 20)
*
Offline Offline

Last Login: 25 November, 2011, 11:09:10
Date Registered: 26 October, 2011, 21:01:54
Posts: 10

Topic starter
Total Post Ratings: +4

View Profile
« Reply #21 on: 07 November, 2011, 21:21:07 »
0

Ok here is every character available on the calculators:



If you want to post the top 10 symbols you would want the most and a possible token to use for its representation on calc.

I already have all letters, numbers, period, question mark, exclamation, comma, single quote, opening parenthesis, closing parenthesis, colon, and negative sign so please do not post these again.

Example:
    Hex character / TI on-calc token
1. 05h (right pointing arrow) / > token
2. 3Bh (semi colon)/ i (complex) token
3. F2h (money sign) / pi symbol token


Hex (row|column)h

« Last Edit: 07 November, 2011, 21:38:54 by gtaforever00 » Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.17 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.