Page 3 of 6

Posted: Wed Oct 10, 2007 4:07 pm
by gnozal
srod wrote:One last try then, following your "*.*" hint, can you try the following which is a bit of a rewrite :
Yes, so it works.

Code: Select all

  If ExamineDirectory(1,GetPathPart(ProgramFilename()),"*.*") 
    While NextDirectoryEntry(1) 
      If LCase(GetExtensionPart(DirectoryEntryName(1))) = "nxscribelan"
        languagefilename$=DirectoryEntryName(1) 
        Break
      EndIf
    Wend 
    FinishDirectory(1) 
  EndIf 

Posted: Wed Oct 10, 2007 4:10 pm
by srod
Thank the goodness for that! :)

With all the libraries nxScribe is using (all my own except one!) the source comes to 10000 lines of code and I didn't fancy trawling through that little lot! :wink:

I must remember that problem with ExamineDirectory() and Win NT. Sure is a strange one!

Thanks for all of your help Philippe, you certainly are one patient fellow! :)

Posted: Wed Oct 10, 2007 7:49 pm
by srod
10th Oct 2007. Update - nxScribe version 1.0 beta 2.
My thanks to all those who have tested out the first beta. Particular thanks to Gnozal and fangbeast for really going out of their way to help out.

Beta 2 sees the following alterations :
  • Individual language files can now be saved in Purebasic preferences format (as in beta 1) or XML (utf-8 ) format (new for beta 2). I've tested the resulting XML files with IE 6 and they seem well formed etc.
    Use XML format if you require trailing spaces with your language strings etc.
  • Individual language strings now retain their leading and trailing spaces (bug fix).
  • The toolbar icons no longer appear dithered (bug with the nxToolbar library which is now fixed). My thanks to fangbeast for this.
  • Grid columns are now resizeable.
  • Bugs with keyboard shortcuts fixed.
  • Added a button for adding rows to the grids used to edit language strings. You can still use the context menus however.
  • Fixed an issue causing nxScribe to crash out on Win NT. Still remains to be seen whether this new version will run on NT however? (Gnozal? :wink: )
  • Altered a few other things, but can't remember what they were now!
I've still to add the code generation and the help manual.


The download link is in the first post.

Posted: Wed Oct 10, 2007 10:32 pm
by mskuma
Hi srod, seems like there is a problem writing out unicode chars with this beta. Japanese chars are being corrupted when being written out in nxScribe and lan files (normal & utf8). This wasn't a problem in the first beta. I noticed this time it seems the nxScribe (& xml) is written out all on the one line (no CRs) unlike the first beta. Is this ok?

Posted: Wed Oct 10, 2007 10:42 pm
by srod
I've just tried some Hebrew characters and whilst you just get the standard looking blocks whilst viewing the project file in Notepad, the characters appear fine when viewing in IE or Word.

I'll test a little more.

Posted: Wed Oct 10, 2007 10:59 pm
by mskuma
I'm guessing there is some unaccounted UTF8/UTF16 conversion going on causing this issue.

Posted: Wed Oct 10, 2007 11:40 pm
by Sparkie
Nice work srod, thank you 8)

I'll give a whirl later this weekend. :)

Much better

Posted: Wed Oct 10, 2007 11:46 pm
by Fangbeast
Yes, the 'jaggies' have gone on the buttons, looks nice and smooth here.

Thanks for the INSert shortcut, my aching wrist is happy. Got up this morning and this is the first thing I tried (after the loo of course!!) Haven't even had breakfast yet so there!!!

Am busy recreating my Addresser project in this. Thanks for the hard work.

Oi, Sparkie, get off my head, you are too heavy!!!


/me falls off the chair again that srod promised would hold him

*EDIT* Suggestion: Add a splitter gadget between the editing area and the Languages/Language groups to give the string editing are more room to work.

Posted: Wed Oct 10, 2007 11:50 pm
by Sparkie
Here ya go Fangles....now you're sandwiched :twisted:

Posted: Wed Oct 10, 2007 11:50 pm
by srod
I wouldn't go too far with the addresser conversion just yet fangles, not until I get to the bottom of the xml / unicode / utf-8 issue!

Thanks sparks, you're welcome. :)

Posted: Thu Oct 11, 2007 12:00 am
by Fangbeast
Sparkie wrote:Here ya go Fangles....now you're sandwiched :twisted:
Oww, damnit, gerrof you hamsters!!! Oh my aching, single celled brain cavity.

It hurts!!


Who knew that wizards could be so heavy.

Posted: Thu Oct 11, 2007 12:01 am
by Fangbeast
I wouldn't go too far with the addresser conversion just yet fangles, not until I get to the bottom of the xml / unicode / utf-8 issue!
I understand, but the only way to find more bugs is throw strings at the beast and see how she roars. Addresser has hundreds of strings and is a good test for nxscribe.

So far, so good. WOrking perfectly.

Posted: Thu Oct 11, 2007 11:53 am
by srod
11th Oct 2007. Update - nxScribe version 1.0 beta 3.
A couple of bugs fixed.

Individual language files can now be saved in either PB preferences format, xml (utf-8 ) format or xml (utf-16) format.

REMOVED.

The download link is in the first post.

Posted: Fri Oct 12, 2007 10:14 am
by gnozal
srod wrote:[*]Fixed an issue causing nxScribe to crash out on Win NT. Still remains to be seen whether this new version will run on NT however? (Gnozal? :wink: )
It's ok now. No more crash.

Posted: Fri Oct 12, 2007 12:24 pm
by srod
:)

Thanks for that Gnozal.