Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids-tex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids-tex
Commits
3562fc71
Verified
Commit
3562fc71
authored
6 years ago
by
mirabilos
Committed by
mirabilos
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
move rejected into per-package namespace
parent
f62598bc
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
unicodedomino.sty
+12
-1
12 additions, 1 deletion
unicodedomino.sty
unicodedomino_kernel_better_decode.def
+1
-0
1 addition, 0 deletions
unicodedomino_kernel_better_decode.def
unicodedomino_kernel_cosmetics.def
+1
-16
1 addition, 16 deletions
unicodedomino_kernel_cosmetics.def
with
14 additions
and
17 deletions
unicodedomino.sty
+
12
−
1
View file @
3562fc71
...
...
@@ -96,6 +96,17 @@
\expandafter\UTFviii
@defined
\csname
u8:#1
\endcsname
%
}
%
% split an invalid byte sequence for error output
\gdef\unicodedomino
@splitseq#1:#2
\relax
{
%
\unicodedomino
@hexseq#2
\relax
%
}
%
\gdef\unicodedomino
@hexseq#1#2
\relax
{
%
% display first octet
\space
"
\UTFviii
@hexbyte
{
`#1
}
%
% recursively handle remaining octets
\ifx\relax
#2
\relax\else\unicodedomino
@hexseq#2
\relax\fi
%
}
%
% main handler
\def\UTFviii
@defined#1
{
%
\ifx
#1
\relax
%
...
...
@@ -112,7 +123,7 @@
\else
%
% invalid multibyte character
\PackageError
{
inputenc
}{
Invalid UTF-8 byte sequence:
%
\expandafter\
UTFviii
@splitseq
\string
#1
\relax
}
%
\expandafter\
unicodedomino
@splitseq
\string
#1
\relax
}
%
\UTFviii
@invalid@help
\fi
%
\else
%
...
...
This diff is collapsed.
Click to expand it.
unicodedomino_kernel_better_decode.def
+
1
−
0
View file @
3562fc71
...
...
@@ -5,6 +5,7 @@
%-
% Improved Unicode decoding using the fixed-up checkseq code.
%: entire file (plus UTFviii@checkseq) not submitted yet
% override stock function, calling safer decode below
\gdef\decode
@UTFviii#1
\relax
{
%
\the\numexpr
(
\UTFviii
@decode0:#1
\relax
)
%
...
...
This diff is collapsed.
Click to expand it.
unicodedomino_kernel_cosmetics.def
+
1
−
16
View file @
3562fc71
...
...
@@ -20,8 +20,7 @@
}
%
\fi
%
%: reverted partially, override bogus definition
% format a number as Unicode codepoint hex
% override to format a hex Unicode codepoint correctly
\gdef\UTFviii
@hexcodepoint#1
{
%
\ifnum
#1<16 U+000
%
\else\ifnum
#1<256 U+00
%
...
...
@@ -32,17 +31,3 @@
\fi\fi\fi\fi\fi
%
\UTFviii
@hexnumber
{
#1
}
%
}
%
%: https://github.com/latex3/latex2e/pull/62 (rejected)
% split an invalid byte sequence for output
\ifx\UTFviii
@splitseq
\@
undefined
%
\gdef\UTFviii
@splitseq#1:#2
\relax
{
%
\UTFviii
@hexseq#2
\relax
%
}
%
\gdef\UTFviii
@hexseq#1#2
\relax
{
%
% display first octet
\space
"
\UTFviii
@hexbyte
{
`#1
}
%
% recursively handle remaining octets
\ifx\relax
#2
\relax\else\UTFviii
@hexseq#2
\relax\fi
%
}
%
\fi
%
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment