Previous Next


                                          940
CHAPTER 10                                                        Document Interchange



Example 10.20

  1 0 obj                                  % Structure element
     << /Type /StructElem
         /S /P                             % Structure type
         /P …                              % Parent in structure hierarchy
         /K << /Type /MCR
               /Pg 2 0 R                   % Page containing marked-content sequence
               /MCID 0                     % Marked-content identifier
            >>
        /Lang ( en-US )                    % Language specification for this element
     >>
  endobj

  2 0 obj                                  % Page object
     << /Type /Page
        /Contents 3 0 R                    % Content stream
        …
     >>
  endobj

  3 0 obj                                      % Page's content stream
      << /Length … >>
  stream
      BT
         /P << /MCID 0 >>                      % Start of marked-content sequence
            BDC
               ( See you later, or as Arnold would say, ) Tj
               /Span << /Lang ( es-MX ) >> % Start of nested marked-content sequence
                   BDC
                      ( Hasta la vista . ) Tj
                   EMC                         % End of nested marked-content sequence
            EMC                                % End of marked-content sequence
      ET
  endstream
  endobj

If only part of the page content is contained in the structure hierarchy, and the
structured content is nested within nonstructured content to which a different
language specification applies, the structure element’s language specification
takes precedence. In Example 10.21, the page’s content stream consists of a
marked-content sequence that specifies Spanish as its language by means of the
Span tag with a Lang property. Nested within it is content that is part of a struc-

Previous Next