\documentclass{article}%  run with lualatex
\usepackage{amsmath}
\usepackage{fancyvrb}
\usepackage{unicode-math}
\setmonofont{AnonymousPro}[Scale=MatchLowercase,FakeStretch=0.85]
\let\myFont\ttfamily
\begin{document}

\section*{Without using environment \texttt{split}}


\begin{Verbatim}[fontsize=\small,fontfamily=myFont]
\begin{subequations}
  \begin{align}\label{eq:first1b}
    \log(q_{f,g,c,y}) &= b_{11}I_{f,g,c,y-1} 
      + b_{12}\log(\mathit{VarP}_{c,y}) + c_{11}\log(P_{c,y})\\
    &\qquad +c_{12} \log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{1,f,g,c,y}\nonumber
   \\[2ex]	\label{eq:first2b}
   \log(\mathit{CVarCF}_{f,g,c,y})&= b_{21}I_{f,g,c,y-1} 
    + b_{22}\log(\mathit{VarP}_{c,y}) + c_{21}\log(P_{c,y})\\
    &\qquad +c_{22}\log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{2,f,g,c,y}\nonumber
  \end{align}
\end{subequations}
\end{Verbatim}


\begin{subequations}
	\begin{align}\label{eq:first1b}
		  \log(q_{f,g,c,y}) &= b_{11}I_{f,g,c,y-1} 
		      + b_{12}\log(\mathit{VarP}_{c,y}) + c_{11}\log(P_{c,y})\\
		  &\qquad +c_{12} \log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{1,f,g,c,y}
		\nonumber\\[2ex]	\label{eq:first2b}
		  \log(\mathit{CVarCF}_{f,g,c,y})&= b_{21}I_{f,g,c,y-1} 
		    + b_{22}\log(\mathit{VarP}_{c,y}) + c_{21}\log(P_{c,y})\\
		  &\qquad +c_{22}\log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{2,f,g,c,y}\nonumber
	\end{align}
\end{subequations}


\section*{With using environment \texttt{split}}


\begin{Verbatim}[fontsize=\small,fontfamily=myFont]
\begin{subequations}
  \begin{align}\label{eq:first1}
    \begin{split}
      \log(q_{f,g,c,y}) &= b_{11}I_{f,g,c,y-1} 
          + b_{12}\log(\mathit{VarP}_{c,y}) + c_{11}\log(P_{c,y})\\
      &\qquad +c_{12} \log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{1,f,g,c,y}
    \end{split}\\[2ex]	\label{eq:first2}
    \begin{split}
      \log(\mathit{CVarCF}_{f,g,c,y})&= b_{21}I_{f,g,c,y-1} 
        + b_{22}\log(\mathit{VarP}_{c,y}) + c_{21}\log(P_{c,y})\\
      &\qquad +c_{22}\log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{2,f,g,c,y}
    \end{split}
  \end{align}
\end{subequations}
\end{Verbatim}

	
\begin{subequations}
	\begin{align}\label{eq:first1}
		\begin{split}
		  \log(q_{f,g,c,y}) &= b_{11}I_{f,g,c,y-1} 
		      + b_{12}\log(\mathit{VarP}_{c,y}) + c_{11}\log(P_{c,y})\\
		  &\qquad +c_{12} \log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{1,f,g,c,y}
		\end{split}\\[2ex]	\label{eq:first2}
		\begin{split}
		  \log(\mathit{CVarCF}_{f,g,c,y})&= b_{21}I_{f,g,c,y-1} 
		    + b_{22}\log(\mathit{VarP}_{c,y}) + c_{21}\log(P_{c,y})\\
		  &\qquad +c_{22}\log(\mathit{CVarCF}_{f,g,c,y-1}) + \upsilon_c +e_{2,f,g,c,y}
		\end{split}
	\end{align}
\end{subequations}



\end{document}


\documentclass{article}
\usepackage{amsmath}

\newcommand{\xm}{\overline{\mathbf{x}}}

\begin{document}
	
	\begin{align*}
	\frac{\partial g}{\partial n_\mu^1}
	&= \partial_1f(\xm)\cdot \frac{-\gamma_1}{\sigma_1 + n_\sigma^1}
	\qquad\qquad
	\frac{\partial g}{\partial n^1_\sigma} 
	=\partial_1f(\xm) \cdot \biggl( -\gamma_1
	\frac{x_1  - \mu_1 - n_\mu^1}{(\sigma_1 + n_\sigma^1)^2} \biggr)\\[2\jot]
	\frac{\partial^2 g}{(\partial n^1_\mu)^2}
	&= \partial^2_1f(\xm)\biggl( \frac{-\gamma_1}{\sigma_1 + n_\sigma^1} 
	\biggr)^{\!2}\\[2\jot]
	\frac{\partial^2 g}{(\partial n_\sigma^1)^2} 
	&= \partial_1 f(\xm) \cdot 2 \biggl( -\gamma_1
	\frac{x_1 - \mu_1 - n_\mu^1}{(\sigma_1 + n_\sigma^1)^3} \biggr)
	+ \partial_1^2 f(\xm)\biggl( -\gamma_1
	\frac{x_1 - \mu_1 - n_\mu^1}{(\sigma_1 + n_\sigma^1)^2} \biggr)^{\!2}
	\\[2\jot]
	\frac{\partial^2 g}{\partial n_\mu^1 \partial n_\sigma^1} 
	&= \partial_1f(\xm)\cdot \frac{-\gamma_1}{(\sigma_1 + n_\sigma^1)^2}
	+ \partial_1^2 f(\xm) \biggl( -\gamma_1
	\frac{x_1 -  \mu_1 - n_\mu^1}{(\sigma_1 + n_\sigma^1)^2} \biggr)
	\cdot \biggl( \frac{-\gamma_1}{\sigma_1 + n_\sigma^1} \biggr)
	\end{align*}
	
