Skip to content

Commit

Permalink
Merge pull request IndicFontbook#8 from rajeeshknambiar/master
Browse files Browse the repository at this point in the history
[Malayalam] Explain more on Dot Reph with GPOS abvm rules
  • Loading branch information
rajeeshknambiar committed Apr 2, 2014
2 parents f7bcf83 + 6bf6813 commit 19e54f0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
25 changes: 18 additions & 7 deletions Chapters/Malayalam.tex
Original file line number Diff line number Diff line change
Expand Up @@ -435,25 +435,36 @@ \subsubsection{History of Samvruthokaram rendering}
\caption{More Dot Reph examples}
\end{figure}

Rendering complexities of Dot Reph, with examples such as {\meera ആൎക്ക് വൎത്തുളം സുഹാൎത്തോ}.\\
Dot Reph is best implemented in font using Opentype Glyph Class 'Mark'. Base glyphs and conjuncts are not marked as 'Mark' class, but an Anchor point to those glyphs could be added indicating the position where Dot Reph would be placed.\\
\textbf{Rendering complexities of Dot Reph}, with examples such as {\meera ആൎക്ക് വൎത്തുളം സുഹാൎത്തോ}.\\
Dot Reph is best implemented in font using Opentype Glyph Class Mark. Base glyphs and conjuncts are not marked as Mark class, but an Anchor point to those glyphs could be added indicating the position where Dot Reph would be placed.\\
Harfbuzz and Uniscribe reorders Dot Reph after the base glyph/conjunct. For instance \texttt{hb-shape} utility (from Harfbuzz source tree) shows the output of {\meera ൎത്തു} \texttt{<dotreph, th1, xx(virama), th1, u1(u-sign)>} as \\ \texttt{[th1th1u1=0+2461|dotreph=0\@-575,-5+0]}. Thus, it is only necessary to add an Anchor point to glyph \texttt{th1th1u1} at the desired coordinate to render dotreph.\\

An example of how to do this using Fontforge:
\begin{figure}[h!]
\begin{figure}[H] %Place the images right here. via ‘float’ package
\includegraphics[width=0.5\textwidth]{images/malayalam-meera-dotreph-mark.png}
\caption{Set OT Glyph Class of dotreph as 'Mark'}
\caption{Set OT Glyph Class of \texttt{dotreph} as Mark}
\end{figure}
\begin{figure}[h!]
\begin{figure}[H]
\includegraphics[width=0.5\textwidth]{images/malayalam-meera-gpos-abvm-1.png}
\caption{Add \texttt{‘abvm’ GPOS} rule for positioning Dot Reph}
\end{figure}
\begin{figure}[H]
\includegraphics[width=0.5\textwidth]{images/malayalam-meera-gpos-abvm-2.png}
\caption{Add \texttt{dotreph} Anchor Class}
\end{figure}
\begin{figure}[H]
\includegraphics[width=0.5\textwidth]{images/malayalam-meera-gpos-abvm-3.png}
\caption{Anchor control on Base characters (not marked as ‘Mark’ class)}
\end{figure}
\begin{figure}[H]
\includegraphics[width=0.3\textwidth]{images/malayalam-meera-conjunct-add-anchor.png}
\caption{Add Anchor point menu}
\end{figure}
\begin{figure}[h!]
\begin{figure}[H]
\includegraphics[width=0.65\textwidth]{images/malayalam-meera-conjunct-add-anchor-2.png}
\caption{Position the dotreph Anchor point on the glyph}
\end{figure}


\subsection {Chillus}
\subsection {Stacking}
\subsection {Font metrics}
Expand Down
Binary file added Chapters/images/malayalam-meera-gpos-abvm-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chapters/images/malayalam-meera-gpos-abvm-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Chapters/images/malayalam-meera-gpos-abvm-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions fontbook.sty
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
\usepackage{parskip}
\usepackage{wrapfig}
\usepackage{epigraph}
\usepackage{float}
\setlength\epigraphwidth{8cm}

%image path
Expand Down

0 comments on commit 19e54f0

Please sign in to comment.