
% Start a typescript:
% Sans category ; give it a name ; associate with uc encoding
\starttypescript[serif][unbatang][uc]
% Regular variant:
 \definefontsynonym[unbatangRegular][file:UnBatang.ttf][encoding=uc]
\definefontsynonym[unbatangBold][file:UnBatangBold.ttf][encoding=uc]
 \definefontsynonym[unbatangItalic][file:UnGraphic.ttf][encoding=uc]
 \definefontsynonym[unbatangBoldItalic][file:UnGraphicBold.ttf] [encoding=uc]
\stoptypescript

% Start another typescript that associates generic names with 
% mid-level names:
\starttypescript[serif][unbatang][name]
 \definefontsynonym[Serif][unbatangRegular]
 \definefontsynonym[SerifBold][unbatangBold]
 \definefontsynonym[SerifItalic][unbatangItalic]
 \definefontsynonym[SerifBoldItalic][unbatangBoldItalic]
% The fallbacks
 \definefontsynonym[SerifSlanted][Serif]
 \definefontsynonym[SerifBoldSlanted][SerifBold]
 \definefontsynonym[SerifCaps][Serif]
\stoptypescript

\starttypescript[sans][undotum][uc]
% Regular variant:
 \definefontsynonym[dotumRegular][file:UnDotum.ttf][encoding=uc]
 \definefontsynonym[dotumBold][file:UnDotumBold.ttf][encoding=uc]
 \definefontsynonym[dotumItalic][file:UnGraphic.ttf][encoding=uc]
 \definefontsynonym[dotumBoldItalic][file:UnYetgul.ttf][encoding=uc]
\stoptypescript

% Start another typescript that associates generic names with 
% mid-level names:
\starttypescript[sans][undotum][name]
 \definefontsynonym[Sans][dotumRegular]
 \definefontsynonym[SansBold][dotumBold]
 \definefontsynonym[SansItalic][dotumItalic]
 \definefontsynonym[SansBoldItalic][dotumBoldItalic]
% The fallbacks
 \definefontsynonym[SansSlanted][Sans]
 \definefontsynonym[SansBoldSlanted][SansBold]
 \definefontsynonym[SansCaps][Sans]
\stoptypescript

\starttypescript[mono][untype][uc]
% Regular variant:
 \definefontsynonym[monoRegular][file:UnTaza.ttf][encoding=uc]
 \definefontsynonym[monoBold][file:UnGungseo.ttf][encoding=uc]
 \definefontsynonym[monoItalic][file:UnGraphic.ttf][encoding=uc]
 \definefontsynonym[monoDB][file:UnYetgul.ttf][encoding=uc]
\stoptypescript

% Start another typescript that associates generic names with 
% mid-level names:
\starttypescript[mono][untype][name]
 \definefontsynonym[Mono][monoRegular]
 \definefontsynonym[MonoBold][monoBold]
% The fallbacks
 \definefontsynonym[MonoItalic][monoItalic]
 \definefontsynonym[MonoSlanted][Mono]
 \definefontsynonym[MonoDB][monoDB]
 \definefontsynonym[MonoBoldSlanted][MonoBold]
 \definefontsynonym[MonoCaps][Mono]
\stoptypescript


%Start a convenience typescript that ties it all together:
\starttypescript[myface]
 \definetypeface[Myface][rm][serif][unbatang][default][encoding=uc]
 \definetypeface[Myface][ss][sans][undotum][default][encoding=uc]
 \definetypeface[Myface][tt][mono][untype][default][encoding=uc]
\definetypeface [Myface][mm][math] [modern] [modern]   %[encoding=uc] 
\stoptypescript
