[latex3-commits] [git/LaTeX3-latex3-hyperref] removexetexbigchars: test file for unicode in various places (4980c23)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed May 13 14:35:38 CEST 2020


Repository : https://github.com/latex3/hyperref
On branch  : removexetexbigchars
Link       : https://github.com/latex3/hyperref/commit/4980c23a20c22b1d3e6d904d4df3b4a517686f7f

>---------------------------------------------------------------

commit 4980c23a20c22b1d3e6d904d4df3b4a517686f7f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed May 13 14:35:38 2020 +0200

    test file for unicode in various places


>---------------------------------------------------------------

4980c23a20c22b1d3e6d904d4df3b4a517686f7f
 ...lds-utf8.luatex.tpf => unicode-test.luatex.tpf} | 367 ++++++++++++---------
 testfiles-pvt/unicode-test.pvt                     |  20 ++
 ...ssue49-textfields-utf8.tpf => unicode-test.tpf} | 333 +++++++++++--------
 testfiles-xetex/unicode-test.pvt                   |  20 ++
 testfiles-xetex/unicode-test.tpf                   | 216 ++++++++++++
 5 files changed, 661 insertions(+), 295 deletions(-)

diff --git a/testfiles-pvt/issue49-textfields-utf8.luatex.tpf b/testfiles-pvt/unicode-test.luatex.tpf
similarity index 50%
copy from testfiles-pvt/issue49-textfields-utf8.luatex.tpf
copy to testfiles-pvt/unicode-test.luatex.tpf
index 6df89de..d187fcf 100644
--- a/testfiles-pvt/issue49-textfields-utf8.luatex.tpf
+++ b/testfiles-pvt/unicode-test.luatex.tpf
@@ -1,22 +1,28 @@
 %PDF-1.5
 %ÌÕÁÔÅØÐÄÆ
 1 0 obj
-<< /S /GoTo /D [ 2 0 R /Fit ] >>
+<< /S /GoTo /D (section.1) >>
 endobj
-6 0 obj
-<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 3.905 7.054 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 7 0 R /Length 45 >>         
+4 0 obj
+(\376\377\000G\000r\000\374\000\337\000e\145\351\231\020\330\076\335\206)
+endobj
+5 0 obj
+<< /S /GoTo /D [ 6 0 R /Fit ] >>
+endobj
+10 0 obj
+<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 3.905 7.054 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 11 0 R /Length 45 >>         
 stream
 BT
-/F26 9.96264 Tf
+/F28 9.96264 Tf
 1 0 0 1 0 0 Tm [({)]TJ
 ET
 endstream
 endobj
-7 0 obj
-<< /Font << /F26 8 0 R >> /ProcSet [ /PDF /Text ] >>
+11 0 obj
+<< /Font << /F28 12 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-9 0 obj
-<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 36.503 14.127 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 10 0 R /Length 328 >>        
+13 0 obj
+<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 36.503 14.127 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 14 0 R /Length 328 >>        
 stream
 q
 1 0 0 1 0 13.928 cm
@@ -27,7 +33,7 @@ q
 [] 0 d 0 J 0.398 w 0 0 m 0 13.33 l S
 Q
 BT
-/F27 9.96264 Tf
+/F29 9.96264 Tf
 1 0 0 1 3.387 3.606 Tm [<0061006D0023004B00420069>]TJ
 ET
 q
@@ -40,11 +46,11 @@ q
 Q
 endstream
 endobj
-10 0 obj
-<< /Font << /F27 11 0 R >> /ProcSet [ /PDF /Text ] >>
+14 0 obj
+<< /Font << /F29 15 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-12 0 obj
-<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 42.869 14.127 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 13 0 R /Length 331 >>        
+16 0 obj
+<< /Type /XObject /Subtype /Form /FormType 1 /BBox [ 0 0 42.869 14.127 ] /Matrix [ 1 0 0 1 0 0 ] /Resources 17 0 R /Length 331 >>        
 stream
 q
 1 0 0 1 0 13.928 cm
@@ -55,7 +61,7 @@ q
 [] 0 d 0 J 0.398 w 0 0 m 0 13.33 l S
 Q
 BT
-/F27 9.96264 Tf
+/F29 9.96264 Tf
 1 0 0 1 3.387 3.606 Tm [<0061006D0023004B004200690053>]TJ
 ET
 q
@@ -68,90 +74,137 @@ q
 Q
 endstream
 endobj
-13 0 obj
-<< /Font << /F27 11 0 R >> /ProcSet [ /PDF /Text ] >>
+17 0 obj
+<< /Font << /F29 15 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-19 0 obj
-<< /Length 304 >>        
+20 0 obj
+<< /Length 188 >>        
 stream
 BT
+/F27 14.3462 Tf
+1 0 0 1 133.768 657.235 Tm [<0052>-1000<001C0023>-31<002B>]TJ
 /F25 9.96264 Tf
-1 0 0 1 148.712 655.243 Tm [<0068>83<00320073>-333<006C006200320060005C>-444<0075>83<00320062>-1866<004C0051>]TJ
-1 0 0 1 133.768 637.778 Tm [<001B>28<002F002F0060003200620062>]TJ
-1 0 0 1 133.768 620.423 Tm [<001B>28<002F002F0060003200620062>]TJ
+1 0 0 1 133.768 635.404 Tm [<001C0023>-28<002B>]TJ
 1 0 0 1 303.133 89.365 Tm [<0052>]TJ
 ET
 endstream
 endobj
-2 0 obj
-<< /Type /Page /Contents 19 0 R /Resources 18 0 R /MediaBox [ 0 0 612 792 ] /Parent 23 0 R /Annots 24 0 R >>
+6 0 obj
+<< /Type /Page /Contents 20 0 R /Resources 19 0 R /MediaBox [ 0 0 612 792 ] /Parent 25 0 R /Annots 26 0 R >>
 endobj
-24 0 obj
-[ 14 0 R 15 0 R 16 0 R 17 0 R ]
+26 0 obj
+[ 18 0 R ]
 endobj
-3 0 obj
+7 0 obj
 <</Type/Encoding/Differences[24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring/tilde 39/quotesingle 96/grave 128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin/fraction/guilsinglleft/guilsinglright/minus/perthousand/quotedblbase/quotedblleft/quotedblright/quoteleft/quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron 164/currency 166/brokenbar 168/dieresis/copyright/ordfeminine 172/logicalnot/.notdef/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu 183/periodcentered/cedilla/onesuperior/ordmasculine 188/onequarter/onehalf/threequarters 192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]>>
 endobj
-4 0 obj
+8 0 obj
 <</Type/Font/Subtype/Type1/Name/ZaDb/BaseFont/ZapfDingbats>>
 endobj
-5 0 obj
-<</Type/Font/Subtype/Type1/Name/Helv/BaseFont/Helvetica/Encoding 3 0 R>>
-endobj
-14 0 obj
-<< /Type /Annot /Rect [ 216.458 654.027 230.406 668.194 ]
- /Subtype/Widget/F 4/T(\376\377\000t\000e\000s\000t\000d\000e\000f\000a\000u\000l\000t)/FT/Btn/Ff 49152/H/P/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1 1 1]/CA(H)>>/DA(/ZaDb 10 Tf 0 0 0 rg)/V/\376\377\000Y\000e\000s/DV/\376\377\000Y\000e\000s/AP<</N<</\376\377\000Y\000e\000s 6 0 R>>>>
- >>
+9 0 obj
+<</Type/Font/Subtype/Type1/Name/Helv/BaseFont/Helvetica/Encoding 7 0 R>>
 endobj
-15 0 obj
-<< /Type /Annot /Rect [ 247.502 654.027 261.45 668.194 ]
- /Subtype/Widget/F 4/T(\376\377\000t\000e\000s\000t\000d\000e\000f\000a\000u\000l\000t)/FT/Btn/Ff 49152/H/P/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1 1 1]/CA(H)>>/DA(/ZaDb 10 Tf 0 0 0 rg)/V/\376\377\000Y\000e\000s/DV/\376\377\000Y\000e\000s/AP<</N<</\376\377\000N\000o 6 0 R>>>>
+18 0 obj
+<< /Type /Annot /Rect [ 147.716 621.347 234.748 635.295 ]
+ /Subtype/Widget/F 4/T(\376\377\000g\000r\000\374\000\337\000e\145\351\231\020\330\076\335\206)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()
  >>
 endobj
-16 0 obj
-<< /Type /Annot /Rect [ 170.54 636.672 257.572 650.73 ]
- /Subtype/Widget/F 4/T(\376\377\000t\000e\000x\000t\000f\000i\000e\000l\000d\0001)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V(\376\377\000K\000\366\000l\000n)
- >>
+21 0 obj
+<< /D [ 6 0 R /XYZ 132.768 705.06 null ] >>
 endobj
-17 0 obj
-<< /Type /Annot /Rect [ 170.54 619.318 257.572 633.375 ]
- /Subtype/Widget/F 4/T(\376\377\000t\000e\000x\000t\000f\000i\000e\000l\000d\0002)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV(\376\377\000M\000\374\000n\000c\000h\000e\000n)/V(\376\377\000M\000\374\000n\000c\000h\000e\000n)
- >>
+22 0 obj
+<< /D [ 6 0 R /XYZ 133.768 667.198 null ] >>
 endobj
-20 0 obj
-<< /D [ 2 0 R /XYZ 132.768 705.06 null ] >>
+2 0 obj
+<< /D [ 6 0 R /XYZ 133.768 667.198 null ] >>
 endobj
-21 0 obj
-<< /D [ 2 0 R /XYZ 133.768 667.198 null ] >>
+19 0 obj
+<< /Font << /F27 23 0 R /F25 24 0 R >> /ProcSet [ /PDF /Text ] >>
 endobj
-18 0 obj
-<< /Font << /F25 22 0 R >> /ProcSet [ /PDF /Text ] >>
+27 0 obj
+<</Fields[18 0 R]/DR<</Font<</ZaDb 8 0 R/Helv 9 0 R>>>>/DA(/Helv 10 Tf 0 g)/NeedAppearances true>>
 endobj
-25 0 obj
-<</Fields[14 0 R 16 0 R 17 0 R]/DR<</Font<</ZaDb 4 0 R/Helv 5 0 R>>>>/DA(/Helv 10 Tf 0 g)/NeedAppearances true>>
+28 0 obj
+[ 28 [ 500 ] 35 [ 556 ] 43 [ 444 ] 82 [ 500 ] ]
 endobj
-26 0 obj
-[ 27 [ 750 ] 47 [ 556 ] 50 [ 444 ] 76 [ 750 ] 81 [ 500 500 ] 92 [ 472 ] 96 [ 392 ] 98 [ 394 ] 104 [ 722 ] 108 [ 750 ] 115 [ 750 ] 117 [ 750 ] ]
+30 0 obj
+<< /Length 11 >>         
+[BINARY STREAM]
 endobj
-28 0 obj
-<< /Length 15 >>         
+31 0 obj
+<< /Subtype /CIDFontType0C /Length 955 >>        
 [BINARY STREAM]
 endobj
 29 0 obj
-<< /Subtype /CIDFontType0C /Length 2159 >>       
+<< /Type /FontDescriptor /FontName /NSMWQI+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 31 0 R /CIDSet 30 0 R >>
+endobj
+32 0 obj
+<< /Length 734 >>        
+stream
+%!PS-Adobe-3.0 Resource-CMap
+%%DocumentNeededResources: ProcSet (CIDInit)
+%%IncludeResource: ProcSet (CIDInit)
+%%BeginResource: CMap (TeX-NSMWQI-LMRoman10-Regular-0)
+%%Title: (TeX-NSMWQI-LMRoman10-Regular-0 TeX NSMWQI-LMRoman10-Regular 0)
+%%Version: 1.000
+%%EndComments
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CIDSystemInfo
+<< /Registry (TeX)
+/Ordering (NSMWQI-LMRoman10-Regular)
+/Supplement 0
+>> def
+/CMapName /TeX-Identity-NSMWQI-LMRoman10-Regular def
+/CMapType 2 def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+0 beginbfrange
+endbfrange
+4 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<0052> <0031>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+%%EndResource
+%%EOF
+endstream
+endobj
+24 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /NSMWQI+LMRoman10-Regular /DescendantFonts [ 33 0 R ] /ToUnicode 32 0 R >>
+endobj
+33 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /NSMWQI+LMRoman10-Regular /FontDescriptor 29 0 R /W 28 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+endobj
+34 0 obj
+[ 28 [ 547 ] 35 [ 625 ] 43 [ 500 ] 82 [ 563 ] ]
+endobj
+36 0 obj
+<< /Length 11 >>         
 [BINARY STREAM]
 endobj
-27 0 obj
-<< /Type /FontDescriptor /FontName /DRWVQJ+LMRoman10-Regular /Flags 4 /FontBBox [ -430 -290 1417 1127 ] /Ascent 1127 /CapHeight 683 /Descent -290 /ItalicAngle 0 /StemV 93 /XHeight 431 /FontFile3 29 0 R /CIDSet 28 0 R >>
+37 0 obj
+<< /Subtype /CIDFontType0C /Length 910 >>        
+[BINARY STREAM]
 endobj
-30 0 obj
-<< /Length 861 >>        
+35 0 obj
+<< /Type /FontDescriptor /FontName /RJDCDH+LMRoman12-Bold /Flags 4 /FontBBox [ -476 -289 1577 1137 ] /Ascent 1137 /CapHeight 686 /Descent -289 /ItalicAngle 0 /StemV 104 /XHeight 444 /FontFile3 37 0 R /CIDSet 36 0 R >>
+endobj
+38 0 obj
+<< /Length 719 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
 %%DocumentNeededResources: ProcSet (CIDInit)
 %%IncludeResource: ProcSet (CIDInit)
