Debian Codegraph @

texmf-dist/doc/fonts/lydtype/lydtype-doc.tex

raw
1 %% Copyright 2025 Jonathan Walls
2 %
3 % This work may be distributed and/or modified under the
4 % conditions of the LaTeX Project Public License, either version 1.3c
5 % of this license or (at your option) any later version.
6 % The latest version of this license is in
7 % https://www.latex-project.org/lppl/lppl-1-3c.txt
8 % and version 1.3c or later is part of all distributions of LaTeX
9 % version 2008 or later.
10 %
11 % This work has the LPPL maintenance status `maintained'.
12 %
13 % The Current Maintainer of this work is Jonathan Walls.
14 %
15 % This work consists of the files lydtype.sty, lydtype-doc.tex
16 % and the derived file lydtype-doc.pdf. The Noto Sans Lydian font is distributed under the terms of the SIL Open Font License 1.1 as included in the package.
17 %
18 %
19 % Version history:
20 % 1.0 - Original Release Version
21
22 \documentclass[12pt,A4]{article}
23 \usepackage{fontspec}
24 \usepackage{polyglossia}
25 \usepackage{expex}
26 \setdefaultlanguage{english}
27 \usepackage{hyperref}
28 \setmainfont{Charis SIL}
29 \usepackage{lydtype}
30 \usepackage{float}
31
32 \title{The LydType Package}
33 \author{Jonathan Walls}
34
35 \begin{document}
36 \maketitle
37
38 \section{Introduction}
39 This package aims to allow platform-agnostic typing in the Lydian alphabet using LaTeX, in particular as a way to deal with the fact that Overleaf does not support direct input of certain characters outside of a given Unicode range. It includes the Noto Sans Lydian font as developed by Google. This package was developed for use with LuaLaTeX and XeLaTeX, functionality with other compilers is not guaranteed.
40
41 \section{Setup}
42 The system aims to be maximally user-friendly (to the extent that LaTeX ever is), allowing more-or-less free typing using Latin characters which are then converted to the Lydian alphabet in the PDF. To begin, in the project folders, one must include:
43 \begin{enumerate}
44 \item The Fonts folder containing the necessary font
45 \item The lydtype.sty file containing the commands necessary for the Unicode conversions.
46 \end{enumerate}
47
48 In the preamble of the main.tex file, one must also include the following line to import the package:\small
49 \begin{verbatim}
50 \usepackage{lydtype}
51 \end{verbatim}
52 \normalsize
53 This will incorporate the fontspec package allowing switching to the Unicode font, bring in the LydType functionality from the .sty file, and create the
54 \begin{verbatim}
55 \Lyd{}
56 \end{verbatim}
57 command which will allow easy switching to the Lydian alphabet mode.
58
59 \section{Usage}
60 \subsection{Basic Lydian Typing}
61 To use the package, in a given section, you can trigger the Lydian writing mode by using the \verb|\Lyd{}| command as listed above. Each character can be accessed based on a Latin transcription, according to the following correspondences (which allow for different transcription conventions):
62
63 \begin{table}[H]
64 \centering
65 \begin{tabular}{cc}
66 \textbf{Input} & \textbf{Output}\\\hline
67 a & \Lyd{a}\\
68 b, p & \Lyd{b}\\
69 g & \Lyd{g}\\
70 d, ð & \Lyd{d}\\
71 e & \Lyd{e}\\
72 v, w & \Lyd{w}\\
73 i & \Lyd{i}\\
74 y & \Lyd{y}\\
75 k & \Lyd{k}\\
76 l & \Lyd{l}\\
77 m & \Lyd{m}\\
78 n & \Lyd{n}\\
79 o & \Lyd{o}\\
80 r & \Lyd{r}\\
81 s, ś & \Lyd{s}\\
82 t & \Lyd{t}\\
83 u & \Lyd{u}\\
84 f & \Lyd{f}\\
85 q, kw & \Lyd{q}\\
86 sh, š, š, ç & \Lyd{š}\\
87 ch, tsh, tch, tç & \Lyd{ch}\\
88 ã & \Lyd{ã}\\
89 ẽ & \Lyd{ẽ}\\
90 λ, gl, lh, ll & \Lyd{gl}\\
91 ng & \Lyd{ng}\\
92 c, ts & \Lyd{c}
93 \end{tabular}
94 \end{table}
95
96 Usage is as follows:
97 \begin{verbatim}
98 \Lyd{a.b.g.d}
99 or
100 \Lyd{a b g d}
101 \end{verbatim}
102 This displays the Lydian text corresponding to:
103 \\
104
105 \Lyd{a b g d}
106
107 \subsection{Formatting Lydian Transcriptions}
108 This package also contains a number of commands which are useful for formatting transcriptions of Lydian, which follows conventions that are often tedious to work through. Some of these will create special characters often used in such transcriptions, as in the following table.
109
110
111 \begin{table}[H]
112 \centering
113 \begin{tabular}{cc}
114 \textbf{Command} & \textbf{Effect} \\ \hline
115 \verb|\badeq| (``bad equal") & \badeq\\
116 \verb|\hl| (``half left") & \hl\\
117 \verb|\hr| (``half right") & \hr\\
118 \verb|\tsup{}| & \tsup{M}\\
119 \verb|\tsub{}| & \tsub{2}\\
120 \end{tabular}
121 \end{table}
122
123 \verb|\tsup| and \verb|\tsub| create super- and subscripts, respectively.\\
124
125 \centerline{\Large Happy Lydian!}
126 \end{document}
127