Added braille_ascii_font()
Initial transcription. To be cleaned up.
This commit is contained in:
parent
fa265644af
commit
70a31597c4
143
fonts.scad
143
fonts.scad
|
@ -514,3 +514,146 @@ function 8bit_polyfont(dx=0.1,dy=0.1) = [
|
||||||
,[127,"^?","", "DEL","Delete",[[0,0],[8,8]],[]]
|
,[127,"^?","", "DEL","Delete",[[0,0],[8,8]],[]]
|
||||||
] ];
|
] ];
|
||||||
|
|
||||||
|
// Encoding from http://en.wikipedia.org/wiki/Braille_ASCII
|
||||||
|
// Dot Pattern:
|
||||||
|
// 1 2
|
||||||
|
// 3 4
|
||||||
|
// 5 6
|
||||||
|
function braille_ascii_font(dx=0.1,dy=0.1) = [
|
||||||
|
[2,3,0,"fixed"],["Decimal Byte","Caret Notation","Character Escape Code","Abbreviation","Name","Bound Box","[points,paths]"]
|
||||||
|
,[
|
||||||
|
[ 0,"^@","\0","NUL","Null character",[[0,0],[2,3]],[]]
|
||||||
|
,[ 1,"^A","", "SOH","Start of Header",[[0,0],[2,3]],[]]
|
||||||
|
,[ 2,"^B","", "STX","Start of Text",[[0,0],[2,3]],[]]
|
||||||
|
,[ 3,"^C","", "ETX","End of Text",[[0,0],[2,3]],[]]
|
||||||
|
,[ 4,"^D","", "EOT","End of Transmission",[[0,0],[2,3]],[]]
|
||||||
|
,[ 5,"^E","", "ENQ","Enquiry",[[0,0],[2,3]],[]]
|
||||||
|
,[ 6,"^F","", "ACK","Acknowledgment",[[0,0],[2,3]],[]]
|
||||||
|
,[ 7,"^G","\a","BEL","Bell",[[0,0],[2,3]],[]]
|
||||||
|
,[ 8,"^H","\b","BS", "Backspace",[[0,0],[2,3]],[]]
|
||||||
|
,[ 9,"^I","\t","HT", "Horizontal Tab",[[0,0],[2,3]],[]]
|
||||||
|
,[ 10,"^J","\n","LF", "Line Feed",[[0,0],[2,3]],[]]
|
||||||
|
,[ 11,"^K","\v","VT", "Vertical Tab",[[0,0],[2,3]],[]]
|
||||||
|
,[ 12,"^L","\f","FF", "Form feed",[[0,0],[2,3]],[]]
|
||||||
|
,[ 13,"^M","\r","CR", "Carriage return",[[0,0],[2,3]],[]]
|
||||||
|
,[ 14,"^N","", "SO", "Shift Out",[[0,0],[2,3]],[]]
|
||||||
|
,[ 15,"^O","", "SI", "Shift In",[[0,0],[2,3]],[]]
|
||||||
|
,[ 16,"^P","", "DLE","Data Link Escape",[[0,0],[2,3]],[]]
|
||||||
|
,[ 17,"^Q","", "DC1","Device Control 1",[[0,0],[2,3]],[]]
|
||||||
|
,[ 18,"^R","", "DC2","Device Control 2",[[0,0],[2,3]],[]]
|
||||||
|
,[ 19,"^S","", "DC3","Device Control 3",[[0,0],[2,3]],[]]
|
||||||
|
,[ 20,"^T","", "DC4","Device Control 4",[[0,0],[2,3]],[]]
|
||||||
|
,[ 21,"^U","", "NAK","Negative Acknowledgement",[[0,0],[2,3]],[]]
|
||||||
|
,[ 22,"^V","", "SYN","Synchronous Idle",[[0,0],[2,3]],[]]
|
||||||
|
,[ 23,"^W","", "ETB","End of Transmission Block",[[0,0],[2,3]],[]]
|
||||||
|
,[ 24,"^X","", "CAN","Cancel",[[0,0],[2,3]],[]]
|
||||||
|
,[ 25,"^Y","", "EM", "End of Medium",[[0,0],[2,3]],[]]
|
||||||
|
,[ 26,"^Z","", "SUB","Substitute",[[0,0],[2,3]],[]]
|
||||||
|
,[ 27,"^[","\e","ESC","Escape",[[0,0],[2,3]],[]]
|
||||||
|
,[ 28,"^\\","", "FS", "File Separator",[[0,0],[2,3]],[]]
|
||||||
|
,[ 29,"^]","", "GS", "Group Separator",[[0,0],[2,3]],[]]
|
||||||
|
,[ 30,"^^","", "RS", "Record Separator",[[0,0],[2,3]],[]]
|
||||||
|
,[ 31,"^_","", "US", "Unit Separator",[[0,0],[2,3]],[]]
|
||||||
|
,[ 32," "," ", "", "Space",[[0,0],[2,8]],[]]
|
||||||
|
,[ 33,"!","!", "", "the",[[0,0],[2,3]],[ 2,3,4,6 ]]
|
||||||
|
,[ 34,"\"","\"","", "(contraction)",[[0,0],[2,3]],[ 5 ]]
|
||||||
|
,[ 35,"#","#", "", "(number prefix)",[[0,0],[2,3]],[ 3,4,5,6 ]]
|
||||||
|
,[ 36,"$","$", "", "ed",[[0,0],[2,3]],[ 1,2,4,6 ]]
|
||||||
|
,[ 37,"%","%", "", "sh",[[0,0],[2,3]],[ 1,4,6 ]]
|
||||||
|
,[ 38,"&","&", "", "and",[[0,0],[2,3]],[ 1,2,3,4,6 ]]
|
||||||
|
,[ 39,"'","'", "", "",[[0,0],[2,3]],[ 3 ]]
|
||||||
|
,[ 40,"(","(", "", "of",[[0,0],[2,3]],[ 1,2,3,5,6 ]]
|
||||||
|
,[ 41,")",")", "", "with",[[0,0],[2,3]],[ 2,3,4,5,6 ]]
|
||||||
|
,[ 42,"*","*", "", "ch",[[0,0],[2,3]],[ 1,6 ]]
|
||||||
|
,[ 43,"+","+", "", "ing",[[0,0],[2,3]],[ 3,4,6 ]]
|
||||||
|
,[ 44,",",",", "", "(uppercase prefix)",[[0,0],[2,3]],[ 6 ]]
|
||||||
|
,[ 45,"-","-", "", "",[[0,0],[2,3]],[ 3,6 ]]
|
||||||
|
,[ 46,".",".", "", "(italic prefix)",[[0,0],[2,3]],[ 4,6 ]]
|
||||||
|
,[ 47,"/","/", "", "st",[[0,0],[2,3]],[ 3,4 ]]
|
||||||
|
,[ 48,"0","0", "", "\"",[[0,0],[2,3]],[ 3,5,6 ]]
|
||||||
|
,[ 49,"1","1", "", ",",[[0,0],[2,3]],[ 2 ]]
|
||||||
|
,[ 50,"2","2", "", ";",[[0,0],[2,3]],[ 2,3 ]]
|
||||||
|
,[ 51,"3","3", "", ":",[[0,0],[2,3]],[ 2,5 ]]
|
||||||
|
,[ 52,"4","4", "", ".",[[0,0],[2,3]],[ 2,5,6 ]]
|
||||||
|
,[ 53,"5","5", "", "en",[[0,0],[2,3]],[ 2,6 ]]
|
||||||
|
,[ 54,"6","6", "", "!",[[0,0],[2,3]],[ 2,3,5 ]]
|
||||||
|
,[ 55,"7","7", "", "( or )",[[0,0],[2,3]],[ 2,3,5,6 ]]
|
||||||
|
,[ 56,"8","8", "", "\" or ?",[[0,0],[2,3]],[ 2,3,6 ]]
|
||||||
|
,[ 57,"9","9", "", "in",[[0,0],[2,3]],[ 3,5 ]]
|
||||||
|
,[ 58,":",":", "", "wh",[[0,0],[2,3]],[ 1,5,6 ]]
|
||||||
|
,[ 59,";",";", "", "(letter prefix)",[[0,0],[2,3]],[ 5,6 ]]
|
||||||
|
,[ 60,"<","<", "", "gh",[[0,0],[2,3]],[ 1,2,6 ]]
|
||||||
|
,[ 61,"=","=", "", "for",[[0,0],[2,3]],[ 1,2,3,4,5,6 ]]
|
||||||
|
,[ 62,">",">", "", "ar",[[0,0],[2,3]],[ 3,4,5 ]]
|
||||||
|
,[ 63,"?","?", "", "th",[[0,0],[2,3]],[ 1,4,5,6 ]]
|
||||||
|
,[ 64,"@","@", "", "(accent prefix)",[[0,0],[2,3]],[ 4 ]]
|
||||||
|
,[ 65,"A","A", "", "a",[[0,0],[2,3]],[ 1 ]]
|
||||||
|
,[ 66,"B","B", "", "b",[[0,0],[2,3]],[ 1,2 ]]
|
||||||
|
,[ 67,"C","C", "", "c",[[0,0],[2,3]],[ 1,4 ]]
|
||||||
|
,[ 68,"D","D", "", "d",[[0,0],[2,3]],[ 1,4,5 ]]
|
||||||
|
,[ 69,"E","E", "", "e",[[0,0],[2,3]],[ 1,5 ]]
|
||||||
|
,[ 70,"F","F", "", "f",[[0,0],[2,3]],[ 1,2,4 ]]
|
||||||
|
,[ 71,"G","G", "", "g",[[0,0],[2,3]],[ 1,2,4,5 ]]
|
||||||
|
,[ 72,"H","H", "", "h",[[0,0],[2,3]],[ 1,2,5 ]]
|
||||||
|
,[ 73,"I","I", "", "i",[[0,0],[2,3]],[ 2,4 ]]
|
||||||
|
,[ 74,"J","J", "", "j",[[0,0],[2,3]],[ 2,4,5 ]]
|
||||||
|
,[ 75,"K","K", "", "k",[[0,0],[2,3]],[ 1,3 ]]
|
||||||
|
,[ 76,"L","L", "", "l",[[0,0],[2,3]],[ 1,2,3 ]]
|
||||||
|
,[ 77,"M","M", "", "m",[[0,0],[2,3]],[ 1,3,4 ]]
|
||||||
|
,[ 78,"N","N", "", "n",[[0,0],[2,3]],[ 1,3,4,5 ]]
|
||||||
|
,[ 79,"O","O", "", "o",[[0,0],[2,3]],[ 1,3,5 ]]
|
||||||
|
,[ 80,"P","P", "", "p",[[0,0],[2,3]],[ 1,2,3,4 ]]
|
||||||
|
,[ 81,"Q","Q", "", "q",[[0,0],[2,3]],[ 1,2,3,4,5 ]]
|
||||||
|
,[ 82,"R","R", "", "r",[[0,0],[2,3]],[ 1,2,3,5 ]]
|
||||||
|
,[ 83,"S","S", "", "s",[[0,0],[2,3]],[ 2,3,4 ]]
|
||||||
|
,[ 84,"T","T", "", "t",[[0,0],[2,3]],[ 2,3,4,5 ]]
|
||||||
|
,[ 85,"U","U", "", "u",[[0,0],[2,3]],[ 1,3,6 ]]
|
||||||
|
,[ 86,"V","V", "", "v",[[0,0],[2,3]],[ 1,2,3,6 ]]
|
||||||
|
,[ 87,"W","W", "", "w",[[0,0],[2,3]],[ 2,4,5,6 ]]
|
||||||
|
,[ 88,"X","X", "", "x",[[0,0],[2,3]],[ 1,3,4,6 ]]
|
||||||
|
,[ 89,"Y","Y", "", "y",[[0,0],[2,3]],[ 1,3,4,5,6 ]]
|
||||||
|
,[ 90,"Z","Z", "", "z",[[0,0],[2,3]],[ 1,3,5,6 ]]
|
||||||
|
,[ 91,"[","[", "", "ow",[[0,0],[2,3]],[ 2,4,6 ]] // ]]
|
||||||
|
,[ 92,"\\","\\","", "ou",[[0,0],[2,3]],[ 1,2,5,6 ]] // [[
|
||||||
|
,[ 93,"]","]", "", "er",[[0,0],[2,3]],[ 1,2,4,5,6 ]]
|
||||||
|
,[ 94,"^","^", "", "(contraction)",[[0,0],[2,3]],[ 4,5 ]]
|
||||||
|
,[ 95,"_","_", "", "(contraction)",[[0,0],[2,3]],[ 4,5,6 ]]
|
||||||
|
,[ 96,"`","`", "", "",[[0,0],[2,3]],[
|
||||||
|
]]
|
||||||
|
// Repeating upper-case patterns for lower-case letters.
|
||||||
|
,[ 97,"a","a", "", "a",[[0,0],[2,3]],[ 1 ]]
|
||||||
|
,[ 98,"b","b", "", "b",[[0,0],[2,3]],[ 1,2 ]]
|
||||||
|
,[ 99,"c","c", "", "c",[[0,0],[2,3]],[ 1,4 ]]
|
||||||
|
,[100,"d","d", "", "d",[[0,0],[2,3]],[ 1,4,5 ]]
|
||||||
|
,[101,"e","e", "", "e",[[0,0],[2,3]],[ 1,5 ]]
|
||||||
|
,[102,"f","f", "", "f",[[0,0],[2,3]],[ 1,2,4 ]]
|
||||||
|
,[103,"g","g", "", "g",[[0,0],[2,3]],[ 1,2,4,5 ]]
|
||||||
|
,[104,"h","h", "", "h",[[0,0],[2,3]],[ 1,2,5 ]]
|
||||||
|
,[105,"i","i", "", "i",[[0,0],[2,3]],[ 2,4 ]]
|
||||||
|
,[106,"j","j", "", "j",[[0,0],[2,3]],[ 2,4,5 ]]
|
||||||
|
,[107,"k","k", "", "k",[[0,0],[2,3]],[ 1,3 ]]
|
||||||
|
,[108,"l","l", "", "l",[[0,0],[2,3]],[ 1,2,3 ]]
|
||||||
|
,[109,"m","m", "", "m",[[0,0],[2,3]],[ 1,3,4 ]]
|
||||||
|
,[110,"n","n", "", "n",[[0,0],[2,3]],[ 1,3,4,5 ]]
|
||||||
|
,[111,"o","o", "", "o",[[0,0],[2,3]],[ 1,3,5 ]]
|
||||||
|
,[112,"p","p", "", "p",[[0,0],[2,3]],[ 1,2,3,4 ]]
|
||||||
|
,[113,"q","q", "", "q",[[0,0],[2,3]],[ 1,2,3,4,5 ]]
|
||||||
|
,[114,"r","r", "", "r",[[0,0],[2,3]],[ 1,2,3,5 ]]
|
||||||
|
,[115,"s","s", "", "s",[[0,0],[2,3]],[ 2,3,4 ]]
|
||||||
|
,[116,"t","t", "", "t",[[0,0],[2,3]],[ 2,3,4,5 ]]
|
||||||
|
,[117,"u","u", "", "u",[[0,0],[2,3]],[ 1,3,6 ]]
|
||||||
|
,[118,"v","v", "", "v",[[0,0],[2,3]],[ 1,2,3,6 ]]
|
||||||
|
,[119,"w","w", "", "w",[[0,0],[2,3]],[ 2,4,5,6 ]]
|
||||||
|
,[120,"x","x", "", "x",[[0,0],[2,3]],[ 1,3,4,6 ]]
|
||||||
|
,[121,"y","y", "", "y",[[0,0],[2,3]],[ 1,3,4,5,6 ]]
|
||||||
|
,[122,"z","z", "", "z",[[0,0],[2,3]],[ 1,3,5,6 ]]
|
||||||
|
,[123,"{","{", "", "",[[0,0],[2,3]],[
|
||||||
|
]]
|
||||||
|
,[124,"|","|", "", "",[[0,0],[2,3]],[
|
||||||
|
]]
|
||||||
|
,[125,"}","}", "", "",[[0,0],[2,3]],[
|
||||||
|
]]
|
||||||
|
,[126,"~","~", "", "",[[0,0],[2,3]],[
|
||||||
|
]]
|
||||||
|
,[127,"^?","", "DEL","Delete",[[0,0],[2,3]],[]]
|
||||||
|
] ];
|
||||||
|
|
Loading…
Reference in a new issue