\end{document}



\documentclass[a4paper,12pt]{article}
\usepackage[ngerman]{babel}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{upgreek}
\usepackage[OMLmathrm,OMLmathbf]{isomath}

\begin{document}
	
	\section{Bild 1}
	\begin{equation}
	\bm{\upkappa\uprho\upvardelta} \frac{\partial^2 T}{\partial x^2}=\frac{\partial 
	T}{\partial t}
	\end{equation}
	
\end{document}



\documentclass{article}
\usepackage{graphicx}
%\usepackage{epstopdf}
\begin{document}
	
\includegraphics[width=\linewidth]{tiger.eps}

\end{document}

DE94100500006600046463

2597340118012   Grundsteuer


\documentclass[border=5mm,preview,varwidth]{standalone}
\usepackage{amsmath}
\usepackage[no-math]{fontspec}
\usepackage[math-style=ISO,bold-style=ISO,mathrm=sym]{unicode-math}
\setmathfont{CMU Bright}
\usepackage{luacode}

\begin{luacode}
  fonts.handlers.otf.addfeature {
	name = "dtls",
	type = "substitution",
	data = {
	  [0x0069] = 0x0131,  -- dotless i
	  [0x006A] = 0x0237,  -- dotless j
	  [0x1D456] = 0x1D6A4,  -- mathit dotless i
	  [0x1D457] = 0x1D6A5,  -- mathit dotless j
    }
  }
  fonts.handlers.otf.addfeature { -- Ligatures for mathrm
	name = "test",
	type = "ligature",
	data =  {
	  ["ff"] = {0xFB00,0xFB00}, --{"f","f"},
--      [0xFB00] = {0x0066, 0x0066},
--	  [0x0066 0x0066]         = 0xFB00, -- ff
--	  [{0x1d453,0x1d453}]       = 0xFB00,
--	  [0x0066, 0x0069]         = 0xFB01, -- fi
--	  [0x0066, 0x006C]         = 0xFB02, -- fl
--	  [0x0066, 0x0066, 0x0069] = 0xFB03, -- ffi
--	  [0x0066, 0x0066, 0x006C] = 0xFB04, -- ffl
    }
  }

\end{luacode}


\iffalse
[[--

[[--
fonts.handlers.otf.addfeature { -- Upright Integrals
	name = "ss01",
	type = "substitution",
	data =  {
		[0x222B]         = 0x222B.up, -- \int
		[0x222C]         = 0x222C.up, -- \iint
		[0x222D]         = 0x222D.up, -- \iiint
		[0x222E]         = 0x222E.up, -- \oint
		[0x222F]         = 0x222F.up, -- \oiint
		[0x2230]         = 0x2230.up, -- \oiiint
		[0x2A0C]         = 0x2A0C.up, -- \iiiint
		[0x222B.display] = 0x222B.display.up,
		[0x222C.display] = 0x222C.display.up,
		[0x222D.display] = 0x222D.display.up,
		[0x222E.display] = 0x222E.display.up,
		[0x222F.display] = 0x222F.display.up,
		[0x2230.display] = 0x2230.display.up,
		[0x2A0C.display] = 0x2A0C.display.up,
	}
}

fonts.handlers.otf.addfeature { -- Planck Constant with Bar
	name = "ss02",
	type = "substitution",
	data =  { [0x210F] = 0x210F.ss02, }
}

fonts.handlers.otf.addfeature { -- Complement Alternates
	name = "ss03",
	type = "substitution",
	data =  { [0x2201] = 0x2201.ss03; }
}

--]]

fonts.handlers.otf.addfeature { --
	name = "ssty",
	type = "substitution",
	data =  {
		[0x2032] = 0x2032.ssty1, -- prime -> supscript prime
		[0x2033] = 0x2033.ssty1, -- double prime -> supscript double prime
		[0x2034] = 0x2034.ssty1, -- triple prime -> supscript triple prime
	}
}
--]]\fi

\iffalse
\setsansfont{Fira Sans}
\setmathfont{FiraMath-Regular.otf}[RawFeature={+test,+dtls%,+ss01,+ss02,+ss03
}]%
%\setmathfont[version=bold]{FiraMath-Bold.otf}%
\setmathfont[version=bold]{FiraMath-Bold.otf}

\fi




\begin{document}

kasdk aksh dkash dkashd 


$ij ff \mathrm{ff}\symup{ff}\mathnormal{ff} \mathup{ff} \mathchar"FB00$


\[  xf i j \mathrm{ij}
\hat{f}(\omega) = \frac1{\sqrt{2\symup{\pi}}} \int\limits_{-\infty}^{+\infty} f(x) 
\symup{e}^{-\symup{i}\omega x} \sin(x)\, \symup dx
\]

\boldmath
\[
\hat{f}(\omega) = \frac1{\sqrt{2\symup{\pi}}} \int\limits_{-\infty}^{+\infty} f(x) 
\symup{e}^{-\symup{i}\omega x} \sin(x) \,\symup dx
\]
\end{document}









\documentclass{book}

