% pgflibraryhan.code.tex (utf8 encoding)
% Copyright 2020  LIM LianTze,ZHANG Chennan and Alain Matthes
% Based on the original file  pgflibraryhan.code.tex v0.33 2019/08/10
% pgflibraryhan.code.tex v0.33 2019/08/10
% Authors: pgf and LaTeX code by LIM LianTze
%          based on CAD drawing by ZHANG Chennan
%---------%---------%---------%---------%---------%---------%---------%---------
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status “maintained”.
% 
% The Current Maintainer of this work is Alain Matthes.
%---------%---------%---------%---------%---------%---------%---------%---------
% Original idea of  F Fradin and H Voss  
\typeout{2020/04/03 1.0  pgflibraryhan.code.tex} 
%---------%---------%---------%---------%---------%---------%---------%---------
% modification am \@pgfornamentDim#1 instead of pgfornamenthanDim#1
%---------%---------%---------%---------%---------%---------%---------%---------
\makeatletter
\def\@pgfornamentDim#1{% dim in bp
\let\@pgfornamentX\relax
\ifcase#1\relax%
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  1
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  2
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  3
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  4
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  5
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  6
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  7
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  8
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  9
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  10
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  11
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  12
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  13
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  14
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  15
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  16
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  17
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  18
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  19
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  20
\or\def\@pgfornamentX{260}\def\@pgfornamentY{260}%  21
\or\def\@pgfornamentX{260}\def\@pgfornamentY{260}%  22
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  23
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  24
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  25
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  26
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  27
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  28
\or\def\@pgfornamentX{200}\def\@pgfornamentY{10}%  29
\or\def\@pgfornamentX{200}\def\@pgfornamentY{10}%  30
\or\def\@pgfornamentX{200}\def\@pgfornamentY{40}%  31
\or\def\@pgfornamentX{200}\def\@pgfornamentY{40}%  32
\or\def\@pgfornamentX{75}\def\@pgfornamentY{60}%  33
\or\def\@pgfornamentX{75}\def\@pgfornamentY{60}%  34
\or\def\@pgfornamentX{100}\def\@pgfornamentY{60}%  35
\or\def\@pgfornamentX{100}\def\@pgfornamentY{60}%  36
\or\def\@pgfornamentX{125}\def\@pgfornamentY{110}%  37
\or\def\@pgfornamentX{125}\def\@pgfornamentY{110}%  38
\or\def\@pgfornamentX{200}\def\@pgfornamentY{110}%  39
\or\def\@pgfornamentX{200}\def\@pgfornamentY{110}%  40
\or\def\@pgfornamentX{115}\def\@pgfornamentY{60}%  41
\or\def\@pgfornamentX{115}\def\@pgfornamentY{60}%  42
\or\def\@pgfornamentX{140}\def\@pgfornamentY{60}%  43
\or\def\@pgfornamentX{140}\def\@pgfornamentY{60}%  44
\or\def\@pgfornamentX{130}\def\@pgfornamentY{60}%  45
\or\def\@pgfornamentX{130}\def\@pgfornamentY{60}%  46
\or\def\@pgfornamentX{155}\def\@pgfornamentY{60}%  47
\or\def\@pgfornamentX{155}\def\@pgfornamentY{60}%  48
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  49
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  50
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  51
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  52
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  53
\or\def\@pgfornamentX{360}\def\@pgfornamentY{360}%  54
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  55
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  56
\or\def\@pgfornamentX{200}\def\@pgfornamentY{200}%  57
\or\def\@pgfornamentX{810}\def\@pgfornamentY{270}%  58
\or\def\@pgfornamentX{810}\def\@pgfornamentY{270}%  59
\or\def\@pgfornamentX{450}\def\@pgfornamentY{120}%  60
\or\def\@pgfornamentX{450}\def\@pgfornamentY{120}%  61
\or\def\@pgfornamentX{400}\def\@pgfornamentY{180}%  62
\or\def\@pgfornamentX{400}\def\@pgfornamentY{180}%  63
\or\def\@pgfornamentX{350}\def\@pgfornamentY{210}%  64
\or\def\@pgfornamentX{350}\def\@pgfornamentY{210}%  65
\or\def\@pgfornamentX{400}\def\@pgfornamentY{180}%  66
\or\def\@pgfornamentX{400}\def\@pgfornamentY{180}%  67
\or\def\@pgfornamentX{400}\def\@pgfornamentY{170}%  68
\or\def\@pgfornamentX{400}\def\@pgfornamentY{170}%  69
\or\def\@pgfornamentX{400}\def\@pgfornamentY{140}%  70
\or\def\@pgfornamentX{400}\def\@pgfornamentY{140}%  71
\or\def\@pgfornamentX{300}\def\@pgfornamentY{300}%  72
\or\def\@pgfornamentX{300}\def\@pgfornamentY{300}%  73
\or\def\@pgfornamentX{300}\def\@pgfornamentY{300}%  74
\or\def\@pgfornamentX{300}\def\@pgfornamentY{300}%  75
\or\def\@pgfornamentX{120}\def\@pgfornamentY{123}%  76
\or\def\@pgfornamentX{120}\def\@pgfornamentY{123}%  77
\or\def\@pgfornamentX{123}\def\@pgfornamentY{69}%  78
\fi%
\ifx\@pgfornamentX\relax
  \ifcase\numexpr #1-100\relax%
    \def\@pgfornamentX{40}\def\@pgfornamentY{40}%  100
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  101
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  102
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  103
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  104
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  105
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  106
  \or\def\@pgfornamentX{50}\def\@pgfornamentY{50}%  107
  \else
    \message{Unknown ornament #1}%
    \def\@pgfornamentX{100}\def\@pgfornamentY{100}%  Just something so there are less crashes
  \fi
\fi
}%
\makeatother
\endinput