-%%BeginResource: CMap (TeX-DRWVQJ-LMRoman10-Regular-0)
-%%Title: (TeX-DRWVQJ-LMRoman10-Regular-0 TeX DRWVQJ-LMRoman10-Regular 0)
+%%BeginResource: CMap (TeX-RJDCDH-LMRoman12-Bold-0)
+%%Title: (TeX-RJDCDH-LMRoman12-Bold-0 TeX RJDCDH-LMRoman12-Bold 0)
 %%Version: 1.000
 %%EndComments
 /CIDInit /ProcSet findresource begin
@@ -159,30 +212,21 @@ stream
 begincmap
 /CIDSystemInfo
 << /Registry (TeX)
-/Ordering (DRWVQJ-LMRoman10-Regular)
+/Ordering (RJDCDH-LMRoman12-Bold)
 /Supplement 0
 >> def
-/CMapName /TeX-Identity-DRWVQJ-LMRoman10-Regular def
+/CMapName /TeX-Identity-RJDCDH-LMRoman12-Bold def
 /CMapType 2 def
 1 begincodespacerange
 <0000> <FFFF>
 endcodespacerange
 0 beginbfrange
 endbfrange
-13 beginbfchar
-<001B> <0041>
-<002F> <0064>
-<0032> <0065>
-<004C> <004E>
-<0051> <006F>
+4 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
 <0052> <0031>
-<005C> <003F>
-<0060> <0072>
-<0062> <0073>
-<0068> <0054>
-<006C> <0055>
-<0073> <0058>
-<0075> <0059>
 endbfchar
 endcmap
 CMapName currentdict /CMap defineresource pop
@@ -192,27 +236,27 @@ end
 %%EOF
 endstream
 endobj
-22 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /DRWVQJ+LMRoman10-Regular /DescendantFonts [ 31 0 R ] /ToUnicode 30 0 R >>
+23 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /RJDCDH+LMRoman12-Bold /DescendantFonts [ 39 0 R ] /ToUnicode 38 0 R >>
 endobj
-31 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /DRWVQJ+LMRoman10-Regular /FontDescriptor 27 0 R /W 26 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+39 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /RJDCDH+LMRoman12-Bold /FontDescriptor 35 0 R /W 34 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
-32 0 obj
+40 0 obj
 [ 35 [ 517 ] 66 [ 239 ] 75 [ 794 ] 83 [ 639 ] 97 [ 556 ] 105 [ 361 ] 109 [ 517 ] ]
 endobj
-34 0 obj
+42 0 obj
 << /Length 14 >>         
 [BINARY STREAM]
 endobj
-35 0 obj
+43 0 obj
 << /Subtype /CIDFontType0C /Length 1052 >>       
 [BINARY STREAM]
 endobj
-33 0 obj
-<< /Type /FontDescriptor /FontName /ISVPDC+LMSans10-Regular /Flags 4 /FontBBox [ -420 -309 1431 1154 ] /Ascent 1154 /CapHeight 694 /Descent -309 /ItalicAngle 0 /StemV 93 /XHeight 444 /FontFile3 35 0 R /CIDSet 34 0 R >>
+41 0 obj
+<< /Type /FontDescriptor /FontName /ISVPDC+LMSans10-Regular /Flags 4 /FontBBox [ -420 -309 1431 1154 ] /Ascent 1154 /CapHeight 694 /Descent -309 /ItalicAngle 0 /StemV 93 /XHeight 444 /FontFile3 43 0 R /CIDSet 42 0 R >>
 endobj
-36 0 obj
+44 0 obj
 << /Length 771 >>        
 stream
 %!PS-Adobe-3.0 Resource-CMap
@@ -254,89 +298,104 @@ end
 %%EOF
 endstream
 endobj
-11 0 obj
-<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /ISVPDC+LMSans10-Regular /DescendantFonts [ 37 0 R ] /ToUnicode 36 0 R >>
+15 0 obj
+<< /Type /Font /Subtype /Type0 /Encoding /Identity-H /BaseFont /ISVPDC+LMSans10-Regular /DescendantFonts [ 45 0 R ] /ToUnicode 44 0 R >>
 endobj
-37 0 obj
-<< /Type /Font /Subtype /CIDFontType0 /BaseFont /ISVPDC+LMSans10-Regular /FontDescriptor 33 0 R /W 32 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
+45 0 obj
+<< /Type /Font /Subtype /CIDFontType0 /BaseFont /ISVPDC+LMSans10-Regular /FontDescriptor 41 0 R /W 40 0 R /CIDSystemInfo << /Registry (Adobe) /Ordering (Identity) /Supplement 0 >> >>
 endobj
-38 0 obj
+46 0 obj
 [392 ]
 endobj
-40 0 obj
+48 0 obj
 << /Length1 1568 /Length2 967 /Length3 0 /Length 2535 >>       
 [BINARY STREAM]
 endobj
-39 0 obj
-<< /Type /FontDescriptor /FontName /GCRMMP+Dingbats /Flags 4 /FontBBox [ -1 -143 981 819 ] /Ascent 708 /CapHeight 708 /Descent 0 /ItalicAngle 0 /StemV 0 /XHeight 400 /CharSet( /a97) /FontFile 40 0 R >>
+47 0 obj
+<< /Type /FontDescriptor /FontName /GCRMMP+Dingbats /Flags 4 /FontBBox [ -1 -143 981 819 ] /Ascent 708 /CapHeight 708 /Descent 0 /ItalicAngle 0 /StemV 0 /XHeight 400 /CharSet( /a97) /FontFile 48 0 R >>
 endobj
-8 0 obj
-<< /Type /Font /Subtype /Type1 /BaseFont /GCRMMP+Dingbats /FontDescriptor 39 0 R /FirstChar 123 /LastChar 123 /Widths 38 0 R >>
+12 0 obj
+<< /Type /Font /Subtype /Type1 /BaseFont /GCRMMP+Dingbats /FontDescriptor 47 0 R /FirstChar 123 /LastChar 123 /Widths 46 0 R >>
 endobj
-23 0 obj
-<< /Type /Pages  /Count 1 /Kids [ 2 0 R ] >>
+25 0 obj
+<< /Type /Pages  /Count 1 /Kids [ 6 0 R ] >>
 endobj
-41 0 obj
-<< /Names [ (Doc-Start) 21 0 R (page.1) 20 0 R ] /Limits [ (Doc-Start) (page.1) ] >>
+49 0 obj
+<< /Type /Outlines /First 3 0 R /Last 3 0 R /Count 1 >>
 endobj
-42 0 obj
-<< /Dests 41 0 R >>
+3 0 obj
+<< /Title 4 0 R /A 1 0 R /Parent 49 0 R >>
 endobj