\usepackage{zref-abspage,zref-lastpage}
\usepackage{atbegshi}%2010/03/25
\makeatletter
\newcounter{NextPage}
\renewcommand*\theNextPage{NextPage\the\value{NextPage}@}
\newcommand*{\NextPage}{%
	\stepcounter{NextPage}%
	\leavevmode
	\zref@labelbyprops{\theNextPage this}{page,abspage}%
	\begingroup
	\edef\x{\endgroup
		\noexpand\AtBeginShipoutNext{%
			\noexpand\AtBeginShipoutNext{%
				\setbox\AtBeginShipoutBox=\hbox{%
					\noexpand\zref@labelbyprops{\theNextPage next}{page}%
					\copy\AtBeginShipoutBox
				}%
			}%
		}%
	}%
	\x
	\chardef\NextPageOk=0 %
	\zref@refused{LastPage}%
	\zref@ifrefundefined{LastPage}{%
	}{%
		\zref@refused{\theNextPage this}%
		\zref@ifrefundefined{\theNextPage this}{%
		}{%
			\ifnum\zref@extract{\theNextPage this}{abspage}=%
			\zref@extractdefault{LastPage}{abspage}{0}\relax
			\chardef\NextPageOk=1 %
			\else
			\zref@refused{\theNextPage next}%
			\zref@ifrefundefined{\theNextPage next}{%
			}{%
				\chardef\NextPageOk=2 %
			}%
			\fi
		}%
	}%
	\ifcase\NextPageOk
	Next page: \textbf??%
	\or
	Last page%
	\else
	Next page: \zref@extract{\theNextPage next}{page}%
	\fi
}
\makeatother

\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyfoot[LE,RO]{\NextPage}
\fancypagestyle{plain}{%
	\fancyhf{}%
	\fancyhead[LE,RO]{\thepage}
\fancyfoot[LE,RO]{\NextPage}}

\begin{document}
\frontmatter
\tableofcontents
\mainmatter
\chapter{Hello World}
\clearpage
\section{Last section}
\end{document}



\documentclass[landscape, 12pt]{report}
\usepackage[landscape]{geometry}
\usepackage{amsmath,amssymb}

\usepackage{resizegather}

\begin{document}
	\begin{gather}
	\label{eq-tfrac}
	P\left(H_h|E_1,E_2,\ldots ,E_e,\ldots E_{\mathbb{E}}\right)=\tfrac{P\left(H_h\right) 
	P\left(E_1|H_h\right) P\left(E_2|H_h,E_1\right) \text{$\ldots $P}
		\left(E_e|H_h,E_1,E_2,\ldots ,E_{e-1},E_{e+1} \ldots, E_{\mathbb{E}}\right) 
		\text{$\ldots    $P}
		\left(E_{\mathbb{E}}|H_h,E_1,E_2,\ldots ,E_{\mathbb{E}-1}\right)}{ 
		P\left(E_1,E_2,\ldots,E_e, \ldots    ,E_{\mathbb{E}}\right)}
	\\\label{eq-resized}
	P\left(H_h|E_1,E_2,\ldots ,E_e,\ldots E_{\mathbb{E}}\right)=\frac{P\left(H_h\right) 
	P\left(E_1|H_h\right) P\left(E_2|H_h,E_1\right) \text{$\ldots $P}
		\left(E_e|H_h,E_1,E_2,\ldots ,E_{e-1},E_{e+1} \ldots, E_{\mathbb{E}}\right) 
		\text{$\ldots    $P}
		\left(E_{\mathbb{E}}|H_h,E_1,E_2,\ldots ,E_{\mathbb{E}-1}\right)}{ 
		P\left(E_1,E_2,\ldots,E_e, \ldots    ,E_{\mathbb{E}}\right)}
	\end{gather}
\end{document} 



\documentclass{article}
\usepackage{pstricks,pst-plot,multido}

\begin{document}

\psset{unit=1pt}
\begin{pspicture}(-19.916916pt,-19.916916pt)(19.916916pt,19.916916pt)
\multido{\rA=0.0+0.01,\rB=0.0+3.6,\rC=3.6+3.6}{100}{%
	\pswedge*[linecolor={[hsb]{\rA,1,1}}](0,0){19.916916}{\rB}{\rC}}
\end{pspicture}


