about summary refs log tree commit diff stats
path: root/html/apps/ex15.mu.html
diff options
context:
space:
mode:
Diffstat (limited to 'html/apps/ex15.mu.html')
-rw-r--r--html/apps/ex15.mu.html201
1 files changed, 158 insertions, 43 deletions
diff --git a/html/apps/ex15.mu.html b/html/apps/ex15.mu.html
index fd61ac64..838838b1 100644
--- a/html/apps/ex15.mu.html
+++ b/html/apps/ex15.mu.html
@@ -1,14 +1,14 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<!DOCTYPE html>
 <html>
 <head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8">
+<meta charset="UTF-8">
 <title>Mu - apps/ex15.mu</title>
-<meta name="Generator" content="Vim/8.1">
-<meta name="plugin-version" content="vim8.1_v1">
+<meta name="Generator" content="Vim/8.2">
+<meta name="plugin-version" content="vim8.1_v2">
 <meta name="syntax" content="none">
-<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=">
+<meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy=,use_input_for_pc=fallback">
 <meta name="colorscheme" content="minimal-light">
-<style type="text/css">
+<style>
 <!--
 pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffd7; }
 body { font-size:12pt; font-family: monospace; color: #000000; background-color: #ffffd7; }
@@ -17,14 +17,16 @@ a { color:inherit; }
 .PreProc { color: #c000c0; }
 .Special { color: #ff6060; }
 .LineNr { }
+.muRegEsi { color: #005faf; }
 .Constant { color: #008787; }
+.muRegEcx { color: #870000; }
 .Delimiter { color: #c000c0; }
 .muFunction { color: #af5f00; text-decoration: underline; }
 .muComment { color: #005faf; }
 -->
 </style>
 
-<script type='text/javascript'>
+<script>
 <!--
 
 /* function to open any folds containing a jumped-to line before jumping to it */
@@ -56,42 +58,155 @@ if ('onhashchange' in window) {
 <body onload='JumpToLine();'>
 <a href='https://github.com/akkartik/mu/blob/main/apps/ex15.mu'>https://github.com/akkartik/mu/blob/main/apps/ex15.mu</a>
 <pre id='vimCodeElement'>
-<span id="L1" class="LineNr"> 1 </span><span class="muComment"># Demo of combining-character support in Mu, which can be summarized as, &quot;the</span>
-<span id="L2" class="LineNr"> 2 </span><span class="muComment"># old typewriter-based approach of backing up one character and adding the</span>
-<span id="L3" class="LineNr"> 3 </span><span class="muComment"># accent or _matra_ in.&quot;</span>
-<span id="L4" class="LineNr"> 4 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Combining_character">https://en.wikipedia.org/wiki/Combining_character</a></span>
-<span id="L5" class="LineNr"> 5 </span><span class="muComment">#</span>
-<span id="L6" class="LineNr"> 6 </span><span class="muComment"># Mu uses this approach for both accents in Latin languages and vowel</span>
-<span id="L7" class="LineNr"> 7 </span><span class="muComment"># diacritics in Abugida scripts.</span>
-<span id="L8" class="LineNr"> 8 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Diacritic">https://en.wikipedia.org/wiki/Diacritic</a></span>
-<span id="L9" class="LineNr"> 9 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Abugida">https://en.wikipedia.org/wiki/Abugida</a></span>
-<span id="L10" class="LineNr">10 </span><span class="muComment">#</span>
-<span id="L11" class="LineNr">11 </span><span class="muComment"># Steps for trying it out:</span>
-<span id="L12" class="LineNr">12 </span><span class="muComment">#   1. Translate this example into a disk image code.img.</span>
-<span id="L13" class="LineNr">13 </span><span class="muComment">#       ./translate apps/ex15.mu</span>
-<span id="L14" class="LineNr">14 </span><span class="muComment">#   2. Run:</span>
-<span id="L15" class="LineNr">15 </span><span class="muComment">#       qemu-system-i386 -hda code.img -hdb data.img</span>
-<span id="L16" class="LineNr">16 </span><span class="muComment">#</span>
-<span id="L17" class="LineNr">17 </span><span class="muComment"># Expected output: 'à' in green in a few places near the top-left corner of</span>
-<span id="L18" class="LineNr">18 </span><span class="muComment"># screen, showing off what this approach can and cannot do.</span>
-<span id="L19" class="LineNr">19 </span>
-<span id="L20" class="LineNr">20 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex15.mu.html#L20'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span>
-<span id="L21" class="LineNr">21 </span>  <span class="muComment"># at the top of screen, the accent is almost cropped</span>
-<span id="L22" class="LineNr">22 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L23" class="LineNr">23 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L24" class="LineNr">24 </span>
-<span id="L25" class="LineNr">25 </span>  <span class="muComment"># below a grapheme with a descender, the accent uglily overlaps</span>
-<span id="L26" class="LineNr">26 </span>  <span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Descender">https://en.wikipedia.org/wiki/Descender</a></span>
-<span id="L27" class="LineNr">27 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x67</span>/g,                       <span class="Constant">4</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L28" class="LineNr">28 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L29" class="LineNr">29 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L30" class="LineNr">30 </span>
-<span id="L31" class="LineNr">31 </span>  <span class="muComment"># beside a grapheme with a descender, it becomes more obvious that monowidth fonts can't make baselines line up</span>
-<span id="L32" class="LineNr">32 </span>  <span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Baseline_(typography)">https://en.wikipedia.org/wiki/Baseline_(typography)</a></span>
-<span id="L33" class="LineNr">33 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x67</span>/g,                       <span class="Constant">8</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L34" class="LineNr">34 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L35" class="LineNr">35 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
-<span id="L36" class="LineNr">36 </span><span class="Delimiter">}</span>
+<span id="L1" class="LineNr">  1 </span><span class="muComment"># Demo of combining-character support in Mu, which can be summarized as, &quot;the</span>
+<span id="L2" class="LineNr">  2 </span><span class="muComment"># old typewriter-based approach of backing up one character and adding the</span>
+<span id="L3" class="LineNr">  3 </span><span class="muComment"># accent or _matra_ in.&quot;</span>
+<span id="L4" class="LineNr">  4 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Combining_character">https://en.wikipedia.org/wiki/Combining_character</a></span>
+<span id="L5" class="LineNr">  5 </span><span class="muComment">#</span>
+<span id="L6" class="LineNr">  6 </span><span class="muComment"># Mu uses this approach for both accents in Latin languages and vowel</span>
+<span id="L7" class="LineNr">  7 </span><span class="muComment"># diacritics in Abugida scripts.</span>
+<span id="L8" class="LineNr">  8 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Diacritic">https://en.wikipedia.org/wiki/Diacritic</a></span>
+<span id="L9" class="LineNr">  9 </span><span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Abugida">https://en.wikipedia.org/wiki/Abugida</a></span>
+<span id="L10" class="LineNr"> 10 </span><span class="muComment">#</span>
+<span id="L11" class="LineNr"> 11 </span><span class="muComment"># Steps for trying it out:</span>
+<span id="L12" class="LineNr"> 12 </span><span class="muComment">#   1. Translate this example into a disk image code.img.</span>
+<span id="L13" class="LineNr"> 13 </span><span class="muComment">#       ./translate apps/ex15.mu</span>
+<span id="L14" class="LineNr"> 14 </span><span class="muComment">#   2. Run:</span>
+<span id="L15" class="LineNr"> 15 </span><span class="muComment">#       qemu-system-i386 -hda code.img -hdb data.img</span>
+<span id="L16" class="LineNr"> 16 </span><span class="muComment">#</span>
+<span id="L17" class="LineNr"> 17 </span><span class="muComment"># Expected output, showing off what this approach can and cannot do:</span>
+<span id="L18" class="LineNr"> 18 </span><span class="muComment">#   'à' in green in a few places near the top-left corner of screen, with</span>
+<span id="L19" class="LineNr"> 19 </span><span class="muComment">#   other letters nearby showing cases where characters blend to the eye.</span>
+<span id="L20" class="LineNr"> 20 </span><span class="muComment">#</span>
+<span id="L21" class="LineNr"> 21 </span><span class="muComment">#   A few Devanagari letter combinations. Devanagari works well except for</span>
+<span id="L22" class="LineNr"> 22 </span><span class="muComment">#   characters blending together.</span>
+<span id="L23" class="LineNr"> 23 </span><span class="muComment">#</span>
+<span id="L24" class="LineNr"> 24 </span><span class="muComment">#   A few Tamil letter combinations. Tamil often doesn't look right, and</span>
+<span id="L25" class="LineNr"> 25 </span><span class="muComment">#   requires ligatures for many letter combinations.</span>
+<span id="L26" class="LineNr"> 26 </span><span class="muComment">#</span>
+<span id="L27" class="LineNr"> 27 </span><span class="muComment">#   Others? (Patches welcome.) I suspect Tibetan in particular will not work</span>
+<span id="L28" class="LineNr"> 28 </span><span class="muComment">#   well with this approach. But I need native readers to assess quality.</span>
+<span id="L29" class="LineNr"> 29 </span>
+<span id="L30" class="LineNr"> 30 </span><span class="PreProc">fn</span> <span class="muFunction"><a href='ex15.mu.html#L30'>main</a></span> <a href='../500fake-screen.mu.html#L14'>screen</a>: (addr <a href='../500fake-screen.mu.html#L14'>screen</a>), keyboard: (addr keyboard), data-disk: (addr disk) <span class="Delimiter">{</span>
+<span id="L31" class="LineNr"> 31 </span>  <span class="muComment"># at the top of screen, the accent is almost cropped</span>
+<span id="L32" class="LineNr"> 32 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L33" class="LineNr"> 33 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">0</span>/x <span class="Constant">0</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L34" class="LineNr"> 34 </span>
+<span id="L35" class="LineNr"> 35 </span>  <span class="muComment"># below a grapheme with a descender, the accent uglily overlaps</span>
+<span id="L36" class="LineNr"> 36 </span>  <span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Descender">https://en.wikipedia.org/wiki/Descender</a></span>
+<span id="L37" class="LineNr"> 37 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x67</span>/g,                       <span class="Constant">4</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L38" class="LineNr"> 38 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L39" class="LineNr"> 39 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">4</span>/x <span class="Constant">4</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L40" class="LineNr"> 40 </span>
+<span id="L41" class="LineNr"> 41 </span>  <span class="muComment"># beside a grapheme with a descender, it becomes more obvious that monowidth fonts can't make baselines line up</span>
+<span id="L42" class="LineNr"> 42 </span>  <span class="muComment">#   <a href="https://en.wikipedia.org/wiki/Baseline_(typography)">https://en.wikipedia.org/wiki/Baseline_(typography)</a></span>
+<span id="L43" class="LineNr"> 43 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x67</span>/g,                       <span class="Constant">8</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L44" class="LineNr"> 44 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span>    <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a>   <span class="Constant">0x61</span>/a,                       <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L45" class="LineNr"> 45 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0300</span>/combining-grave-accent,  <span class="Constant">9</span>/x <span class="Constant">3</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L46" class="LineNr"> 46 </span>
+<span id="L47" class="LineNr"> 47 </span>  <span class="muComment"># a single devanagari letter combined with different vowel _matras_</span>
+<span id="L48" class="LineNr"> 48 </span>  <span class="muComment"># ka</span>
+<span id="L49" class="LineNr"> 49 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">4</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L50" class="LineNr"> 50 </span>  <span class="muComment"># kaa</span>
+<span id="L51" class="LineNr"> 51 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">7</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L52" class="LineNr"> 52 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x093e</span>/devanagari-vowel-aa, <span class="Constant">7</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L53" class="LineNr"> 53 </span>  <span class="muComment"># ki</span>
+<span id="L54" class="LineNr"> 54 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xa</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L55" class="LineNr"> 55 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x093f</span>/devanagari-vowel-i, <span class="Constant">0xa</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L56" class="LineNr"> 56 </span>  <span class="muComment"># kee</span>
+<span id="L57" class="LineNr"> 57 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xd</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L58" class="LineNr"> 58 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0940</span>/devanagari-vowel-ii, <span class="Constant">0xd</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L59" class="LineNr"> 59 </span>  <span class="muComment"># ku</span>
+<span id="L60" class="LineNr"> 60 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x10</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L61" class="LineNr"> 61 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0941</span>/devanagari-vowel-u, <span class="Constant">0x10</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L62" class="LineNr"> 62 </span>  <span class="muComment"># koo</span>
+<span id="L63" class="LineNr"> 63 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x13</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L64" class="LineNr"> 64 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0942</span>/devanagari-vowel-oo, <span class="Constant">0x13</span>/x <span class="Constant">8</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L65" class="LineNr"> 65 </span>  <span class="muComment"># kay</span>
+<span id="L66" class="LineNr"> 66 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">4</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L67" class="LineNr"> 67 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0947</span>/devanagari-vowel-E, <span class="Constant">4</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L68" class="LineNr"> 68 </span>  <span class="muComment"># kai</span>
+<span id="L69" class="LineNr"> 69 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">7</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L70" class="LineNr"> 70 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0948</span>/devanagari-vowel-ai, <span class="Constant">7</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L71" class="LineNr"> 71 </span>  <span class="muComment"># ko</span>
+<span id="L72" class="LineNr"> 72 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xa</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L73" class="LineNr"> 73 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x094b</span>/devanagari-vowel-o, <span class="Constant">0xa</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L74" class="LineNr"> 74 </span>  <span class="muComment"># kow</span>
+<span id="L75" class="LineNr"> 75 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0xd</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L76" class="LineNr"> 76 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x094f</span>/devanagari-vowel-aw, <span class="Constant">0xd</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L77" class="LineNr"> 77 </span>  <span class="muComment"># kan</span>
+<span id="L78" class="LineNr"> 78 </span>  <span class="muComment"># bump this letter down to show the letter without overlap; we've already established above that overlap is an issue</span>
+<span id="L79" class="LineNr"> 79 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x10</span>/x <span class="Constant">0xa</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L80" class="LineNr"> 80 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0902</span>/devanagari-anusvara, <span class="Constant">0x10</span>/x <span class="Constant">0xa</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L81" class="LineNr"> 81 </span>  <span class="muComment"># kaha</span>
+<span id="L82" class="LineNr"> 82 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L19'>draw-code-point-on-real-screen</a> <span class="Constant">0x0915</span>/devanagari-letter-ka, <span class="Constant">0x13</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L83" class="LineNr"> 83 </span>  <span class="PreProc">var</span> dummy/eax: int <span class="Special">&lt;-</span> <a href='../103glyph.subx.html#L31'>overlay-code-point-on-real-screen</a> <span class="Constant">0x0903</span>/devanagari-visarga, <span class="Constant">0x13</span>/x <span class="Constant">9</span>/y, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L84" class="LineNr"> 84 </span>
+<span id="L85" class="LineNr"> 85 </span>  <span class="muComment"># render the same devanagari letters as a single stream of utf-8 graphemes rather than individual code-points.</span>
+<span id="L86" class="LineNr"> 86 </span>  <span class="PreProc">var</span> text-storage: (stream byte <span class="Constant">0x200</span>)
+<span id="L87" class="LineNr"> 87 </span>  <span class="PreProc">var</span> text/<span class="muRegEsi">esi</span>: (addr stream byte) <span class="Special">&lt;-</span> address text-storage
+<span id="L88" class="LineNr"> 88 </span>  <span class="PreProc">var</span> g/eax: grapheme <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0915</span>/devanagari-letter-ka
+<span id="L89" class="LineNr"> 89 </span>  <span class="PreProc">var</span> ka/<span class="muRegEcx">ecx</span>: grapheme <span class="Special">&lt;-</span> copy g
+<span id="L90" class="LineNr"> 90 </span>  <span class="muComment"># ka</span>
+<span id="L91" class="LineNr"> 91 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L92" class="LineNr"> 92 </span>  <span class="muComment"># kaa</span>
+<span id="L93" class="LineNr"> 93 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L94" class="LineNr"> 94 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x093e</span>/devanagari-vowel-aa
+<span id="L95" class="LineNr"> 95 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L96" class="LineNr"> 96 </span>  <span class="muComment"># ki</span>
+<span id="L97" class="LineNr"> 97 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L98" class="LineNr"> 98 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x093f</span>/devanagari-vowel-i
+<span id="L99" class="LineNr"> 99 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L100" class="LineNr">100 </span>  <span class="muComment"># kee</span>
+<span id="L101" class="LineNr">101 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L102" class="LineNr">102 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0940</span>/devanagari-vowel-ii
+<span id="L103" class="LineNr">103 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L104" class="LineNr">104 </span>  <span class="muComment"># ku</span>
+<span id="L105" class="LineNr">105 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L106" class="LineNr">106 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0941</span>/devanagari-vowel-u
+<span id="L107" class="LineNr">107 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L108" class="LineNr">108 </span>  <span class="muComment"># koo</span>
+<span id="L109" class="LineNr">109 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L110" class="LineNr">110 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0942</span>/devanagari-vowel-oo
+<span id="L111" class="LineNr">111 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L112" class="LineNr">112 </span>  <span class="muComment"># kay</span>
+<span id="L113" class="LineNr">113 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L114" class="LineNr">114 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0947</span>/devanagari-vowel-E
+<span id="L115" class="LineNr">115 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L116" class="LineNr">116 </span>  <span class="muComment"># kai</span>
+<span id="L117" class="LineNr">117 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L118" class="LineNr">118 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0948</span>/devanagari-vowel-ai
+<span id="L119" class="LineNr">119 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L120" class="LineNr">120 </span>  <span class="muComment"># ko</span>
+<span id="L121" class="LineNr">121 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L122" class="LineNr">122 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x094b</span>/devanagari-vowel-o
+<span id="L123" class="LineNr">123 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L124" class="LineNr">124 </span>  <span class="muComment"># kow</span>
+<span id="L125" class="LineNr">125 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L126" class="LineNr">126 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x094f</span>/devanagari-vowel-aw
+<span id="L127" class="LineNr">127 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L128" class="LineNr">128 </span>  <span class="muComment"># kan</span>
+<span id="L129" class="LineNr">129 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L130" class="LineNr">130 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0902</span>/devanagari-anusvara
+<span id="L131" class="LineNr">131 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L132" class="LineNr">132 </span>  <span class="muComment"># kaha</span>
+<span id="L133" class="LineNr">133 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, ka
+<span id="L134" class="LineNr">134 </span>  g <span class="Special">&lt;-</span> <a href='../403unicode.mu.html#L104'>to-grapheme</a> <span class="Constant">0x0903</span>/devanagari-visarga
+<span id="L135" class="LineNr">135 </span>  <a href='../403unicode.mu.html#L339'>write-grapheme</a> text, g
+<span id="L136" class="LineNr">136 </span>  <span class="muComment"># render everything</span>
+<span id="L137" class="LineNr">137 </span>  <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, <span class="Constant">4</span>/x <span class="Constant">0xe</span>/y
+<span id="L138" class="LineNr">138 </span>  <a href='../501draw-text.mu.html#L295'>draw-stream-wrapping-right-then-down-from-cursor-over-full-screen</a> <a href='../500fake-screen.mu.html#L14'>screen</a>, text, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L139" class="LineNr">139 </span>
+<span id="L140" class="LineNr">140 </span>  <span class="muComment"># a stream of tamil graphemes (with interspersed spaces for clarity) that don't look the same in Mu</span>
+<span id="L141" class="LineNr">141 </span>  <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x12</span>/y
+<span id="L142" class="LineNr">142 </span>  <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;எ ஃ கு &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L143" class="LineNr">143 </span>  <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x13</span>/y
+<span id="L144" class="LineNr">144 </span>  <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ ன் று &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L145" class="LineNr">145 </span>  <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x14</span>/y
+<span id="L146" class="LineNr">146 </span>  <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ தா வ து &quot;</span> , <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L147" class="LineNr">147 </span>  <a href='../500fake-screen.mu.html#L267'>set-cursor-position</a> <span class="Constant">0</span>, <span class="Constant">4</span>/x <span class="Constant">0x15</span>/y
+<span id="L148" class="LineNr">148 </span>  <a href='../501draw-text.mu.html#L339'>draw-text-wrapping-right-then-down-from-cursor-over-full-screen</a> <span class="Constant">0</span>, <span class="Constant">&quot;அ ஃ தா ன் று &quot;</span>, <span class="Constant">3</span>/fg <span class="Constant">0</span>/bg
+<span id="L149" class="LineNr">149 </span><span class="Delimiter">}</span>
 </pre>
 </body>
 </html>