Announcement

Collapse
No announcement yet.

Paul's PB Wish

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

    Paul's PB Wish

    I was thinking the otherday that the other thing I'd really like to see in the next version of PB (other than unicode w_char support and a new IDE(that also handles unicode input)) is printable help files! I'm not overly fussed about windows help vs the newer html .chm help as I've gotten used to both.

    But, other that the searchable help section I'd like to be able to print it (a separte PDF would be great) but if not, help files in chapters would be great too. The current form is not very printer friendly for reading while crammed on the tokyo-chiba subway.

    Oh, and like mentioned above with unicode in the IDE, please go the full monte and have input support. so I can do things like...

    Code:
    Dim JapaneseText as String
    Japanesetext = "“ú–{Œê‚̃eƒLƒXƒg"
    I'm sure that will look very different on different browsers but it would be great to add a menu item like that in DDT (then I could actually use DDT)

    Thanks Lance


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

    Paul Dwyer
    Network Engineer
    Aussie in Tokyo
    (Paul282 at VB-World)

    #2
    I wish the conditional compile META statements were compatible with VB.
    Then I could share a chunk of code between them.

    #IF NOT %pb_compiler THEN
    Attribute VB_Name = "ConversionSubs"
    #ENDIF

    I wish there was a meta statement to define segments, so I could
    use included code, as a segment, with its own "global" variables,
    which are global to all subs in the segment, but local to the rest.
    (This would also help sharing code with VB).

    I wish the inlcude statement would allow me to do search/replace allowing
    me to rename some vars/subs/functions to prevent duplication of names.

    I wish I had a bit data type (additional to bit functions):
    TYPE Status
    Major as bit * 4
    Minor as bit * 2
    Flag as bit * 1
    Flag2 as bit * 1
    END TYPE

    If it doesn't already, I wish we could stub functions as we include
    the API headers.


    ------------------
    Thanks,

    John Kovacich
    Thanks,

    John Kovacich
    Ivory Tower Software

    Comment


      #3
      The first, I wonder if I will be able to make myself
      understood in English.
      But I have some question.

      I taked interest in PB.
      I like PB what can make executable single EXE.
      Do you have unicode version ?
      Even if you have not unicode version ,you may know method
      to use 2-bites code LANGUAGE.
      Is it only use 2-bites code LANGUAGE for
      DIM STRING ?
      Please show me how to use JAPANASE.
      If It can use in 2-biotes code LANGUAGE,I will use
      this PB/DLL version.

      Thank you for reading
      Takuya Takagi


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

      Comment


        #4
        Takuya,

        UNICODE is a bit of a fistfull to do in a language that is still
        ANSI in its string handling. It can be done in API code but it
        means handling all of the string functions yourself.

        Resource file format stores string data in UNICODE format and I
        think from memory that if you use the UNICODE version of resource
        loading API calls, you can access UNICODE in that fashion.

        There are also API calls that convert ANSI to UNICODE but this
        probably does not make writing a DBCS type language any easier.

        Regards,

        [email protected]

        ------------------
        hutch at movsd dot com
        The MASM Forum - SLL Modules and PB Libraries

        http://www.masm32.com/board/index.php?board=69.0

        Comment


          #5
          Remember that Unicode and DBCS are NOT the same thing!

          Standard Unicode (UTF16) is always 2 bytes per character where as DBCS (JIS, S-JIS, EUC etc) are mixed bouble byte for Japanese and single byte for Ascii which makes them difficult to impliment compared to unicode.

          Takagi san,

          PowerBasic‚Í“ú–{Œê‚̃Tƒbƒ|[ƒg‚ª‚È‚¢IDE‚̂Ȃ©‚ÉŠ¿Žš‚ð‘‚¯‚È‚¢‚Å‚·‚æBUnicode‚ð
          Žg‚¢‚½‚¢‚ÆAPI‚ÌINCLUDEƒtƒ@ƒCƒ‹‚ð•ύX‚·‚é•K—v‚ª‚ ‚éBŽ„‚Í‚Rƒ–ŒŽ‘O‚ÉPBDLL6.0‚ð
          ”ƒ‚¢‚Ü‚µ‚ĂȂ©‚È‚©—Ç‚¢Compiler‚¾‚ÆŽv‚¢‚Ü‚·A‚¾‚¯‚Ç“ú–{Œê‚ÌApp‚͍ì‚è‚É‚­‚¢B
          WinAPI‚ÌUnicodeƒvƒƒOƒ‰ƒ~ƒ“ƒO‚æ‚­‚í‚©‚Á‚Ä‚¢‚邯‘½•ª‘åä•v‚ÆŽv‚¤‚ñ‚Å‚·‚ª
          ‚»‚¤‚¶‚á‚È‚¢‚ÆVB‚Ì•û‚ª‚¢‚¢‚ÆŽv‚¤B
          iŽ„‚ÌŠ¿Žš‚ª‰ºŽè‚Å‚²‚ß‚ñ‚ ‚³‚¢jB
          ŽŸ‚ÌPBDLLƒo[ƒWƒ‡ƒ“‚ÍUnicodeƒTƒbƒ|[ƒg‚ª‚ ‚邯Žv‚¢‚½‚¢B
          ‚±‚̉ïŽÐ‚Í‚µ‚傤‚ç‚¢‚Ì’m‚点‚ð‚µ‚È‚¢‚¯‚ǁA‚¢‚V‚µ‚¢ƒo[ƒWƒ‡ƒ“‚ªo‚é‚à’m‚è‚Ü‚¹‚ñB
          ‹X‚µ‚­
          ƒ|[ƒ‹



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

          Paul Dwyer
          Network Engineer
          Aussie in Tokyo
          (Paul282 at VB-World)

          Comment


            #6
            ‚½‚©‚¬‚³‚ñA

            ¡Žv‚¢o‚µ‚½BBB
            PowerBasic‚ÌKeyword‚É‚à“ú–{ŒêiUnicode)‚̃Tƒ|[ƒg‚à‚È‚¢‚Å‚·B‚½‚Æ‚¦‚΁F

            Dim@MyStr@As@String
            MyStr@@Chr$i65j•@Chr$(0)@Chr$i65j•@Chr$(0)@fUnicode@hAA"ACan't@Type@Unicode@Or@Japanese@Into@IDE
            MsgBox@Str$(Len(MyStr))@

            ‚±‚̃R[ƒh‚́h‚Ph‚ðo‚µ‚Ü‚·IÅ‰‚́hChr$(0)h‚ðŒ©‚Â‚¯‚邯Compiler‚ÍNULL|Terminator‚ÆŽv‚Á‚Ä‚¢‚é‚©‚çÅŒã‚Ì“ñƒoƒCƒg
            ‚ð‚¯‚¢‚³‚ñ‚µ‚È‚¢Bh‚Qh‚©h‚Sh‚ðo‚·‚Í‚¸‚Å‚·B‚»‚̏ã‚É

            MsgBox@MyStr

            ‚́hA"‚µ‚©o‚µ‚Ü‚¹‚ñI‚¿‚á‚ñ‚ÆMessageboxW‚ðŽg‚¤‚ƁhAA"‚ðo‚µ‚Ü‚·B‚ÆŒ¾‚¤Ž–‚ÍDDT‚ð‘S‘RŽg‚¢‚Ü‚¹‚ñIIIII

            ‚ß‚ñ‚Ç‚­‚³‚¢‚Å‚µ‚傤I

            ƒ|[ƒ‹


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

            Paul Dwyer
            Network Engineer
            Aussie in Tokyo
            (Paul282 at VB-World)

            Comment


              #7
              Hi Mr Paul
              Thank you for your kind reply.
              I do not need unicode, if I can use Shift-Jis Code .
              You do know shift-jis code?
              It is not unicode.
              You may know ..... It is defined that does not conflict to acsii.
              So When I use PB (English version) in Windows98/NT(Japanese version)
              ,the define of strings can setting shift-jis ,It may be dusplaied on screen with Japanese.
              Is it wrong?

              ƒ|[ƒ‹‚³‚ñB
              ‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·B
              unicode ‚łȂ­‚Ä‚à‚¢‚¢‚̂ł·B“ú–{ŒêŠÂ‹«‚ÅŽg‚¦‚Î string ‚É Shift-jis ‚Å
              “ü—͂ł«‚ê‚΂¢‚¢‚Æ‚¨‚à‚¢‚Ü‚·B
              ‚à‚µA‰pŒê—p‚ÌPB ‚ð“ú–{‚́@WINDOWS ‚ÅŽg‚¦‚Î String ‚ɂ́@Shift-jis ‚ª
              ‚Í‚¢‚邯‚¨‚à‚¢‚Ü‚·B
              ‚Ü‚¿‚ª‚Á‚Ă܂·‚©H

              ‚¿‚傤‚ǁA‚±‚Ì‚¯‚¢‚¶‚΂ñ‚ª“ú–{Œê‚łЂ傤‚¶‚Å‚«‚邿‚¤‚ɁB
              ‰pŒêWindows‚ł́AŒ©‚¦‚È‚¢‚Å‚·‚æ‚Ë


              ‚ ‚肪‚Æ‚¤B

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

              Comment


                #8
                Takagi san,

                I'll try PB on a J system for you, Recently I have been using Win2000
                english version which handle japanese as unicode (same as NT & 2000 Japanese version)
                Windows 2000 japanese support is very good, even in the english version, it's great to
                see such well coded international apps. (it was such a problem in 95 and 98)
                I am very familiar with S-JIS and JIS, I have ASP scripts to convert between the
                two for web pages. I have also written a S-jis to Unicode App in PBDLL6,
                to convert files for my win2000 system. Let me know if you want the source or the app,
                it has a very large (130k) resource file unfortunately because MS only
                had a conversion table not an algorithm. I have since purchased the Unicode 3 handbook
                and it has better code examples so I may be able to write a better version..

                ‰ïŽÐ‚Å‚¢‚Á‚Ï‚¢“ú–{Œê‚ÌPC‚ ‚é‚©‚çPBDLL‚ðƒCƒ“ƒXƒg[ƒ‹‚ð‚µ‚Ä‚Ý‚Ü‚·B—Ç‚¢l‚¦
                ‚¾‚ÆŽv‚¢‚Ü‚·A‚à‚µ—Ç‚¯‚ê‚ÎŽ„‚à‚»‚¤‚¢‚¤‚Ó‚¤‚ÉŽg‚¤‚Æ‚¨‚à‚¤B

                ‚ ‚肪‚Æ‚¤

                ƒ|[ƒ‹

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

                Paul Dwyer
                Network Engineer
                Aussie in Tokyo
                (Paul282 at VB-World)

                Comment


                  #9
                  I tried PB on a japanese OS and got mixed results, if you
                  input japanese to the IDE japanese chrs will not appear (even for copy-paste)
                  but the text that does appear is sometimes usable in strings in
                  s-jis. You can for example put some japanese text in the string for
                  the MsgBox function and it will display.
                  The big problem though is that DDT was not usable in sjis either
                  which is unfortunate because that means even with no unicode PB
                  does not support international verisons of windows.

                  I will have a play again later on and see if there is a way around these issues on win98 japanese and see how I do.

                  Cheers

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

                  Paul Dwyer
                  Network Engineer
                  Aussie in Tokyo
                  (Paul282 at VB-World)

                  Comment


                    #10
                    One item that features on the Wish List is the ability to build String Equates using CHR$() concatenations, so if this gets implemented it could make the job a little easier. Say, something like:
                    Code:
                    $Text101 = CHR$(109,209,100,...)
                    MsgBox $Text101
                    However, you can use CHR$() concatenation to build normal strings with the current version of the compiler.

                    While this may make the code a little harder to write since you wont be able to paste or read string literals directly in the source code (unless you edit the source code with a 3rd-party editor), it may provide a usable solution. The results will likely depending on the font being used, and you'll need a character code table for the font in order to build the string correctly.
                    Code:
                    A$ = CHR$(50,150,200,250,...)
                    MsgBox A$

                    ------------------
                    Lance
                    PowerBASIC Support
                    mailto:[email protected][email protected]</A>
                    Lance
                    mailto:[email protected]

                    Comment


                      #11
                      Mr.Paul Dwyer
                      Mr.Lance Edmonds
                      Thank you to try for me.
                      I think if The PB/DLL has trial version for a fewdays.
                      It make a result easy,do you think so?

                      I need the display of JAPANESE only message,Header of dialog,some selected data.
                      When I tried QuickBasic English version about 4-5 years ago, It was not able to use at all.
                      It may depend on code-page of MS-DOS/English,Japanese.
                      I have such experience,wondered to use.

                      •ÔŽ–‚ª’x‚ê‚Ä‚·‚݂܂¹‚ñB
                      ŽŽ‚µ‚Ä‚­‚ê‚Ä‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·B
                      PB/DLL ‚½‚ß‚µ‚ÉŽg‚¤‚à‚Ì‚ª‚ ‚ê‚Ηǂ¢‚ÆŽv‚¢‚Ü‚·B‚»‚¤Žv‚í‚È‚¢‚Å‚·‚©H
                      4-5”N‚Ü‚¦‚ÉQuickBasic‚̉pŒê”Å‚ð“ú–{Œê‚ł‚©‚Á‚½‚Æ‚«‚Í‘S‚­•\ަ‚Å‚«‚È‚©‚Á‚½‚̂ł·
                      ‚»‚¤Œ¾‚¤ŒoŒ±‚ª‚ ‚é‚̂ŁAPB/DLL‚à‚Ç‚¤‚©‚ȂƎv‚¢‚Ü‚µ‚½B

                      Ž„‚́A“ú–{Œê‚ðƒƒbƒZ[ƒWAŒ©‚¾‚µA‘I‘ð€–Ú‚­‚ç‚¢‚ÉŽg‚¦‚ê‚΂¢‚¢‚̂ł·B



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

                      Comment

                      Working...
                      X
                      😀
                      🥰
                      🤢
                      😎
                      😡
                      👍
                      👎