에스토니아어 - 조판(또는 catcode10)

에스토니아어 - 조판(또는 catcode10)

나는 이것을 적응하려고 노력했다.해결책내 프로젝트에 사용하기 위해. 내 문제 중 하나는 estonian언어를 사용할 때 감지 매크로의 하이픈이 제대로 처리되지 않는다는 것입니다. 즉 사각형 상자로 표시됩니다(대신 -).

\documentclass[a4paper,11pt,estonian, naustrian]{article}
\usepackage[margin=2.5cm]{geometry} % for margins on a A4paper
\usepackage[tracking=true,factor=1100,stretch=10,shrink=10,final]{microtype} % have some better layout of individual chars
\usepackage[shorthands=off]{babel}
\directlua{luaotfload.add_fallback("fntFallback",{
    "DejaVu Sans:mode=harf",
    "NotoColorEmoji:mode=harf"})}
\babelfont{rm}%
[RawFeature={fallback=fntFallback},SmallCapsFont={TeX Gyre Termes},SmallCapsFeatures={Letters=SmallCaps}% fonts for small caps
]{Liberation Sans}% Ligatures=TeX ist set automatically (used to have the automatics ligatures of TeX)
\usepackage{hyphenat} % allows hyphenation of compound words like 'Test- und Produktivszenarien' (see source code)

\def\linkText#1{\xscan#1\relax}% calls xscan which looks ahead one token, #1
\def\xscan{\afterassignment\xxscan\let\token= }% assign single token to \token and call \xxscan
\def\xxscan{%
    \ifx\token\relax\else%test for end-of-line or end of group and switch to ttfamily
    \ifcat\token\space%
    \token% token is catcode 10
    \spaceskip=.5em% remove glue from space for fixed-width space
    \xspaceskip=.5em% remove glue from space for fixed-width space
    \else%
    \token\hskip 0pt plus 1sp minus 1sp % add glue to any non-catcode 10 (space)
    \fi
    \spaceskip=0pt% reset space skip
    \expandafter\xscan% feed next token to \xscan, which is effectively a recursive call
    \fi} 


\usepackage[pdfa, unicode]{hyperref}
\begin{document}
\section{test}
Kant ipsum test 1 (\hyperlink{l4194-c8833}{\linkText{AA 27\hyp{}10\hyp{}2023}}). 

\begin{itemize}
\item 
{\hypertarget{l4194-c8833}{}}XX - 
{\selectlanguage{naustrian}Test für Österreich}
(27\hyp{}10\hyp{}2023): 
\end{itemize}
\end{document}

텍스트의 두 번째 모양이 -올바르게 렌더링되므로 코드 자체가 작동합니다.여기에 이미지 설명을 입력하세요

참고: 제거하면 naustrian코드가 두 번 컴파일되지 않습니다. 문제가 관련되어 있다고 생각합니다. 그렇지 않으면 따로 질문하겠습니다.

관련 정보