<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Levente<br><br>Thank you!<br><br>I will tussle with that tomorrow.<br><br>As an aside, fior he purposes of seaside I learned that xml only supports a subset of available Unicode.<br><br>https://en.m.wikipedia.org/wiki/Valid_characters_in_XML<br><br>This may simplify my PEG filters.<br><br><div id="message"></div>The larger and intriguing issue of getting every printable unicode character to display in squeak is now on my want to do list!<div>.</div><div>A fun experiment will be seeing if out putting "delete the e" to the Transcript followed by the delete character (127?) results in "delete the " (:</div><div><br></div><div><br id="br3"><div id="signature"></div><div id="content">cheers!</div><div id="content"><br></div><div id="content">t<br> ---- On Thu, 28 Jan 2021 16:17:15 -0500 <b> leves@caesar.elte.hu </b> wrote ----<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin-left: 5px;"><div>Hi Tim,
<br>
<br>On Thu, 28 Jan 2021, gettimothy via Squeak-dev wrote:
<br>
<br>> Hi Folks,
<br>>
<br>>
<br>> For a development tool and Unicode grok exercise, I am recreating the functionality of: <a href="https://jrgraphix.net/r/Unicode/" target="_blank">https://jrgraphix.net/r/Unicode/</a>
<br>>
<br>>
<br>> For the Latin unicode characters, I would like to create a table 10 <td> things wide in a table row.
<br>>
<br>> There has got to be an elegant way rather than the kludge I am imagining...
<br>>
<br>> Here is my current code that has one TD for each row.
<br>> render000020to00007F: html
<br>> html table
<br>> with:[
<br>> html tableHead with: [html strong: ' Basic Latin'].
<br>> html tableBody with:[
<br>> (16r000020 asCharacter to: 16r00007F asCharacter)
<br>> do:[:each|
<br>> html tableRow with:[
<br>> html tableHeading: (each asInteger).
<br>> html tableData: each]]]]
<br>
<br>If the size of the collection would be a multiple of 10, you could use
<br>#groupsOf:atATimeDo:, but it's not, so I'd try something like this:
<br>
<br>| start end step |
<br>start := 16r000020.
<br>end := 16r00007F.
<br>step := 10.
<br>start to: end by: step do: [ :groupStart |
<br> | group |
<br> group := groupStart to: (groupStart + step - 1 min: end).
<br> html
<br> tableRow: [
<br> group do: [ :each |
<br> html tableHead: each ] ];
<br> tableRow: [
<br> group do: [ :each |
<br> html tableData: each asCharacter ] ] ]
<br>
<br>Levente
<br>
<br>>
<br>>
<br>> If I could "chunk" that (16r000020 asCharacter to: 16r00007F asCharacter) or the Interval (16r000020 to: 16r00007F) into subsets of 10, it would be easy to code this.
<br>>
<br>>
<br>>
<br>> thanks in advance.
<br>>
<br>>
<br>></div></blockquote></div></div></div><br></body></html>