texlive[51305] Master/texmf-dist: forms16be (3jun19)
commits+karl at tug.org
commits+karl at tug.org
Mon Jun 3 23:34:17 CEST 2019
Revision: 51305
http://tug.org/svn/texlive?view=revision&revision=51305
Author: karl
Date: 2019-06-03 23:34:17 +0200 (Mon, 03 Jun 2019)
Log Message:
-----------
forms16be (3jun19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/forms16be/README.md
trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.pdf
trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.tex
trunk/Master/texmf-dist/source/latex/forms16be/forms16be.dtx
trunk/Master/texmf-dist/tex/latex/forms16be/forms16be.sty
trunk/Master/texmf-dist/tex/latex/forms16be/uni4basic-latin.def
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ap.tex
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.tex
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-hy.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ap.tex
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.pdf
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.tex
trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-hy.tex
Modified: trunk/Master/texmf-dist/doc/latex/forms16be/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/README.md 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/README.md 2019-06-03 21:34:17 UTC (rev 51305)
@@ -1,6 +1,6 @@
The forms16b3 Package
Author: D. P. Story
-Dated: 2017/08/28
+Dated: 2019-03-20
The forms16be package provides support for UTF-16BE Unicode character
encoding (called a big-endian character string) for the text string
@@ -12,6 +12,9 @@
support for Basic Latin plus the ability to enter any unicode character using
the notation \uXXXX, where 'XXXX' are four hex digits. Package
works for dvips/Distiller, pdflatex, lualatex, and xelatex.
+
+What's New (2019-03-20) Changed when macros are expanded; changes are in
+response to new features of insdljs (2019/03/16) and eforms (2019/03/16).
Enjoy!
Modified: trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.tex 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/doc/forms16be-man.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -40,7 +40,7 @@
email={dpstory at acrotex.net},
subject=Documentation for the forms16be package,
talksite={\url{www.acrotex.net}},
- version={1.2, 2017/08/28},
+ version={1.3, 2019/03/20},
Keywords={LaTeX, form fields, UTF-16BE, AcroTeX},
copyrightStatus=True,
copyrightNotice={Copyright (C) \the\year, D. P. Story},
@@ -308,13 +308,13 @@
There are three sample files:
\begin{itemize}
-\item \texttt{forms16b3-ef.tex} uses the \pkg{eforms} package to create
+\item \texttt{forms16be-ef.tex} uses the \pkg{eforms} package to create
form fields and demonstrate how to initialize form fields using
unicode.
-\item \texttt{forms16b3-hy.tex} uses form fields created by \pkg{hyperref}.
+\item \texttt{forms16be-hy.tex} uses form fields created by \pkg{hyperref}.
\pkg{hyperref} does not support initializing the value of a field, for
example, with big-endian, so a redefinition is needed.
-\item \texttt{forms16b3-ap.tex} demonstrates the \pkg{forms16be} with
+\item \texttt{forms16be-ap.tex} demonstrates the \pkg{forms16be} with
\pkg{aeb\_pro} (\app{dvips}/\app{Distiller} workflow required). For consistency with previously
documented behavior of \pkg{aeb\_pro}, the \opt{linktoattachments} option is used to import \pkg{forms16be}.
It is not necessary, however, to use \opt{linktoattachments}.
Deleted: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ap.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ap.tex 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ap.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -1,59 +0,0 @@
-\documentclass{article}
-\usepackage{amsmath}
-
-\usepackage[
- useacrobat,
- web={designv,forcolorpaper,tight*},
- eforms,
-% The next two option require dvips/Distiller workflow
-% linktoattachments,
-% attachsource=tex
-]{aeb_pro}
-\usepackage{forms16be}
-
-\def\cs#1{\texttt{\char`\\#1}}
-\let\pkg\textsf
-\let\opt\texttt
-\let\app\textsf
-
-\parindent0pt \parskip6pt
-
-\begin{document}
-
-This file uses \pkg{aeb\_pro}, which assumes the document author uses \app{Acrobat}. When the \opt{linktooption}
-is used, \pkg{forms16be} is automatically included, but \app{dvips/Distiller} must be used as the PDF creator. However,
-if you don't want to attach or link to files, then simply say \verb~\usepackage{forms16be}~, as is done in this
-file, but specify the \opt{useacrobat} for \pkg{aeb\_pro}. The latter is how this source file is configured. As a
-user of \app{pdflatex}, \app{lualatex}, or \app{xelatex}, you can build this source file if you have \app{Acrobat} as your default
-PDF viewer.
-
-Initialize a text field using unicode character strings,
-
-\defUniStr{VDV}{\u03B1 cos(\u03B8)}
-\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
-
-\textField[\TU{\unicodeStr(TU)}\DV{\unicodeStr(VDV)}\V{\unicodeStr(VDV)}]{tst}{1.5in}{11bp}\olBdry
-\pushButton[\CA{\unicodeStr(VDV)}\AAmouseup{app.alert("Initialized to \\"\\u03B1 cos(\\u03B8)\\"");}]{btn}{1in}{11bp}\cgBdry[1em]
-\pushButton[\CA{Reset}\AAmouseup{this.resetForm();}]{reset}{}{11bp}
-
-Note the JavaScript alert message, we use the same markup as for \cs{defUniStr}, but use \cs{\cs{uXXXX}} rather than \cs{uXXXX}. See the source file.
-
-Initialize a combo box using unicode character strings.
-
-\defUniStr{myEuro}{\u20AC (Euro)}
-\defUniStr{myYen}{\u00A5 (Yen)}
-\defUniStr{mySheqel}{\u20AA (Sheqel)}
-\defUniStr{myPound}{\u00A3 (Pound)}
-\defUniStr{myFranc}{\u20A3 (Franc)}
-
-\comboBox[\Ff\FfEdit\DV{Euro}\V{Euro}\textFont{Arial}
-\BG{0.98 0.92 0.73}\BC{0 .6 0}]{myCombo}{1in}{11bp}
-{*{[(Euro)<\unicodeStr(myEuro)>]%
- [(Yen)<\unicodeStr(myYen)>]%
- [(Sheqel)<\unicodeStr(mySheqel)>]%
- [(Pound)<\unicodeStr(myPound)>]%
- [(Franc)<\unicodeStr(myFranc)>]}
-}
-
-\end{document}
-
Deleted: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.tex 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-ef.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -1,47 +0,0 @@
-\documentclass{article}
-\usepackage[designi,tight*]{web}
-\usepackage{eforms}
-\usepackage{forms16be}
-
-\previewOff
-
-
-\def\cs#1{\texttt{\char`\\#1}}
-\let\pkg\textsf
-
-\parindent0pt \parskip6pt
-
-\begin{document}
-
-Initialize a text field using unicode character strings,
-
-\defUniStr{VDV}{\u03B1 cos(\u03B8)}
-\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
-
-\textField[\TU{\unicodeStr(TU)}\DV{\unicodeStr(VDV)}\V{\unicodeStr(VDV)}]{tst}{1.5in}{11bp}\olBdry
-
-\pushButton[\CA{\unicodeStr(VDV)}\AAmouseup{app.alert("Initialized to \\"\\u03B1 cos(\\u03B8)\\"");}]{btn}{1in}{11bp}\cgBdry[1em]
-\pushButton[\CA{Reset}\AAmouseup{this.resetForm();}]{reset}{}{11bp}
-
-Note the JavaScript alert message, we use the same markup as for
-\cs{defUniStr}, but use \cs{\cs{uXXXX}} rather than \cs{uXXXX}. See the
-source file.
-
-Initialize a combo box using unicode character strings.
-
-\defUniStr{myEuro}{\u20AC (Euro)}
-\defUniStr{myYen}{\u00A5 (Yen)}
-\defUniStr{mySheqel}{\u20AA (Sheqel)}
-\defUniStr{myPound}{\u00A3 (Pound)}
-\defUniStr{myFranc}{\u20A3 (Franc)}
-
-\comboBox[\Ff\FfEdit\DV{Euro}\V{Euro}\textFont{Arial}
-\BG{0.98 0.92 0.73}\BC{0 .6 0}]{myCombo}{1in}{11bp}
-{*{[(Euro)<\unicodeStr(myEuro)>]
- [(Yen)<\unicodeStr(myYen)>]
- [(Sheqel)<\unicodeStr(mySheqel)>]
- [(Pound)<\unicodeStr(myPound)>]
- [(Franc)<\unicodeStr(myFranc)>]}
-}
-
-\end{document}
Deleted: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-hy.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-hy.tex 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16b3-hy.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -1,78 +0,0 @@
-\documentclass{article}
-%\usepackage[designv,forcolorpaper,tight*]{web}
-\usepackage{hyperref}
-\usepackage{forms16be}
-
-\defUniStr{VDV}{\u03B1 cos(\u03B8)}
-\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
-
-\makeatletter
-% Define two new keys udefault and uvalue to take big-endian values
-\define at key{Field}{udefault}{%
- \def\Fld at udefault{#1}%
-}
-\define at key{Field}{uvalue}{%
- \Hy at pdfstringdef\Fld at uvalue{#1}%
-}
-\let\Fld at udefault\ltx at empty
-\let\Fld at uvalue\@empty
-\def\PDFForm at Text{%
- /Subtype/Widget%
- \Fld at annotflags
- \Fld at pageobjref
- \Fld at annotnames
- /FT/Tx%
- \Fld at flags
- /Q \Fld at align
- /BS<</W \Fld at borderwidth\space /S /\Fld at borderstyle>>%
- \ifcase0\ifnum\Fld at rotation=\z@ \else 1\fi
- \ifx\Fld at bordercolor\relax\else 1\fi
- \ifx\Fld at bcolor\relax \else 1\fi
- \space
- \else
- /MK<<%
- \ifnum\Fld at rotation=\z@
- \else
- /R \Fld at rotation
- \fi
- \ifx\Fld at bordercolor\relax
- \else
- /BC[\Fld at bordercolor]%
- \fi
- \ifx\Fld at bcolor\relax
- \else
- /BG[\Fld at bcolor]%
- \fi
- >>%
- \fi
- /DA(/Helv \strip at pt\Fld at charsize\space Tf%
- \ifx\Fld at color\@empty\else\space\Fld at color\fi)%
-% Determine which key to used based on uvalue and udefault
-\ifx\Fld at udefault\ltx at empty
- /DV(\Hy at escapestring{\Fld at default})\else
- /DV<\Hy at escapestring{\Fld at udefault}>\fi
-\ifx\Fld at uvalue\@empty
- /V(\Hy at escapestring{\Fld at value})\else
- /V<\Hy at escapestring{\Fld at uvalue}>\fi
- \Fld at additionalactions
- \ifnum\Fld at maxlen>\z@/MaxLen \Fld at maxlen \fi
-}
-\makeatother
-
-\def\cs#1{\texttt{\char`\\#1}}
-\let\pkg\textsf
-
-\parindent0pt \parskip6pt
-
-\begin{document}
-\begin{Form}
-
-The \pkg{hyperref} package does not support initializing form fields with big-endian, but it is possible
-to modify some \pkg{hyperref} core code to get the desired result. The maintainer can take this example
-and generalize it to all appropriate form fields and properties, it there is a demand.
-
-\def\LayoutTextField#1#2{#2}
-\TextField[uvalue={\unicodeStr(VDV)},udefault={\unicodeStr(VDV)}]{textfield}
-
-\end{Form}
-\end{document}
Added: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ap.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ap.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ap.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -0,0 +1,62 @@
+\documentclass{article}
+\usepackage{amsmath}
+
+\usepackage[
+ useacrobat,
+ web={designv,forcolorpaper,tight*},
+ eforms,
+% The next two option require dvips/Distiller workflow
+% linktoattachments,
+% attachsource=tex
+]{aeb_pro}
+\usepackage{forms16be}
+
+\def\cs#1{\texttt{\char`\\#1}}
+\let\pkg\textsf
+\let\opt\texttt
+\let\app\textsf
+
+\parindent0pt \parskip6pt
+
+\begin{document}
+
+This file uses \pkg{aeb\_pro}, which assumes the document author
+uses \app{Acrobat}. When the option \opt{linktoattachments} is
+used, \pkg{forms16be} is automatically included, but
+\app{dvips/Distiller} must be used as the PDF creator. However,
+if you don't want to attach or link to files, then simply say
+\verb~\usepackage{forms16be}~, as is done in this file, but
+specify the \opt{useacrobat} for \pkg{aeb\_pro}. The latter is
+how this source file is configured. As a user of \app{pdflatex},
+\app{lualatex}, or \app{xelatex}, you can build this source file
+if you have \app{Acrobat} as your default PDF viewer.
+
+Initialize a text field using unicode character strings,
+
+\defUniStr{VDV}{\u03B1 cos(\u03B8)}
+\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
+
+\textField[\TU{\unicodeStr(TU)}\DV{\unicodeStr(VDV)}\V{\unicodeStr(VDV)}]{tst}{1.5in}{11bp}\olBdry
+\pushButton[\CA{\unicodeStr(VDV)}\AAmouseup{app.alert("Initialized to \\"\\u03B1 cos(\\u03B8)\\"");}]{btn}{1in}{11bp}\cgBdry[1em]
+\pushButton[\CA{Reset}\AAmouseup{this.resetForm();}]{reset}{}{11bp}
+
+Note the JavaScript alert message, we use the same markup as for \cs{defUniStr}, but use \cs{\cs{uXXXX}} rather than \cs{uXXXX}. See the source file.
+
+Initialize a combo box using unicode character strings.
+
+\defUniStr{myEuro}{\u20AC (Euro)}
+\defUniStr{myYen}{\u00A5 (Yen)}
+\defUniStr{mySheqel}{\u20AA (Sheqel)}
+\defUniStr{myPound}{\u00A3 (Pound)}
+\defUniStr{myFranc}{\u20A3 (Franc)}
+
+\comboBox[\Ff\FfEdit\DV{Euro}\V{Euro}\textFont{Arial}
+\BG{0.98 0.92 0.73}\BC{0 .6 0}]{myCombo}{1in}{11bp}
+{*{[(Euro)<\unicodeStr(myEuro)>]%
+ [(Yen)<\unicodeStr(myYen)>]%
+ [(Sheqel)<\unicodeStr(mySheqel)>]%
+ [(Pound)<\unicodeStr(myPound)>]%
+ [(Franc)<\unicodeStr(myFranc)>]}
+}
+
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ap.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf 2019-06-03 21:34:17 UTC (rev 51305)
Property changes on: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -0,0 +1,56 @@
+\documentclass{article}
+\usepackage[designi,tight*]{web}
+\usepackage{eforms}[2019/05/24] % this version supports \tops, see below
+\usepackage{forms16be}
+
+% \previewOn \pmcaOn % try compiling with these switches un-commented
+
+
+\def\cs#1{\texttt{\char`\\#1}}
+\let\pkg\textsf
+
+\parindent0pt \parskip6pt
+
+\begin{document}
+
+Initialize a text field using unicode character strings,
+
+
+\defUniStr{VDV}{\u03B1 cos(\u03B8)}
+\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
+
+Text field: \textField[%
+ \TU{\unicodeStr(TU)}
+ \DV{\unicodeStr(VDV)}
+ \V{\tops{$\alpha\cos(\theta)$}{\unicodeStr(VDV)}}
+]{tst}{1.5in}{11bp}\olBdry
+
+Button: \pushButton[%
+ \CA{\tops{$\alpha\cos(\theta)$}{\unicodeStr(VDV)}}
+ \AAmouseup{app.alert("Initialized to \\"\\u03B1 cos(\\u03B8)\\"");}
+]{btn}{1in}{11bp}\cgBdry[1em]
+
+\pushButton[\CA{Reset}\AAmouseup{this.resetForm();}]{reset}{}{11bp}
+
+Note the JavaScript alert message, we use the same markup as for
+\cs{defUniStr}, but use \cs{\cs{uXXXX}} rather than \cs{uXXXX}. See the
+source file.
+
+Initialize a combo box using unicode character strings.
+
+\defUniStr{myEuro}{\u20AC (Euro)}
+\defUniStr{myYen}{\u00A5 (Yen)}
+\defUniStr{mySheqel}{\u20AA (Sheqel)}
+\defUniStr{myPound}{\u00A3 (Pound)}
+\defUniStr{myFranc}{\u20A3 (Franc)}
+
+\comboBox[\Ff\FfEdit\DV{Euro}\V{\tops{Euro}{Euro}}\textFont{Arial}
+\BG{0.98 0.92 0.73}\BC{0 .6 0}]{myCombo}{1in}{11bp}
+{*{[(Euro)<\unicodeStr(myEuro)>]
+ [(Yen)<\unicodeStr(myYen)>]
+ [(Sheqel)<\unicodeStr(mySheqel)>]
+ [(Pound)<\unicodeStr(myPound)>]
+ [(Franc)<\unicodeStr(myFranc)>]}
+}
+
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-ef.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-hy.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-hy.tex (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-hy.tex 2019-06-03 21:34:17 UTC (rev 51305)
@@ -0,0 +1,78 @@
+\documentclass{article}
+%\usepackage[designv,forcolorpaper,tight*]{web}
+\usepackage{hyperref}
+\usepackage{forms16be}
+
+\defUniStr{VDV}{\u03B1 cos(\u03B8)}
+\defUniStr{TU}{Don \u\EURO Story "\u03B1 cos(\u03B8)"}
+
+\makeatletter
+% Define two new keys udefault and uvalue to take big-endian values
+\define at key{Field}{udefault}{%
+ \def\Fld at udefault{#1}%
+}
+\define at key{Field}{uvalue}{%
+ \Hy at pdfstringdef\Fld at uvalue{#1}%
+}
+\let\Fld at udefault\ltx at empty
+\let\Fld at uvalue\@empty
+\def\PDFForm at Text{%
+ /Subtype/Widget%
+ \Fld at annotflags
+ \Fld at pageobjref
+ \Fld at annotnames
+ /FT/Tx%
+ \Fld at flags
+ /Q \Fld at align
+ /BS<</W \Fld at borderwidth\space /S /\Fld at borderstyle>>%
+ \ifcase0\ifnum\Fld at rotation=\z@ \else 1\fi
+ \ifx\Fld at bordercolor\relax\else 1\fi
+ \ifx\Fld at bcolor\relax \else 1\fi
+ \space
+ \else
+ /MK<<%
+ \ifnum\Fld at rotation=\z@
+ \else
+ /R \Fld at rotation
+ \fi
+ \ifx\Fld at bordercolor\relax
+ \else
+ /BC[\Fld at bordercolor]%
+ \fi
+ \ifx\Fld at bcolor\relax
+ \else
+ /BG[\Fld at bcolor]%
+ \fi
+ >>%
+ \fi
+ /DA(/Helv \strip at pt\Fld at charsize\space Tf%
+ \ifx\Fld at color\@empty\else\space\Fld at color\fi)%
+% Determine which key to used based on uvalue and udefault
+\ifx\Fld at udefault\ltx at empty
+ /DV(\Hy at escapestring{\Fld at default})\else
+ /DV<\Hy at escapestring{\Fld at udefault}>\fi
+\ifx\Fld at uvalue\@empty
+ /V(\Hy at escapestring{\Fld at value})\else
+ /V<\Hy at escapestring{\Fld at uvalue}>\fi
+ \Fld at additionalactions
+ \ifnum\Fld at maxlen>\z@/MaxLen \Fld at maxlen \fi
+}
+\makeatother
+
+\def\cs#1{\texttt{\char`\\#1}}
+\let\pkg\textsf
+
+\parindent0pt \parskip6pt
+
+\begin{document}
+\begin{Form}
+
+The \pkg{hyperref} package does not support initializing form fields with big-endian, but it is possible
+to modify some \pkg{hyperref} core code to get the desired result. The maintainer can take this example
+and generalize it to all appropriate form fields and properties, it there is a demand.
+
+\def\LayoutTextField#1#2{#2}
+\TextField[uvalue={\unicodeStr(VDV)},udefault={\unicodeStr(VDV)}]{textfield}
+
+\end{Form}
+\end{document}
Property changes on: trunk/Master/texmf-dist/doc/latex/forms16be/examples/forms16be-hy.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/source/latex/forms16be/forms16be.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/forms16be/forms16be.dtx 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/source/latex/forms16be/forms16be.dtx 2019-06-03 21:34:17 UTC (rev 51305)
@@ -2,9 +2,8 @@
%<*copyright>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% forms16be.sty package, %%
-%% Copyright (C) 2017 D. P. Story %%
+%% Copyright (C) 2017--2019 %%
%% dpstory at acrotex.net %%
-%% storyd at nwfsc.edu %%
%% %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License %%
@@ -15,7 +14,7 @@
%</copyright>
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{forms16be}
-%<package> [2017/08/28 v1.2 Provides UTF-16BE encoding for text strings (dps)]
+%<package> [2019/03/20 v1.3 Provides UTF-16BE encoding for text strings (dps)]
%<*driver>
\documentclass{ltxdoc}
\usepackage[colorlinks,hyperindex=false]{hyperref}
@@ -24,8 +23,8 @@
\CodelineIndex
\RecordChanges
\InputIfFileExists{aebdocfmt.def}{\PackageInfo{forms16be}{Inputting aebdocfmt.def}}
- {\def\IndexOpt{\DescribeMacro}\def\IndexKey{\DescribeMacro}\let\setupFullwidth\relax
- \PackageInfo{forms16be}{aebdocfmt.def cannot be found}}
+ {\def\IndexOpt{\DescribeMacro}\def\IndexKey{\DescribeMacro}\let\setupFullwidth\relax
+ \PackageInfo{forms16be}{aebdocfmt.def cannot be found}}
\begin{document}
\def\CMD#1{\textbackslash#1}
\let\pkg\textsf
@@ -44,12 +43,19 @@
\tableofcontents
\let\Email\texttt
\DocInput{forms16be.dtx}
-\IfFileExists{\jobname.ind}{\newpage\setupFullwidth\par\PrintIndex}{\paragraph*{Index} The index goes here.\\Execute
- \texttt{makeindex -s gind.ist -o forms16be.ind forms16be.idx} on the command line and recompile
+\IfFileExists{\jobname.ind}{\newpage\setupFullwidth\par\PrintIndex}{\paragraph*{Index} The index goes here.
+Execute
+\begin{quote}
+ \texttt{makeindex -s gind.ist -o forms16be.ind forms16be.idx}
+\end{quote}
+on the command line and recompile \texttt{forms16be.dtx}.}
+\IfFileExists{\jobname.gls}{\PrintChanges}{\paragraph*{Change History} The list of changes goes here.
+Execute
+\begin{quote}
+ \texttt{makeindex -s gglo.ist -o forms16be.gls forms16be.glo}
+\end{quote}
+on the command line and recompile
\texttt{forms16be.dtx}.}
-\IfFileExists{\jobname.gls}{\PrintChanges}{\paragraph*{Change History} The list of changes goes here.\\Execute
- \texttt{makeindex -s gglo.ist -o forms16be.gls forms16be.glo} on the command line and recompile
- \texttt{forms16be.dtx}.}
\end{document}
%</driver>
% \fi
@@ -56,6 +62,8 @@
% \MakeShortVerb{|}
% \InputIfFileExists{aebdonotindex.def}{\PackageInfo{forms16be}{Inputting aebdonotindex.def}}
% {\PackageInfo{forms16be}{cannot find aebdonotindex.def}}
+%\changes{v1.3}{2019/03/20}{Changed when macros are expanded; changes in response to new features
+% of \string\pkg{insdljs} and \string\pkg{eforms}}
% \begin{macrocode}
%<*package>
% \end{macrocode}
@@ -99,7 +107,8 @@
\providecommand\convertChriiUnicode[2]{\U at csarg\gdef{uni@#1}{#2}}%
% \end{macrocode}
% \end{macro}
-%\leavevmode\DescribeMacro{\aref}\hskip-\marginparsep\darg{\ameta{name}} Display the defined character string in UTF-16BE.
+%\leavevmode\DescribeMacro{\aref}\hskip-\marginparsep\darg{\ameta{name}}
+% Display the defined character string in UTF-16BE.
% \begin{macrocode}
\def\aref(#1){\csname aeb at aDescript@#1\endcsname}
% \end{macrocode}
@@ -119,7 +128,7 @@
% should be XXXX, place them in the stream, followed by \cs{@stringiiUnicode} so as to
% continue the processing of the next character in the description string. I've placed
% an \cs{expandafter} in the definition of \cs{getRawUnicode} to allow the commands below
-% to be used. Thus instead of using \cs{u20AC}, which might necessitate the user to
+% to be used. Thus, instead of using \cs{u20AC}, which might necessitate the user to
% look up the code, \verb!\u\EURO! can be used instead. Additional shortcut commands
% like these can be created. Except for \cs{EURO}, these are the ones \TeX{} has trouble
% processing.
@@ -152,21 +161,6 @@
% \begin{macrocode}
\providecommand{\@getRawUnicode}[4]{#1#2#3#4\@stringiiUnicode}
% \end{macrocode}
-% \subsection{The \texorpdfstring{\protect\cs{unicodeStr}}{\CMD{unicodeStr}} command}
-%\leavevmode\DescribeMacro{\unicodeStr}\hskip-\marginparsep\texttt{(\ameta{name})}
-% This command expands \ameta{name} to its big-endian character string. Its argument
-% is delimited with \emph{parentheses}. Do not redefine this command as it is used by
-% \pkg{eforms} for automatic detection of a unicode string.
-% \begin{macrocode}
-\def\unicodeStr(#1){\expandafter
- \ifx\csname aeb at aDescript@#1\endcsname\relax
-% \end{macrocode}
-% If \ameta{name} is not defined, we assume that \ameta{name} is raw hex digits and
-% we insert them being the marker \texttt{FEFF}; otherwise, we use the string defined by
-% \ameta{name}. We use \cs{stringIIUnicode} to get things going.
-% \begin{macrocode}
- FEFF#1\else\aeb at exiii\stringiiUnicode\aref(#1)\relax\fi}
-% \end{macrocode}
% \subsection{The \texorpdfstring{\protect\cs{defUniStr}}{\CMD{defUniStr}} command}
% \leavevmode\DescribeMacro{\defUniStr}\hskip-\marginparsep\darg{\ameta{name}}\darg{\ameta{string}}
% The \cs{defUniStr} command is used to define a unicode string. The \ameta{name} should be an
@@ -177,13 +171,43 @@
% use \cs{labelName} for the purpose of initializing form fields with unicode.
% \changes{v1.2}{2017/08/28}{Added parentheses to the \string\@for\space loop}
% \begin{macrocode}
-%\@for\x:=ABCDEFabcdef()\do{\@makeother\x}
\def\defUniStr#1{\def\U at uniStrName{#1}\bgroup\fbe at sanitize
\obeyspaces\getUniDescript}
{\obeyspaces\gdef\getUniDescript#1{\gdef\U at description{#1}%
\U at NameUniStr}}
\def\U at NameUniStr{\global\U at csarg\let
- {aeb at aDescript@\U at uniStrName}\U at description\egroup}
+ {aeb at aDescript@\U at uniStrName}\U at description\egroup
+% \end{macrocode}
+% Within \cs{U at NameUniStr}, we add the line below, which is an expanded
+% version of the unicode string, built earlier by \cs{buildUnicodeStr}.
+% \begin{macrocode}
+ \U at csarg\xdef{expanded@\U at uniStrName}%
+ {\U at buildUnicodeStr(\U at uniStrName)}}
+% \end{macrocode}
+% \leavevmode\DescribeMacro{\U at buildUnicodeStr}\hskip-\marginparsep\texttt{(\ameta{name})}
+% If \ameta{name} has been used in a \cs{defUniStr} macro, we prepare to be expanded by
+% \cs{U at NameUniStr}.
+% \changes{v1.3}{2019/03/20}{Added \string\cs{buildUnicodeStr} to do some of the work
+% \string\cs{unicodeStr} used to do}
+% \begin{macrocode}
+\def\U at buildUnicodeStr(#1){\expandafter
+ \ifx\csname aeb at aDescript@#1\endcsname\relax
+ \else\aeb at exiii\stringiiUnicode\aref(#1)\relax\fi}
+% \end{macrocode}
+%
+% \subsection{The \texorpdfstring{\protect\cs{unicodeStr}}{\CMD{unicodeStr}} command}
+%\leavevmode\DescribeMacro{\unicodeStr}\hskip-\marginparsep\texttt{(\ameta{name})}
+% This command expands \ameta{name} to its big-endian character string. Its argument
+% is delimited with \emph{parentheses}. Do not redefine this command as it is used by
+% \pkg{eforms} for automatic detection of a unicode string.
+% The new \cs{unicodeStr} command: if the argument is not already registered
+% by \cs{defUniStr}, we pass it through; otherwise we expand the macro defined
+% by \cs{U at NameUniStr}.
+% \changes{v1.2}{2017/08/28}{Define a new \string\cs{unicodeStr} command}
+% \begin{macrocode}
+\def\unicodeStr(#1){\expandafter
+ \ifx\csname aeb at aDescript@#1\endcsname\relax
+ FEFF#1\else\csname expanded@#1\endcsname\fi}
%</package>
%<*encoding>
% \end{macrocode}
Modified: trunk/Master/texmf-dist/tex/latex/forms16be/forms16be.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/forms16be/forms16be.sty 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/tex/latex/forms16be/forms16be.sty 2019-06-03 21:34:17 UTC (rev 51305)
@@ -8,9 +8,8 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% forms16be.sty package, %%
-%% Copyright (C) 2017 D. P. Story %%
+%% Copyright (C) 2017--2019 %%
%% dpstory at acrotex.net %%
-%% storyd at nwfsc.edu %%
%% %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License %%
@@ -20,7 +19,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{forms16be}
- [2017/08/28 v1.2 Provides UTF-16BE encoding for text strings (dps)]
+ [2019/03/20 v1.3 Provides UTF-16BE encoding for text strings (dps)]
\def\U at csarg#1#2{\expandafter#1\csname#2\endcsname}
\providecommand\aeb at exiii{\expandafter\expandafter\expandafter}
\def\fbe at sanitize{\@makeother\"\@makeother\#\@makeother\$%
@@ -37,15 +36,20 @@
\aeb at exiii\@getRawUnicode\fi#1}
\def\getRawUnicode at p(#1){\expandafter\@getRawUnicode#1}
\providecommand{\@getRawUnicode}[4]{#1#2#3#4\@stringiiUnicode}
-\def\unicodeStr(#1){\expandafter
- \ifx\csname aeb at aDescript@#1\endcsname\relax
- FEFF#1\else\aeb at exiii\stringiiUnicode\aref(#1)\relax\fi}
\def\defUniStr#1{\def\U at uniStrName{#1}\bgroup\fbe at sanitize
\obeyspaces\getUniDescript}
{\obeyspaces\gdef\getUniDescript#1{\gdef\U at description{#1}%
\U at NameUniStr}}
\def\U at NameUniStr{\global\U at csarg\let
- {aeb at aDescript@\U at uniStrName}\U at description\egroup}
+ {aeb at aDescript@\U at uniStrName}\U at description\egroup
+ \U at csarg\xdef{expanded@\U at uniStrName}%
+ {\U at buildUnicodeStr(\U at uniStrName)}}
+\def\U at buildUnicodeStr(#1){\expandafter
+ \ifx\csname aeb at aDescript@#1\endcsname\relax
+ \else\aeb at exiii\stringiiUnicode\aref(#1)\relax\fi}
+\def\unicodeStr(#1){\expandafter
+ \ifx\csname aeb at aDescript@#1\endcsname\relax
+ FEFF#1\else\csname expanded@#1\endcsname\fi}
\InputIfFileExists{uni4basic-latin.def}{\PackageInfo{forms16be}
{Inputting uni4basic-latin.def\MessageBreak definitions}}
{\PackageError{forms16be}
Modified: trunk/Master/texmf-dist/tex/latex/forms16be/uni4basic-latin.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/forms16be/uni4basic-latin.def 2019-06-03 21:33:51 UTC (rev 51304)
+++ trunk/Master/texmf-dist/tex/latex/forms16be/uni4basic-latin.def 2019-06-03 21:34:17 UTC (rev 51305)
@@ -8,9 +8,8 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% forms16be.sty package, %%
-%% Copyright (C) 2017 D. P. Story %%
+%% Copyright (C) 2017--2019 %%
%% dpstory at acrotex.net %%
-%% storyd at nwfsc.edu %%
%% %%
%% This program can redistributed and/or modified under %%
%% the terms of the LaTeX Project Public License %%
More information about the tex-live-commits
mailing list