Announcement

Collapse
No announcement yet.

Borje: can PBCodec dump strings?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Wayne Diamond
    replied
    Woohoo! Thats working as sweet as pie thanks Borje, you still da man


    ------------------

    Leave a comment:


  • Tom Hanlin
    replied
    Got pbcodec11.zip, 10-10-2001 22:34:50 (.EXE stamp). Thanks.

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Borje Hagsten
    replied
    Very strange. There is only one pbcodec.zip there, now with file date 011010.
    Okay, to bypass this strange thing I have also uploaded same package as http://www.tolken99.com/pb/pbcodec11.zip

    NOTE: New update, now version 1.11. Have added an exclude() array with
    some of the most commonly used INC file names, to avoid getting these
    among extracted strings. This array is populated in WinMain - possible
    to expand and add whatever one likes to exclude there.

    Original file also updated at http://www.tolken99.com/pb/pbcodec.zip
    Both files now has size 49759 bytes


    ------------------

    Leave a comment:


  • Tom Hanlin
    replied
    My browser is set to check for new files on each visit to a page, which
    should effectively bypass cache issues. The PBcodec I am getting has a
    time/date stamp of August 1, with the old files. There doesn't seem to
    be a way to do a "refresh" on a .zip file, and your /pb/ page is not open
    to the public...

    Perhaps you could name it PBcodec11.zip instead?


    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Borje Hagsten
    replied
    Had to download and see for myself, but no, it's version 1.1 alright.
    Did famous MS Word version number jump there..

    Maybe need to refresh cache in browser? Latest pbcodec.zip has a size
    of 48883 bytes.


    ------------------

    Leave a comment:


  • Tom Hanlin
    replied
    Seems to be still v0.000000012...

    ------------------
    Tom Hanlin
    PowerBASIC Staff

    Leave a comment:


  • Borje Hagsten
    replied
    PBcodec v1.1 has been uploaded to http://www.tolken99.com/pb/pbcodec.zip
    From log:
    Code:
    '  Oct 09, added possibility to extract string literals, that is, text within
    '          double-quotes. Added AnsiTRIM function for this purpose.
    Comment: Extracted strings are listed at the end of resulting log file,
    complete with: file name, line number and text. The AnsiTRIM function
    mentioned above makes sure text not starts/ends with non-ansi letters.
    This removes eventual "\", etc, strings from list, which makes the
    result a little bit easier to read and use.

    However, since it lists things like file names that also may reside
    inside DQ's, some manual work to clean up list will be needed if the
    result is to be used for things like translation, etc. You'll notice.

    Thought about parsing RC files too, but that will have to wait. Have to
    take one small step at a time..


    ------------------

    Leave a comment:


  • Borje Hagsten
    replied
    Yes, shouldn't be that hard to do. Good idea, I'll have a look at it
    later on tonight. Can see a few possible things that may cause trouble,
    like if a string is too long or there are too many strings, etc. Can
    be thousands of them in a program. Hm, I'll be back..


    ------------------

    Leave a comment:


  • Wayne Diamond
    started a topic Borje: can PBCodec dump strings?

    Borje: can PBCodec dump strings?

    Borje, if im not mistaken PBCodec seems to be able to find string literals in code so that it can ignore them -- any chance you can make a 'dump strings' option? It'd be neat to be able to dump all the strings that my program uses and send that list to foreign language translators, and spellcheckers etc -- and if possible also reference the line number the string was from? Can you update PBCodec to do this? If not, no ploblems, ill hack something up but I thought Id check with you first as i think youve already laid most of the groundwork for such a thing

    Thanks,
    Wayne


    ------------------
Working...
X