Skip to content

Commit

Permalink
prepare for ctan
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrike Fischer committed Aug 6, 2018
1 parent 8219b1f commit 2e92f8e
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 25 deletions.
21 changes: 15 additions & 6 deletions build.lua
@@ -1,6 +1,6 @@
-- Build script for tagpdf
packageversion="0.2"
packagedate="2018/07/09"
packageversion="0.3"
packagedate="2018/08/06"

module = "tagpdf"
ctanpkg = "tagpdf"
Expand All @@ -11,10 +11,11 @@ checkruns = 3

sourcefiledir = "./source"

tagfiles = {"*.md",
"**/*.sty",
"**/*.def",
"**/*.lua"}
tagfiles = {"source/*.md",
"source/**/*.sty",
"source/**/*.def",
"source/**/*.lua",
"source/*.tex"}

function update_tag (file,content,tagname,tagdate)
tagdate = string.gsub (packagedate,"-", "/")
Expand Down Expand Up @@ -44,6 +45,14 @@ function update_tag (file,content,tagname,tagdate)
"Packagedate: %d%d%d%d/%d%d/%d%d",
"Packagedate: " .. tagdate )
return content
elseif string.match (file, "%.tex$" ) then
content = string.gsub (content,
"package@version{%d%.%d}",
"package@version{" .. packageversion .."}" )
content = string.gsub (content,
"package@date{%d%d%d%d/%d%d/%d%d}",
"package@date{" .. packagedate .."}" )
return content
end
return content
end
Expand Down
10 changes: 8 additions & 2 deletions memo.txt
@@ -1,7 +1,5 @@
%store results of tests



additional runs: put in testfiles-3 and add -c config-3 to the save
command

Expand All @@ -10,6 +8,14 @@ command

l3build check

% upload to ctan:
1. check with l3build check
2. change tag and date in build lua
3. tag with l3build tag something
4.

%


% links

Expand Down
4 changes: 2 additions & 2 deletions source/README.md
@@ -1,6 +1,6 @@
#tagpdf — A package to create tagged pdf
Packageversion: 0.2
Packagedate: 2018/07/09
Packageversion: 0.3
Packagedate: 2018/08/06
Author: Ulrike Fischer

## License
Expand Down
6 changes: 4 additions & 2 deletions source/tagpdf.tex
@@ -1,6 +1,7 @@
% !Mode:: "TeX:DE:UTF-8:Main"
\makeatletter
\def\UlrikeFischer@package@version{0.2}
\def\UlrikeFischer@package@version{0.3}
\def\UlrikeFischer@package@date{2018/08/06}
\makeatother
\documentclass[DIV=12,parskip=half-,bibliography=totoc]{scrartcl}
\usepackage[utf8]{inputenc}
Expand Down Expand Up @@ -32,6 +33,7 @@
\divide\parsep by 2\relax}
\makeatother
\title{The \pkg{tagpdf} package, v\csname UlrikeFischer@package@version\endcsname}
\date{\csname UlrikeFischer@package@date\endcsname}
\author{Ulrike Fischer\thanks{fischer@troubleshooting-tex.de}}
\usepackage{listings}
\lstset{basicstyle=\ttfamily, columns=fullflexible,language=[LaTeX]TeX}
Expand Down Expand Up @@ -559,7 +561,7 @@ \subsubsection{Commands to define the structure}
\item[\PrintKeyName{title}] This key allows to set the dictionary entry \texttt{/Title} in the structure object.
The value is handled as verbatim string and hex encoded. Commands are not expanded.
\item[\PrintKeyName{title-o}] This key allows to set the dictionary entry \texttt{/Title} in the structure object.
The value is expanded once and then handled as verbatim string like the \PrintKeyName{title} key.
The value is expanded once and then handled as verbatim string like the \PrintKeyName{title} key.
\end{description}


Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-checks-code.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-checks-code} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-checks-code} {2018/08/06} {0.3}
{part of tagpdf - code related to checks and messages}


Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-luatex.def
@@ -1,4 +1,4 @@
\ProvidesExplFile {tagpdf-luatex.def} {2018/07/09} {0.2}
\ProvidesExplFile {tagpdf-luatex.def} {2018/08/06} {0.3}
{tagpdf driver for luatex}

\newattribute \g__uftag_mc_type_attr %the value represent the type
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-mc-code-generic.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-mc-code-generic} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-mc-code-generic} {2018/08/06} {0.3}
{part of tagpdf - code related to marking chunks - generic mode}

% for the label system
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-mc-code-lua.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-mc-code-lua} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-mc-code-lua} {2018/08/06} {0.3}
{tagpdf - mc code only for the luamode }

% the two attibutes are defined in the driver file.
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-mc-code-shared.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-mc-code-shared} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-mc-code-shared} {2018/08/06} {0.3}
{part of tagpdf - code related to marking chunks - code shared by generic and luamode }

% I use a latex counter for the absolute count, so that it is added to
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-pdftex.def
@@ -1,4 +1,4 @@
\ProvidesExplFile {tagpdf-pdftex.def} {2018/07/09} {0.2}
\ProvidesExplFile {tagpdf-pdftex.def} {2018/08/06} {0.3}
{tagpdf driver for pdftex}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-roles-code.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-roles-code} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-roles-code} {2018/08/06} {0.3}
{part of tagpdf - code related to roles and structure names}

\__uftag_seq_new:N \g__uftag_role_tags_seq %to get names from numbers
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-struct-code.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-struct-code} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-struct-code} {2018/08/06} {0.3}
{part of tagpdf - code related to storing structure}

% I will use a latex counter for the structure count
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-tree-code.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-tree-code} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-tree-code} {2018/08/06} {0.3}
{part of tagpdf - code related to writing trees and dictionaries to the pdf}

%this does the actual finishing:
Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf-user.sty
@@ -1,4 +1,4 @@
\ProvidesExplPackage {tagpdf-user} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf-user} {2018/08/06} {0.3}
{tagpdf - user commands}

\NewDocumentCommand \tagpdfsetup { m }
Expand Down
4 changes: 2 additions & 2 deletions source/texmf/tex/latex/tagpdf/tagpdf.lua
@@ -1,5 +1,5 @@
-- Packageversion: 0.2
-- Packagedate: 2018/07/09
-- Packageversion: 0.3
-- Packagedate: 2018/08/06
-- tagpdf.lua
-- Ulrike Fischer

Expand Down
2 changes: 1 addition & 1 deletion source/texmf/tex/latex/tagpdf/tagpdf.sty
@@ -1,6 +1,6 @@
\RequirePackage{expl3}[2018/06/14]

\ProvidesExplPackage {tagpdf} {2018/07/09} {0.2}
\ProvidesExplPackage {tagpdf} {2018/08/06} {0.3}
{A package to experiment with pdf tagging}

% storing internal names to my name space:
Expand Down
Binary file added tagpdf-ctan.zip
Binary file not shown.

0 comments on commit 2e92f8e

Please sign in to comment.