-43 0 obj
-<< /Type /Catalog /Pages 23 0 R /Names 42 0 R /PageMode/UseOutlines/AcroForm 25 0 R /OpenAction 1 0 R >>
+50 0 obj
+<< /Names [ (Doc-Start) 22 0 R (page.1) 21 0 R (section.1) 2 0 R ] /Limits [ (Doc-Start) (section.1) ] >>
 endobj
-44 0 obj
-<< /Producer (LuaTeX)/Author()/Title()/Subject()/Creator(LaTeX with hyperref)/Keywords() /Trapped /False >>
+51 0 obj
+<< /Dests 50 0 R >>
+endobj
+52 0 obj
+<< /Type /Catalog /Pages 25 0 R /Outlines 49 0 R /Names 51 0 R /PageMode/UseOutlines/AcroForm 27 0 R /OpenAction 5 0 R >>
+endobj
+53 0 obj
+<< /Producer (LuaTeX)/Author(\376\377\000G\000r\000\374\000\337\000e\145\351\231\020\330\076\335\206)/Title(\376\377\000a\000b\000c)/Subject()/Creator(LaTeX with hyperref)/Keywords() /Trapped /False >>
 endobj
 xref
-0 45
+0 54
 0000000000 65535 f 
 0000000020 00000 n 
-0000001855 00000 n 
-0000002027 00000 n 
-0000003209 00000 n 
-0000003285 00000 n 
-0000000068 00000 n 
-0000000281 00000 n 
-0000014605 00000 n 
-0000000349 00000 n 
-0000000848 00000 n 
-0000011379 00000 n 
-0000000918 00000 n 
-0000001421 00000 n 
-0000003373 00000 n 
-0000003728 00000 n 
-0000004077 00000 n 
-0000004355 00000 n 
-0000004816 00000 n 
-0000001491 00000 n 
-0000004695 00000 n 
-0000004755 00000 n 
-0000008650 00000 n 
-0000014748 00000 n 
-0000001979 00000 n 
-0000004886 00000 n 
-0000005015 00000 n 
-0000007493 00000 n 
-0000005175 00000 n 
-0000005250 00000 n 
-0000007729 00000 n 
-0000008804 00000 n 
-0000009004 00000 n 
-0000010313 00000 n 
-0000009103 00000 n 
-0000009177 00000 n 
-0000010548 00000 n 
-0000011532 00000 n 
-0000011731 00000 n 
-0000014387 00000 n 
-0000011754 00000 n 
+0000003759 00000 n 
+0000014942 00000 n 
+0000000065 00000 n 
+0000000155 00000 n 
+0000001879 00000 n 
+0000002030 00000 n 
+0000003212 00000 n 
+0000003288 00000 n 
+0000000203 00000 n 
+0000000418 00000 n 
+0000014665 00000 n 
+0000000488 00000 n 
+0000000988 00000 n 
+0000011439 00000 n 
+0000001058 00000 n 
+0000001561 00000 n 
+0000003376 00000 n 
+0000003819 00000 n 
+0000001631 00000 n 
+0000003638 00000 n 
+0000003698 00000 n 
+0000008716 00000 n 
+0000006220 00000 n 
 0000014809 00000 n 
-0000014910 00000 n 
-0000014946 00000 n 
-0000015067 00000 n 
+0000002003 00000 n 
+0000003901 00000 n 
+0000004016 00000 n 
+0000005190 00000 n 
+0000004080 00000 n 
+0000004151 00000 n 
+0000005426 00000 n 
+0000006374 00000 n 
+0000006574 00000 n 
+0000007703 00000 n 
+0000006638 00000 n 
+0000006709 00000 n 
+0000007937 00000 n 
+0000008867 00000 n 
+0000009064 00000 n 
+0000010373 00000 n 
+0000009163 00000 n 
+0000009237 00000 n 
+0000010608 00000 n 
+0000011592 00000 n 
+0000011791 00000 n 
+0000014447 00000 n 
+0000011814 00000 n 
+0000014870 00000 n 
+0000015000 00000 n 
+0000015122 00000 n 
+0000015158 00000 n 
+0000015296 00000 n 
 trailer
-<< /Size 45 /Root 43 0 R /Info 44 0 R >>
+<< /Size 54 /Root 52 0 R /Info 53 0 R >>
 startxref
-15191
+15514
 %%EOF
diff --git a/testfiles-pvt/unicode-test.pvt b/testfiles-pvt/unicode-test.pvt
new file mode 100644
index 0000000..aac66d0
--- /dev/null
+++ b/testfiles-pvt/unicode-test.pvt
@@ -0,0 +1,20 @@
+\input{regression-test}
+\documentclass{article}
+% this will will break when unicode is the default.
+% without unicode option xetex currently use auto
+% and so /Title(abc)
+% pdftex will loose the unicode and show only Grüße
+% luatex already uses unicode. 
+\usepackage{hyperref}
+
+\hypersetup{pdfauthor=Grüße早餐🦆,pdftitle={abc}}
+\begin{document}
+
+\section{\texorpdfstring{abc}{Grüße早餐🦆}}
+
+abc
+
+\begin{Form}
+\TextField[name=grüße早餐🦆,width=3cm]{}
+\end{Form}
+\end{document}
\ No newline at end of file
diff --git a/testfiles-pvt/issue49-textfields-utf8.tpf b/testfiles-pvt/unicode-test.tpf
similarity index 57%
copy from testfiles-pvt/issue49-textfields-utf8.tpf
copy to testfiles-pvt/unicode-test.tpf
index 9a487e3..5f80311 100644
--- a/testfiles-pvt/issue49-textfields-utf8.tpf
+++ b/testfiles-pvt/unicode-test.tpf
@@ -1,39 +1,45 @@
 %PDF-1.5
 %ÐÔÅØ
 1 0 obj
-<< /S /GoTo /D [2 0 R /Fit] >>
+<< /S /GoTo /D (section.1) >>
 endobj
-6 0 obj
+4 0 obj
+(Gr\374\337e)
+endobj
+5 0 obj
+<< /S /GoTo /D [6 0 R /Fit] >>
+endobj
+10 0 obj
 <<
 /Type /XObject
 /Subtype /Form
 /BBox [0 0 3.905 7.054]
 /FormType 1
 /Matrix [1 0 0 1 0 0]
-/Resources 7 0 R
+/Resources 11 0 R
 /Length 60        
 >>
 stream
 1 0 0 1 0 7.054 cm
 BT
-/F25 9.9626 Tf 0 -7.054 Td [({)]TJ
+/F27 9.9626 Tf 0 -7.054 Td [({)]TJ
 ET
 endstream
 endobj
-7 0 obj
+11 0 obj
 <<
-/Font << /F25 8 0 R >>
+/Font << /F27 12 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-9 0 obj
+13 0 obj
 <<
 /Type /XObject
 /Subtype /Form
 /BBox [0 0 36.496 13.693]
 /FormType 1
 /Matrix [1 0 0 1 0 0]
-/Resources 10 0 R
+/Resources 14 0 R
 /Length 325       
 >>
 stream
@@ -47,7 +53,7 @@ q
 Q
 1 0 0 1 0 13.693 cm
 BT
-/F26 9.9626 Tf 3.387 -10.306 Td [(Submit)]TJ
+/F28 9.9626 Tf 3.387 -10.306 Td [(Submit)]TJ
 ET
 q
 1 0 0 1 36.297 -13.295 cm
@@ -59,20 +65,20 @@ q
 Q
 endstream
 endobj
-10 0 obj
+14 0 obj
 <<
-/Font << /F26 11 0 R >>
+/Font << /F28 15 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-12 0 obj
+16 0 obj
 <<
 /Type /XObject
 /Subtype /Form
 /BBox [0 0 42.862 13.693]
 /FormType 1
 /Matrix [1 0 0 1 0 0]
-/Resources 13 0 R
+/Resources 17 0 R
 /Length 326       
 >>
 stream
@@ -86,7 +92,7 @@ q
 Q
 1 0 0 1 0 13.693 cm
 BT
-/F26 9.9626 Tf 3.387 -10.306 Td [(SubmitP)]TJ
+/F28 9.9626 Tf 3.387 -10.306 Td [(SubmitP)]TJ
 ET
 q
 1 0 0 1 42.662 -13.295 cm
@@ -98,110 +104,122 @@ q
 Q
 endstream
 endobj
-13 0 obj
+17 0 obj
 <<
-/Font << /F26 11 0 R >>
+/Font << /F28 15 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-19 0 obj
+20 0 obj
 <<
-/Length 174       
+/Length 133       
 >>
 stream
 BT
-/F8 9.9626 Tf 148.712 655.243 Td [(T)83(eX)-333(User?)-445(Y)84(es)-1867(No)]TJ -14.944 -16.245 Td [(Address)]TJ 0 -16.244 Td [(Address)]TJ 169.365 -533.389 Td [(1)]TJ
+/F26 14.3462 Tf 133.768 657.235 Td [(1)-1125(ab)-31(c)]TJ/F8 9.9626 Tf 0 -21.821 Td [(ab)-28(c)]TJ 169.365 -546.049 Td [(1)]TJ
 ET
 endstream
 endobj
-2 0 obj
+6 0 obj
 <<
 /Type /Page
-/Contents 19 0 R
-/Resources 18 0 R
+/Contents 20 0 R
+/Resources 19 0 R
 /MediaBox [0 0 612 792]
-/Parent 23 0 R
-/Annots [ 14 0 R 15 0 R 16 0 R 17 0 R ]
+/Parent 25 0 R
+/Annots [ 18 0 R ]
 >>
 endobj
-3 0 obj
+7 0 obj
 <</Type/Encoding/Differences[24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring/tilde 39/quotesingle 96/grave 128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin/fraction/guilsinglleft/guilsinglright/minus/perthousand/quotedblbase/quotedblleft/quotedblright/quoteleft/quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron 164/currency 166/brokenbar 168/dieresis/copyright/ordfeminine 172/logicalnot/.notdef/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu 183/periodcentered/cedilla/onesuperior/ordmasculine 188/onequarter/onehalf/threequarters 192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]>>
 endobj
-4 0 obj
+8 0 obj
 <</Type/Font/Subtype/Type1/Name/ZaDb/BaseFont/ZapfDingbats>>
 endobj
-5 0 obj
-<</Type/Font/Subtype/Type1/Name/Helv/BaseFont/Helvetica/Encoding 3 0 R>>
-endobj
-14 0 obj
-<<
-/Type /Annot
-/Rect [216.486 654.247 230.434 668.194]
-/Subtype/Widget/F 4/T(\376\377\000t\000e\000s\000t\000d\000e\000f\000a\000u\000l\000t)/FT/Btn/Ff 49152/H/P/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1 1 1]/CA(H)>>/DA(/ZaDb 10 Tf 0 0 0 rg)/V/\376\377\000Y\000e\000s/DV/\376\377\000Y\000e\000s/AP<</N<</\376\377\000Y\000e\000s 6 0 R>>>>
->>
-endobj
-15 0 obj
-<<
-/Type /Annot
-/Rect [247.536 654.247 261.484 668.194]
-/Subtype/Widget/F 4/T(\376\377\000t\000e\000s\000t\000d\000e\000f\000a\000u\000l\000t)/FT/Btn/Ff 49152/H/P/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1 1 1]/CA(H)>>/DA(/ZaDb 10 Tf 0 0 0 rg)/V/\376\377\000Y\000e\000s/DV/\376\377\000Y\000e\000s/AP<</N<</\376\377\000N\000o 6 0 R>>>>
->>
+9 0 obj
+<</Type/Font/Subtype/Type1/Name/Helv/BaseFont/Helvetica/Encoding 7 0 R>>
 endobj
-16 0 obj
+18 0 obj
 <<
 /Type /Annot
-/Rect [170.824 638.002 257.856 651.95]
-/Subtype/Widget/F 4/T(\376\377\000t\000e\000x\000t\000f\000i\000e\000l\000d\0001)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V(\376\377\000K\000\366\000l\000n)
+/Rect [147.716 622.463 234.748 636.411]
+/Subtype/Widget/F 4/T(gr\374\337e)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()
 >>
 endobj
-17 0 obj
+21 0 obj
 <<
-/Type /Annot
-/Rect [170.824 621.757 257.856 635.705]
-/Subtype/Widget/F 4/T(\376\377\000t\000e\000x\000t\000f\000i\000e\000l\000d\0002)/FT/Tx/Q 0/BS<</W 1 /S /S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV(\376\377\000M\000\374\000n\000c\000h\000e\000n)/V(\376\377\000M\000\374\000n\000c\000h\000e\000n)
+/D [6 0 R /XYZ 132.768 705.06 null]
 >>
 endobj
-20 0 obj
+22 0 obj
 <<
-/D [2 0 R /XYZ 132.768 705.06 null]
+/D [6 0 R /XYZ 133.768 667.198 null]
 >>
 endobj
-21 0 obj
+2 0 obj
 <<
-/D [2 0 R /XYZ 133.768 667.198 null]
+/D [6 0 R /XYZ 133.768 667.198 null]
 >>
 endobj
-18 0 obj
+19 0 obj
 <<
-/Font << /F8 22 0 R >>
+/Font << /F26 23 0 R /F8 24 0 R >>
 /ProcSet [ /PDF /Text ]
 >>
 endobj
