Announcement

Collapse
No announcement yet.

V4.25 Batch Rename Look in folder does not change when using unicode plugin

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

    Reported V4.25 Batch Rename Look in folder does not change when using unicode plugin

    Hi Sir/Madam,

    My story is like this:
    step-1. When I go to any folder, say, Directory1
    step-2. Then, double click a jpg file to view by Irfanview
    step-3. Then, call the batch conversion/rename panel
    step-4. The "Look in" folder is the current folder, i.e. Directory1

    However, if I turn on the unicode plugin by
    A. click options
    B. click properties/setting2
    C. click Language
    D. check the "Load Unicode Plugin at program start ..."
    E. click OK

    Then, the story will be different.
    When I repeat the steps 1-4 above,
    the "Look in" directory can NEVER be the current directory
    if the directory is not pure English character.

    Could anyone please take a look ?

    Thanks
    Alvin
    Last edited by alvinsiu; 31.12.2009, 10:01 AM. Reason: Get more in-depth info after investigation

    #2
    Cannot reproduce here. What is the name of the directory that you're using?
    Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

    Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

    Comment


      #3
      Hi,

      BTW, it is about Irfanview 4.25 running on Win XP SP3 Intel.

      You can try to create these 4 folders.
      English
      Japanese Han 咲恵
      Simplified Chinese 国际
      Traditional Chinese 國際



      Then, randomly put some jpg files inside.

      If the Unicode plugin is not turn on,
      you can only open the file in the English directory.
      For the other 3 files, there will be error message.

      If Unicdoe plugin is turn on,
      you can open all file inside the 4 directories.
      But the behaviour of Sidleshow and Batch Conversion/Rename
      (as documented in step 1-4 in previous post)
      are different for the English directory and the other 3 directories.

      Comment


        #4
        Originally posted by alvinsiu View Post
        If the Unicode plugin is not turn on,
        you can only open the file in the English directory.
        For the other 3 files, there will be error message.
        Expected behaviour. No bug.
        Originally posted by alvinsiu View Post
        If Unicdoe plugin is turn on,
        you can open all file inside the 4 directories.
        But the behaviour of Sidleshow and Batch Conversion/Rename
        (as documented in step 1-4 in previous post)
        are different for the English directory and the other 3 directories.
        Cannot reproduce.
        Before you post ... Edit your profile • IrfanView 4.62 • Windows 10 Home 19045.2486

        Irfan PaintIrfan View HelpIrfanPaint HelpRiot.dllMore SkinsFastStone CaptureUploads

        Comment


          #5
          For Windows XP you need to install an asian language pack!
          (Which language version is your Windows XP?)

          See also:

          - "Help:Multilingual support (East Asian)" (from Wikipedia, the free encyclopedia)
          - "How to display/input Chinese in English Windows"
          - "How to Input Chinese in English Windows"
          - "How to display and edit Chinese on English Windows systems"
          - "Chinese input methods for computers"
          - "Keyboard layout" (from Wikipedia, the free encyclopedia)


          Did you install such a language pack?

          Comment


            #6
            Hi,

            As I investigate more, it seems to me that
            the key is the file
            l_view32.ini

            The file is in ANSI format.
            So, if the folder name or any other strings
            are with Unicode,
            once it is recorded in the ini file, everything turn to a mess.

            For my case, seems that only Traditional Chinese or Big5 char
            can be read normally in the ini file.
            All the Japanese char become a mess or rubbish char.

            So, maybe the Irfanview read this rubbish char from the ini file
            to build the panel, it simply cannot behaviour properly.

            Comment


              #7
              Hi,

              The Win XP is English.
              The Irfanview interface is also English.

              There are Traditional Chiniese char, Simiplified Chinese char,
              Japanese char in the folder name or jpg filename.

              XP and many other applications can open these folders
              and files without difficulties.

              Only Irfanview need an unicode plugin in order to open files
              inside these Aisan char folder or to open jpg files with Asian char names.

              BTW, it seems to me that it is the l_view32.ini file cannot handle
              the Asian char to make these abnormal behaviour when facing Asian
              or other unicode/double-byte char

              Comment


                #8
                Have you read this article of Wikipedia?

                see:

                (Click on this screenshot to go to the article "Help:Multilingual support (East Asian)" of Wikipedia!)


                But maybe it's better for you to contact also the program author Irfan Skiljan via email!


                regards
                Frank

                Comment


                  #9
                  Hi Frank, thanks for your help.

                  I have read the article.
                  I think that I have done that years ago.

                  After searching the net, here is an article
                  http://boodebr.org/main/python/all-a...icode#PLAT_WIN
                  seems touching the heart of the problem.
                  Please read about the MBCS related information in the middle of the article.

                  After reading the above article, I did a testing.
                  I put a jpg file with English name under these 6 directories:
                  English
                  Greek Ελληνικά Μπάτμαν
                  Japanese Han咲恵
                  Korean 배트맨
                  Simplified Chinese 国际
                  Traditional Chinese 國際


                  Then, without the Unicode plugin,
                  I try to open the jpg file using Irfanview.
                  I can open the file in both English and Traditional Chinese directories.
                  Irfanview can handle the Traditional Chinese directory
                  because that XP locale setting for non-unicode application
                  is Traditional Chinese.

                  This show that the non-unicode Irfanview
                  behave as said in the article
                  about the locale and MBCS issue.


                  Then, I perform a series of 4 testings.
                  Throughout the testings, the "look in" folder is NOT the
                  current folder after using the plugin.
                  This is what my first post has mentioned.
                  However, I found out another problem in updating the I_view32.ini
                  file after using the plugin.

                  Following posts will detail the testings.

                  (To be continued ...)
                  Last edited by alvinsiu; 01.01.2010, 06:47 AM. Reason: fix editing format bug and spelling

                  Comment


                    #10
                    Test 1

                    Without the plug-in, open jpg file in the directory:
                    Traditional Chinese 國際
                    Then, do a batch rename with rename pattern:
                    中文 $N
                    Then, quit Irfanview.
                    Then, cut 2 lines from the I_view32.ini file using PSPad and
                    look at the hex code using debug.

                    Here is the screen dump:


                    Look at the ending char of the directory Traditional Chinese:
                    B0 EA BB DA
                    B0EA is the Big5 code of 國
                    BBDA is the Big5 code of 際

                    Look at the RenamePattern0=
                    A4 A4 A4 E5
                    A4A4 is the Big5 code of 中
                    A4E5 is the Big5 code of 文


                    (To be continued ...)
                    Last edited by alvinsiu; 01.01.2010, 09:52 AM.

                    Comment


                      #11
                      Test 2

                      Then, turn on the plug-in,
                      open jpg file in the directory : Traditional Chinese 國際
                      and do the same rename activity
                      and then quit Irfanview.
                      Then, cut 3 lines from the I_view32.ini and
                      look at the hex code:


                      Look at the ending char of the directory Traditional Chinese:
                      E5 ( binary 1110 - 0101 )
                      9C ( binary 10-01 11 00 )
                      8B ( binary 10-00 1011 )
                      E9 ( binary 1110 - 1001 )
                      9A ( binary 10-01 10 10 )
                      9B ( binary 10-01 1011 )
                      This is the utf-8 format of the unicode of
                      國 (U+570B) and 際 (U+969B)


                      Similarly, for the RenamePattern0=
                      E4 ( binary 1110 - 0100 )
                      B8 ( binary 10-11 10 00 )
                      AD ( binary 10-10 1101 )
                      E6 ( binary 1110 - 0110 )
                      96 ( binary 10-01 01 10 )
                      87 ( binary 10-00 0111 )
                      This is the utf-8 format of the unicode of
                      中 (U+4E2D) and 文 (U+6587)

                      Noted that RenamePattern1=A4 A4 A4 E5
                      which is still the Big5 code of 中文

                      (To be continued ...)
                      Last edited by alvinsiu; 01.01.2010, 06:50 AM.

                      Comment


                        #12
                        Test 3

                        With the plug-in being on,
                        open jpg file in the directory : Japanese Han 咲恵
                        and do the batch rename with rename pattern : 咲恵 $N
                        and then quit Irfanview.
                        Then, cut 4 lines from the I_view32.ini and
                        look at the hex code:



                        Look at the ending char of the directory Japanese Han:
                        E5 (binary 1110 - 1001 )
                        92 (binary 10-01 00 10 )
                        B2 (binary 10-11 0010 )
                        E6 (binary 1110 - 0110 )
                        81 (binary 10-00 00 01 )
                        B5 (binary 10-11 0101 )
                        This is the utf-8 format of the unicode of
                        咲 (U+54B2) and 恵 (U+6075)


                        The RenamePattern0 has the same utf-8 char
                        E5 92 B2 E6 81 B5

                        However, look at RenamePattern1.
                        The characters are E4 B8 AD E6 3F
                        Only 5 char, instead of 6.
                        Look back at Test 2, they should be E4 B8 AD E6 96 87
                        The two char 96 87 change to one char 3F
                        --- Something is wrong here !!

                        RenamePattern2 is still with the big5 code A4 A4 A4 E5

                        (To be continued ...)
                        Last edited by alvinsiu; 01.01.2010, 01:33 PM. Reason: fix typo error

                        Comment


                          #13
                          Test 4

                          This time, open jpg file in the directory : Simplified Chinese 国际
                          and do the batch rename with rename pattern : 国际 $N
                          and then quit Irfanview.
                          Then, cut 5 lines from the I_view32.ini and
                          look at the hex code:


                          Similar to previous test, the OpenDir and RenamePattern0
                          are with utf-8 unicode

                          The RenamePattern1 has error.
                          It should be Japanese E5 92 B2 E6 81 B5 as in Test 3.
                          But, now it is 3F B2 E6 81 B5.
                          The first two char E5 92 change to 3F.

                          RenamePattern2 is E4 B8 AD E6 3F, just as in Test 3.
                          RenamePattern3 is still with big5 code A4 A4 A4 E5.





                          Conclusion after the 4 tests:
                          ----------------------------------

                          The plugin acts as a bridge between non-unicode aware Irfanview and the NTFS utf-16 filesystem.
                          It can make Irfanview open files with unicode directory name and file names.

                          The plugin store utf-8 chars in the ANSI text file I_view32.ini

                          Since the ini file is just an ANSI text file, it cannot handle international char efficiently.
                          In this case, it will store a mix of ASCII English, big5 Chinese and utf-8 unicode characters

                          Also, after using the plugin, some other things go wrong.

                          The I_view32.ini is handled incorrect.
                          The file is not updated properly in the RenamePattern lines.
                          The look in folder cannot open the current folder.
                          Last edited by alvinsiu; 01.01.2010, 01:33 PM. Reason: fix typo error

                          Comment


                            #14
                            The program author Irfan Skiljan wrote me:
                            (my translation)
                            ... the user should contact me via email, then we look for more details ...
                            (See also: "don't support non-English path" and other similar threads!)

                            Comment

                            Working...
                            X