Bug 563056

Summary: Wrong segmentation from XML to POT when a footnote is present.
Product: [Community] Publican Reporter: Manuel Ospina <mospina>
Component: publicanAssignee: Jeff Fearn ๐Ÿž <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Joshua Wulf <jwulf>
Severity: medium Docs Contact:
Priority: low    
Version: 2.0CC: jfearn, lcarlon, mmcallis, publican-list, runab, yshao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 1.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-01 00:19:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Manuel Ospina 2010-02-09 04:20:48 UTC
Description of problem:

Publican breaks a sentence in two when there is a footnote.


Version-Release number of selected component (if applicable): 1.4


How reproducible: Always.


Steps to Reproduce:
1. This example is taken from Account_Configuration_common-para-3.xml in the Installation Guide RHEL 6
2. Original string: 
<para>
The installation program prompts you to set a root password
 <footnote>
  <para>
  A root password is the administrative password for your Red Hat Enterprise Linux system. You should only log in as root when needed for system maintenance. The root account does not operate within the restrictions placed on normal user accounts, so changes made as root can have implications for your entire system.
  </para>
 </footnote> for your system. <emphasis>You cannot proceed to the next stage of the installation process without entering a root password.</emphasis>
</para>

  
Actual results: Publican create three entries:
1. The installation program prompts you to set a root password

2. A root password is the administrative password for your Red Hat Enterprise 
Linux system. You should only log in as root when needed for system 
maintenance. The root account does not operate within the restrictions 
placed on normal user accounts, so changes made as root can have 
implications for your entire system.

3. for your system. <emphasis>You cannot proceed to the next stage of the 
installation process without entering a root password.</emphasis>

The main sentence is divided in two (1 and 3)

Expected results:
The entry should be left as in the original or there should be two entries:

1. The installation program prompts you to set a root password <FOOTNOTE HERE> for your system. <emphasis>You cannot proceed to the next stage of the 
installation process without entering a root password.</emphasis>

2. A root password is the administrative password for your Red Hat Enterprise 
Linux system. You should only log in as root when needed for system 
maintenance. The root account does not operate within the restrictions 
placed on normal user accounts, so changes made as root can have 
implications for your entire system.

Additional info:

Comment 1 Ruediger Landmann 2010-02-09 05:39:29 UTC
An <indexterm> in the middle of a <para> creates the same problem.

Comment 2 Jeff Fearn ๐Ÿž 2010-02-12 02:07:18 UTC
(In reply to comment #0)
> Expected results:
> The entry should be left as in the original or there should be two entries:
> 
> 1. The installation program prompts you to set a root password <FOOTNOTE HERE>
> for your system. <emphasis>You cannot proceed to the next stage of the 
> installation process without entering a root password.</emphasis>

Implemented this one as I don't have time to do number 2, which is significantly harder to get working reliably.

Code change is for footnote and indexterm, you will need to let me know if there are other tags requiring this.

Comment 3 Manuel Ospina 2010-02-22 06:41:35 UTC
I believe this bug is also generating a problem when building the XML: 

ENGLISH:

<para>
      Red Hat Enterprise Linux divides the included software into
      <indexterm>
        <primary>package groups</primary>
      </indexterm> <firstterm>package groups</firstterm>. For ease of
      use, the package selection screen displays these groups as
      categories.
    </para>

ITALIAN:

 <para>
        Red Hat Enterprise Linux suddivide il software incluso in
        <indexterm>
            <primary>gruppi di pacchetti</primary>
        </indexterm>
    </para>

The last part of the entry is lost.

The generated PO File for the entry is:

#. Tag: para
#, no-c-format
msgid "Red Hat Enterprise Linux divides the included software into"
msgstr "Red Hat Enterprise Linux suddivide il software incluso in"

# <primary>packages</primary>
# /home/pgampe/cvs/en_US/cgs/graphical-rpm.idx:
#. Tag: primary
#, no-c-format
msgid "package groups"
msgstr "gruppi di pacchetti"

#. Tag: indexterm
#, no-c-format
msgid ""
"<firstterm>package groups</firstterm>. For ease of use, the package "
"selection screen displays these groups as categories."
msgstr ""
"<firstterm>gruppi di pacchetti</firstterm>. Per un utilizzo piรน semplice, la "
"schermata di scelta dei pacchetti mostra questi gruppi come categorie."

Comment 4 Fedora Update System 2010-02-26 05:24:43 UTC
publican-1.5-0.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc12

Comment 5 Fedora Update System 2010-02-26 05:28:23 UTC
publican-1.5-0.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc13

Comment 6 Fedora Update System 2010-02-26 05:28:30 UTC
publican-1.5-0.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc11

Comment 7 Fedora Update System 2010-02-26 05:28:42 UTC
publican-1.5-0.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc12

Comment 8 Fedora Update System 2010-02-26 05:31:06 UTC
publican-1.5-0.fc13 has been submitted as an update for Fedora 13.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc13

Comment 9 Fedora Update System 2010-02-26 05:35:05 UTC
publican-1.5-0.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/publican-1.5-0.fc11

Comment 10 Fedora Update System 2010-02-27 03:29:24 UTC
publican-1.5-0.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2010-02-27 03:45:12 UTC
publican-1.5-0.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.