-24 0 obj
-<</Fields[14 0 R 16 0 R 17 0 R]/DR<</Font<</ZaDb 4 0 R/Helv 5 0 R>>>>/DA(/Helv 10 Tf 0 g)/NeedAppearances true>>
+26 0 obj
+<</Fields[18 0 R]/DR<</Font<</ZaDb 8 0 R/Helv 9 0 R>>>>/DA(/Helv 10 Tf 0 g)/NeedAppearances true>>
 endobj
-25 0 obj
-[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4 555.6 444.4 305.6 500 555.6 277.8 305.6 527.8 277.8 833.3 555.6 500 555.6 527.8 391.7 394.4]
+27 0 obj
+[500 500 500 500 500 500 500 500 500 277.8 277.8 277.8 777.8 472.2 472.2 777.8 750 708.3 722.2 763.9 680.6 652.8 784.7 750 361.1 513.9 777.8 625 916.7 750 777.8 680.6 777.8 736.1 555.6 722.2 750 750 1027.8 750 750 611.1 277.8 500 277.8 500 277.8 277.8 500 555.6 444.4]
 endobj
-26 0 obj
+28 0 obj
+[562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 562.5 312.5 312.5 342.6 875 531.2 531.2 875 849.5 799.8 812.5 862.3 738.4 707.2 884.3 879.6 419 581 880.8 675.9 1067.1 879.6 844.9 768.5 844.9 839.1 625 782.4 864.6 849.5 1162 849.5 849.5 687.5 312.5 581 312.5 562.5 312.5 312.5 546.9 625 500]
+endobj
+29 0 obj
 [638.9 736.1 645.8 555.6 680.6 687.5 666.7 944.5 666.7 666.7 611.1 288.9 500 288.9 500 277.8 277.8 480.6 516.7 444.4 516.7 444.4 305.6 500 516.7 238.9 266.7 488.9 238.9 794.4 516.7 500 516.7 516.7 341.7 383.3 361.1 516.7]
 endobj
-27 0 obj
+30 0 obj
 [392]
 endobj
-28 0 obj
+31 0 obj
 <<
-/Length1 1545
-/Length2 10444
+/Length1 1413
+/Length2 6376
 /Length3 0
-/Length 11989     
+/Length 7789      
 >>
 [BINARY STREAM]
 endobj
-29 0 obj
+32 0 obj
+<<
+/Type /FontDescriptor
+/FontName /ZZSIJI+CMBX12
+/Flags 4
+/FontBBox [-53 -251 1139 750]
+/Ascent 694
+/CapHeight 686
+/Descent -194
+/ItalicAngle 0
+/StemV 109
+/XHeight 444
+/CharSet (/a/b/c/one)
+/FontFile 31 0 R
+>>
+endobj
+33 0 obj
+<<
+/Length1 1407
+/Length2 7801
+/Length3 0
+/Length 9208      
+>>
+[BINARY STREAM]
+endobj
+34 0 obj
 <<
 /Type /FontDescriptor
-/FontName /LLVQJL+CMR10
+/FontName /EVYFYC+CMR10
 /Flags 4
 /FontBBox [-40 -250 1009 750]
 /Ascent 694
@@ -210,11 +228,11 @@ endobj
 /ItalicAngle 0
 /StemV 69
 /XHeight 431
-/CharSet (/A/N/T/U/X/Y/d/e/o/one/question/r/s)
-/FontFile 28 0 R
+/CharSet (/a/b/c/one)
+/FontFile 33 0 R
 >>
 endobj
-30 0 obj
+35 0 obj
 <<
 /Length1 1458
 /Length2 6860
@@ -223,7 +241,7 @@ endobj
 >>
 [BINARY STREAM]
 endobj
-31 0 obj
+36 0 obj
 <<
 /Type /FontDescriptor
 /FontName /XYLNGW+CMSS10
@@ -236,10 +254,10 @@ endobj
 /StemV 78
 /XHeight 444
 /CharSet (/P/S/b/i/m/t/u)
-/FontFile 30 0 R
+/FontFile 35 0 R
 >>
 endobj
-32 0 obj
+37 0 obj
 <<
 /Length1 1568
 /Length2 967
@@ -248,7 +266,7 @@ endobj
 >>
 [BINARY STREAM]
 endobj
-33 0 obj
+38 0 obj
 <<
 /Type /FontDescriptor
 /FontName /GCRMMP+Dingbats
@@ -261,120 +279,153 @@ endobj
 /StemV 0
 /XHeight 400
 /CharSet (/a97)
-/FontFile 32 0 R
+/FontFile 37 0 R
 >>
 endobj
-22 0 obj
+23 0 obj
 <<
 /Type /Font
 /Subtype /Type1
-/BaseFont /LLVQJL+CMR10
-/FontDescriptor 29 0 R
+/BaseFont /ZZSIJI+CMBX12
+/FontDescriptor 32 0 R
 /FirstChar 49
-/LastChar 115
-/Widths 25 0 R
+/LastChar 99
+/Widths 28 0 R
 >>
 endobj
-11 0 obj
+24 0 obj
+<<
+/Type /Font
+/Subtype /Type1
+/BaseFont /EVYFYC+CMR10
+/FontDescriptor 34 0 R
+/FirstChar 49
+/LastChar 99
+/Widths 27 0 R
+>>
+endobj
+15 0 obj
 <<
 /Type /Font
 /Subtype /Type1
 /BaseFont /XYLNGW+CMSS10
-/FontDescriptor 31 0 R
+/FontDescriptor 36 0 R
 /FirstChar 80
 /LastChar 117
-/Widths 26 0 R
+/Widths 29 0 R
 >>
 endobj
-8 0 obj
+12 0 obj
 <<
 /Type /Font
 /Subtype /Type1
 /BaseFont /GCRMMP+Dingbats
-/FontDescriptor 33 0 R
+/FontDescriptor 38 0 R
 /FirstChar 123
 /LastChar 123
-/Widths 27 0 R
+/Widths 30 0 R
 >>
 endobj
-23 0 obj
+25 0 obj
 <<
 /Type /Pages
 /Count 1
-/Kids [2 0 R]
+/Kids [6 0 R]
 >>
 endobj
-34 0 obj
+39 0 obj
 <<
-/Names [(Doc-Start) 21 0 R (page.1) 20 0 R]
-/Limits [(Doc-Start) (page.1)]
+/Type /Outlines
+/First 3 0 R
+/Last 3 0 R
+/Count 1
 >>
 endobj
-35 0 obj
+3 0 obj
 <<
-/Dests 34 0 R
+/Title 4 0 R
+/A 1 0 R
+/Parent 39 0 R
 >>
 endobj
-36 0 obj
+40 0 obj
+<<
+/Names [(Doc-Start) 22 0 R (page.1) 21 0 R (section.1) 2 0 R]
+/Limits [(Doc-Start) (section.1)]
+>>
+endobj
+41 0 obj
+<<
+/Dests 40 0 R
+>>
+endobj
+42 0 obj
 <<
 /Type /Catalog
