Here is an MWE:
\documentclass[a4paper]{report}
\usepackage{graphicx,multirow,multicol}
\makeatletter
\newcommand{\blocks}[9][-10]{
\def\bar{\@ifstar{\raisebox{-5pt}{\scb{1}[1]{\Huge{|}}}\hsp{0.2cm}}{\raisebox{-14pt}{\scb{1}[1.3]{\Huge{|}}}\hsp{0.2cm}}}
\!\!\mat{cccc}
#2\hsp{-0.2cm}&\multicolumn{2}{r}{\multirow{2}{*}{\bar\raisebox{#1pt}{\Huge{$#6$}}}}\\
#4\hsp{-0.2cm}\\[0.2em]\hline\multicolumn{2}{r}{\multirow{2}{*}{\raisebox{#9pt}{\Huge{$#7$}\hsp{-0.2cm}}}}&\multicolumn{2}{r}{\multirow{2}{*}{\bar*\raisebox{#9pt}{\Huge{$#8$}}}}\\
\\
\emat\!\!}
\makeatother
\newcommand{\mat}{\begin{array}}
\newcommand{\emat}{\end{array}}
\newcommand{\scb}{\scalebox}
\newcommand{\hsp}{\hspace}
\begin{document}
$$\blocks{\cosh u}{\sinh u}{\sinh u}{\cosh u}{0}{0}{1}.$$
\end{document}
Typesetting it generates what I expect, except that the | appear as horizontal bars. Why? And why does changing them to $|$ turn them vertical?

