In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is added  SOLVED

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Post Reply
User avatar
rakunavi
User
Posts: 1646
Joined: Sat Sep 11, 2021 5:04 am

In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is added

Post by rakunavi »

=== UPDATE ===================================================================
The issue reported below has been resolved in Ver 10.3.1 build 387.
I appreciate all the hard work and efforts of the support and development team.
==============================================================================


Hello all,

When the language is set to Japanese, selecting "1ページ", which corresponds to "Page 1" in English, from the Edit Page Numbering Style Format dialog in the Header Footer and Bates Numbering functions sets not only the %[Page] but also the extra %[Pages] macro.

  • figure1.png
In the first half of the following verification video, selecting "Page 1" as the page number style and inserting it into the Central Header Text field sets "Page %[Page]" as intended.

In the second half of the video, if you change the language to Japanese and similarly select the fourth item "Page 1" as the page number style and insert it into the Central Footer Text field, the unintended "%[Page] ページ %[Pages]" is set.

  • figure2.png

    This is a GIF animation. Click to play.
    This is a GIF animation. Click to play.
In this issue, the following two items in the Japanese language file ("Strings.ja-JP.xcl") should be relevant.

  • <text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">1 ページ</text>
  • <text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">%1 ページ</text>
However, neither item appears to be particularly different from the settings in the other language file. It is odd that two macros are placed instead of one, and I suspect that there might be problems beyond translation issues, which is why I posted this in this sub-forum.

For reference, here are the extracts for these two items for all languages.

haf.pad.CB.PageNumberFormat.Page1

Code: Select all

Strings.ar-SA.xcl(7361): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">الصفحة 1</text>
Strings.az-Latn-AZ.xcl(7860): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Səhifə 1</text>
Strings.ca-ES.xcl(7871): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Pàgina 1</text>
Strings.cs-CZ.xcl(7809): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Stránka 1</text>
Strings.da-DK.xcl(7759): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Side 1</text>
Strings.de-DE.xcl(7840): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Seite 1</text>
Strings.el-GR.xcl(3541): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Σελίδα 1</text>
Strings.es-ES.xcl(7762): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Página 1</text>
Strings.fi-FI.xcl(7840): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Sivu 1</text>
Strings.fr-CH.xcl(3082): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Page </text>
Strings.fr-FR.xcl(7849): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Page 1</text>
Strings.fy-NL.xcl(5998): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Side 1</text>
Strings.gl-ES.xcl(7799): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Páxina 1</text>
Strings.he-IL.xcl(6758): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">עמוד 1</text>
Strings.hr-HR.xcl(7841): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Stranica 1</text>
Strings.hu-HU.xcl(7838): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Oldal 1</text>
Strings.id-ID.xcl(5445): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Halaman 1</text>
Strings.it-IT.xcl(7600): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Pagina 1</text>
Strings.ja-JP.xcl(7759): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">1 ページ</text>
Strings.ko-KR.xcl(7786): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">페이지 1</text>
Strings.lt-LT.xcl(7863): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Puslapis 1</text>
Strings.nl-NL.xcl(7864): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Pagina 1</text>
Strings.pl-PL.xcl(7785): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Strona 1</text>
Strings.pt-BR.xcl(7831): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Página 1</text>
Strings.pt-PT.xcl(7795): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Página 1</text>
Strings.ro-RO.xcl(3404): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Pagina 1</text>
Strings.ru-RU.xcl(7749): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Страница 1</text>
Strings.sk-SK.xcl(5318): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Stránka 1</text>
Strings.sl-SI.xcl(5438): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Stran 1</text>
Strings.sr-Latn-RS.xcl(5025): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Strana 1</text>
Strings.sv-SE.xcl(5047): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Sidan 1</text>
Strings.sw-KE.xcl(5198): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Ukurasa 1</text>
Strings.th-TH.xcl(5619): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">หน้า 1</text>
Strings.tr-TR.xcl(7792): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Sayfa 1</text>
Strings.uk-UA.xcl(7814): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">Сторінка 1</text>
Strings.zh-CN.xcl(7542): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">页 1</text>
Strings.zh-TW.xcl(6788): 		<text id="haf.pad.CB.PageNumberFormat.Page1" h="19D9557A">頁 1</text>
haf.pad.CB.PageNumberFormat.Page1.c

Code: Select all