-/Pages 23 0 R
-/Names 35 0 R
-/PageMode/UseOutlines/AcroForm 24 0 R
-/OpenAction 1 0 R
+/Pages 25 0 R
+/Outlines 39 0 R
+/Names 41 0 R
+/PageMode/UseOutlines/AcroForm 26 0 R
+/OpenAction 5 0 R
 >>
 endobj
-37 0 obj
+43 0 obj
 <<
-/Producer (pdfTeX)/Author()/Title()/Subject()/Creator(LaTeX with hyperref)/Keywords()
+/Producer (pdfTeX)/Author(Gr\374\337e)/Title(abc)/Subject()/Creator(LaTeX with hyperref)/Keywords()
 /Trapped /False
 >>
 endobj
 xref
-0 38
+0 44
 0000000000 65535 f 
 0000000015 00000 n 
-0000001709 00000 n 
-0000001856 00000 n 
-0000003038 00000 n 
-0000003114 00000 n 
-0000000061 00000 n 
-0000000284 00000 n 
-0000029575 00000 n 
-0000000352 00000 n 
-0000000843 00000 n 
-0000029434 00000 n 
-0000000913 00000 n 
-0000001406 00000 n 
-0000003202 00000 n 
-0000003553 00000 n 
-0000003899 00000 n 
-0000004174 00000 n 
-0000004628 00000 n 
-0000001476 00000 n 
-0000004511 00000 n 
-0000004569 00000 n 
-0000029294 00000 n 
-0000029718 00000 n 
-0000004697 00000 n 
-0000004826 00000 n 
-0000005203 00000 n 
-0000005441 00000 n 
-0000005463 00000 n 
-0000017551 00000 n 
-0000017801 00000 n 
-0000026217 00000 n 
-0000026446 00000 n 
-0000029078 00000 n 
-0000029776 00000 n 
-0000029873 00000 n 
-0000029909 00000 n 
-0000030030 00000 n 
+0000003534 00000 n 
+0000034473 00000 n 
+0000000060 00000 n 
+0000000089 00000 n 
+0000001747 00000 n 
+0000001873 00000 n 
+0000003055 00000 n 
+0000003131 00000 n 
+0000000135 00000 n 
+0000000360 00000 n 
+0000034199 00000 n 
+0000000430 00000 n 
+0000000922 00000 n 
+0000034058 00000 n 
+0000000992 00000 n 
+0000001485 00000 n 
+0000003219 00000 n 
+0000003592 00000 n 
+0000001555 00000 n 
+0000003417 00000 n 
+0000003475 00000 n 
+0000033779 00000 n 
+0000033919 00000 n 
+0000034343 00000 n 
+0000003673 00000 n 
+0000003788 00000 n 
+0000004073 00000 n 
+0000004381 00000 n 
+0000004619 00000 n 
+0000004641 00000 n 
+0000012528 00000 n 
+0000012755 00000 n 
+0000022061 00000 n 
+0000022286 00000 n 
+0000030702 00000 n 
+0000030931 00000 n 
+0000033563 00000 n 
+0000034401 00000 n 
+0000034531 00000 n 
+0000034649 00000 n 
+0000034685 00000 n 
+0000034823 00000 n 
 trailer
-<< /Size 38
-/Root 36 0 R
-/Info 37 0 R
+<< /Size 44
+/Root 42 0 R
+/Info 43 0 R
  >>
 startxref
-30154
+34961
 %%EOF
