Skip to content

Commit

Permalink
add map key
Browse files Browse the repository at this point in the history
  • Loading branch information
u-fischer committed Feb 22, 2024
1 parent 11d1189 commit 261d997
Show file tree
Hide file tree
Showing 7 changed files with 2,510 additions and 14 deletions.
14 changes: 7 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
this project uses date-based 'snapshot' version identifiers.

## [Unreleased]
Version 0.98w
### Changed
- various keys have been deprecated
* interwordspace (new name: activate/spaces)
* show-spaces (new: debug/show=spaces)
*
- various keys have been renamed and the old keys deprecated. A full list can be found in the documentation.
- speed gain for large documents by using linked properties

### Fixed
- missing slashes in dvilualatex backend, issue #96
- lua error with large object numbers, issue #97
- existence tests for unknown props (issue latex3/latex3#1455)

### Changed
- speed gain by using linked properties

### Added
- role/map-tags key
## [2024-02-04]
Version 0.98v

Expand Down
10 changes: 7 additions & 3 deletions doc/tagpdf.tex
Original file line number Diff line number Diff line change
Expand Up @@ -499,18 +499,22 @@ \subsection{Setup and activation}\label{ssec:setup}
false. Activates the code related to trees. Should be used only if
the two other keys has been used too.

\item[\PrintKeyName{role/new-tag}] Allows to define new tag names, see
section \ref{sec:new-tag} for a description.

\item[\PrintKeyName{activate/spaces}] Boolean. The key
activates/deactivates the insertion of space glyphs, see
section~\ref{sec:spacechars}. In the luamode it only works if at
least \PrintKeyName{activate/mc} has been used.
The old name of the key |interwordspace| is still supported but deprecated.


\item[\PrintKeyName{role/new-tag}] Allows to define new tag names, see
section \ref{sec:new-tag} for a description.

\item[\PrintKeyName{role/new-attribute}] This key takes two arguments and
declares an attribute. See \ref{sec:attributes}.

\item[\PrintKeyName{role/map-tags}] This key allows to remap the structure
tags. Currently it supports only two values: |false| (the default) and |pdf| which
maps all tags to their standard PDF role, e.g. |itemize| will be mapped to |L|.


\item[\PrintKeyName{para/tagging}] Boolean. This activate/deactivates
Expand Down
2 changes: 1 addition & 1 deletion doc/tagpdfsetup-keys.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
role/new-tag & add-new-tag & string &code & tagpdf-roles\\
role/new-attribute&newattribute & string &code & tagpdf-struct\\
% values: latex, pdf, default is latex, with pdf only PDF-tags are used
role/tagset & --- & choice & code & tagpdf-roles\\[4pt]\midrule
role/map-tags & --- & choice & code & tagpdf-roles\\[4pt]\midrule
%% debug key path
%% for logging and showing
debug/show &various &choice &code & various \\
Expand Down
6 changes: 3 additions & 3 deletions tagpdf-roles.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1327,9 +1327,9 @@
\l_@@_role_role_namespace_tmpa_tl
}
}
,role/tagset .choice:
,role/tagset/latex .code:n = { \socket_assign_plug:nn { tag/struct/tag } {latex-tags} }
,role/tagset/pdf .code:n = { \socket_assign_plug:nn { tag/struct/tag } {pdf-tags} }
,role/map-tags .choice:
,role/map-tags/false .code:n = { \socket_assign_plug:nn { tag/struct/tag } {latex-tags} }
,role/map-tags/pdf .code:n = { \socket_assign_plug:nn { tag/struct/tag } {pdf-tags} }
% \end{macrocode}
% deprecated names
% \begin{macrocode}
Expand Down
Loading

0 comments on commit 261d997

Please sign in to comment.