Showing posts with label UTF8. Show all posts
Showing posts with label UTF8. Show all posts

Friday, February 12, 2016

LiveForIt Music and UTF8.library

I have not really written a lot on blog lately, mostly just doing my own thing.

Anyway, I have finally found a program worth doing on AmigaOS, well actually there many programs, worth doing, it's just finishing the programs, and having the tools you need to write programs, is not always easy.

One of this tools is UTF8, is widely used text format that unlike ASCII preserves chares in a format can be shared on the internet, instead of chars, UTF8 uses glyphs or same numbering as used by your fonts, so you don't need to lookup glyphs from a code page table.

It's compact, and is compatible with ASCII 7bit, or US chars, 8bit is used for encoding, this allows 2 or 3 or more bytes, if required to store glyph numbers, it's sort of a compression, but as developer you don't need to think about that as long as you stick to UTF8 functions.

Besides being able to convert between ASCII and UTF8, you need a way to display the text format. This been totally lacking, in AmigaOS, and continues to be issue, today. But I don't need to wait for Hyperion and there slow progress, some things I can do myself.

But every attempt I have tried as failed until now, I blame bad documentation, and lack of simple examples. Every time I have asked for help, I have been pointed in direction of big hunk of code called NetSurf, that by the way hides just the part I need to know. In different file then one I was pointed two and it also hides, font engine part in macro, so what I was looking for was not really a different variable, but outline fount struct. That I had all along, coding can be frustrating some times, but so pleasing when find out way did not work.

Once I found a BlitzBasic2 example that tried translating, it was just a waste of time.

The other document I have looked at, was the page on the Amiga wiki, that suggest using bitmap fonts, the document is obsolete, and has more historical value then real value. Someone started the transaction of document but stopped half way in.

But as long as one don't give up there is hope, just keep on keeping on, like the Americans say.

The Amiga developer saying "Two more weeks" is not what I'm thinking of, that sort reminds me about when I wake up in the morning sleepy as hell, thinking I have time, I sleep just a few min more, and the I wake up 15 or 30 late for work, and wake up praying there no traffic. Lucky everyone else on road is also late for work so at least only a few people are driving under speed limit o_O.

I'm not 100% sure I know what "keep on keeping on" means, but it sort sound like stay focus on what you're doing, and don't give up. When write software it easy to get distracted and will not do something else, and that might be good thing some times, but it extremely easy to just forget about things, and they never get finished. You need to keep some focus on what you're doing.

And it's probably better to release something that is 90% finished then to never release the software at all. That is sort what I did with UTF8.library, it did have text formatting part done. More or less, now, it time up upload a new one, I need some time update the documentation.

Next is getting LiveForIt-music ready, as I was saying before I'm not on a dead line, I'm just making sure the things that should work works.

Wednesday, March 19, 2014

UTF8.library, progress and some information about the up coming version 4.

I'm a bit amazed by number of download of my UTF8.library, for library that is not used by any application it gets a lot of downloads, it does make my happy.

47 Downloads currently on version 3, not bad at all,

A new version will be out in today or tomorrow, I think, just need to check that every thing is ok.

The new library will contain 7 more string handling rutins. 1 more routine to check Byte Size.

As you might have noticed, naming of function I use Relefact names used in std:string C++ class function names Microsoft uses on there string class. Of course there are some variation because we need to support for sheard memory, when dealing whit strings.

As I'm nearing completion, I hope that I can return to the project I was working before starting on UTF8.Library.

There might be another 10 to 15 routines we don't have yet in this library to render the other libraries redundant. While your waiting you just need to mix and match what you need for that different libraries.

I will so like some feed back form you developers on what routines you like to see in the next version, what do you think I have forgotten, are there thing you think I should do different?

Better to tell me now before I decide to freeze features.

Also the language alphabet has been a bit annoying, I hope its possible to get this from some where in the OS, or else I will need to ask people provide there Language alphabets in UTF8 format as text file.

Because we will need it do casecmp, upper, lower and sorting, the standard one's only really support English it seams, and thats no good.

Sunday, March 9, 2014

Things I'm working on for the mommet.

I have been busy reading about MS C#, and about classes, in order to make it interesting I wanted to make a program, that will be useful to me and maybe others, a cross platform application.

I know C# is not really portable but its more portable then VirtualBasic, at lest it has most of the C++ syntax, even if .Net Framework is different, there are a few different versions of .Net Framework you have XNA a Game API used on XBOX, and then Portable Class Library.

The Portable Class Library is more or less useless, because everything has to be recreated anyway, and its too small to be of any use.

Supporting just XNA does not make lot of senses, if AmigaOS can support some thing, there is no point in limiting it to XNA.

The full .Net Framework is too big of job to support, so what I have basically been doing to create C++ classes for what I have used in my project.

And been trying to get same program to work on AmigaOS whit small modifications, just by implementing the classes need to for the program.

So to make this clear this is not XNA, .NET or Portable Class Library this is some thing new.

Hopefully this will open some door for cross platform applications and portability between the two operating systems.

The only problem is that AmigaOS has yet to come out of the stone age.

Like File Notifications is way better on Windows, then on AmigaOS where its pretty primitive.

UTF8 encoding really sucked on AmigaOS, but works well on Windows, and I believe it has become the standard encoding for text files in windows7.

So I have spent a week trying to figure out how to do things, and ended up whit writing my own UTF8.Library it has now been uploaded to OS4Depot.net.

I'm hopeful that UTF8.Library will make more programs UTF8 friendly. 
 
More information to come on what I'm working on.