\hypertarget{unijohab2html_8c_source}{}\doxysection{unijohab2html.\+c}
\label{unijohab2html_8c_source}\index{src/unijohab2html.c@{src/unijohab2html.c}}
\mbox{\hyperlink{unijohab2html_8c}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00001}00001 \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00002}00002 \textcolor{comment}{   @file unijohab2html.c}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00003}00003 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00004}00004 \textcolor{comment}{   @brief Display overalpped Hangul letter combinations in a grid.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00005}00005 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00006}00006 \textcolor{comment}{   This displays overlapped letters that form Unicode Hangul Syllables}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00007}00007 \textcolor{comment}{   combinations, as a tool to determine bounding boxes for all combinations.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00008}00008 \textcolor{comment}{   It works with both modern and archaic Hangul letters.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00009}00009 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00010}00010 \textcolor{comment}{   Input is a Unifont .hex file such as the "{}hangul-\/base.hex"{} file that}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00011}00011 \textcolor{comment}{   is part of the Unifont package.  Glyphs are all processed as being}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00012}00012 \textcolor{comment}{   16 pixels wide and 16 pixels tall.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00013}00013 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00014}00014 \textcolor{comment}{   Output is an HTML file containing 16 by 16 pixel grids shwoing}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00015}00015 \textcolor{comment}{   overlaps in table format, arranged by variation of the initial}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00016}00016 \textcolor{comment}{   consonant (choseong).}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00017}00017 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00018}00018 \textcolor{comment}{   Initial consonants (choseong) have 6 variations.  In general, the}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00019}00019 \textcolor{comment}{   first three are for combining with vowels (jungseong) that are}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00020}00020 \textcolor{comment}{   vertical, horizontal, or vertical and horizontal, respectively;}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00021}00021 \textcolor{comment}{   the second set of three variations are for combinations with a final}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00022}00022 \textcolor{comment}{   consonant.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00023}00023 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00024}00024 \textcolor{comment}{   The output HTML file can be viewed in a web browser.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00025}00025 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00026}00026 \textcolor{comment}{   @author Paul Hardy}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00027}00027 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00028}00028 \textcolor{comment}{   @copyright Copyright © 2023 Paul Hardy}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00029}00029 \textcolor{comment}{*/}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00030}00030 \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00031}00031 \textcolor{comment}{   LICENSE:}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00032}00032 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00033}00033 \textcolor{comment}{      This program is free software: you can redistribute it and/or modify}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00034}00034 \textcolor{comment}{      it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00035}00035 \textcolor{comment}{      the Free Software Foundation, either version 2 of the License, or}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00036}00036 \textcolor{comment}{      (at your option) any later version.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00037}00037 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00038}00038 \textcolor{comment}{      This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00039}00039 \textcolor{comment}{      but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00040}00040 \textcolor{comment}{      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00041}00041 \textcolor{comment}{      GNU General Public License for more details.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00042}00042 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00043}00043 \textcolor{comment}{      You should have received a copy of the GNU General Public License}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00044}00044 \textcolor{comment}{      along with this program.  If not, see <http://www.gnu.org/licenses/>.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00045}00045 \textcolor{comment}{*/}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00046}00046 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00047}00047 \textcolor{preprocessor}{\#include <stdio.h>}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00048}00048 \textcolor{preprocessor}{\#include <stdlib.h>}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00049}00049 \textcolor{preprocessor}{\#include <string.h>}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00050}00050 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{hangul_8h}{hangul.h}}"{}}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00051}00051 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00052}00052 \textcolor{preprocessor}{\#define MAXFILENAME 1024}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00053}00053 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00054}\mbox{\hyperlink{unijohab2html_8c_a33117bbfbedd06585bc3c4ab55e95b2f}{00054}} \textcolor{preprocessor}{\#define START\_JUNG 0    }\textcolor{comment}{///< Vowel index of first vowel with which to begin.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00055}00055 \textcolor{comment}{// \#define START\_JUNG 21  /* Use this \#define for just ancient vowels */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00056}00056 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00057}00057 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00058}00058 \textcolor{comment}{/* (Red, Green, Blue) HTML color coordinates. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00059}\mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{00059}} \textcolor{preprocessor}{\#define RED 0xCC0000  }\textcolor{comment}{///< Color code for slightly unsaturated HTML red.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00060}\mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{00060}} \textcolor{preprocessor}{\#define GREEN   0x00CC00  }\textcolor{comment}{///< Color code for slightly unsaturated HTML green.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00061}\mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{00061}} \textcolor{preprocessor}{\#define BLUE    0x0000CC  }\textcolor{comment}{///< Color code for slightly unsaturated HTML blue.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00062}\mbox{\hyperlink{unijohab2html_8c_a7b3b25cba33b07c303f3060fe41887f6}{00062}} \textcolor{preprocessor}{\#define BLACK   0x000000  }\textcolor{comment}{///< Color code for HTML black.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00063}\mbox{\hyperlink{unijohab2html_8c_a87b537f5fa5c109d3c05c13d6b18f382}{00063}} \textcolor{preprocessor}{\#define WHITE   0xFFFFFF  }\textcolor{comment}{///< Color code for HTML white.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00064}00064 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00065}00065 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00066}00066 \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00067}00067 \textcolor{comment}{   @brief The main function.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00068}00068 \textcolor{comment}{*/}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00069}00069 \textcolor{keywordtype}{int}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00070}\mbox{\hyperlink{unijohab2html_8c_a0ddf1224851353fc92bfbff6f499fa97}{00070}} \mbox{\hyperlink{unijohab2html_8c_a0ddf1224851353fc92bfbff6f499fa97}{main}} (\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} *argv[]) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00071}00071    \textcolor{keywordtype}{int} i, j;  \textcolor{comment}{/* loop variables */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00072}00072    \textcolor{keywordtype}{unsigned} codept;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00073}00073    \textcolor{keywordtype}{unsigned} max\_codept;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00074}00074    \textcolor{keywordtype}{int}      modern\_only = 0;  \textcolor{comment}{/* To just use modern Hangul */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00075}00075    \textcolor{keywordtype}{int}      group, consonant1, vowel, consonant2;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00076}00076    \textcolor{keywordtype}{int}      vowel\_variation;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00077}00077    \textcolor{keywordtype}{unsigned} glyph[\mbox{\hyperlink{hex2otf_8c_a1a1d1da8a5f6da54d749399b173c9bfc}{MAX\_GLYPHS}}][16];}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00078}00078    \textcolor{keywordtype}{unsigned} tmp\_glyph [16];  \textcolor{comment}{/* To build one combined glyph at a time. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00079}00079    \textcolor{keywordtype}{unsigned} mask;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00080}00080    \textcolor{keywordtype}{unsigned} overlapped;       \textcolor{comment}{/* To find overlaps */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00081}00081    \textcolor{keywordtype}{int}      ancient\_choseong; \textcolor{comment}{/* Flag when within ancient choseong range. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00082}00082 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00083}00083    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00084}00084 \textcolor{comment}{      16x16 pixel grid for each Choseong group, for:}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00085}00085 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00086}00086 \textcolor{comment}{         Group 0 to Group 5 with no Jongseong}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00087}00087 \textcolor{comment}{         Group 3 to Group 5 with Jongseong except Nieun}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00088}00088 \textcolor{comment}{         Group 3 to Group 5 with Jongseong Nieun}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00089}00089 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00090}00090 \textcolor{comment}{      12 grids total.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00091}00091 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00092}00092 \textcolor{comment}{      Each grid cell will hold a 32-\/bit HTML RGB color.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00093}00093 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00094}00094    \textcolor{keywordtype}{unsigned} grid[12][16][16];}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00095}00095 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00096}00096    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00097}00097 \textcolor{comment}{      Matrices to detect and report overlaps.  Identify vowel}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00098}00098 \textcolor{comment}{      variations where an overlap occurred.  For most vowel}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00099}00099 \textcolor{comment}{      variations, there will be no overlap.  Then go through}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00100}00100 \textcolor{comment}{      choseong, and then jongseong to find the overlapping}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00101}00101 \textcolor{comment}{      combinations.  This saves storage space as an alternative}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00102}00102 \textcolor{comment}{      to storing large 2-\/ or 3-\/dimensional overlap matrices.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00103}00103 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00104}00104    \textcolor{comment}{// jungcho: Jungseong overlap with Choseong}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00105}00105    \textcolor{keywordtype}{unsigned} jungcho [TOTAL\_JUNG * \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}}];}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00106}00106    \textcolor{comment}{// jongjung: Jongseong overlap with Jungseong -\/-\/ for future expansion}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00107}00107    \textcolor{comment}{// unsigned jongjung [TOTAL\_JUNG * JUNG\_VARIATIONS];}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00108}00108 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00109}00109    \textcolor{keywordtype}{int} glyphs\_overlap;     \textcolor{comment}{/* If glyph pair being considered overlap. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00110}00110    \textcolor{keywordtype}{int} cho\_overlaps  = 0;  \textcolor{comment}{/* Number of choseong+vowel overlaps.      */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00111}00111    \textcolor{comment}{// int jongjung\_overlaps = 0;  /* Number of vowel+jongseong overlaps. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00112}00112 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00113}00113    \textcolor{keywordtype}{int}  inindex = 0;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00114}00114    \textcolor{keywordtype}{int}  outindex = 0;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00115}00115    FILE *infp, *outfp;     \textcolor{comment}{/* Input and output file pointers. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00116}00116 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00117}00117    \textcolor{keywordtype}{void}     \mbox{\hyperlink{unijohab2html_8c_af0ae5e62b21f6205cc500a75ec788413}{parse\_args}} (\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} *argv[], \textcolor{keywordtype}{int} *inindex, \textcolor{keywordtype}{int} *outindex,}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00118}00118                         \textcolor{keywordtype}{int} *modern\_only);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00119}00119    \textcolor{keywordtype}{int}      \mbox{\hyperlink{hangul_8h_ab795ff183c3e429e0eb9257a7737c57f}{cho\_variation}}      (\textcolor{keywordtype}{int} cho, \textcolor{keywordtype}{int} jung, \textcolor{keywordtype}{int} jong);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00120}00120    \textcolor{keywordtype}{unsigned} \mbox{\hyperlink{hangul_8h_afd372e1a400e28d1b61410187f038eec}{hangul\_read\_base16}} (FILE *infp, \textcolor{keywordtype}{unsigned} glyph[][16]);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00121}00121    \textcolor{keywordtype}{int}  \mbox{\hyperlink{hangul_8h_a5683e04e68511d40e66dc8fe26a9a934}{glyph\_overlap}} (\textcolor{keywordtype}{unsigned} *glyph1, \textcolor{keywordtype}{unsigned} *glyph2);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00122}00122 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00123}00123    \textcolor{keywordtype}{void} \mbox{\hyperlink{hangul_8h_a9aacff561033067830249796de592258}{combine\_glyphs}} (\textcolor{keywordtype}{unsigned} *glyph1, \textcolor{keywordtype}{unsigned} *glyph2,}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00124}00124                         \textcolor{keywordtype}{unsigned} *combined\_glyph);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00125}00125    \textcolor{keywordtype}{void} \mbox{\hyperlink{hangul_8h_a0b8d4a416ad7bb42a332332c7ba86da8}{print\_glyph\_txt}} (FILE *fp, \textcolor{keywordtype}{unsigned} codept, \textcolor{keywordtype}{unsigned} *this\_glyph);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00126}00126 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00127}00127 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00128}00128    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00129}00129 \textcolor{comment}{      Parse command line arguments to open input \& output files, if given.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00130}00130 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00131}00131    \textcolor{keywordflow}{if} (argc > 1) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00132}00132       \mbox{\hyperlink{unijohab2html_8c_af0ae5e62b21f6205cc500a75ec788413}{parse\_args}} (argc, argv, \&inindex, \&outindex, \&modern\_only);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00133}00133    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00134}00134 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00135}00135    \textcolor{keywordflow}{if} (inindex == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00136}00136       infp = stdin;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00137}00137    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00138}00138    \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00139}00139       infp = fopen (argv[inindex], \textcolor{stringliteral}{"{}r"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00140}00140       \textcolor{keywordflow}{if} (infp == NULL) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00141}00141          fprintf (stderr, \textcolor{stringliteral}{"{}\(\backslash\)n*** ERROR: Cannot open \%s for input.\(\backslash\)n\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00142}00142                   argv[inindex]);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00143}00143          exit (EXIT\_FAILURE);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00144}00144       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00145}00145    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00146}00146    \textcolor{keywordflow}{if} (outindex == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00147}00147       outfp = stdout;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00148}00148    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00149}00149    \textcolor{keywordflow}{else} \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00150}00150       outfp = fopen (argv[outindex], \textcolor{stringliteral}{"{}w"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00151}00151       \textcolor{keywordflow}{if} (outfp == NULL) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00152}00152          fprintf (stderr, \textcolor{stringliteral}{"{}\(\backslash\)n*** ERROR: Cannot open \%s for output.\(\backslash\)n\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00153}00153                   argv[outindex]);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00154}00154          exit (EXIT\_FAILURE);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00155}00155       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00156}00156    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00157}00157 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00158}00158    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00159}00159 \textcolor{comment}{      Initialize glyph array to all zeroes.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00160}00160 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00161}00161    \textcolor{keywordflow}{for} (codept = 0; codept < \mbox{\hyperlink{hex2otf_8c_a1a1d1da8a5f6da54d749399b173c9bfc}{MAX\_GLYPHS}}; codept++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00162}00162       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) glyph[codept][i] = 0x0000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00163}00163    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00164}00164 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00165}00165    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00166}00166 \textcolor{comment}{      Initialize overlap matrices to all zeroes.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00167}00167 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00168}00168    \textcolor{keywordflow}{for} (i = 0; i < TOTAL\_JUNG * \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}}; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00169}00169       jungcho  [i] = 0;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00170}00170    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00171}00171    \textcolor{comment}{// jongjung is reserved for expansion.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00172}00172    \textcolor{comment}{// for (i = 0; i < TOTAL\_JONG * JONG\_VARIATIONS; i++) \{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00173}00173    \textcolor{comment}{//    jongjung [i] = 0;}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00174}00174    \textcolor{comment}{// \}}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00175}00175 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00176}00176    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00177}00177 \textcolor{comment}{      Read Hangul base glyph file.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00178}00178 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00179}00179    max\_codept = \mbox{\hyperlink{hangul_8h_afd372e1a400e28d1b61410187f038eec}{hangul\_read\_base16}} (infp, glyph);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00180}00180    \textcolor{keywordflow}{if} (max\_codept > 0x8FF) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00181}00181       fprintf (stderr, \textcolor{stringliteral}{"{}\(\backslash\)nWARNING: Hangul glyph range exceeds PUA space.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00182}00182    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00183}00183 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00184}00184    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00185}00185 \textcolor{comment}{      If only examining modern Hangul, fill the ancient glyphs}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00186}00186 \textcolor{comment}{      with blanks to guarantee they won't overlap.  This is}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00187}00187 \textcolor{comment}{      not as efficient as ending loops sooner, but is easier}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00188}00188 \textcolor{comment}{      to verify for correctness.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00189}00189 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00190}00190    \textcolor{keywordflow}{if} (modern\_only) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00191}00191       \textcolor{keywordflow}{for} (i = 0x0073; i < \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}}; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00192}00192          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) glyph[i][j] = 0x0000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00193}00193       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00194}00194       \textcolor{keywordflow}{for} (i = 0x027A; i < \mbox{\hyperlink{hangul_8h_ad4e7a6ac8160c8f5576487db53d67925}{JONG\_HEX}}; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00195}00195          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) glyph[i][j] = 0x0000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00196}00196       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00197}00197       \textcolor{keywordflow}{for} (i = 0x032B; i < 0x0400; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00198}00198          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) glyph[i][j] = 0x0000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00199}00199       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00200}00200    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00201}00201 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00202}00202    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00203}00203 \textcolor{comment}{      Initialize grids to all black (no color) for each of}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00204}00204 \textcolor{comment}{      the 12 Choseong groups.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00205}00205 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00206}00206    \textcolor{keywordflow}{for} (group = 0; group < 12; group++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00207}00207       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00208}00208          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00209}00209             grid[group][i][j] = \mbox{\hyperlink{unijohab2html_8c_a7b3b25cba33b07c303f3060fe41887f6}{BLACK}};  \textcolor{comment}{/* No color at first */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00210}00210          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00211}00211       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00212}00212    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00213}00213 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00214}00214    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00215}00215 \textcolor{comment}{      Superimpose all Choseong glyphs according to group.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00216}00216 \textcolor{comment}{      Each grid spot with choseong will be blue.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00217}00217 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00218}00218    \textcolor{keywordflow}{for} (group = 0; group < 6; group++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00219}00219       \textcolor{keywordflow}{for} (consonant1 = \mbox{\hyperlink{hangul_8h_ab1bb63330600aa31b5fba9ac58ce171e}{CHO\_HEX}} + group;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00220}00220            consonant1 < \mbox{\hyperlink{hangul_8h_ab1bb63330600aa31b5fba9ac58ce171e}{CHO\_HEX}} +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00221}00221                         \mbox{\hyperlink{hangul_8h_a0701ea8bfe17f2b3360397b3fa8dad05}{CHO\_VARIATIONS}} * TOTAL\_CHO;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00222}00222            consonant1 += \mbox{\hyperlink{hangul_8h_a0701ea8bfe17f2b3360397b3fa8dad05}{CHO\_VARIATIONS}}) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00223}00223          \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00224}00224             mask = 0x8000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00225}00225             \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00226}00226                \textcolor{keywordflow}{if} (glyph[consonant1][i] \& mask) grid[group][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00227}00227                mask >>= 1;  \textcolor{comment}{/* Get next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00228}00228             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00229}00229          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00230}00230       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00231}00231    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00232}00232 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00233}00233    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00234}00234 \textcolor{comment}{      Fill with Choseong (initial consonant) to prepare}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00235}00235 \textcolor{comment}{      for groups 3-\/5 with jongseong except niuen (group+3),}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00236}00236 \textcolor{comment}{      then for groups 3-\/5 with jongseong nieun (group+6).}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00237}00237 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00238}00238    \textcolor{keywordflow}{for} (group = 3; group < 6; group++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00239}00239       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00240}00240          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00241}00241             grid[group + 6][i][j] = grid[group + 3][i][j]}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00242}00242                                    = grid[group][i][j];}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00243}00243          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00244}00244       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00245}00245    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00246}00246 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00247}00247    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00248}00248 \textcolor{comment}{      For each Jungseong, superimpose first variation on}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00249}00249 \textcolor{comment}{      appropriate Choseong group for grids 0 to 5.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00250}00250 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00251}00251    \textcolor{keywordflow}{for} (vowel = \mbox{\hyperlink{unijohab2html_8c_a33117bbfbedd06585bc3c4ab55e95b2f}{START\_JUNG}}; vowel < TOTAL\_JUNG; vowel++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00252}00252       group = \mbox{\hyperlink{hangul_8h_ab795ff183c3e429e0eb9257a7737c57f}{cho\_variation}} (-\/1, vowel, -\/1);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00253}00253       glyphs\_overlap = 0;  \textcolor{comment}{/* Assume the 2 glyphs do not overlap. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00254}00254 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00255}00255       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00256}00256          mask = 0x8000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00257}00257          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00258}00258             \textcolor{keywordflow}{if} (glyph[\mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}} + \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel][i] \& mask) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00259}00259                \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00260}00260 \textcolor{comment}{                  If there was already blue in this grid cell,}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00261}00261 \textcolor{comment}{                  mark this vowel variation as having overlap}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00262}00262 \textcolor{comment}{                  with choseong (initial consonant) letter(s).}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00263}00263 \textcolor{comment}{               */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00264}00264                \textcolor{keywordflow}{if} (grid[group][i][j] \& \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}}) glyphs\_overlap = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00265}00265 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00266}00266                \textcolor{comment}{/* Add green to grid cell color. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00267}00267                grid[group][i][j] |= \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00268}00268             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00269}00269             mask >>= 1;  \textcolor{comment}{/* Mask for next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00270}00270          \}  \textcolor{comment}{/* for j */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00271}00271       \}  \textcolor{comment}{/* for i */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00272}00272       \textcolor{keywordflow}{if} (glyphs\_overlap) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00273}00273          jungcho [\mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel] = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00274}00274          cho\_overlaps++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00275}00275       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00276}00276    \}  \textcolor{comment}{/* for each vowel */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00277}00277 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00278}00278    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00279}00279 \textcolor{comment}{      For each Jungseong, superimpose second variation on}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00280}00280 \textcolor{comment}{      appropriate Choseong group for grids 6 to 8.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00281}00281 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00282}00282    \textcolor{keywordflow}{for} (vowel = \mbox{\hyperlink{unijohab2html_8c_a33117bbfbedd06585bc3c4ab55e95b2f}{START\_JUNG}}; vowel < TOTAL\_JUNG; vowel++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00283}00283       \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00284}00284 \textcolor{comment}{         The second vowel variation is for combination with}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00285}00285 \textcolor{comment}{         a final consonant (Jongseong), with initial consonant}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00286}00286 \textcolor{comment}{         (Choseong) variations (or "{}groups"{}) 3 to 5.  Thus,}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00287}00287 \textcolor{comment}{         if the vowel type returns an initial Choseong group}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00288}00288 \textcolor{comment}{         of 0 to 2, add 3 to it.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00289}00289 \textcolor{comment}{      */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00290}00290       group = \mbox{\hyperlink{hangul_8h_ab795ff183c3e429e0eb9257a7737c57f}{cho\_variation}} (-\/1, vowel, -\/1);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00291}00291       \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00292}00292 \textcolor{comment}{         Groups 0 to 2 don't use second vowel variation,}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00293}00293 \textcolor{comment}{         so increment if group is below 2.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00294}00294 \textcolor{comment}{      */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00295}00295       \textcolor{keywordflow}{if} (group < 3) group += 3;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00296}00296       glyphs\_overlap = 0;  \textcolor{comment}{/* Assume the 2 glyphs do not overlap. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00297}00297 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00298}00298       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00299}00299          mask = 0x8000;  \textcolor{comment}{/* Start mask at leftmost glyph bit */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00300}00300          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{  \textcolor{comment}{/* For each column in this row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00301}00301             \textcolor{comment}{/* "{}+ 1"{} is to get each vowel's second variation */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00302}00302             \textcolor{keywordflow}{if} (glyph [\mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}} +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00303}00303                        \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel + 1][i] \& mask) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00304}00304                \textcolor{comment}{/* If this cell has blue already, mark as overlapped. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00305}00305                \textcolor{keywordflow}{if} (grid [group + 3][i][j] \& \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}}) glyphs\_overlap = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00306}00306 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00307}00307                \textcolor{comment}{/* Superimpose green on current cell color. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00308}00308                grid [group + 3][i][j] |= \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00309}00309             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00310}00310             mask >>= 1;  \textcolor{comment}{/* Get next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00311}00311          \}  \textcolor{comment}{/* for j */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00312}00312       \}  \textcolor{comment}{/* for i */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00313}00313       \textcolor{keywordflow}{if} (glyphs\_overlap) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00314}00314          jungcho [\mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel + 1] = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00315}00315          cho\_overlaps++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00316}00316       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00317}00317    \}  \textcolor{comment}{/* for each vowel */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00318}00318 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00319}00319    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00320}00320 \textcolor{comment}{      For each Jungseong, superimpose third variation on}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00321}00321 \textcolor{comment}{      appropriate Choseong group for grids 9 to 11 for}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00322}00322 \textcolor{comment}{      final consonant (Jongseong) of Nieun.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00323}00323 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00324}00324    \textcolor{keywordflow}{for} (vowel = \mbox{\hyperlink{unijohab2html_8c_a33117bbfbedd06585bc3c4ab55e95b2f}{START\_JUNG}}; vowel < TOTAL\_JUNG; vowel++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00325}00325       group = \mbox{\hyperlink{hangul_8h_ab795ff183c3e429e0eb9257a7737c57f}{cho\_variation}} (-\/1, vowel, -\/1);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00326}00326       \textcolor{keywordflow}{if} (group < 3) group += 3;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00327}00327       glyphs\_overlap = 0;  \textcolor{comment}{/* Assume the 2 glyphs do not overlap. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00328}00328 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00329}00329       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00330}00330          mask = 0x8000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00331}00331          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00332}00332             \textcolor{keywordflow}{if} (glyph[\mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}} +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00333}00333                       \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel + 2][i] \& mask) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00334}00334                \textcolor{comment}{/* If this cell has blue already, mark as overlapped. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00335}00335                \textcolor{keywordflow}{if} (grid[group + 6][i][j] \& \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}}) glyphs\_overlap = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00336}00336 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00337}00337                grid[group + 6][i][j] |= \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00338}00338             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00339}00339             mask >>= 1;  \textcolor{comment}{/* Get next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00340}00340          \}  \textcolor{comment}{/* for j */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00341}00341       \}  \textcolor{comment}{/* for i */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00342}00342       \textcolor{keywordflow}{if} (glyphs\_overlap) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00343}00343          jungcho [\mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}} * vowel + 2] = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00344}00344          cho\_overlaps++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00345}00345       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00346}00346    \}  \textcolor{comment}{/* for each vowel */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00347}00347 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00348}00348 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00349}00349    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00350}00350 \textcolor{comment}{      Superimpose all final consonants except nieun for grids 6 to 8.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00351}00351 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00352}00352    \textcolor{keywordflow}{for} (consonant2 = 0; consonant2 < TOTAL\_JONG; consonant2++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00353}00353       \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00354}00354 \textcolor{comment}{         Skip over Jongseong Nieun, because it is covered in}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00355}00355 \textcolor{comment}{         grids 9 to 11 after this loop.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00356}00356 \textcolor{comment}{      */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00357}00357       \textcolor{keywordflow}{if} (consonant2 == 3) consonant2++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00358}00358 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00359}00359       glyphs\_overlap = 0;  \textcolor{comment}{/* Assume the 2 glyphs do not overlap. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00360}00360       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00361}00361          mask = 0x8000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00362}00362          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00363}00363             \textcolor{keywordflow}{if} (glyph [\mbox{\hyperlink{hangul_8h_ad4e7a6ac8160c8f5576487db53d67925}{JONG\_HEX}} +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00364}00364                        \mbox{\hyperlink{hangul_8h_a072e34c7730814b97335b6b59b69eb41}{JONG\_VARIATIONS}} * consonant2][i] \& mask) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00365}00365                \textcolor{keywordflow}{if} (grid[6][i][j] \& \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}} ||}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00366}00366                    grid[7][i][j] \& \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}} ||}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00367}00367                    grid[8][i][j] \& \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}}) glyphs\_overlap = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00368}00368 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00369}00369                grid[6][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00370}00370                grid[7][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00371}00371                grid[8][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00372}00372             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00373}00373             mask >>= 1;  \textcolor{comment}{/* Get next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00374}00374          \}  \textcolor{comment}{/* for j */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00375}00375       \}  \textcolor{comment}{/* for i */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00376}00376       \textcolor{comment}{// jongjung is for expansion}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00377}00377       \textcolor{comment}{// if (glyphs\_overlap) \{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00378}00378       \textcolor{comment}{//    jongjung [JONG\_VARIATIONS * consonant2] = 1;}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00379}00379       \textcolor{comment}{//    jongjung\_overlaps++;}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00380}00380       \textcolor{comment}{// \}}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00381}00381    \}  \textcolor{comment}{/* for each final consonant except nieun */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00382}00382 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00383}00383    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00384}00384 \textcolor{comment}{      Superimpose final consonant 3 (Jongseong Nieun) on}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00385}00385 \textcolor{comment}{      groups 9 to 11.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00386}00386 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00387}00387    codept = \mbox{\hyperlink{hangul_8h_ad4e7a6ac8160c8f5576487db53d67925}{JONG\_HEX}} + 3 * \mbox{\hyperlink{hangul_8h_a072e34c7730814b97335b6b59b69eb41}{JONG\_VARIATIONS}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00388}00388 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00389}00389    \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{ \textcolor{comment}{/* For each glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00390}00390       mask = 0x8000;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00391}00391       \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00392}00392          \textcolor{keywordflow}{if} (glyph[codept][i] \& mask) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00393}00393             grid[ 9][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00394}00394             grid[10][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00395}00395             grid[11][i][j] |= \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00396}00396          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00397}00397          mask >>= 1;  \textcolor{comment}{/* Get next bit in glyph row */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00398}00398       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00399}00399    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00400}00400 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00401}00401 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00402}00402    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00403}00403 \textcolor{comment}{      Turn the black (uncolored) cells into white for better}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00404}00404 \textcolor{comment}{      visibility of grid when displayed.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00405}00405 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00406}00406    \textcolor{keywordflow}{for} (group = 0; group < 12; group++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00407}00407       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00408}00408          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00409}00409             \textcolor{keywordflow}{if} (grid[group][i][j] == \mbox{\hyperlink{unijohab2html_8c_a7b3b25cba33b07c303f3060fe41887f6}{BLACK}}) grid[group][i][j] = \mbox{\hyperlink{unijohab2html_8c_a87b537f5fa5c109d3c05c13d6b18f382}{WHITE}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00410}00410          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00411}00411       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00412}00412    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00413}00413 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00414}00414 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00415}00415    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00416}00416 \textcolor{comment}{      Generate HTML output.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00417}00417 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00418}00418    fprintf (outfp, \textcolor{stringliteral}{"{}<html>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00419}00419    fprintf (outfp, \textcolor{stringliteral}{"{}<head>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00420}00420    fprintf (outfp, \textcolor{stringliteral}{"{}  <title>Johab 6/3/1 Overlaps</title>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00421}00421    fprintf (outfp, \textcolor{stringliteral}{"{}</head>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00422}00422    fprintf (outfp, \textcolor{stringliteral}{"{}<body bgcolor=\(\backslash\)"{}\#FFFFCC\(\backslash\)"{}>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00423}00423 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00424}00424    fprintf (outfp, \textcolor{stringliteral}{"{}<center>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00425}00425    fprintf (outfp, \textcolor{stringliteral}{"{}  <h1>Unifont Hangul Jamo Syllable Components</h1>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00426}00426    fprintf (outfp, \textcolor{stringliteral}{"{}  <h2>Johab 6/3/1 Overlap</h2><br><br>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00427}00427 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00428}00428    \textcolor{comment}{/* Print the color code key for the table. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00429}00429    fprintf (outfp, \textcolor{stringliteral}{"{}  <table border=\(\backslash\)"{}1\(\backslash\)"{} cellpadding=\(\backslash\)"{}10\(\backslash\)"{}>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00430}00430    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><th colspan=\(\backslash\)"{}2\(\backslash\)"{} align=\(\backslash\)"{}center\(\backslash\)"{} bgcolor=\(\backslash\)"{}\#FFCC80\(\backslash\)"{}>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00431}00431    fprintf (outfp, \textcolor{stringliteral}{"{}<font size=\(\backslash\)"{}+1\(\backslash\)"{}>Key</font></th></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00432}00432    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00433}00433    fprintf (outfp, \textcolor{stringliteral}{"{}      <th align=\(\backslash\)"{}center\(\backslash\)"{} bgcolor=\(\backslash\)"{}\#FFFF80\(\backslash\)"{}>Color</th>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00434}00434    fprintf (outfp, \textcolor{stringliteral}{"{}      <th align=\(\backslash\)"{}center\(\backslash\)"{} bgcolor=\(\backslash\)"{}\#FFFF80\(\backslash\)"{}>Letter(s)</th>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00435}00435    fprintf (outfp, \textcolor{stringliteral}{"{}    </tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00436}00436 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00437}00437    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00438}00438    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00439}00439    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Choseong (Initial Consonant)</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00440}00440 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00441}00441    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00442}00442    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00443}00443    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Jungseong (Medial Vowel/Diphthong)</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00444}00444 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00445}00445    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00446}00446    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00447}00447    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Jongseong (Final Consonant)</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00448}00448 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00449}00449    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}} | \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00450}00450    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00451}00451    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Choseong + Jungseong Overlap</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00452}00452 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00453}00453    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}} | \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00454}00454    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00455}00455    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Jungseong + Jongseong Overlap</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00456}00456 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00457}00457    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}} | \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00458}00458    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00459}00459    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Choseong + Jongseong Overlap</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00460}00460 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00461}00461    fprintf (outfp, \textcolor{stringliteral}{"{}    <tr><td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}}, \mbox{\hyperlink{unijohab2html_8c_a8d23feea868a983c8c2b661e1e16972f}{RED}} | \mbox{\hyperlink{unijohab2html_8c_acfbc006ea433ad708fdee3e82996e721}{GREEN}} | \mbox{\hyperlink{unijohab2html_8c_a79d10e672abb49ad63eeaa8aaef57c38}{BLUE}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00462}00462    fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00463}00463    fprintf (outfp, \textcolor{stringliteral}{"{}<td>Choseong + Jungseong + Jongseong Overlap</td></tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00464}00464 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00465}00465    fprintf (outfp, \textcolor{stringliteral}{"{}  </table>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00466}00466    fprintf (outfp, \textcolor{stringliteral}{"{}  <br><br>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00467}00467 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00468}00468 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00469}00469    \textcolor{keywordflow}{for} (group = 0; group < 12; group++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00470}00470       \textcolor{comment}{/* Arrange tables 3 across, 3 down. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00471}00471       \textcolor{keywordflow}{if} ((group \% 3) == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00472}00472          fprintf (outfp, \textcolor{stringliteral}{"{}  <table border=\(\backslash\)"{}0\(\backslash\)"{} cellpadding=\(\backslash\)"{}10\(\backslash\)"{}>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00473}00473          fprintf (outfp, \textcolor{stringliteral}{"{}    <tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00474}00474       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00475}00475 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00476}00476       fprintf (outfp, \textcolor{stringliteral}{"{}      <td>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00477}00477       fprintf (outfp, \textcolor{stringliteral}{"{}        <table border=\(\backslash\)"{}3\(\backslash\)"{} cellpadding=\(\backslash\)"{}2\(\backslash\)"{}>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00478}00478       fprintf (outfp, \textcolor{stringliteral}{"{}          <tr><th colspan=\(\backslash\)"{}16\(\backslash\)"{} bgcolor=\(\backslash\)"{}\#FFFF80\(\backslash\)"{}>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00479}00479       fprintf (outfp, \textcolor{stringliteral}{"{}Choseong Group \%d, \%s \%s</th></tr>\(\backslash\)n"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00480}00480                group < 6 ? group : (group > 8 ? group -\/ 6 : group -\/ 3),}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00481}00481                group < 6 ? (group < 3 ? \textcolor{stringliteral}{"{}No"{}} : \textcolor{stringliteral}{"{}Without"{}}) : \textcolor{stringliteral}{"{}With"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00482}00482                group < 9 ? \textcolor{stringliteral}{"{}Jongseong"{}} : \textcolor{stringliteral}{"{}Nieun"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00483}00483    }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00484}00484       \textcolor{keywordflow}{for} (i = 0; i < 16; i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00485}00485          fprintf (outfp, \textcolor{stringliteral}{"{}          <tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00486}00486          \textcolor{keywordflow}{for} (j = 0; j < 16; j++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00487}00487             fprintf (outfp, \textcolor{stringliteral}{"{}            <td bgcolor=\(\backslash\)"{}\#\%06X\(\backslash\)"{}>"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00488}00488                      grid[group][i][j]);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00489}00489             fprintf (outfp, \textcolor{stringliteral}{"{}\&nbsp;\&nbsp;\&nbsp;\&nbsp;</td>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00490}00490          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00491}00491          fprintf (outfp, \textcolor{stringliteral}{"{}          </tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00492}00492       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00493}00493    }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00494}00494       fprintf (outfp, \textcolor{stringliteral}{"{}            </td>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00495}00495       fprintf (outfp, \textcolor{stringliteral}{"{}          </tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00496}00496       fprintf (outfp, \textcolor{stringliteral}{"{}        </table>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00497}00497       fprintf (outfp, \textcolor{stringliteral}{"{}      </td>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00498}00498 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00499}00499       \textcolor{keywordflow}{if} ((group \% 3) == 2) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00500}00500          fprintf (outfp, \textcolor{stringliteral}{"{}    </tr>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00501}00501          fprintf (outfp, \textcolor{stringliteral}{"{}  </table>\(\backslash\)n  </br>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00502}00502       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00503}00503    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00504}00504 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00505}00505    \textcolor{comment}{/* Wrap up HTML table output. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00506}00506    fprintf (outfp, \textcolor{stringliteral}{"{}</center>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00507}00507 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00508}00508    \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00509}00509 \textcolor{comment}{      Print overlapping initial consonant + vowel combinations.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00510}00510 \textcolor{comment}{   */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00511}00511    fprintf (outfp, \textcolor{stringliteral}{"{}<h2>\%d Vowel Overlaps with Initial Consonants Found</h2>"{}},}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00512}00512             cho\_overlaps);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00513}00513    fprintf (outfp, \textcolor{stringliteral}{"{}<font size=\(\backslash\)"{}+1\(\backslash\)"{}><pre>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00514}00514 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00515}00515    \textcolor{keywordflow}{for} (i = \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00516}00516         i < \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}} + TOTAL\_JUNG * \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00517}00517         i++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00518}00518       \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00519}00519 \textcolor{comment}{         If this vowel variation (Jungseong) had overlaps}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00520}00520 \textcolor{comment}{         with one or more initial consonants (Choseong),}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00521}00521 \textcolor{comment}{         find and print them.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00522}00522 \textcolor{comment}{      */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00523}00523       \textcolor{keywordflow}{if} (jungcho [i -\/ \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}}]) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00524}00524          ancient\_choseong = 0;  \textcolor{comment}{/* Not within ancient choseong range yet. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00525}00525          fprintf (outfp, \textcolor{stringliteral}{"{}<font color=\(\backslash\)"{}\#0000FF\(\backslash\)"{}><b>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00526}00526          \textcolor{keywordflow}{if} (i >= \mbox{\hyperlink{hangul_8h_a70c32b954a83568a41bd21f9a7edee2f}{JUNG\_ANCIENT\_HEX}}) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00527}00527             \textcolor{keywordflow}{if} (i >= \mbox{\hyperlink{hangul_8h_aba5138f283da08eb4b9bd56e2fd56cb9}{JUNG\_EXTB\_HEX}}) fprintf (outfp, \textcolor{stringliteral}{"{}Extended-\/B "{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00528}00528             fprintf (outfp, \textcolor{stringliteral}{"{}Ancient "{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00529}00529          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00530}00530          fprintf (outfp, \textcolor{stringliteral}{"{}Vowel at 0x\%04X and\&hellip;</b>"{}}, i + PUA\_START);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00531}00531          fprintf (outfp, \textcolor{stringliteral}{"{}</font>\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00532}00532 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00533}00533          \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00534}00534 \textcolor{comment}{            Get current vowel number, 0 to (TOTAL\_JUNG -\/ 1), and}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00535}00535 \textcolor{comment}{            current vowel variation, 0 or 1, or 2 for final nieun.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00536}00536 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00537}00537          vowel = (i -\/ \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}}) / \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00538}00538          vowel\_variation = (i -\/ \mbox{\hyperlink{hangul_8h_a2603eab2f2cae3b60e0f8a76424be923}{JUNG\_HEX}}) \% \mbox{\hyperlink{hangul_8h_a8bcda08741a11636e3236f3d34372bcf}{JUNG\_VARIATIONS}};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00539}00539 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00540}00540          \textcolor{comment}{/* Get first Choseong group for this vowel, 0 to 5. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00541}00541          group = \mbox{\hyperlink{hangul_8h_ab795ff183c3e429e0eb9257a7737c57f}{cho\_variation}} (-\/1, vowel, -\/1);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00542}00542 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00543}00543          \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00544}00544 \textcolor{comment}{            If this vowel variation is used with a final consonant}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00545}00545 \textcolor{comment}{            (Jongseong) and the default initial consonant (Choseong)}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00546}00546 \textcolor{comment}{            group for this vowel is < 3, add 3 to current Chosenong}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00547}00547 \textcolor{comment}{            group.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00548}00548 \textcolor{comment}{         */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00549}00549          \textcolor{keywordflow}{if} (vowel\_variation > 0 \&\& group < 3) group += 3;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00550}00550 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00551}00551          \textcolor{keywordflow}{for} (consonant1 = 0; consonant1 < TOTAL\_CHO; consonant1++) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00552}00552             overlapped = \mbox{\hyperlink{hangul_8h_a5683e04e68511d40e66dc8fe26a9a934}{glyph\_overlap}} (glyph [i],}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00553}00553                              glyph [consonant1 * \mbox{\hyperlink{hangul_8h_a0701ea8bfe17f2b3360397b3fa8dad05}{CHO\_VARIATIONS}}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00554}00554                                   + \mbox{\hyperlink{hangul_8h_ab1bb63330600aa31b5fba9ac58ce171e}{CHO\_HEX}} + group]);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00555}00555 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00556}00556             \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00557}00557 \textcolor{comment}{               If we just entered ancient choseong range, flag it.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00558}00558 \textcolor{comment}{            */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00559}00559             \textcolor{keywordflow}{if} (overlapped \&\& consonant1 >= 19 \&\& ancient\_choseong == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00560}00560                fprintf (outfp, \textcolor{stringliteral}{"{}<font color=\(\backslash\)"{}\#0000FF\(\backslash\)"{}><b>"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00561}00561                fprintf (outfp, \textcolor{stringliteral}{"{}\&hellip;Ancient Choseong\&hellip;</b></font>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00562}00562                ancient\_choseong = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00563}00563             \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00564}00564             \textcolor{comment}{/*}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00565}00565 \textcolor{comment}{               If overlapping choseong found, print combined glyph.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00566}00566 \textcolor{comment}{            */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00567}00567             \textcolor{keywordflow}{if} (overlapped != 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00568}00568 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00569}00569                \mbox{\hyperlink{hangul_8h_a9aacff561033067830249796de592258}{combine\_glyphs}} (glyph [i],}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00570}00570                                glyph [consonant1 * \mbox{\hyperlink{hangul_8h_a0701ea8bfe17f2b3360397b3fa8dad05}{CHO\_VARIATIONS}}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00571}00571                                     + \mbox{\hyperlink{hangul_8h_ab1bb63330600aa31b5fba9ac58ce171e}{CHO\_HEX}} + group],}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00572}00572                                tmp\_glyph);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00573}00573 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00574}00574                \mbox{\hyperlink{hangul_8h_a0b8d4a416ad7bb42a332332c7ba86da8}{print\_glyph\_txt}} (outfp,}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00575}00575                                 PUA\_START +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00576}00576                                 consonant1 * \mbox{\hyperlink{hangul_8h_a0701ea8bfe17f2b3360397b3fa8dad05}{CHO\_VARIATIONS}} +}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00577}00577                                 \mbox{\hyperlink{hangul_8h_ab1bb63330600aa31b5fba9ac58ce171e}{CHO\_HEX}} + group,}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00578}00578                                 tmp\_glyph);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00579}00579 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00580}00580             \}  \textcolor{comment}{/* If overlapping pixels found. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00581}00581          \}  \textcolor{comment}{/* For each initial consonant (Choseong) */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00582}00582       \}  \textcolor{comment}{/* Find the initial consonant that overlapped this vowel variation. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00583}00583    \}  \textcolor{comment}{/* For each variation of each vowel (Jungseong) */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00584}00584 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00585}00585    fputc (\textcolor{charliteral}{'\(\backslash\)n'}, outfp);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00586}00586 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00587}00587    fprintf (outfp, \textcolor{stringliteral}{"{}</pre></font>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00588}00588    fprintf (outfp, \textcolor{stringliteral}{"{}</body>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00589}00589    fprintf (outfp, \textcolor{stringliteral}{"{}</html>\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00590}00590 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00591}00591    fclose (infp);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00592}00592    fclose (outfp);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00593}00593 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00594}00594 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00595}00595    exit (EXIT\_SUCCESS);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00596}00596 \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00597}00597 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00598}00598 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00599}00599 \textcolor{comment}{/**}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00600}00600 \textcolor{comment}{   @brief Parse command line arguments.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00601}00601 \textcolor{comment}{}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00602}00602 \textcolor{comment}{   @param[in] argc The argc parameter to the main function.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00603}00603 \textcolor{comment}{   @param[in] argv The argv command line arguments to the main function.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00604}00604 \textcolor{comment}{   @param[in,out] infile The input filename; defaults to NULL.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00605}00605 \textcolor{comment}{   @param[in,out] outfile The output filename; defaults to NULL.}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00606}00606 \textcolor{comment}{*/}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00607}00607 \textcolor{keywordtype}{void}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00608}\mbox{\hyperlink{unijohab2html_8c_af0ae5e62b21f6205cc500a75ec788413}{00608}} \mbox{\hyperlink{unijohab2html_8c_af0ae5e62b21f6205cc500a75ec788413}{parse\_args}} (\textcolor{keywordtype}{int} argc, \textcolor{keywordtype}{char} *argv[], \textcolor{keywordtype}{int} *inindex, \textcolor{keywordtype}{int} *outindex,}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00609}00609                  \textcolor{keywordtype}{int} *modern\_only) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00610}00610    \textcolor{keywordtype}{int} arg\_count;  \textcolor{comment}{/* Current index into argv[]. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00611}00611 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00612}00612    \textcolor{keywordtype}{int} strncmp (\textcolor{keyword}{const} \textcolor{keywordtype}{char} *s1, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *s2, \textcolor{keywordtype}{size\_t} n);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00613}00613 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00614}00614 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00615}00615    arg\_count = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00616}00616 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00617}00617    \textcolor{keywordflow}{while} (arg\_count < argc) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00618}00618       \textcolor{comment}{/* If input file is specified, open it for read access. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00619}00619       \textcolor{keywordflow}{if} (strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/i"{}}, 2) == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00620}00620          arg\_count++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00621}00621          \textcolor{keywordflow}{if} (arg\_count < argc) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00622}00622             *inindex = arg\_count;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00623}00623          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00624}00624       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00625}00625       \textcolor{comment}{/* If only modern Hangul is desired, set modern\_only flag. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00626}00626       \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/m"{}}, 2) == 0 ||}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00627}00627                strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/-\/modern"{}}, 8) == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00628}00628          *modern\_only = 1;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00629}00629       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00630}00630       \textcolor{comment}{/* If output file is specified, open it for write access. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00631}00631       \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/o"{}}, 2) == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00632}00632          arg\_count++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00633}00633          \textcolor{keywordflow}{if} (arg\_count < argc) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00634}00634             *outindex = arg\_count;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00635}00635          \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00636}00636       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00637}00637       \textcolor{comment}{/* If help is requested, print help message and exit. */}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00638}00638       \textcolor{keywordflow}{else} \textcolor{keywordflow}{if} (strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/h"{}},     2) == 0 ||}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00639}00639                strncmp (argv [arg\_count], \textcolor{stringliteral}{"{}-\/-\/help"{}}, 6) == 0) \{}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00640}00640          printf (\textcolor{stringliteral}{"{}\(\backslash\)nunijohab2html [options]\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00641}00641          printf (\textcolor{stringliteral}{"{}     Generates an HTML page of overlapping Hangul letters from an input\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00642}00642          printf (\textcolor{stringliteral}{"{}     Unifont .hex file encoded in Johab 6/3/1 format.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00643}00643 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00644}00644          printf (\textcolor{stringliteral}{"{}     Option        Parameters   Function\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00645}00645          printf (\textcolor{stringliteral}{"{}     -\/-\/-\/-\/-\/-\/        -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/   -\/-\/-\/-\/-\/-\/-\/-\/\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00646}00646          printf (\textcolor{stringliteral}{"{}     -\/h, -\/-\/help                 Print this message and exit.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00647}00647          printf (\textcolor{stringliteral}{"{}     -\/i            input\_file   Unifont hangul-\/base.hex formatted input file.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00648}00648          printf (\textcolor{stringliteral}{"{}     -\/o            output\_file  HTML output file showing overlapping letters.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00649}00649          printf (\textcolor{stringliteral}{"{}     -\/m, -\/-\/modern               Only examine modern Hangul letters.\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00650}00650          printf (\textcolor{stringliteral}{"{}     Example:\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00651}00651          printf (\textcolor{stringliteral}{"{}          unijohab2html -\/i hangul-\/base.hex -\/o hangul-\/syllables.html\(\backslash\)n\(\backslash\)n"{}});}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00652}00652 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00653}00653          exit (EXIT\_SUCCESS);}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00654}00654       \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00655}00655 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00656}00656       arg\_count++;}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00657}00657    \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00658}00658 }
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00659}00659    \textcolor{keywordflow}{return};}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00660}00660 \}}
\DoxyCodeLine{\Hypertarget{unijohab2html_8c_source_l00661}00661 }

\end{DoxyCode}