\def\DUAL[#1]#2#3{#3}

\begin{pspicture}(-25.607468,-21.339554)(133.727951,101.007278)
\psaxes[labels=none,dx=25,dy=15,ticksize=-3 0]{->}(120,90)
\psxTick(60){\pi}\psxTick(120){2\pi}
\end{pspicture}


\begin{pspicture}(-25.607468,-21.339554)(133.727951,101.007278)
{%
	\psline(0.0pt,0.0pt)(0.0pt,86.780899pt)}{\psline(-2.845261pt,0.0pt)(0.0pt,0.0%
	pt)}\rput[r](-2.845261pt,0.0pt){ 0}
{\psline(-2.845261pt,14.226364pt)(0.0pt,14.226364pt)}{\psline(-2.845261pt,28.4%
	52744pt)(0.0pt,28.452744pt)}{\psline(-2.845261pt,42.679123pt)(0.0pt,42.679123%
	pt)}\rput[r](-2.845261pt,42.679123pt){180}
{\psline(-2.845261pt,56.905502pt)(0.0pt,56.905502pt)}{\psline(-2.845261pt,71.1%
	31882pt)(0.0pt,71.131882pt)}{\psline(-2.845261pt,85.358261pt)(0.0pt,85.358261%
	pt)}\rput[r](-2.845261pt,85.358261pt){360}
\rput[b]{90.0}(-17.07164pt,42.679123pt){hue}
\rput(0.0pt,-0.426788pt){
	{\psline{->}(0.0pt,0.0pt)(119.501572pt,0.0pt)}{\psline(0.0pt,0.0pt)(0.0pt,-4.2%
		67899pt)}\rput[t](0.0pt,-4.267899pt){ 0}
	{\psline(28.452744pt,0.0pt)(28.452744pt,-4.267899pt)}{\psline(56.905502pt,0.0%
		pt)(56.905502pt,-4.267899pt)}\rput[t](56.905502pt,-4.267899pt){$\DUAL[role=ID,%
		hide_content_reversion=true]{\cpi}{\pi}$}
	{\psline(85.358261pt,0.0pt)(85.358261pt,-4.267899pt)}{\psline(113.81102pt,0.0%
		pt)(113.81102pt,-4.267899pt)}\rput[t](113.81102pt,-4.267899pt){$2\DUAL[role=ID%
		, hide_content_reversion=true]{\cpi}{\pi}$}
\rput[t](56.905502pt,-11.381088pt){phase}}
\psline(0.0,0.0)(28.452744pt,14.226364pt)(56.905502pt,42.679123pt)%
       (85.358261pt,56.905502pt)(113.81102pt,85.358261pt)
\multido{\rA=0.0+1.123883,\rB=1.123883+1.123883,
	     \rC=0.0+0.01,
         \rD=0.0+0.85358,\rE=0.85358+0.85358}{100}{%
%         \rD=0.0+0.711304,\rE=0.711304+0.711304}{80}{%
  \psframe*[linecolor={[hsb]{\rC,1,1}}](\rA,86.780899)(\rB,99.584641)%
  \psframe*[linecolor={[hsb]{\rC,1,1}}](116.656296,\rD)(130.882675,\rE)%
}       
\rput(7.5cm,0){
	{\psset{linestyle=none, linewidth=%
	0.0pt, fillstyle=solid}
	\definecolor{temp}{hsb}{0.0,1,1}
	{\psset{fillcolor=temp}\psframe(0.0pt,86.780899pt)(1.422623pt,99.584641pt)}{%
		\psset{fillcolor=temp}\psframe(116.656296pt,0.0pt)(130.882675pt,0.711304pt)}
	\definecolor{temp}{hsb}{0.00833,1,1}
	{\psset{fillcolor=temp}\psframe(1.422623pt,86.780899pt)(2.845261pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,0.711304pt)(130.882675pt,1.422623%
		pt)}
	\definecolor{temp}{hsb}{0.01666,1,1}
	{\psset{fillcolor=temp}\psframe(2.845261pt,86.780899pt)(4.267899pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,1.422623pt)(130.882675pt,2.133942%
		pt)}
	\definecolor{temp}{hsb}{0.02499,1,1}
	{\psset{fillcolor=temp}\psframe(4.267899pt,86.780899pt)(5.690536pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,2.133942pt)(130.882675pt,2.845261%
		pt)}
	\definecolor{temp}{hsb}{0.03332,1,1}
	{\psset{fillcolor=temp}\psframe(5.690536pt,86.780899pt)(7.113174pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,2.845261pt)(130.882675pt,3.55658%
		pt)}
	\definecolor{temp}{hsb}{0.04165,1,1}
	{\psset{fillcolor=temp}\psframe(7.113174pt,86.780899pt)(8.535812pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,3.55658pt)(130.882675pt,4.267899%
		pt)}
	\definecolor{temp}{hsb}{0.04998,1,1}
	{\psset{fillcolor=temp}\psframe(8.535812pt,86.780899pt)(9.95845pt,99.584641pt)}%
	{\psset{fillcolor=temp}\psframe(116.656296pt,4.267899pt)(130.882675pt,4.979218%
		pt)}
	\definecolor{temp}{hsb}{0.05831,1,1}
	{\psset{fillcolor=temp}\psframe(9.95845pt,86.780899pt)(11.381088pt,99.584641pt)%
	}{\psset{fillcolor=temp}\psframe(116.656296pt,4.979218pt)(130.882675pt,5.690536%
		pt)}
	\definecolor{temp}{hsb}{0.06664,1,1}
	{\psset{fillcolor=temp}\psframe(11.381088pt,86.780899pt)(12.803726pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,5.690536pt)(130.882675pt,6.401%
		855pt)}
	\definecolor{temp}{hsb}{0.07497,1,1}
	{\psset{fillcolor=temp}\psframe(12.803726pt,86.780899pt)(14.226364pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,6.401855pt)(130.882675pt,7.113%
		174pt)}
	\definecolor{temp}{hsb}{0.0833,1,1}
	{\psset{fillcolor=temp}\psframe(14.226364pt,86.780899pt)(15.649002pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,7.113174pt)(130.882675pt,7.824%
		493pt)}
	\definecolor{temp}{hsb}{0.09163,1,1}
	{\psset{fillcolor=temp}\psframe(15.649002pt,86.780899pt)(17.07164pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,7.824493pt)(130.882675pt,8.53581%
		2pt)}
	\definecolor{temp}{hsb}{0.09996,1,1}
	{\psset{fillcolor=temp}\psframe(17.07164pt,86.780899pt)(18.494278pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,8.535812pt)(130.882675pt,9.24713%
		1pt)}
	\definecolor{temp}{hsb}{0.10829,1,1}
	{\psset{fillcolor=temp}\psframe(18.494278pt,86.780899pt)(19.916916pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,9.247131pt)(130.882675pt,9.958%
		45pt)}
	\definecolor{temp}{hsb}{0.11662,1,1}
	{\psset{fillcolor=temp}\psframe(19.916916pt,86.780899pt)(21.339554pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,9.95845pt)(130.882675pt,10.669%
		769pt)}
	\definecolor{temp}{hsb}{0.12495,1,1}
	{\psset{fillcolor=temp}\psframe(21.339554pt,86.780899pt)(22.762192pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,10.669769pt)(130.882675pt,11.3%
		81088pt)}
	\definecolor{temp}{hsb}{0.13328,1,1}
	{\psset{fillcolor=temp}\psframe(22.762192pt,86.780899pt)(24.18483pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,11.381088pt)(130.882675pt,12.092%
		407pt)}
	\definecolor{temp}{hsb}{0.14161,1,1}
	{\psset{fillcolor=temp}\psframe(24.18483pt,86.780899pt)(25.607468pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,12.092407pt)(130.882675pt,12.803%
		726pt)}
	\definecolor{temp}{hsb}{0.14994,1,1}
	{\psset{fillcolor=temp}\psframe(25.607468pt,86.780899pt)(27.030106pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,12.803726pt)(130.882675pt,13.5%
		15045pt)}
	\definecolor{temp}{hsb}{0.15827,1,1}
	{\psset{fillcolor=temp}\psframe(27.030106pt,86.780899pt)(28.452744pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,13.515045pt)(130.882675pt,14.2%
		26364pt)}\ignorespaces
	\definecolor{temp}{hsb}{0.16667,1,1}
	{\psset{fillcolor=temp}\psframe(28.452744pt,86.780899pt)(29.875381pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,14.226364pt)(130.882675pt,15.6%
		49002pt)}
	\definecolor{temp}{hsb}{0.18334,1,1}
	{\psset{fillcolor=temp}\psframe(29.875381pt,86.780899pt)(31.298019pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,15.649002pt)(130.882675pt,17.0%
		7164pt)}
	\definecolor{temp}{hsb}{0.20001,1,1}
	{\psset{fillcolor=temp}\psframe(31.298019pt,86.780899pt)(32.720657pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,17.07164pt)(130.882675pt,18.49%
		4278pt)}
	\definecolor{temp}{hsb}{0.21668,1,1}
	{\psset{fillcolor=temp}\psframe(32.720657pt,86.780899pt)(34.143295pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,18.494278pt)(130.882675pt,19.9%
		16916pt)}
	\definecolor{temp}{hsb}{0.23335,1,1}
	{\psset{fillcolor=temp}\psframe(34.143295pt,86.780899pt)(35.565933pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,19.916916pt)(130.882675pt,21.3%
		39554pt)}
	\definecolor{temp}{hsb}{0.25002,1,1}
	{\psset{fillcolor=temp}\psframe(35.565933pt,86.780899pt)(36.988571pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,21.339554pt)(130.882675pt,22.7%
		62192pt)}
	\definecolor{temp}{hsb}{0.26669,1,1}
	{\psset{fillcolor=temp}\psframe(36.988571pt,86.780899pt)(38.411209pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,22.762192pt)(130.882675pt,24.1%
		8483pt)}
	\definecolor{temp}{hsb}{0.28336,1,1}
	{\psset{fillcolor=temp}\psframe(38.411209pt,86.780899pt)(39.833847pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,24.18483pt)(130.882675pt,25.60%
		7468pt)}
	\definecolor{temp}{hsb}{0.30003,1,1}
	{\psset{fillcolor=temp}\psframe(39.833847pt,86.780899pt)(41.256485pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,25.607468pt)(130.882675pt,27.0%
		30106pt)}
	\definecolor{temp}{hsb}{0.3167,1,1}
	{\psset{fillcolor=temp}\psframe(41.256485pt,86.780899pt)(42.679123pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,27.030106pt)(130.882675pt,28.4%
		52744pt)}
	\definecolor{temp}{hsb}{0.33337,1,1}
	{\psset{fillcolor=temp}\psframe(42.679123pt,86.780899pt)(44.101761pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,28.452744pt)(130.882675pt,29.8%
		75381pt)}
	\definecolor{temp}{hsb}{0.35004,1,1}
	{\psset{fillcolor=temp}\psframe(44.101761pt,86.780899pt)(45.524399pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,29.875381pt)(130.882675pt,31.2%
		98019pt)}
	\definecolor{temp}{hsb}{0.36671,1,1}
	{\psset{fillcolor=temp}\psframe(45.524399pt,86.780899pt)(46.947037pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,31.298019pt)(130.882675pt,32.7%
		20657pt)}
	\definecolor{temp}{hsb}{0.38338,1,1}
	{\psset{fillcolor=temp}\psframe(46.947037pt,86.780899pt)(48.369675pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,32.720657pt)(130.882675pt,34.1%
		43295pt)}
	\definecolor{temp}{hsb}{0.40005,1,1}
	{\psset{fillcolor=temp}\psframe(48.369675pt,86.780899pt)(49.792313pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,34.143295pt)(130.882675pt,35.5%
		65933pt)}
	\definecolor{temp}{hsb}{0.41672,1,1}
	{\psset{fillcolor=temp}\psframe(49.792313pt,86.780899pt)(51.214951pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,35.565933pt)(130.882675pt,36.9%
		88571pt)}
	\definecolor{temp}{hsb}{0.43339,1,1}
	{\psset{fillcolor=temp}\psframe(51.214951pt,86.780899pt)(52.637589pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,36.988571pt)(130.882675pt,38.4%
		11209pt)}
	\definecolor{temp}{hsb}{0.45006,1,1}
	{\psset{fillcolor=temp}\psframe(52.637589pt,86.780899pt)(54.060226pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,38.411209pt)(130.882675pt,39.8%
		33847pt)}
	\definecolor{temp}{hsb}{0.46673,1,1}
	{\psset{fillcolor=temp}\psframe(54.060226pt,86.780899pt)(55.482864pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,39.833847pt)(130.882675pt,41.2%
		56485pt)}
	\definecolor{temp}{hsb}{0.4834,1,1}
	{\psset{fillcolor=temp}\psframe(55.482864pt,86.780899pt)(56.905502pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,41.256485pt)(130.882675pt,42.6%
		79123pt)}\ignorespaces
	\definecolor{temp}{hsb}{0.5,1,1}
	{\psset{fillcolor=temp}\psframe(56.905502pt,86.780899pt)(58.32814pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,42.679123pt)(130.882675pt,43.390%
		442pt)}
	\definecolor{temp}{hsb}{0.50833,1,1}
	{\psset{fillcolor=temp}\psframe(58.32814pt,86.780899pt)(59.750778pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,43.390442pt)(130.882675pt,44.101%
		761pt)}
	\definecolor{temp}{hsb}{0.51666,1,1}
	{\psset{fillcolor=temp}\psframe(59.750778pt,86.780899pt)(61.173416pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,44.101761pt)(130.882675pt,44.8%
		1308pt)}
	\definecolor{temp}{hsb}{0.52499,1,1}
	{\psset{fillcolor=temp}\psframe(61.173416pt,86.780899pt)(62.596054pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,44.81308pt)(130.882675pt,45.52%
		4399pt)}
	\definecolor{temp}{hsb}{0.53332,1,1}
	{\psset{fillcolor=temp}\psframe(62.596054pt,86.780899pt)(64.018692pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,45.524399pt)(130.882675pt,46.2%
		35718pt)}
	\definecolor{temp}{hsb}{0.54165,1,1}
	{\psset{fillcolor=temp}\psframe(64.018692pt,86.780899pt)(65.44133pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,46.235718pt)(130.882675pt,46.947%
		037pt)}
	\definecolor{temp}{hsb}{0.54998,1,1}
	{\psset{fillcolor=temp}\psframe(65.44133pt,86.780899pt)(66.863968pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,46.947037pt)(130.882675pt,47.658%
		356pt)}
	\definecolor{temp}{hsb}{0.55831,1,1}
	{\psset{fillcolor=temp}\psframe(66.863968pt,86.780899pt)(68.286606pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,47.658356pt)(130.882675pt,48.3%
		69675pt)}
	\definecolor{temp}{hsb}{0.56664,1,1}
	{\psset{fillcolor=temp}\psframe(68.286606pt,86.780899pt)(69.709244pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,48.369675pt)(130.882675pt,49.0%
		80994pt)}
	\definecolor{temp}{hsb}{0.57497,1,1}
	{\psset{fillcolor=temp}\psframe(69.709244pt,86.780899pt)(71.131882pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,49.080994pt)(130.882675pt,49.7%
		92313pt)}
	\definecolor{temp}{hsb}{0.5833,1,1}
	{\psset{fillcolor=temp}\psframe(71.131882pt,86.780899pt)(72.55452pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,49.792313pt)(130.882675pt,50.503%
		632pt)}
	\definecolor{temp}{hsb}{0.59163,1,1}
	{\psset{fillcolor=temp}\psframe(72.55452pt,86.780899pt)(73.977158pt,99.584641pt%
		)}{\psset{fillcolor=temp}\psframe(116.656296pt,50.503632pt)(130.882675pt,51.214%
		951pt)}
	\definecolor{temp}{hsb}{0.59996,1,1}
	{\psset{fillcolor=temp}\psframe(73.977158pt,86.780899pt)(75.399796pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,51.214951pt)(130.882675pt,51.9%
		2627pt)}
	\definecolor{temp}{hsb}{0.60829,1,1}
	{\psset{fillcolor=temp}\psframe(75.399796pt,86.780899pt)(76.822433pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,51.92627pt)(130.882675pt,52.63%
		7589pt)}
	\definecolor{temp}{hsb}{0.61662,1,1}
	{\psset{fillcolor=temp}\psframe(76.822433pt,86.780899pt)(78.245071pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,52.637589pt)(130.882675pt,53.3%
		48907pt)}
	\definecolor{temp}{hsb}{0.62495,1,1}
	{\psset{fillcolor=temp}\psframe(78.245071pt,86.780899pt)(79.667709pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,53.348907pt)(130.882675pt,54.0%
		60226pt)}
	\definecolor{temp}{hsb}{0.63328,1,1}
	{\psset{fillcolor=temp}\psframe(79.667709pt,86.780899pt)(81.090347pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,54.060226pt)(130.882675pt,54.7%
		71545pt)}
	\definecolor{temp}{hsb}{0.64161,1,1}
	{\psset{fillcolor=temp}\psframe(81.090347pt,86.780899pt)(82.512985pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,54.771545pt)(130.882675pt,55.4%
		82864pt)}
	\definecolor{temp}{hsb}{0.64994,1,1}
	{\psset{fillcolor=temp}\psframe(82.512985pt,86.780899pt)(83.935623pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,55.482864pt)(130.882675pt,56.1%
		94183pt)}
	\definecolor{temp}{hsb}{0.65827,1,1}
	{\psset{fillcolor=temp}\psframe(83.935623pt,86.780899pt)(85.358261pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,56.194183pt)(130.882675pt,56.9%
		05502pt)}\ignorespaces
	\definecolor{temp}{hsb}{0.66667,1,1}
	{\psset{fillcolor=temp}\psframe(85.358261pt,86.780899pt)(86.780899pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,56.905502pt)(130.882675pt,58.3%
		2814pt)}
	\definecolor{temp}{hsb}{0.68334,1,1}
	{\psset{fillcolor=temp}\psframe(86.780899pt,86.780899pt)(88.203537pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,58.32814pt)(130.882675pt,59.75%
		0778pt)}
	\definecolor{temp}{hsb}{0.70001,1,1}
	{\psset{fillcolor=temp}\psframe(88.203537pt,86.780899pt)(89.626175pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,59.750778pt)(130.882675pt,61.1%
		73416pt)}
	\definecolor{temp}{hsb}{0.71668,1,1}
	{\psset{fillcolor=temp}\psframe(89.626175pt,86.780899pt)(91.048813pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,61.173416pt)(130.882675pt,62.5%
		96054pt)}
	\definecolor{temp}{hsb}{0.73335,1,1}
	{\psset{fillcolor=temp}\psframe(91.048813pt,86.780899pt)(92.471451pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,62.596054pt)(130.882675pt,64.0%
		18692pt)}
	\definecolor{temp}{hsb}{0.75002,1,1}
	{\psset{fillcolor=temp}\psframe(92.471451pt,86.780899pt)(93.894089pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,64.018692pt)(130.882675pt,65.4%
		4133pt)}
	\definecolor{temp}{hsb}{0.76669,1,1}
	{\psset{fillcolor=temp}\psframe(93.894089pt,86.780899pt)(95.316727pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,65.44133pt)(130.882675pt,66.86%
		3968pt)}
	\definecolor{temp}{hsb}{0.78336,1,1}
	{\psset{fillcolor=temp}\psframe(95.316727pt,86.780899pt)(96.739365pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,66.863968pt)(130.882675pt,68.2%
		86606pt)}
	\definecolor{temp}{hsb}{0.80003,1,1}
	{\psset{fillcolor=temp}\psframe(96.739365pt,86.780899pt)(98.162003pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,68.286606pt)(130.882675pt,69.7%
		09244pt)}
	\definecolor{temp}{hsb}{0.8167,1,1}
	{\psset{fillcolor=temp}\psframe(98.162003pt,86.780899pt)(99.584641pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,69.709244pt)(130.882675pt,71.1%
		31882pt)}
	\definecolor{temp}{hsb}{0.83337,1,1}
	{\psset{fillcolor=temp}\psframe(99.584641pt,86.780899pt)(101.007278pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,71.131882pt)(130.882675pt,72.5%
		5452pt)}
	\definecolor{temp}{hsb}{0.85004,1,1}
	{\psset{fillcolor=temp}\psframe(101.007278pt,86.780899pt)(102.429916pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,72.55452pt)(130.882675pt,73.9%
		77158pt)}
	\definecolor{temp}{hsb}{0.86671,1,1}
	{\psset{fillcolor=temp}\psframe(102.429916pt,86.780899pt)(103.852554pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,73.977158pt)(130.882675pt,75.%
		399796pt)}
	\definecolor{temp}{hsb}{0.88338,1,1}
	{\psset{fillcolor=temp}\psframe(103.852554pt,86.780899pt)(105.275192pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,75.399796pt)(130.882675pt,76.%
		822433pt)}
	\definecolor{temp}{hsb}{0.90005,1,1}
	{\psset{fillcolor=temp}\psframe(105.275192pt,86.780899pt)(106.69783pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,76.822433pt)(130.882675pt,78.2%
		45071pt)}
	\definecolor{temp}{hsb}{0.91672,1,1}
	{\psset{fillcolor=temp}\psframe(106.69783pt,86.780899pt)(108.120468pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,78.245071pt)(130.882675pt,79.6%
		67709pt)}
	\definecolor{temp}{hsb}{0.93339,1,1}
	{\psset{fillcolor=temp}\psframe(108.120468pt,86.780899pt)(109.543106pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,79.667709pt)(130.882675pt,81.%
		090347pt)}
	\definecolor{temp}{hsb}{0.95006,1,1}
	{\psset{fillcolor=temp}\psframe(109.543106pt,86.780899pt)(110.965744pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,81.090347pt)(130.882675pt,82.%
		512985pt)}
	\definecolor{temp}{hsb}{0.96673,1,1}
	{\psset{fillcolor=temp}\psframe(110.965744pt,86.780899pt)(112.388382pt,99.58464%
		1pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,82.512985pt)(130.882675pt,83.%
		935623pt)}
	\definecolor{temp}{hsb}{0.9834,1,1}
	{\psset{fillcolor=temp}\psframe(112.388382pt,86.780899pt)(113.81102pt,99.584641%
		pt)}{\psset{fillcolor=temp}\psframe(116.656296pt,83.935623pt)(130.882675pt,85.3%
		58261pt)}\ignorespaces}
}
\end{pspicture}


\end{document}



\RequirePackage{filecontents}
\begin{filecontents*}{demo.bib}
@book{hv2018,
	title  = {Foo},
	author = {Bar, Baz},
	library= {Ge-123},
	date   = {2018-03-17},
}
\end{filecontents*}


\documentclass{article}
\usepackage{biblatex}
\addbibresource{demo.bib}

\renewbibmacro*{publisher+location+date}{%
	\printlist{publisher}%
	\iflistundef{publisher}
	{\setunit*{\addcomma\space}}
	{\setunit*{\addcolon\space}}%
	\printlist{location}%
	\setunit*{\addcomma\space}%
	\usebibmacro{date}%
	\usebibmacro{library}%
	\newunit
}
\newbibmacro*{library}{%
  \iffieldundef{library}
	{}%
	{\addcomma\space\printfield{library}}%
}

\begin{document}

text~\cite{hv2018}

\printbibliography
\end{document}




\input luaotfload.sty

\directlua{
  fonts.handlers.otf.addfeature{
    name = "ktest",
    type = "kern",
    data = { 
      ["A"] = { ["V"] =  -400 } } % make them overlap for the example
  }
}

AV

\font\test="Latin Modern Roman:+ktest" at 11pt
\test
AV

\bye




\documentclass[a4paper,12pt]{article}

\usepackage{polyglossia}
\setmainlanguage{arabic}
\setotherlanguage{english}

\setmainfont[Ligatures=TeX]{Amiri}
\newfontfamily\arabicfont[Script=Arabic]{Amiri}

\pagestyle{headings}

\title{ترجمة لتعليمات التسجيل في \textenglish{ARRL LoTW}\\ \textenglish{Translation of 
ARRL LoTW Registration Instructions in Arabic}}
\author{يوسف عدنان رفـّـه\and Yousef A. Raffah}
\date{\today}

\begin{document}
\maketitle
\thispagestyle{empty} % No page number on 1st page
	
\section{التعليمات}
	اتبع الخطوات التالية لإتمام عملية إنشاء حسابك الخاص في دفتر سجلات العالم 
\textenglish{Logbook of the World}.
	
\subsection{الخطوة الأولى - تنزيل و تهيئة البرنامج}
	دفتر سجلات العالم \textenglish{Logbook of the World} يستخدم برنامج اسمه 
\textenglish{TrustedQSL} وهو
\end{document}


\documentclass{article}
\usepackage{amsmath}

\begin{document}
\begin{align*}
32\cdot2+m &= 3\cdot2^3-2\cdot2+3\\
           &= 3\cdot8-4+3
\end{align*}	

\end{document}






\setuppagenumbering[location={}]
\definepapersize[DE][width=12cm,height=15cm]
\setuppapersize [DE][DE]
\setuplayout[width=10cm,height=13cm]
\definefontfeature[default][default][%boundingbox={frame,blue},
                protrusion=quality,expansion=quality]
\setupalign[hz,hanging]                
\starttext
\bgroup
\showglyphs
\showfontkerns
\showmakeup[hbox]
\showmakeup[line]
%    \showallmakeup

»Tee for Two« shows negative kerning.


\input sapolsky \par
\egroup
\stoptext

\definefontfeature[default][default][boundingbox=yes]
%\definefontfeature[default][default][boundingbox=background]
%\definefontfeature[default][default][boundingbox=frame]
%\definefontfeature[default][default][boundingbox={background,empty}]
%\definefontfeature[default][default][boundingbox={frame,empty}]
%\definefontfeature[default][default][boundingbox={frame,red,empty}]

\starttext
\input sapolsky
\stoptext





-- http://lua-users.org/wiki/FileInputOutput

-- see if the file exists
function file_exists(file)
local f = io.open(file, "rb")
if f then f:close() end
return f ~= nil
end

-- get all lines from a file, returns an empty 
-- list/table if the file does not exist
function lines_from(file)
if not file_exists(file) then return {} end
lines = {}
for line in io.lines(file) do 
lines[#lines + 1] = line
end
return lines
end

-- tests the functions above
local file = 'test.lua'
local lines = lines_from(file)

-- print all line numbers and their contents
for k,v in pairs(lines) do
print('line[' .. k .. ']', v)
end




line_points =  {}
player_data = {{}} --I think you can delete it at all...
--Because it is rewriting each time.

local rfile = io.open("points.txt", "r")
for line in rfile:lines() do
playername, playerpoint, playeridpoint = line:match("^(.-):(%d+):(%d+)$")
player_data = {playername, playerpoint, playeridpoint}
--I also remover double table here ^^^^^^^^^^^^^^^^^^^
line_points[#line_points + 1] = player_data
end
--Here i checked counts
--print('#pd='..#player_data)
--print('#lp='..#line_points)
--After it i decided to use line_points instead of player_data
for i = 1, #line_points do
player_checkname = line_points[i][1] -- Get Player Name From Array for checking further
player_checkpnt = line_points[i][3] -- Get Player ID Point From Array for checking further
print(i..". Name: "..line_points[i][1].." Point: ".. line_points[i][2] .. " ID: " .. 
line_points[i][3]);
end






function get_one_utf8_character(file)

local c1 = file:read(1)
if not c1 then return nil end

local ncont
if     c1:match("[\000-\127]") then ncont = 0
elseif c1:match("[\192-\223]") then ncont = 1
elseif c1:match("[\224-\239]") then ncont = 2
elseif c1:match("[\240-\247]") then ncont = 3
else
return nil, "invalid leading byte"
end

local bytes = { c1 }
for i=1,ncont do
local ci = file:read(1)
if not (ci and ci:match("[\128-\191]")) then
return nil, "expected continuation byte"
end
bytes[#bytes+1] = ci
end

return table.concat(bytes)
end