Strings.ar-SA.xcl(7364): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">الصفحة %1</text>
Strings.az-Latn-AZ.xcl(7863): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Səhifə %1</text>
Strings.ca-ES.xcl(7874): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Pàgina %1</text>
Strings.cs-CZ.xcl(7812): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Stránka %1</text>
Strings.da-DK.xcl(7762): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Side %1</text>
Strings.de-DE.xcl(7843): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Seite %1</text>
Strings.el-GR.xcl(3532): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Σελίδα %1</text>
Strings.es-ES.xcl(7765): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Página %1</text>
Strings.fi-FI.xcl(7843): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Sivu %1</text>
Strings.fr-CH.xcl(3073): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Page %1</text>
Strings.fr-FR.xcl(7852): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Page %1</text>
Strings.fy-NL.xcl(6001): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Side %1</text>
Strings.gl-ES.xcl(7802): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Páxina %1</text>
Strings.he-IL.xcl(6761): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">עמוד%1</text>
Strings.hr-HR.xcl(7844): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Stranica %1</text>
Strings.hu-HU.xcl(7841): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Oldal %1</text>
Strings.id-ID.xcl(5448): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Halaman %1</text>
Strings.it-IT.xcl(7603): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Pagina %1</text>
Strings.ja-JP.xcl(7762): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">%1 ページ</text>
Strings.ko-KR.xcl(7789): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">페이지 %1</text>
Strings.lt-LT.xcl(7866): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Puslapis %1</text>
Strings.nl-NL.xcl(7867): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Pagina %1</text>
Strings.pl-PL.xcl(7788): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Strona %1</text>
Strings.pt-BR.xcl(7834): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Página %1</text>
Strings.pt-PT.xcl(7798): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Página %1</text>
Strings.ro-RO.xcl(3395): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Pagina %1</text>
Strings.ru-RU.xcl(7752): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Страница %1</text>
Strings.sk-SK.xcl(5321): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Stránka %1</text>
Strings.sl-SI.xcl(5441): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Stran %1</text>
Strings.sr-Latn-RS.xcl(5028): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Strana %1</text>
Strings.sv-SE.xcl(5050): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Sidan %1</text>
Strings.sw-KE.xcl(5201): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Ukurasa %1</text>
Strings.th-TH.xcl(5622): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">หน้า %1</text>
Strings.tr-TR.xcl(7795): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Sayfa %1</text>
Strings.uk-UA.xcl(7817): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">Сторінка %1</text>
Strings.zh-CN.xcl(7545): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">页 %1</text>
Strings.zh-TW.xcl(6791): 		<text id="haf.pad.CB.PageNumberFormat.Page1.c" h="962EF85B">頁 %1</text>
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor Plus Version: 10.3.0 build 386
- OS Version: Windows 11 Home 23H2 Build 22631.3593
- PC Model: Lenovo IdeaPad C340-15IWL, HP All-in-One 22-c0xx
Last edited by rakunavi on Tue Jun 18, 2024 4:32 am, edited 1 time in total.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 10910
Joined: Wed Jan 03, 2018 6:52 pm

Re: In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is ad  SOLVED

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you for the report, I have reproduced this and passed it along to the Devs!

RT#6935: Bug: Japanese "header/footer" logic for "page" is incorrect

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
rakunavi
User
Posts: 1646
Joined: Sat Sep 11, 2021 5:04 am

Re: In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is ad

Post by rakunavi »

=== UPDATE ===================================================================
The issue reported below has been resolved in Ver 10.3.1 build 387.
I appreciate all the hard work and efforts of the support and development team.
==============================================================================


Hello Daniel, thank you for contacting developers.

There is a similar issue with the item "複数ページ中 1ページ" at the bottom of the drop-down list.
(*) The translation of this item should be improved to "nページ中 1ページ" and has been posted separately in the translator sub-forum.

  • figure1.png
If "複数ページ中 1ページ" is selected, the user expects the macro to be described as follows because the relevant items are defined in "Strings.ja-JP.xcl" as follows.

  • Strings.ja-JP.xcl
      <text id="haf.pad.CB.PageNumberFormat.Page1ofn" h="124779A3">複数ページ中 1ページ</text>
      <text id="haf.pad.CB.PageNumberFormat.Page1ofn.c" h="BE4E95E1">%2 ページ中 %1 ページ</text>
      • User's expectation
          %[Pages] 中 %[Page] ページ
        But in fact, the field will be filled as follows.

        • 複数ページ中 %[Page] ページ %[Pages]
        From the results, it seems that only "haf.pad.CB.PageNumberFormat.Page1ofn" is referenced, and "haf.pad.CB.PageNumberFormat.Page1ofn.c" is not referenced at all.

        • figure2.png
        I understand that the "Strings.*.xcl" file for each language has the following two groups of translation items, group A refers to the notation on the dialog and group B refers to the formatting in the fields.

          (Group A)
        • haf.pad.CB.PageNumberFormat.1ofn
          haf.pad.CB.PageNumberFormat.Page1
          haf.pad.CB.PageNumberFormat.Page1ofn
          (Group B)
        • haf.pad.CB.PageNumberFormat.1ofn.c
          haf.pad.CB.PageNumberFormat.Page1.c
          haf.pad.CB.PageNumberFormat.Page1ofn.c
        If I understand correctly, there might be something wrong with the use of translation files when macros are described.

        Best regards,
        rakunavi
        Last edited by rakunavi on Tue Jun 18, 2024 4:32 am, edited 1 time in total.
        TOP desires for PDFXCE
        forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
        forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
        forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
        forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
        User avatar
        Daniel - PDF-XChange
        Site Admin
        Posts: 10910
        Joined: Wed Jan 03, 2018 6:52 pm

        Re: In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is ad

        Post by Daniel - PDF-XChange »

        Hello, rakunavi

        Thank you for that, I have added a note to the ticket made for the previous topic, so the two can be addressed at the same time.

        Kind regards,
        Dan McIntyre - Support Technician
        PDF-XChange Co. LTD

        +++++++++++++++++++++++++++++++++++
        Our Web site domain and email address has changed as of 26/10/2023.
        https://www.pdf-xchange.com
        Support@pdf-xchange.com
        User avatar
        Vasyl - PDF-XChange
        Site Admin
        Posts: 2444
        Joined: Thu Jun 30, 2005 4:11 pm

        Re: In Japanese environment, when "Page 1" is specified for page numbering style in header feature, extra %[Pages] is ad

        Post by Vasyl - PDF-XChange »

        Hi rakunavi.

        This issue will be fixed in the upcoming build. Thanks for your help.

        Best Regards,
        Vasyl.
        PDF-XChange Co. LTD (Project Developer)

        Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
        Post Reply