nxScribe - Multi language management application (ver 1.0.2)

Applications, Games, Tools, User libs and useful stuff coded in PureBasic
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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 
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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! :)
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post 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?
Last edited by mskuma on Wed Oct 10, 2007 11:50 pm, edited 1 time in total.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

I'm guessing there is some unaccounted UTF8/UTF16 conversion going on causing this issue.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Nice work srod, thank you 8)

I'll give a whirl later this weekend. :)
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Much better

Post 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.
Sparkie
PureBatMan Forever
PureBatMan Forever
Posts: 2307
Joined: Tue Feb 10, 2004 3:07 am
Location: Ohio, USA

Post by Sparkie »

Here ya go Fangles....now you're sandwiched :twisted:
What goes around comes around.

PB 5.21 LTS (x86) - Windows 8.1
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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. :)
I may look like a mule, but I'm not a complete ass.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post 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.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
Last edited by srod on Fri Oct 12, 2007 1:22 pm, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post 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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

:)

Thanks for that Gnozal.
I may look like a mule, but I'm not a complete ass.
Post Reply