diff --git a/testfiles-xetex/unicode-test.pvt b/testfiles-xetex/unicode-test.pvt
new file mode 100644
index 0000000..aac66d0
--- /dev/null
+++ b/testfiles-xetex/unicode-test.pvt
@@ -0,0 +1,20 @@
+\input{regression-test}
+\documentclass{article}
+% this will will break when unicode is the default.
+% without unicode option xetex currently use auto
+% and so /Title(abc)
+% pdftex will loose the unicode and show only Grüße
+% luatex already uses unicode. 
+\usepackage{hyperref}
+
+\hypersetup{pdfauthor=Grüße早餐🦆,pdftitle={abc}}
+\begin{document}
+
+\section{\texorpdfstring{abc}{Grüße早餐🦆}}
+
+abc
+
+\begin{Form}
+\TextField[name=grüße早餐🦆,width=3cm]{}
+\end{Form}
+\end{document}
\ No newline at end of file
diff --git a/testfiles-xetex/unicode-test.tpf b/testfiles-xetex/unicode-test.tpf
new file mode 100644
index 0000000..31fbcda
--- /dev/null
+++ b/testfiles-xetex/unicode-test.tpf
@@ -0,0 +1,216 @@
+%PDF-1.5
+%äðíø
+15 0 obj
+<</Length 196>>
+stream
+ q 1 0 0 1 72 720 cm BT /F1 14.3462 Tf 61.768 -62.765 Td[<0052>-1000<001c0023>-31<002b>]TJ /F2 9.9626 Tf 0 -21.831 Td[<001c0023>-28<002b>]TJ ET BT /F2 9.9626 Tf 231.133 -630.635 Td[<0052>]TJ ET Q
+endstream
+endobj
+16 0 obj
+<</Font<</F1 5 0 R/F2 7 0 R>>/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]>>
+endobj
+10 0 obj
+<</Type/Font/Subtype/Type1/Name/ZaDb/BaseFont/ZapfDingbats>>
+endobj
+14 0 obj
+<</Subtype/Widget/F 4/P 3 0 R/T<feff0067007200fc00df006565e99910d83edd86>/FT/Tx/Q
+0/BS<</W 1/S/S>>/MK<</BC[1 0 0]/BG[1 1 1]>>/DA(/Helv 10 Tf 0 0 0 rg)/DV()/V()/Rect[148.712
+622.343 233.752 634.298]>>
+endobj
+8 0 obj
+<</Type/Encoding/Differences[24/breve/caron/circumflex/dotaccent/hungarumlaut/ogonek/ring/tilde
+39/quotesingle 96/grave 128/bullet/dagger/daggerdbl/ellipsis/emdash/endash/florin/fraction/guilsinglleft/guilsinglright/minus/perthousand/quotedblbase/quotedblleft/quotedblright/quoteleft/quoteright/quotesinglbase/trademark/fi/fl/Lslash/OE/Scaron/Ydieresis/Zcaron/dotlessi/lslash/oe/scaron/zcaron
+164/currency 166/brokenbar 168/dieresis/copyright/ordfeminine 172/logicalnot/.notdef/registered/macron/degree/plusminus/twosuperior/threesuperior/acute/mu
+183/periodcentered/cedilla/onesuperior/ordmasculine 188/onequarter/onehalf/threequarters
+192/Agrave/Aacute/Acircumflex/Atilde/Adieresis/Aring/AE/Ccedilla/Egrave/Eacute/Ecircumflex/Edieresis/Igrave/Iacute/Icircumflex/Idieresis/Eth/Ntilde/Ograve/Oacute/Ocircumflex/Otilde/Odieresis/multiply/Oslash/Ugrave/Uacute/Ucircumflex/Udieresis/Yacute/Thorn/germandbls/agrave/aacute/acircumflex/atilde/adieresis/aring/ae/ccedilla/egrave/eacute/ecircumflex/edieresis/igrave/iacute/icircumflex/idieresis/eth/ntilde/ograve/oacute/ocircumflex/otilde/odieresis/divide/oslash/ugrave/uacute/ucircumflex/udieresis/yacute/thorn/ydieresis]>>
+endobj
+11 0 obj
+<</Type/Font/Subtype/Type1/Name/Helv/BaseFont/Helvetica/Encoding 8 0 R>>
+endobj
+9 0 obj
+[14 0 R]
+endobj
+12 0 obj
+[]
+endobj
+13 0 obj
+<</Fields 9 0 R/DR<</Font<</ZaDb 10 0 R/Helv 11 0 R>>>>/DA(/Helv 10 Tf 0 g)/CO 12 0 R/NeedAppearances
+true>>
+endobj
+18 0 obj
+<</Names[(0)17 0 R]>>
+endobj
+17 0 obj
+[3 0 R/XYZ 133.77 667.2 null]
+endobj
+19 0 obj
+<</Dests 18 0 R>>
+endobj
+21 0 obj
+<</Title<feff0047007200fc00df006565e99910d83edd86>/A<</S/GoTo/D(0)>>/Parent 20 0 R>>
+endobj
+20 0 obj
+<</First 21 0 R/Last 21 0 R/Count 1>>
+endobj
+23 0 obj
+[14 0 R]
+endobj
+3 0 obj
+<</Resources 16 0 R/Type/Page/Parent 22 0 R/Contents[15 0 R]/Annots 23 0 R>>
+endobj
+22 0 obj
+<</Type/Pages/Count 1/Kids[3 0 R]/MediaBox[0 0 612 792]>>
+endobj
+2 0 obj
+<</Creator(TeX)/Title(abc)/Author<feff0047007200fc00df006565e99910d83edd86>/Producer(xdvipdfmx)/CreationDate(D:20160520090000-00'00')>>
+endobj
+1 0 obj
+<</OpenAction[3 0 R/Fit]/PageMode/UseOutlines/AcroForm 13 0 R/Names 19 0 R/Outlines
+20 0 R/Pages 22 0 R/Type/Catalog>>
+endobj
+24 0 obj
+<</Length 395>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /EXQIVM+LMRoman12-Bold-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+4 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<0052> <0031>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+25 0 obj
+<</Length 398>>
+stream
+/CIDInit /ProcSet findresource begin
+12 dict begin
+begincmap
+/CMapName /XUUPUX+LMRoman10-Regular-UTF16 def
+/CMapType 2 def
+/CIDSystemInfo <<
+  /Registry (Adobe)
+  /Ordering (UCS)
+  /Supplement 0
+>> def
+1 begincodespacerange
+<0000> <FFFF>
+endcodespacerange
+4 beginbfchar
+<001C> <0061>
+<0023> <0062>
+<002B> <0063>
+<0052> <0031>
+endbfchar
+endcmap
+CMapName currentdict /CMap defineresource pop
+end
+end
+endstream
+endobj
+27 0 obj
+<</Subtype/CIDFontType0C/Length 880>>
+[BINARY STREAM]
+endobj
+28 0 obj
+[28[547]35[625]43[500]82[563]]
+endobj
+29 0 obj
+<</Length 11>>
+[BINARY STREAM]
+endobj
+4 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/EXQIVM+LMRoman12-Bold/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 26 0 R/DW 280/W 28 0 R>>
+endobj
+26 0 obj
+<</Type/FontDescriptor/Ascent 806/Descent -194/StemV 109/CapHeight 806/AvgWidth 618/FontBBox[-476
+-289 1577 1137]/ItalicAngle 0/Flags 262150/Style<</Panose<000000000800000000000000>>>/FontName/EXQIVM+LMRoman12-Bold/FontFile3
+27 0 R/CIDSet 29 0 R>>
+endobj
+31 0 obj
+<</Subtype/CIDFontType0C/Length 929>>
+[BINARY STREAM]
+endobj
+32 0 obj
+[28[500]35[556]43[444]82[500]]
+endobj
+33 0 obj
+<</Length 11>>
+[BINARY STREAM]
+endobj
+6 0 obj
+<</Type/Font/Subtype/CIDFontType0/BaseFont/XUUPUX+LMRoman10-Regular/CIDSystemInfo<</Registry(Adobe)/Ordering(Identity)/Supplement
+0>>/FontDescriptor 30 0 R/DW 280/W 32 0 R>>
+endobj
+30 0 obj
+<</Type/FontDescriptor/Ascent 806/Descent -194/StemV 69/CapHeight 806/AvgWidth 549/FontBBox[-430
+-290 1417 1127]/ItalicAngle 0/Flags 6/Style<</Panose<000000000500000000000000>>>/FontName/XUUPUX+LMRoman10-Regular/FontFile3
+31 0 R/CIDSet 33 0 R>>
+endobj
+5 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/EXQIVM+LMRoman12-Bold-Identity-H/Encoding/Identity-H/DescendantFonts[4 0 R]/ToUnicode
+24 0 R>>
+endobj
+7 0 obj
+<</Type/Font/Subtype/Type0/BaseFont/XUUPUX+LMRoman10-Regular-Identity-H/Encoding/Identity-H/DescendantFonts[6 0 R]/ToUnicode
+25 0 R>>
+endobj
+xref
+0 34
+0000000000 65535 f 
+0000002696 00000 n 
+0000002545 00000 n 
+0000002379 00000 n 
+0000004782 00000 n 
+0000006790 00000 n 
+0000006340 00000 n 
+0000006936 00000 n 
+0000000642 00000 n 
+0000001913 00000 n 
+0000000349 00000 n 
+0000001824 00000 n 
+0000001937 00000 n 
+0000001956 00000 n 
+0000000426 00000 n 
+0000000015 00000 n 
+0000000261 00000 n 
+0000002119 00000 n 
+0000002081 00000 n 
+0000002165 00000 n 
+0000002300 00000 n 
+0000002199 00000 n 
+0000002471 00000 n 
+0000002354 00000 n 
+0000002830 00000 n 
+0000003275 00000 n 
+0000004968 00000 n 
+0000003723 00000 n 
+0000004675 00000 n 
+0000004722 00000 n 
+0000006529 00000 n 
+0000005232 00000 n 
+0000006233 00000 n 
+0000006280 00000 n 
+trailer
+<</Root 1 0 R/Info 2 0 R/ID[<ID-STRING><ID-STRING>]/Size
+34>>
+startxref
+7085
+%%EOF





More information about the latex3-commits mailing list.